:root {
  --ink: #181a14;
  --ink-soft: #44483d;
  --paper: #f0e8d8;
  --paper-light: #faf6eb;
  --paper-dark: #d8cdb8;
  --gold: #b68732;
  --gold-light: #e1c175;
  --rust: #93482f;
  --forest: #244735;
  --line: rgba(24, 26, 20, 0.2);
  --shadow: 0 30px 90px rgba(34, 28, 17, 0.13);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 4%, rgba(182, 135, 50, 0.12), transparent 26rem),
    linear-gradient(90deg, transparent 49.8%, rgba(24, 26, 20, 0.035) 50%, transparent 50.2%),
    var(--paper);
  color: var(--ink);
}
a { color: inherit; text-underline-offset: 0.2em; }
img { display: block; max-width: 100%; }
button, summary, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: var(--paper-light);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }

.page-frame {
  width: min(1520px, calc(100% - 32px));
  margin: 16px auto;
  border: 1px solid var(--line);
  background: rgba(250, 246, 235, 0.72);
  box-shadow: var(--shadow);
  overflow: clip;
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 14px clamp(18px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 246, 235, 0.86);
  backdrop-filter: blur(18px);
}
.brand {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
.brand > span:last-child { display: grid; gap: 0.15rem; }
.brand b { font-family: var(--serif); font-size: 1.06rem; letter-spacing: 0.04em; }
.brand small { font-size: 0.58rem; letter-spacing: 0.18em; color: var(--ink-soft); }
.brand-mark {
  width: 38px;
  height: 38px;
  position: relative;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
}
.brand-mark::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 11px;
  top: 8px;
  border-radius: 70% 70% 22% 22%;
  background: var(--ink);
}
.brand-mark i {
  width: 7px;
  height: 15px;
  margin-top: 10px;
  border-radius: 0 0 4px 4px;
  background: var(--ink);
}

.desktop-nav { display: flex; align-items: center; gap: clamp(0.25rem, 1.1vw, 1.1rem); }
.desktop-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.25rem;
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.mobile-nav { display: none; }

.breadcrumb {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 clamp(18px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; }

.page-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  grid-template-rows: 1fr auto;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(36, 71, 53, 0.95) 58% 100%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(24, 26, 20, 0.045) 39px 40px);
}
.hero-copy {
  align-self: center;
  padding: clamp(52px, 7vw, 112px) clamp(24px, 6vw, 94px) clamp(48px, 6vw, 88px);
}
.eyebrow {
  margin: 0 0 1.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
}
.hero-copy h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 8.9rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.92;
}
.page-hero:not(.page-hero--home) .hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 6.1vw, 7rem);
}
.lead {
  max-width: 50rem;
  margin: 2.2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.9;
  color: var(--ink-soft);
}
.answer-strip {
  max-width: 48rem;
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}
.answer-strip span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--rust);
}
.answer-strip p { margin: 0; line-height: 1.75; }

.hero-specimen {
  position: relative;
  min-height: 580px;
  margin: 0;
  overflow: hidden;
  background: var(--forest);
  color: var(--paper-light);
}
.hero-specimen::before,
.hero-specimen::after {
  content: "";
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(240, 232, 216, 0.28);
  border-radius: 50%;
  pointer-events: none;
}
.hero-specimen::before { width: 430px; height: 430px; top: 14%; left: 8%; }
.hero-specimen::after {
  width: auto;
  height: auto;
  inset: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(22, 24, 17, 0.08), rgba(22, 24, 17, 0.62));
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
  filter: saturate(0.82) contrast(1.04);
}
.specimen-ring {
  position: absolute;
  z-index: 4;
  top: 54px;
  right: 52px;
  width: 92px;
  height: 92px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(240, 232, 216, 0.45);
  border-radius: 50%;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
}
.specimen-ring b { display: block; font-size: 1.35rem; letter-spacing: 0.06em; color: var(--gold-light); }
.specimen-code {
  position: absolute;
  z-index: 4;
  right: 52px;
  bottom: 62px;
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.5;
  letter-spacing: 0.18em;
  color: rgba(250, 246, 235, 0.65);
}
.specimen-code b { font-size: 1.05rem; color: var(--paper-light); }
.hero-specimen figcaption {
  position: absolute;
  z-index: 4;
  left: 28px;
  bottom: 28px;
  max-width: calc(100% - 180px);
  padding: 0.5rem 0.65rem;
  border-left: 3px solid var(--gold-light);
  background: rgba(16, 18, 14, 0.66);
  font-size: 0.68rem;
  line-height: 1.5;
}

.section-index {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(250, 246, 235, 0.92);
}
.section-index a {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 0.38rem;
  padding: 0.8rem 1rem;
  border-right: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 0.82rem;
  line-height: 1.35;
  text-decoration: none;
}
.section-index a:last-child { border-right: 0; }
.section-index a:hover { background: var(--gold-light); }
.section-index span { font-family: var(--sans); font-size: 0.6rem; color: var(--rust); }

.editorial-sections { counter-reset: editorial; }
.content-section {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 7vw, 130px);
  padding: clamp(64px, 8vw, 128px) clamp(24px, 7vw, 110px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.content-section:nth-child(even) { background: rgba(216, 205, 184, 0.24); }
.section-heading { align-self: start; position: sticky; top: 24px; }
.section-number { display: block; margin-bottom: 3rem; font-size: 0.7rem; letter-spacing: 0.18em; color: var(--rust); }
.content-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 1.1rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--forest);
}
.section-heading h2 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.section-body { max-width: 760px; }
.prose > p {
  margin: 0 0 1.35rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.42vw, 1.28rem);
  line-height: 2;
  color: var(--ink-soft);
}
.prose > p:first-child::first-letter {
  float: left;
  margin: 0.12em 0.12em 0 0;
  font-family: var(--serif);
  font-size: 3.5em;
  font-weight: 700;
  line-height: 0.75;
  color: var(--gold);
}
.point-list {
  display: grid;
  gap: 0;
  margin: 2.2rem 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}
.point-list li {
  min-height: 60px;
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}
.point-list li::before { content: "✦"; margin-right: 0.85rem; color: var(--gold); }
.identity-note {
  display: inline-block;
  padding: 0.65rem 0.8rem;
  border-left: 4px solid var(--gold);
  background: rgba(182, 135, 50, 0.1);
  font-family: var(--sans) !important;
  font-size: 0.75rem !important;
  color: var(--ink) !important;
}
.section-figure {
  margin: 2.8rem 0;
  border: 1px solid var(--line);
  background: var(--ink);
  box-shadow: 0 22px 60px rgba(34, 28, 17, 0.12);
}
.section-figure img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  background: var(--paper-dark);
}
.section-figure figcaption {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 1rem;
  color: rgba(250, 246, 235, 0.72);
  font-size: 0.68rem;
  line-height: 1.5;
}
.section-figure figcaption strong { color: var(--paper-light); }
.section-figure figcaption a { text-align: right; }
.relationship {
  margin: 2.8rem 0;
  padding: 1.3rem 1.5rem 1.4rem;
  border: 1px solid var(--rust);
  background: rgba(147, 72, 47, 0.045);
}
.relationship span { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; color: var(--rust); }
.relationship p { margin: 0.75rem 0 0; font-family: var(--serif); line-height: 1.75; }

.source-drawer { margin-top: 3.2rem; padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.source-title { margin: 0 0 1rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.source-drawer ul { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.source-drawer li { padding: 1.1rem; border: 1px solid var(--line); background: rgba(250, 246, 235, 0.72); }
.source-drawer a { min-height: 44px; display: grid; align-content: center; gap: 0.25rem; text-decoration: none; }
.source-drawer a:hover b { text-decoration: underline; text-underline-offset: 0.2em; }
.source-drawer a span { font-size: 0.68rem; color: var(--rust); }
.source-drawer a b { font-family: var(--serif); font-size: 1rem; }
.source-drawer li p { margin: 0.65rem 0 0; font-size: 0.76rem; line-height: 1.6; color: var(--ink-soft); }
.source-drawer li small { display: block; margin-top: 0.7rem; font-size: 0.65rem; color: var(--forest); }

.related {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 4rem;
  padding: clamp(64px, 8vw, 120px) clamp(24px, 7vw, 110px);
  background: var(--ink);
  color: var(--paper-light);
}
.related header p { margin: 0 0 1rem; font-size: 0.68rem; letter-spacing: 0.18em; color: var(--gold-light); }
.related h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 5.4rem); line-height: 1; }
.related > div { border-top: 1px solid rgba(250, 246, 235, 0.35); }
.related a {
  min-height: 96px;
  display: grid;
  grid-template-columns: 3rem 9rem 1fr;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(250, 246, 235, 0.25);
  text-decoration: none;
}
.related a:hover { color: var(--gold-light); }
.related a span { font-size: 0.66rem; color: var(--gold-light); }
.related a b { font-family: var(--serif); }
.related a small { color: rgba(250, 246, 235, 0.62); }

.site-footer {
  min-height: 190px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding: 42px clamp(24px, 5vw, 78px);
  border-top: 1px solid rgba(250, 246, 235, 0.12);
  background: #10120e;
  color: rgba(250, 246, 235, 0.72);
}
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; font-family: var(--serif); font-size: 1.35rem; font-weight: 800; color: var(--paper-light); }
.site-footer p { margin: 0.45rem 0 0; font-size: 0.72rem; line-height: 1.6; }
.footer-note { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid rgba(250, 246, 235, 0.16); }

.empty-specimen {
  min-height: 66vh;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(56px, 10vw, 150px);
  background: radial-gradient(circle at 80% 30%, rgba(182, 135, 50, 0.22), transparent 24rem);
}
.empty-specimen h1 { max-width: 10ch; margin: 0; font-family: var(--serif); font-size: clamp(3rem, 8vw, 8rem); line-height: 0.95; }
.empty-specimen > p:not(.eyebrow) { max-width: 38rem; margin: 2rem 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.8; }
.text-button { min-height: 48px; display: inline-flex; align-items: center; padding: 0 1rem; border: 1px solid var(--ink); text-decoration: none; }
.text-button:hover { background: var(--ink); color: var(--paper-light); }

@media (max-width: 1180px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary {
    min-width: 88px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: 1px solid var(--ink);
    list-style: none;
    cursor: pointer;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary i,
  .mobile-nav summary i::before { width: 16px; height: 1px; display: block; background: currentColor; content: ""; }
  .mobile-nav summary i::before { transform: rotate(90deg); transition: transform 150ms ease; }
  .mobile-nav[open] summary i::before { transform: rotate(0); }
  .mobile-nav nav {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(360px, calc(100vw - 48px));
    display: grid;
    padding: 0.6rem;
    border: 1px solid var(--ink);
    background: var(--paper-light);
    box-shadow: var(--shadow);
  }
  .mobile-nav nav a { min-height: 48px; display: flex; align-items: center; padding: 0 0.8rem; border-bottom: 1px solid var(--line); text-decoration: none; }
  .mobile-nav nav a:last-child { border-bottom: 0; }
  .mobile-nav nav a[aria-current="page"] { background: var(--gold-light); }
  .page-hero { grid-template-columns: 1fr 340px; }
  .section-index { grid-template-columns: repeat(3, 1fr); }
  .content-section { grid-template-columns: minmax(220px, 0.7fr) 1.3fr; gap: 3rem; }
}

@media (max-width: 820px) {
  .page-frame { width: 100%; margin: 0; border-width: 0; }
  .site-header { min-height: 76px; padding: 10px 16px; }
  .brand small { display: none; }
  .breadcrumb { padding: 0 18px; }
  .page-hero { min-height: 0; display: block; }
  .page-hero::before {
    background:
      linear-gradient(180deg, transparent 0 64%, rgba(36, 71, 53, 0.96) 64% 100%),
      repeating-linear-gradient(0deg, transparent 0 31px, rgba(24, 26, 20, 0.04) 32px 33px);
  }
  .hero-copy { padding: 64px 20px 48px; }
  .hero-copy h1,
  .page-hero:not(.page-hero--home) .hero-copy h1 { max-width: 11ch; font-size: clamp(3.25rem, 15.8vw, 6rem); }
  .lead { font-size: 1.02rem; line-height: 1.85; }
  .answer-strip { grid-template-columns: 1fr; }
  .hero-specimen { min-height: 480px; }
  .specimen-ring { top: 28px; right: 22px; width: 78px; height: 78px; }
  .specimen-code { right: 22px; bottom: 32px; }
  .hero-specimen figcaption { left: 20px; bottom: 24px; max-width: calc(100% - 150px); }
  .section-index { grid-template-columns: 1fr 1fr; }
  .section-index a { min-height: 74px; }
  .content-section { min-height: 0; display: block; padding: 68px 20px 78px; }
  .section-heading { position: static; margin-bottom: 2.5rem; }
  .section-number { margin-bottom: 1.4rem; }
  .section-heading h2 { max-width: 14ch; font-size: clamp(2.4rem, 11vw, 4.4rem); }
  .prose > p { font-size: 1.04rem; line-height: 1.9; }
  .source-drawer li { padding: 1rem; }
  .section-figure figcaption { display: grid; gap: 0.4rem; }
  .section-figure figcaption a { text-align: left; }
  .related { display: block; padding: 72px 20px; }
  .related header { margin-bottom: 3rem; }
  .related a { grid-template-columns: 2.2rem 7rem 1fr; gap: 0.7rem; }
  .site-footer { grid-template-columns: 1fr; align-items: start; padding: 38px 20px; }
  .empty-specimen { padding: 70px 20px; }
}

@media (max-width: 460px) {
  .brand b { font-size: 0.94rem; }
  .brand-mark { width: 34px; height: 34px; }
  .mobile-nav summary { min-width: 72px; }
  .section-index { grid-template-columns: 1fr; }
  .section-index a { min-height: 60px; }
  .related a { grid-template-columns: 2rem 1fr; padding: 0.8rem 0; }
  .related a small { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

@media print {
  body { background: #fff; }
  .page-frame { width: 100%; margin: 0; border: 0; box-shadow: none; }
  .site-header, .section-index, .related, .site-footer, .hero-specimen { display: none; }
  .page-hero, .content-section { display: block; min-height: 0; padding: 2rem 0; }
  .page-hero::before { display: none; }
  .section-heading { position: static; }
  a { text-decoration: none; }
  .source-drawer a::after { content: " (" attr(href) ")"; font-size: 0.7em; }
}
