:root {
  --ink-900: #0B2B24;
  --ink-800: #123B31;
  --ink-700: #1B4D40;
  --copper-500: #B07A3B;
  --copper-300: #D8B37A;
  --paper-100: #F3EEE4;
  --paper-200: #E6DECD;
  --slate-500: #6F8580;
  --stamp-600: #9A3B32;
  --black-900: #1A1A17;
  --line-300: #C9BFAE;
  --max-width: 1280px;
  --reading-width: 760px;
  --page-gutter: clamp(16px, 4vw, 48px);
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow-soft: 0 18px 40px rgba(11, 43, 36, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--paper-100);
  background-image:
    linear-gradient(rgba(11, 43, 36, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 43, 36, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--black-900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.22;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}

p,
figure,
blockquote,
dl,
dd {
  margin: 0 0 1.1em;
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.25em;
}

a {
  color: var(--ink-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--copper-500);
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button {
  font: inherit;
}

strong,
b {
  color: var(--ink-900);
  font-weight: 700;
}

code,
kbd,
samp,
pre,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

code,
kbd,
samp {
  padding: 0.1em 0.35em;
  background: var(--paper-200);
  border: 1px solid var(--line-300);
  font-size: 0.88em;
}

::selection {
  background: var(--copper-300);
  color: var(--ink-900);
}

:focus-visible {
  outline: 2px solid var(--copper-500);
  outline-offset: 3px;
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--copper-300);
}

#main-content {
  scroll-margin-top: 150px;
}

#main-content:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 10px 14px;
  border: 1px solid var(--ink-900);
  background: var(--copper-300);
  color: var(--ink-900);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead__inner,
.footer__inner,
.page-shell {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.page-main {
  padding-block: clamp(32px, 6vw, 80px);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.split-layout--reading {
  grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr);
}

.prose {
  max-width: 68ch;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.08rem);
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose h2,
.prose h3 {
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose blockquote {
  margin-left: 0;
  padding: 14px 20px;
  border-left: 3px solid var(--copper-500);
  background: rgba(216, 179, 122, 0.13);
  color: var(--ink-800);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(24px, 4vw, 40px);
  padding: 0;
  list-style: none;
  color: var(--slate-500);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.breadcrumbs li {
  margin: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-300);
}

.breadcrumbs a {
  color: var(--ink-700);
  text-decoration: none;
  border-bottom: 1px solid var(--line-300);
}

.breadcrumbs [aria-current="page"] {
  color: var(--copper-500);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.section-heading__index {
  flex: 0 0 auto;
  color: var(--copper-500);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.section-heading__title {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

.section-heading__rule {
  flex: 1 1 auto;
  height: 1px;
  min-width: 24px;
  background: linear-gradient(90deg, var(--copper-300), var(--line-300));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink-900);
  background: var(--paper-100);
  color: var(--ink-900);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  border-color: var(--copper-500);
  background: var(--copper-500);
  color: var(--ink-900);
}

.button--primary {
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: var(--paper-100);
}

.button--primary:hover {
  border-color: var(--copper-500);
  background: var(--copper-500);
  color: var(--ink-900);
}

.button--ghost {
  border-color: var(--line-300);
  background: transparent;
  color: var(--ink-700);
}

.button--ghost:hover {
  border-color: var(--copper-500);
  background: rgba(216, 179, 122, 0.18);
  color: var(--ink-900);
}

.button--legacy {
  border-color: var(--slate-500);
  background: transparent;
  color: var(--slate-500);
}

.button--legacy:hover {
  background: var(--slate-500);
  color: var(--paper-100);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line-300);
  background: transparent;
  color: var(--ink-700);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.tag--gold {
  border-color: var(--copper-300);
  background: rgba(216, 179, 122, 0.18);
  color: var(--copper-500);
}

.tag--legacy {
  border-color: rgba(111, 133, 128, 0.55);
  background: rgba(111, 133, 128, 0.08);
  color: var(--slate-500);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-700);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

.status-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--ink-700);
  transform: rotate(45deg);
}

.status-chip--new::before {
  background: var(--copper-500);
}

.status-chip--legacy {
  color: var(--slate-500);
}

.status-chip--legacy::before {
  background: var(--slate-500);
}

.archive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid var(--line-300);
  border-top: 3px solid var(--ink-700);
  background: rgba(243, 238, 228, 0.68);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.archive-card:hover {
  transform: translateY(-2px);
  border-top-color: var(--copper-500);
  background: rgba(230, 222, 205, 0.72);
}

.archive-card--legacy {
  border-top-color: var(--slate-500);
  background: rgba(230, 222, 205, 0.48);
}

.archive-card--legacy:hover {
  border-top-color: var(--slate-500);
}

.archive-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--slate-500);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.archive-card__title {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
}

.archive-card__body {
  margin: 0;
  color: #3D4541;
  font-size: 0.92rem;
  line-height: 1.7;
}

.archive-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-300);
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--line-300);
  background: var(--paper-200);
}

.split-panel__pane {
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
  background: var(--paper-100);
}

.split-panel__pane--new {
  background:
    radial-gradient(circle at 100% 0, rgba(176, 122, 59, 0.32), transparent 44%),
    linear-gradient(135deg, var(--ink-800), var(--ink-900));
  color: var(--paper-100);
}

.split-panel__pane--new h2,
.split-panel__pane--new h3 {
  color: var(--paper-100);
}

.split-panel__pane--new a {
  color: var(--copper-300);
}

.split-panel__pane--legacy {
  background: var(--paper-200);
  color: var(--ink-900);
}

.split-panel__divider {
  width: 1px;
  background: var(--line-300);
}

.record-strip {
  position: relative;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--line-300);
  background: var(--paper-100);
  overflow: hidden;
}

.record-strip__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--copper-500) var(--paper-200);
}

.record-strip__track:focus-visible {
  outline: 2px solid var(--copper-500);
  outline-offset: 4px;
}

.record-strip__track::-webkit-scrollbar {
  height: 8px;
}

.record-strip__track::-webkit-scrollbar-track {
  background: var(--paper-200);
}

.record-strip__track::-webkit-scrollbar-thumb {
  background: var(--copper-500);
}

.record-card {
  flex: 0 0 min(260px, 80vw);
  scroll-snap-align: start;
  padding: 16px;
  border-left: 2px solid var(--copper-500);
  background: rgba(230, 222, 205, 0.52);
}

.record-card__meta {
  margin-bottom: 6px;
  color: var(--slate-500);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-300);
  background: rgba(243, 238, 228, 0.64);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--black-900);
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-300);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--ink-900);
  color: var(--paper-100);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(230, 222, 205, 0.48);
}

.data-table tbody tr:hover {
  background: rgba(216, 179, 122, 0.16);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.timeline-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 6px;
  width: 1px;
  background: var(--line-300);
}

.timeline-item {
  position: relative;
  margin: 0;
  padding: 0 0 26px 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 2px;
  width: 9px;
  height: 9px;
  background: var(--copper-500);
  transform: rotate(45deg);
}

.timeline-item time {
  display: block;
  margin-bottom: 6px;
  color: var(--copper-500);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.note-callout {
  padding: 16px 20px;
  border-left: 3px solid var(--copper-500);
  background: rgba(216, 179, 122, 0.14);
  color: var(--ink-900);
  font-size: 0.92rem;
}

.note-callout > :last-child {
  margin-bottom: 0;
}

.note-callout--legacy {
  border-left-color: var(--slate-500);
  background: rgba(111, 133, 128, 0.1);
  color: var(--ink-700);
}

.section-nav {
  position: sticky;
  top: 156px;
  align-self: start;
  padding-top: 16px;
  border-top: 1px solid var(--line-300);
}

.section-nav__title {
  margin: 0 0 12px;
  color: var(--slate-500);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.section-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-nav__list li {
  margin: 0;
}

.section-nav__link {
  display: block;
  padding: 8px 10px 8px 14px;
  border-left: 1px solid var(--line-300);
  color: var(--slate-500);
  font-size: 0.84rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.section-nav__link:hover {
  color: var(--ink-900);
  border-left-color: var(--copper-300);
}

.section-nav__link[data-active="true"],
.section-nav__link[aria-current="location"] {
  color: var(--ink-900);
  border-left-color: var(--copper-500);
  background: linear-gradient(90deg, rgba(176, 122, 59, 0.13), transparent);
  font-weight: 700;
}

.media-frame {
  margin: 0;
  border: 1px solid var(--line-300);
  background: linear-gradient(135deg, var(--paper-200), var(--paper-100));
  overflow: hidden;
}

.media-frame > img,
.media-frame > picture {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(18, 59, 49, 0.92), rgba(11, 43, 36, 0.95)),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(216, 179, 122, 0.15) 23px 24px);
}

.media-frame--wide > img,
.media-frame--wide > picture {
  aspect-ratio: 21 / 9;
}

.media-frame--square > img,
.media-frame--square > picture {
  aspect-ratio: 1 / 1;
}

.media-frame--portrait > img,
.media-frame--portrait > picture {
  aspect-ratio: 4 / 5;
}

.media-frame__caption {
  display: block;
  padding: 10px 12px;
  border-top: 1px solid var(--line-300);
  color: var(--slate-500);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.read-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 120;
  height: 3px;
  background: rgba(11, 43, 36, 0.16);
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--ink-700), var(--copper-500) 68%, var(--copper-300));
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  transition: transform 90ms linear;
  will-change: transform;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-300);
  background: var(--paper-100);
  box-shadow: 0 1px 0 rgba(11, 43, 36, 0.04);
}

.masthead {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--copper-500);
  background: linear-gradient(110deg, var(--ink-900) 0%, var(--ink-800) 60%, var(--ink-900) 100%);
  color: var(--paper-100);
}

.masthead::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 58%;
  background: linear-gradient(135deg, rgba(176, 122, 59, 0.24), rgba(176, 122, 59, 0));
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.masthead::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper-300), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.masthead__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 20px;
  padding-block: 18px 15px;
}

.masthead__edition {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--copper-300);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
}

.masthead__edition-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--copper-500);
  transform: rotate(45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 11px;
  color: var(--paper-100);
  text-decoration: none;
}

.brand:hover {
  color: var(--paper-100);
}

.brand__seal {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid var(--copper-300);
  color: var(--copper-300);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 3px var(--ink-900), inset 0 0 0 4px rgba(216, 179, 122, 0.22);
}

.brand__name {
  color: var(--paper-100);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  transition: color 180ms ease;
}

.brand:hover .brand__name {
  color: var(--copper-300);
}

.masthead__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.version-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(216, 179, 122, 0.48);
  background: rgba(11, 43, 36, 0.36);
}

.version-switch__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.version-switch__link--new {
  background: var(--copper-300);
  color: var(--ink-900);
}

.version-switch__link--new:hover {
  background: var(--copper-500);
  color: var(--ink-900);
}

.version-switch__link--legacy {
  background: rgba(111, 133, 128, 0.2);
  color: #D6E0DC;
}

.version-switch__link--legacy:hover {
  background: rgba(111, 133, 128, 0.42);
  color: var(--paper-100);
}

.version-switch__link[aria-current="page"] {
  box-shadow: inset 0 0 0 1px currentColor;
}

.masthead__search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(216, 179, 122, 0.48);
  color: var(--paper-100);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.masthead__search:hover {
  border-color: var(--copper-300);
  background: rgba(216, 179, 122, 0.1);
  color: var(--copper-300);
}

.masthead__note {
  flex-basis: 100%;
  color: rgba(216, 179, 122, 0.82);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: right;
}

.nav-toggle {
  display: none;
  appearance: none;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(216, 179, 122, 0.62);
  background: transparent;
  color: var(--paper-100);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(216, 179, 122, 0.12);
}

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
}

.nav-toggle__icon > span {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle__icon > span:first-child {
  top: 2px;
}

.nav-toggle__icon > span:last-child {
  bottom: 2px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon > span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon > span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-nav {
  border-bottom: 1px solid var(--line-300);
  background: rgba(243, 238, 228, 0.96);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.5vw, 28px);
  width: 100%;
  max-width: var(--max-width);
  min-height: 52px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  list-style: none;
}

.site-nav__list li {
  margin: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 5px;
  border-bottom: 2px solid transparent;
  color: var(--ink-900);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover {
  color: var(--copper-500);
  border-bottom-color: var(--copper-300);
}

.site-nav a[aria-current="page"] {
  color: var(--ink-900);
  border-bottom-color: var(--copper-500);
  font-weight: 700;
}

/* Footer */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 3px solid var(--copper-500);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  color: var(--paper-100);
}

.footer__inner {
  padding-block: clamp(40px, 6vw, 72px) 24px;
}

.footer__masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(216, 179, 122, 0.24);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper-100);
  text-decoration: none;
}

.footer__brand:hover {
  color: var(--copper-300);
}

.footer__seal {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--copper-300);
  color: var(--copper-300);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 3px var(--ink-800), inset 0 0 0 4px rgba(216, 179, 122, 0.2);
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.footer__tagline {
  max-width: 36ch;
  margin: 0;
  color: rgba(243, 238, 228, 0.68);
  font-size: 0.92rem;
  text-align: right;
}

.footer__grid {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 0.8fr 1.4fr;
  gap: clamp(24px, 4vw, 48px);
}

.footer__col {
  min-width: 0;
}

.footer__title {
  margin: 0 0 14px;
  color: var(--copper-300);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
}

.footer__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list li {
  margin: 0;
}

.footer__list a {
  color: rgba(243, 238, 228, 0.8);
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer__list a:hover {
  color: var(--copper-300);
}

.footer__address {
  color: rgba(243, 238, 228, 0.82);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.9;
}

.footer__note {
  margin: 12px 0 0;
  color: rgba(216, 179, 122, 0.82);
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 179, 122, 0.2);
  color: rgba(243, 238, 228, 0.62);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.footer__base p {
  margin: 0;
}

.footer__legal {
  text-align: right;
}

.footer__base [data-year]:empty::before {
  content: "—";
  color: rgba(216, 179, 122, 0.6);
}

/* Responsive */
@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__contact {
    grid-column: 1 / -1;
  }

  .masthead__inner {
    grid-template-columns: minmax(100px, 1fr) auto minmax(190px, 1fr);
    gap: 14px;
  }
}

@media (max-width: 900px) {
  #main-content {
    scroll-margin-top: 120px;
  }

  .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    padding-block: 12px;
  }

  .masthead__edition {
    display: none;
  }

  .brand {
    justify-self: start;
    gap: 8px;
  }

  .brand__seal {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 1rem;
  }

  .brand__name {
    font-size: 1.14rem;
    letter-spacing: 0.06em;
  }

  .masthead__tools {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0;
  }

  .masthead__search,
  .masthead__note {
    display: none;
  }

  .version-switch__link {
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.68rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }

  .site-nav[data-open] {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding-block: 8px 12px;
  }

  .site-nav__list li {
    border-bottom: 1px solid var(--line-300);
  }

  .site-nav__list li:last-child {
    border-bottom: 0;
  }

  .site-nav a {
    min-height: 48px;
    justify-content: space-between;
    padding: 0 6px;
    border-bottom: 0;
  }

  .site-nav a[aria-current="page"] {
    padding-left: 14px;
    background: rgba(176, 122, 59, 0.12);
    box-shadow: inset 3px 0 0 var(--copper-500);
  }

  .split-layout,
  .split-layout--reading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-nav {
    position: static;
    top: auto;
  }

  .content-grid > * {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .page-main {
    padding-block: 32px 48px;
  }

  .footer__masthead {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__tagline {
    max-width: 42ch;
    text-align: left;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__contact {
    grid-column: auto;
  }

  .footer__base {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__legal {
    text-align: left;
  }

  .split-panel {
    grid-template-columns: 1fr;
  }

  .split-panel__divider {
    width: 100%;
    height: 1px;
  }

  .record-strip {
    padding: 14px;
  }

  .record-card {
    flex-basis: min(240px, 84vw);
  }

  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .section-heading__rule {
    width: 100%;
    flex-basis: 100%;
  }
}

@media (max-width: 480px) {
  .brand__seal {
    display: none;
  }

  .brand__name {
    font-size: 1rem;
  }

  .version-switch__link {
    min-height: 32px;
    padding: 0 7px;
    font-size: 0.64rem;
  }

  .nav-toggle {
    min-height: 34px;
    padding: 7px 8px;
  }

  .nav-toggle__label {
    display: none;
  }

  .footer__seal {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .archive-card:hover {
    transform: none;
  }

  .read-progress__bar {
    transition: none;
  }
}

@media print {
  body {
    background: #FFFFFF;
    color: #000000;
    font-size: 12pt;
  }

  .site-header,
  .site-footer,
  .read-progress,
  .skip-link,
  .nav-toggle,
  .section-nav {
    display: none !important;
  }

  .page-main {
    padding: 0;
  }

  .page-shell {
    max-width: none;
    padding-inline: 0;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  .archive-card,
  .split-panel,
  .record-strip,
  .table-wrap,
  .note-callout {
    break-inside: avoid;
    border-color: #999999;
    background: #FFFFFF;
  }

  .data-table th {
    background: #EEEEEE;
    color: #000000;
  }
}
