:root {
  color-scheme: light;
  --ink: #181714;
  --muted: #6d6961;
  --paper: #f0eee7;
  --paper-deep: #e6e1d6;
  --line: #c9c2b5;
  --gold: #b68235;
  --hero-gold: #d59a38;
  --hero-ivory: #f2eee6;
  --warning: #813d32;
  --white: #f9f8f4;
  --color-accent-500: #c28d41;
  --landing-accent-300: #facb8d;
  --landing-neutral-700: #605d5d;
  --landing-neutral-900: #2d2b2b;
  --serif-display: "Cormorant Garamond", Georgia, serif;
  --serif-body: "Lora", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--landing-neutral-700);
  background: var(--paper);
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1.65;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  left: 18px;
  top: 18px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(390px, 0.88fr);
  border-bottom: 1px solid var(--line);
}

.hero-image {
  position: relative;
  min-width: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  background: #252420;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.1);
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 100svh;
  object-fit: contain;
  filter: contrast(1.04);
}

.hero-image figcaption {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 3vw, 46px);
  right: clamp(18px, 3vw, 46px);
  bottom: clamp(18px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(175px, 0.45fr) minmax(240px, 1fr);
  gap: 20px;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(12, 12, 10, 0.91);
  border: 1px solid rgba(224, 183, 131, 0.36);
  font-size: 15px;
  line-height: 1.55;
  backdrop-filter: blur(7px);
}

.source-type {
  color: #ebc58d;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 68px) clamp(28px, 4.2vw, 72px) 34px;
  background:
    linear-gradient(rgba(240, 238, 231, 0.95), rgba(240, 238, 231, 0.95)),
    repeating-linear-gradient(0deg, transparent 0 12px, rgba(24, 23, 20, 0.025) 12px 13px);
}

.archive-mark {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}

.archive-name {
  font-family: var(--serif-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-place {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: right;
  text-transform: uppercase;
}

.hero-copy { padding: clamp(44px, 7vh, 86px) 0 34px; }

.period,
.section-kicker,
.entry-label,
.card-type {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 5px 0 20px;
  font-family: var(--serif-display);
  font-size: clamp(74px, 8.2vw, 142px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.78;
}

.dek {
  max-width: 32rem;
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(25px, 2.1vw, 37px);
  line-height: 1.14;
}

.editorial-note {
  max-width: 34rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.language-entry {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.entry-label { padding: 14px 0 8px; }

.language-entry a {
  display: grid;
  grid-template-columns: minmax(116px, 0.72fr) minmax(0, 1.4fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 11px 3px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: color 150ms ease, padding 150ms ease, background 150ms ease;
}

.language-entry a:last-child { border-bottom: 1px solid var(--line); }

.language-entry a:hover,
.language-entry a:focus-visible {
  padding-left: 10px;
  color: var(--warning);
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

.language-entry a::after {
  content: "→";
  grid-column: 3;
  color: var(--gold);
}

.language-name { font-size: 14px; font-weight: 600; }

.article-name { color: var(--muted); font-size: 11px; }

.hero-warning {
  margin: 22px 0 0;
  padding-left: 13px;
  color: var(--muted);
  border-left: 2px solid var(--warning);
  font-size: 10px;
  line-height: 1.6;
}

.hero-warning strong { color: var(--warning); }

.evidence {
  padding: clamp(72px, 10vw, 150px) clamp(22px, 5vw, 80px) clamp(88px, 12vw, 180px);
}

.evidence-intro {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) minmax(300px, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: start;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--ink);
}

.evidence-intro h2 {
  max-width: 780px;
  margin: -8px 0 0;
  font-family: var(--serif-display);
  font-size: clamp(43px, 5.5vw, 84px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.evidence-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.8fr 1.12fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  padding-top: 56px;
}

.evidence-card { min-width: 0; margin: 0; }

.evidence-card:nth-child(2) { margin-top: clamp(50px, 7vw, 106px); }

.image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}

.image-wrap img {
  width: 100%;
  height: 100%;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.evidence-card:hover .image-wrap img { transform: scale(1.018); }

.evidence-document .image-wrap { aspect-ratio: 0.72; }
.evidence-document img { object-fit: cover; object-position: top; }
.evidence-map .image-wrap { aspect-ratio: 0.71; }
.evidence-map img { object-fit: cover; }
.evidence-land .image-wrap { aspect-ratio: 1.46; }
.evidence-land img { object-fit: cover; }

.card-index {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: rgba(24, 23, 20, 0.78);
  font-size: 10px;
}

.evidence-card figcaption { padding: 17px 2px 0; }

.evidence-card h3 {
  margin: 5px 0 8px;
  font-family: var(--serif-display);
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 600;
  line-height: 1;
}

.evidence-card figcaption p {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 22px clamp(22px, 5vw, 80px);
  color: var(--paper-deep);
  background: var(--ink);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr); }
  .hero-panel { padding-inline: 34px; }
  .hero-image figcaption { grid-template-columns: 1fr; gap: 6px; }
  h1 { font-size: clamp(72px, 10vw, 108px); }
  .evidence-intro { grid-template-columns: 0.34fr 1fr; }
  .evidence-intro > p:last-child { grid-column: 2; }
}

@media (max-width: 820px) {
  .hero { display: flex; min-height: 0; flex-direction: column; }
  .hero-image { order: 1; }
  .hero-image { min-height: 0; }
  .hero-image img { max-height: none; }
  .hero-image figcaption {
    position: static;
    padding: 14px 20px 16px;
    background: var(--ink);
    backdrop-filter: none;
  }
  .hero-panel { order: 2; min-height: 100svh; padding: 25px 22px 28px; }
  .hero-copy { padding-block: 56px 42px; }
  h1 { font-size: clamp(82px, 25vw, 132px); }
  .dek { font-size: clamp(27px, 8vw, 39px); }
  .language-entry { margin-top: 20px; }
  .evidence { padding-inline: 22px; }
  .evidence-intro { display: block; }
  .evidence-intro h2 { margin: 8px 0 24px; }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-card:nth-child(2) { margin-top: 22px; }
  .evidence-document .image-wrap,
  .evidence-map .image-wrap { aspect-ratio: 1 / 1.12; }
  .evidence-land .image-wrap { aspect-ratio: 1.46; }
}

@media (max-width: 480px) {
  .archive-place { max-width: 120px; }
  .hero-copy { padding-top: 48px; }
  .language-entry a { grid-template-columns: 1fr; gap: 0; }
  .language-entry a::after { display: none; }
  .article-name { margin-top: 2px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Hero and archive entry, second design direction ---------- */
.hero {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100vw;
  min-height: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  color: var(--white);
  background: #171713;
  border-bottom: 0;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 11, 9, 0.9) 0%, rgba(11, 11, 9, 0.67) 31%, rgba(11, 11, 9, 0.16) 69%, rgba(11, 11, 9, 0.08) 100%),
    linear-gradient(0deg, rgba(11, 11, 9, 0.62) 0%, transparent 31%, rgba(11, 11, 9, 0.16) 100%);
}

.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: 0;
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) brightness(0.92);
}

.hero-source {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 13px clamp(24px, 5.2vw, 96px);
  color: rgba(238, 233, 223, 0.7);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-divider);
  font-size: 14px;
  line-height: 1.55;
}
.hero-source .source-type { color: rgba(224, 183, 131, 0.8); font-size: 13px; line-height: 1.45; letter-spacing: 0.1em; }
body:not(.theme-dark) .hero-source { color: var(--color-neutral-700); }
body:not(.theme-dark) .hero-source .source-type { color: var(--color-accent-700); }
html[lang="zh-CN"] .hero-source,
html[lang="ja"] .hero-source { justify-content: flex-end; padding-right: 0; text-align: right; }

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(28px, 4.5vw, 82px) clamp(24px, 5.2vw, 96px) clamp(34px, 5vw, 90px);
}

.hero-brand {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero-brand strong {
  color: var(--gold);
  font-family: var(--serif-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-tools {
  position: absolute;
  z-index: 5;
  top: clamp(24px, 3.4vw, 62px);
  right: clamp(22px, 4.7vw, 86px);
  display: flex;
  align-items: stretch;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(16, 16, 14, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.hero-tools select,
.hero-tools button {
  min-width: 48px;
  min-height: 46px;
  margin: 0;
  padding: 0 14px;
  color: inherit;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  font-family: var(--serif-body);
  font-size: 14px;
  cursor: pointer;
}

.hero-tools select {
  padding-right: 27px;
  color-scheme: dark;
}

.hero-tools button:hover,
.hero-tools button:focus-visible,
.hero-tools select:hover,
.hero-tools select:focus-visible {
  color: #f0c787;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.language-control { display: none; }
.text-controls { display: flex; }
.theme-control { border-right: 0 !important; font-size: 21px !important; line-height: 1; }

.hero-brand span::before {
  content: "·";
  margin-right: 13px;
  color: #ddb475;
}

.hero-story {
  min-width: 0;
  width: min(760px, 58vw);
  margin-top: clamp(56px, 8vw, 152px);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 17px;
  color: rgba(242, 238, 230, 0.72);
  font-size: clamp(10px, 0.8vw, 13px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-eyebrow span {
  width: clamp(34px, 4vw, 72px);
  height: 1px;
  background: currentColor;
}

.hero h1 {
  width: 100%;
  max-width: 800px;
  margin: 0;
  color: var(--hero-ivory);
  font-size: clamp(57px, 6.5vw, 121px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.86;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.34);
}

.hero h1 span,
.hero-subtitle span,
.hero-document span { display: inline; }

.hero-title-name {
  color: var(--hero-gold);
  font-size: 1.14em;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.42);
}

.hero-title-rest {
  color: var(--hero-ivory);
  font-size: 0.88em;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  width: 100%;
  margin: clamp(24px, 3vw, 48px) 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--serif-display);
  font-size: clamp(24px, 2.3vw, 42px);
  line-height: 1.08;
}

.hero-document {
  width: 100%;
  max-width: 690px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.65;
}

.archive-cta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 42px;
  margin-top: clamp(25px, 3.4vw, 52px);
  padding: 13px 17px 12px;
  color: var(--landing-neutral-700);
  background: #e4bb80;
  border: 1px solid #e4bb80;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease, gap 160ms ease, transform 160ms ease;
}

.archive-cta:hover,
.archive-cta:focus-visible {
  gap: 50px;
  color: var(--landing-neutral-900);
  background: var(--landing-accent-300);
  border-color: var(--landing-accent-300);
  outline: none;
}

.archive-entry {
  position: relative;
  padding: clamp(76px, 10vw, 160px) clamp(22px, 5vw, 80px) clamp(70px, 9vw, 136px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.archive-entry::before {
  content: "LANGUAGE EDITIONS";
  position: absolute;
  top: 32px;
  right: clamp(22px, 5vw, 80px);
  color: rgba(24, 23, 20, 0.24);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.19em;
}

.entry-intro {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 0.55fr);
  gap: clamp(40px, 8vw, 140px);
  align-items: end;
  padding-bottom: clamp(38px, 5vw, 72px);
}

.entry-intro h2 {
  margin: 7px 0 0;
  font-family: var(--serif-display);
  font-size: clamp(58px, 8.5vw, 142px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.78;
}

.entry-intro h2 span { display: inline; }

.entry-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.language-grid a {
  position: relative;
  min-height: 215px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 19px 21px 22px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.language-grid a:last-child { border-right: 0; }

.language-grid a:hover,
.language-grid a:focus-visible {
  color: var(--white);
  background: var(--ink);
  outline: none;
}

.edition-number {
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.language-grid .language-name {
  align-self: center;
  font-family: var(--serif-display);
  font-size: clamp(29px, 3vw, 49px);
  font-weight: 600;
  line-height: 0.95;
}

.language-grid .article-name {
  max-width: 220px;
  padding-right: 28px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.language-grid a:hover .article-name,
.language-grid a:focus-visible .article-name { color: rgba(255, 255, 255, 0.67); }

.edition-arrow {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: var(--gold);
  font-size: 20px;
}

.image-warning {
  max-width: 850px;
  margin: 34px 0 0;
  padding-left: 15px;
  color: var(--muted);
  border-left: 2px solid var(--warning);
  font-size: 10px;
  line-height: 1.65;
}

.image-warning strong { color: var(--warning); }

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eee9df;
  --muted: #b9b2a6;
  --paper: #1d1c19;
  --paper-deep: #292722;
  --line: #4c4942;
  --warning: #d19180;
}

html[data-theme="dark"] .archive-entry,
html[data-theme="dark"] .evidence { background: var(--paper); }

html[data-theme="dark"] .archive-entry::before { color: rgba(238, 233, 223, 0.25); }

html[data-theme="dark"] .language-grid a:hover,
html[data-theme="dark"] .language-grid a:focus-visible {
  color: #201f1d;
  background: #eee9df;
}

html[data-theme="dark"] .language-grid a:hover .article-name,
html[data-theme="dark"] .language-grid a:focus-visible .article-name { color: #605d58; }

html[data-theme="dark"] .site-footer { background: color-mix(in srgb, var(--color-bg) 88%, var(--color-surface)); }

@media (max-width: 1050px) {
  .hero-story { width: min(730px, 70vw); margin-top: clamp(45px, 6vw, 82px); }
  .hero-source { flex-wrap: wrap; }
  .language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .language-grid a:nth-child(2) { border-right: 0; }
  .language-grid a:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  html[lang="zh-CN"] .hero-source,
  html[lang="ja"] .hero-source { justify-content: flex-start; text-align: left; }
}

@media (max-width: 820px) {
  .hero {
    min-height: 100svh;
    aspect-ratio: auto;
  }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(11, 11, 9, 0.82) 0%, rgba(11, 11, 9, 0.3) 100%),
      linear-gradient(0deg, rgba(11, 11, 9, 0.82) 0%, rgba(11, 11, 9, 0.08) 72%);
  }
  .hero-media img { object-position: 55% center; }
  .hero-content { min-height: 100svh; padding: 25px 22px 34px; }
  .hero-tools {
    top: 82px;
    right: 22px;
  }
  .hero-story { width: 100%; margin-top: auto; }
  .hero h1 { max-width: 660px; font-size: clamp(55px, 12vw, 88px); line-height: 0.86; }
  .hero-subtitle { max-width: 620px; font-size: clamp(24px, 6vw, 34px); }
  .hero-document { max-width: 590px; font-size: 13px; }
  .archive-cta { margin-bottom: 8px; }
  .entry-intro { display: block; }
  .entry-intro h2 span { display: block; }
  .entry-intro > p { max-width: 580px; margin-top: 30px; }
}

@media (max-width: 640px) {
  .hero {
    width: 100vw;
    min-height: 960px;
    background: #11110f;
  }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(11, 11, 9, 0.12) 0%, rgba(11, 11, 9, 0.16) 38%, rgba(11, 11, 9, 0.76) 67%, #11110f 82%, #11110f 100%),
      linear-gradient(90deg, rgba(11, 11, 9, 0.5) 0%, rgba(11, 11, 9, 0.05) 74%);
  }
  .hero-media {
    inset: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 584 / 1036;
  }
  .hero-media picture,
  .hero-media img { height: 100%; }
  .hero-media img {
    object-fit: cover;
    object-position: center;
    filter: contrast(1.04) brightness(0.9);
  }
  .hero-content {
    width: 100vw;
    min-height: 960px;
    padding: 20px 18px 30px;
  }
  .hero-brand { gap: 8px; }
  .hero-brand span::before { margin-right: 8px; }
  .hero-tools {
    left: auto;
    top: 76px;
    right: 18px;
    width: auto;
    max-width: calc(100vw - 36px);
    display: flex;
  }
  .text-controls button { flex: 1; }
  .hero-tools select,
  .hero-tools button {
    min-width: 46px;
    min-height: 46px;
    padding-inline: 11px;
    font-size: 14px;
  }
  .hero-story,
  .hero h1,
  .hero-subtitle,
  .hero-document {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .hero h1 {
    font-size: clamp(48px, 14vw, 60px);
    line-height: 0.84;
    text-wrap: wrap;
  }
  .hero h1 span,
  .hero-subtitle span,
  .hero-document span { display: block; }
  .hero-eyebrow { letter-spacing: 0.14em; }
  .hero-subtitle {
    margin-top: 23px;
    font-size: 25px;
  }
  .hero-document {
    max-width: 94%;
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.55;
  }
  .archive-cta {
    width: 100%;
    justify-content: space-between;
    margin-top: 25px;
    padding: 14px 17px 13px;
    color: var(--landing-neutral-900);
  }
  .language-grid { grid-template-columns: 1fr; }
  .language-grid a {
    min-height: 155px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .language-grid a:nth-child(3) { border-bottom: 1px solid var(--line); }
  .language-grid a:last-child { border-bottom: 0; }
  .archive-entry::before { display: none; }
}

html[lang="zh-CN"] body {
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
}

html[lang="zh-CN"] .hero h1,
html[lang="zh-CN"] .hero-subtitle,
html[lang="zh-CN"] .entry-intro h2,
html[lang="zh-CN"] .evidence-intro h2,
html[lang="zh-CN"] .evidence-card h3 {
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
}

html[lang="zh-CN"] .hero h1 {
  max-width: 880px;
  font-size: clamp(54px, 6vw, 112px);
  letter-spacing: -0.07em;
  line-height: 1.03;
}

html[lang="zh-CN"] .hero-title-name { letter-spacing: -0.08em; }
html[lang="zh-CN"] .hero-title-rest { letter-spacing: 0; }

html[lang="zh-CN"] .zh-cover-title {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(3px, 0.4vw, 7px);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

html[lang="zh-CN"] .zh-title-line {
  display: flex;
  align-items: baseline;
  gap: 0.04em;
}

html[lang="zh-CN"] .zh-title-rest {
  display: block;
  color: var(--hero-ivory);
  font-size: clamp(52px, 4.7vw, 76px);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.02;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.34);
}

html[lang="zh-CN"] .zh-title-name {
  display: block;
  color: var(--hero-gold);
  font-size: clamp(67px, 6vw, 104px);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1;
}

html[lang="zh-CN"] .hero-subtitle {
  font-size: clamp(22px, 2vw, 36px);
  line-height: 1.35;
}

html[lang="zh-CN"] .zh-cover-subtitle {
  max-width: 720px;
  font-size: clamp(22px, 1.9vw, 34px);
  line-height: 1.4;
}

html[lang="zh-CN"] .hero-document,
html[lang="zh-CN"] .entry-intro > p,
html[lang="zh-CN"] .evidence-intro > p:last-child,
html[lang="zh-CN"] .evidence-card figcaption p {
  line-height: 1.9;
}

html[lang="zh-CN"] .entry-intro h2,
html[lang="zh-CN"] .evidence-intro h2,
html[lang="zh-CN"] .evidence-card h3 {
  letter-spacing: -0.04em;
  line-height: 1.12;
}

@media (min-width: 821px) {
  html[lang="zh-CN"] .hero-brand span {
    letter-spacing: 0.24em;
  }

  html[lang="zh-CN"] .hero-eyebrow {
    gap: 18px;
    letter-spacing: 0.24em;
  }

  html[lang="zh-CN"] .zh-cover-title {
    gap: clamp(5px, 0.55vw, 9px);
  }

  html[lang="zh-CN"] .zh-title-rest {
    font-size: clamp(54px, 4.9vw, 80px);
    letter-spacing: 0.07em;
  }

  html[lang="zh-CN"] .zh-title-name {
    font-size: clamp(72px, 6.5vw, 114px);
    letter-spacing: 0.035em;
  }

  html[lang="zh-CN"] .zh-cover-subtitle {
    margin-top: clamp(34px, 3.5vw, 56px);
    letter-spacing: 0.055em;
  }

  html[lang="zh-CN"] .hero-document {
    max-width: 820px;
    letter-spacing: 0.03em;
  }

  html[lang="zh-CN"] .archive-cta {
    min-width: 220px;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  html[lang="zh-CN"] .hero h1 {
    font-size: clamp(46px, 13vw, 58px);
    line-height: 1.08;
  }

  html[lang="zh-CN"] .hero-subtitle {
    font-size: 23px;
    line-height: 1.45;
  }

  html[lang="zh-CN"] .zh-cover-title {
    gap: 3px;
    font-size: 1rem;
  }

  html[lang="zh-CN"] .zh-title-rest {
    font-size: clamp(34px, 10vw, 43px);
    letter-spacing: 0.025em;
    line-height: 1.06;
  }

  html[lang="zh-CN"] .zh-title-name {
    font-size: clamp(43px, 13vw, 55px);
    letter-spacing: 0.01em;
    line-height: 1;
  }

  html[lang="zh-CN"] .zh-cover-subtitle {
    font-size: 22px;
    line-height: 1.5;
  }
}

.hero-language-links {
  display: grid;
  width: 220px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(16, 16, 14, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.hero-language-links a {
  padding: 8px 10px;
  color: #e1ad66;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.hero-language-links a:last-child { border-right: 0; }

.hero-language-links a:hover,
.hero-language-links a:focus-visible {
  color: var(--landing-accent-300);
  background: var(--color-accent-500);
  outline: none;
}

html[lang="ja"] body {
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

html[lang="ja"] .hero h1,
html[lang="ja"] .hero-subtitle {
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

html[lang="ja"] .ja-cover-title {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(4px, 0.45vw, 8px);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

html[lang="ja"] .ja-title-line {
  display: flex;
  align-items: baseline;
  gap: 0.06em;
}

html[lang="ja"] .ja-title-rest {
  display: block;
  color: var(--hero-ivory);
  font-size: clamp(44px, 4vw, 68px);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.08;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.34);
}

html[lang="ja"] .ja-title-name {
  display: block;
  color: var(--hero-gold);
  font-size: clamp(60px, 5.4vw, 92px);
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1;
}

html[lang="ja"] .ja-cover-subtitle {
  max-width: 760px;
  font-size: clamp(21px, 1.8vw, 32px);
  line-height: 1.5;
}

html[lang="ja"] .hero-document {
  line-height: 1.9;
}

@media (min-width: 821px) {
  html[lang="ja"] .hero-brand span,
  html[lang="ja"] .hero-eyebrow {
    letter-spacing: 0.18em;
  }

  html[lang="ja"] .ja-title-rest {
    font-size: clamp(50px, 4.4vw, 74px);
    letter-spacing: 0.065em;
  }

  html[lang="ja"] .ja-title-name {
    font-size: clamp(68px, 5.8vw, 102px);
    letter-spacing: 0.035em;
  }

  html[lang="ja"] .ja-cover-subtitle {
    margin-top: clamp(34px, 3.5vw, 56px);
    letter-spacing: 0.045em;
  }

  html[lang="ja"] .hero-document {
    max-width: 840px;
    letter-spacing: 0.025em;
  }

  html[lang="ja"] .archive-cta {
    min-width: 220px;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .hero-language-links { width: 100%; }

  html[lang="ja"] .ja-cover-title {
    gap: 3px;
    font-size: 1rem;
  }

  html[lang="ja"] .ja-title-rest {
    font-size: clamp(31px, 8.7vw, 38px);
    letter-spacing: 0.025em;
    line-height: 1.12;
  }

  html[lang="ja"] .ja-title-name {
    font-size: clamp(39px, 11vw, 47px);
    letter-spacing: 0.015em;
  }

  html[lang="ja"] .ja-cover-subtitle {
    font-size: 20px;
    line-height: 1.55;
  }
}

html[lang="ms"] .ms-cover-title {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

html[lang="ms"] .ms-title-line {
  display: flex;
  align-items: baseline;
  gap: clamp(9px, 0.9vw, 16px);
}

html[lang="ms"] .ms-title-rest {
  display: block;
  color: var(--hero-ivory);
  font-size: clamp(58px, 5.8vw, 98px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.34);
}

html[lang="ms"] .ms-title-name {
  display: block;
  color: var(--hero-gold);
  font-size: clamp(72px, 7vw, 122px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

html[lang="ms"] .ms-cover-subtitle {
  max-width: 840px;
  font-size: clamp(22px, 2vw, 36px);
  line-height: 1.3;
}

html[lang="zh-CN"] .archive-cta:hover,
html[lang="zh-CN"] .archive-cta:focus-visible,
html[lang="ja"] .archive-cta:hover,
html[lang="ja"] .archive-cta:focus-visible,
html[lang="ms"] .archive-cta:hover,
html[lang="ms"] .archive-cta:focus-visible {
  transform: scale(1.025);
  transform-origin: left center;
}

html[lang="zh-CN"] .archive-cta,
html[lang="ja"] .archive-cta {
  font-size: 13px;
  letter-spacing: 0.06em;
}

@media (min-width: 821px) {
  html[lang="ms"] .hero-document {
    max-width: 850px;
  }

  html[lang="ms"] .archive-cta {
    min-width: 220px;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  html[lang="ms"] .ms-cover-title { font-size: 1rem; }

  html[lang="ms"] .ms-title-line {
    gap: 7px;
  }

  html[lang="ms"] .ms-title-rest {
    font-size: clamp(42px, 12vw, 50px);
    line-height: 0.96;
  }

  html[lang="ms"] .ms-title-name {
    font-size: clamp(50px, 14vw, 60px);
    line-height: 0.92;
  }

  html[lang="ms"] .ms-cover-subtitle {
    font-size: 22px;
    line-height: 1.4;
  }
}

/* ============================================================
   FujiGo · Article Reader
   Shared editorial reader styles for all language editions.
   ============================================================ */

:root {
  --color-bg: #f3f2f2; --color-surface: #eae9e9; --color-text: #201f1d;
  --color-accent: #b68235; --color-divider: color-mix(in srgb, #201f1d 16%, transparent);
  --color-neutral-100: #f8f4f4; --color-neutral-200: #eae7e7; --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6; --color-neutral-500: #9b9797; --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d; --color-neutral-800: #444141; --color-neutral-900: #2d2b2b;
  --color-accent-100: #fff3e4; --color-accent-200: #ffe3bf; --color-accent-300: #facb8d;
  --color-accent-400: #e1ad66; --color-accent-500: #c28d41; --color-accent-600: #a06f24;
  --color-accent-700: #7d5411; --color-accent-800: #5a3b0a; --color-accent-900: #3a270d;
  --font-heading: "Cormorant Garamond", "Noto Serif SC", "Noto Serif JP", serif;
  --font-heading-weight: 600;
  --font-body: "Noto Serif SC", "Noto Serif JP", "Lora", serif;
  --text-base: clamp(20px, 1.5vw + 14.5px, 22px);
  --radius-sm: 2px; --radius-md: 4px; --radius-lg: 7px;
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
}

body.lang-latin,
html[lang="en"] body,
html[lang="ms"] body {
  --font-heading: "Cormorant Garamond", "Noto Serif SC", "Noto Serif JP", serif;
  --font-body: "Lora", "Noto Serif SC", "Noto Serif JP", serif;
}

body {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.95;
  background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-900); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

body.theme-dark {
  --color-bg: #201f1d; --color-surface: #2d2b2b; --color-text: #f3f2f2;
  --color-divider: color-mix(in srgb, #ffffff 16%, transparent);
  --color-neutral-100: #2d2b2b; --color-neutral-200: #444141; --color-neutral-300: #605d5d;
  --color-neutral-400: #7d7979; --color-neutral-500: #9b9797; --color-neutral-600: #bab6b6;
  --color-neutral-700: #d7d3d3; --color-neutral-800: #eae7e7; --color-neutral-900: #f8f4f4;
  --color-accent-100: #3a270d; --color-accent-200: #5a3b0a; --color-accent-300: #7d5411;
  --color-accent-400: #a06f24; --color-accent-600: #e1ad66; --color-accent-700: #facb8d;
  --color-accent-800: #ffe3bf; --color-accent-900: #fff3e4;
}

.hr { height: 1px; border: 0; margin: 0; background: var(--color-divider); max-width: 1040px; margin-inline: auto; }

.controls { position: fixed; top: 14px; right: 14px; z-index: 50; display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  text-decoration: none; font-family: var(--font-heading); font-weight: 600; font-size: 17px;
  line-height: 1;
  background: var(--color-accent-600); border: 1px solid var(--color-accent-600); padding: 11px 16px;
  border-radius: var(--radius-md); color: var(--color-bg);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s ease;
}
.btn:hover { background: var(--color-accent-500); border-color: var(--color-accent-500); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { background: var(--color-accent-500); border-color: var(--color-accent-500); transform: translateY(0); box-shadow: none; }
.textscale { display: inline-flex; overflow: hidden; border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: var(--color-bg); }
.textscale button {
  border: none; background: transparent; cursor: pointer; padding: 11px 14px;
  font-family: var(--font-heading); font-weight: 600; font-size: 17px; line-height: 1; color: var(--color-text);
}
.textscale button + button { border-left: 1px solid var(--color-divider); }
.textscale button:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--color-accent); z-index: 60; }

#backtop,
.backtop-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-bg); color: var(--color-accent-700);
  border: 1px solid var(--color-divider); box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s ease;
}
#backtop svg, .backtop-fab svg { display: block; }
#backtop:hover, .backtop-fab:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); transform: translateY(-2px); box-shadow: 0 3px 10px color-mix(in srgb, #2d2b2b 20%, transparent); }
#backtop.show, .backtop-fab.show { display: inline-flex; }

.cover { max-width: 1040px; margin: 0 auto; padding: clamp(64px, 10vw, 120px) clamp(20px, 6vw, 48px) clamp(36px, 7vw, 64px); }
.brand { font-family: var(--font-heading); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-neutral-500); margin: 0 0 14px; }
.overline { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.overline::before { content: ""; width: 34px; height: 1px; background: var(--color-accent); }
.overline span { font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent-700); }
h1 { font-size: clamp(50px, 11vw, 84px); font-weight: 600; line-height: 1.15; margin: 0 0 12px; letter-spacing: 0.02em; }
.subtitle { font-size: clamp(21px, 2.8vw, 25px); color: var(--color-neutral-700); margin: 0 0 8px; letter-spacing: 0.01em; }
.doc-note { font-size: 17px; color: var(--color-neutral-600); margin: 0 0 28px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tag { display: inline-flex; align-items: center; font-size: 14px; letter-spacing: 0.02em; padding: 4px 13px; border-radius: 3px; border: 1px solid var(--color-accent); color: var(--color-accent-700); }
.expandbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.expandbar .hint { font-size: 15px; color: var(--color-neutral-600); }

.reader { max-width: 720px; margin: 0 auto; padding: 0 clamp(20px, 6vw, 48px) clamp(56px, 9vw, 96px); }
.reader-expandbar { padding: clamp(32px, 5vw, 48px) 0 clamp(22px, 4vw, 34px); }

details.sect { border-top: 1px solid var(--color-divider); }
details.sect:first-of-type { border-top: 0; }
details.sect > summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px;
  padding: clamp(30px, 5vw, 44px) 0 8px;
}
details.sect > summary::-webkit-details-marker { display: none; }
details.sect > summary:hover .chevron { color: var(--color-accent-700); }
.chevron { margin-left: auto; color: var(--color-neutral-500); font-size: 24px; flex-shrink: 0; transition: transform 0.25s ease; user-select: none; }
details.sect[open] > summary .chevron { transform: rotate(180deg); }
details.sect[open] > summary { padding-bottom: 16px; }
details.sect > .body { padding-bottom: clamp(34px, 5vw, 48px); }
details.sect .body > p:last-child { margin-bottom: 0; }

.sec-num { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: 0.14em; color: var(--color-accent-700); white-space: nowrap; }
.sec-num::before { content: ""; width: 18px; height: 1px; background: var(--color-accent); }
summary h2, .sect-head h2, .appendix-head h2, .refs h2 { font-size: clamp(23px, 4.2vw, 29px); font-weight: 600; letter-spacing: 0.01em; transition: color 0.15s ease; }
.appendix-head h2, .refs h2 { margin-top: 10px; }
details.sect > summary:hover h2 { color: var(--color-accent-700); }
.body p { margin: 0 0 20px; text-align: left; font-size: 1em; }

.chapter-audio { display: flex; flex-wrap: wrap; width: 100%; align-items: center; gap: 7px; margin: 0 0 24px; padding: 11px 0; color: var(--color-neutral-600); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); font-family: var(--font-body); font-size: 12px; }
.chapter-audio button, .audiobook-controls button { min-height: 34px; padding: 7px 10px; color: var(--color-accent-800); background: transparent; border: 1px solid var(--color-divider); border-radius: 2px; font: 600 12px/1 var(--font-body); cursor: pointer; }
.chapter-audio button:hover, .chapter-audio button:focus-visible, .audiobook-controls button:hover, .audiobook-controls button:focus-visible { color: var(--color-bg); background: var(--color-accent-600); border-color: var(--color-accent-600); outline: none; }
.chapter-audio.is-playing .chapter-pause { color: var(--color-bg); background: var(--color-accent-600); border-color: var(--color-accent-600); }
.chapter-time { min-width: 66px; font-variant-numeric: tabular-nums; }
.chapter-progress, .audiobook-progress { position: relative; display: block; height: 3px; overflow: hidden; background: var(--color-neutral-300); }
.chapter-progress { width: 58px; }
.chapter-progress i, .audiobook-progress span { display: block; width: 0; height: 100%; background: var(--color-accent); transition: width 160ms linear; }
.audiobook { margin: 8px 0 clamp(42px, 6vw, 62px); padding: clamp(25px, 4vw, 38px); background: color-mix(in srgb, var(--color-accent) 7%, var(--color-surface)); border: 1px solid var(--color-divider); }
.audiobook h2 { margin-top: 8px; font-size: clamp(30px, 5vw, 40px); }
.audiobook .lead-note { max-width: 40rem; margin-top: 10px; }
.audiobook-credit { margin: 16px 0 0; padding-top: 12px; color: var(--color-accent-700); border-top: 1px solid var(--color-divider); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.audiobook-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.audiobook-controls button:first-child { color: var(--color-bg); background: var(--color-accent-600); border-color: var(--color-accent-600); }
.chapter-audio .chapter-icon-button, .audiobook-controls .audiobook-icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px; }
.audiobook-icon { width: 16px; height: 16px; fill: currentColor; }
.audiobook-select { display: block; margin-top: 22px; color: var(--color-neutral-600); font-size: 14px; }
.audiobook-select select { display: block; width: 100%; margin-top: 6px; padding: 10px; color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-divider); font: inherit; }
.audiobook-picker { margin-top: 22px; }
.audiobook-picker-label { display: block; color: var(--color-neutral-600); font-size: 14px; }
.audiobook-picker-button { display: flex; width: 100%; min-height: 44px; justify-content: space-between; gap: 16px; align-items: center; margin-top: 6px; padding: 10px 12px; color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-divider); font: inherit; text-align: left; cursor: pointer; }
.audiobook-picker-button:hover, .audiobook-picker-button:focus-visible { border-color: var(--color-accent-600); outline: none; }
.audiobook-picker-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audiobook-picker-dialog { width: min(calc(100% - 28px), 620px); max-height: min(82svh, 760px); padding: 0; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-divider); box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42); }
.audiobook-picker-dialog::backdrop { background: rgba(20, 19, 17, 0.68); backdrop-filter: blur(3px); }
.audiobook-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px 0; }
.audiobook-picker-dialog h2 { margin: 10px 20px 16px; font-size: clamp(25px, 5vw, 34px); line-height: 1.2; }
.audiobook-picker-close { width: 38px; height: 38px; padding: 0; color: var(--color-neutral-700); background: transparent; border: 1px solid var(--color-divider); border-radius: 50%; font-size: 27px; line-height: 1; cursor: pointer; }
.audiobook-picker-close:hover, .audiobook-picker-close:focus-visible { color: var(--color-bg); background: var(--color-accent-600); border-color: var(--color-accent-600); outline: none; }
.audiobook-track-list { max-height: min(56svh, 580px); overflow-y: auto; border-top: 1px solid var(--color-divider); }
.audiobook-track { display: block; width: 100%; padding: 15px 20px; color: var(--color-text); background: transparent; border: 0; border-bottom: 1px solid var(--color-divider); font: 500 16px/1.45 var(--font-body); text-align: left; cursor: pointer; }
.audiobook-track:hover, .audiobook-track:focus-visible { color: var(--color-bg); background: var(--color-accent-600); outline: none; }
.audiobook-now { min-height: 1.7em; margin-top: 18px; font-size: 15px; line-height: 1.55; }
.audiobook-progress { width: 100%; margin-top: 9px; }
.audiobook-download { display: inline-block; margin-top: 18px; font-size: 14px; }

.story-image {
  width: min(100%, 460px);
  margin: 28px auto 30px;
}
.story-image--wide { width: 100%; }
.story-image-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.story-image img {
  width: 100%;
  height: auto;
  max-height: 78svh;
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-sm);
}
.story-image figcaption {
  margin-top: 10px;
  color: var(--color-neutral-600);
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}
.story-image-trigger:hover img,
.story-image-trigger:focus-visible img {
  border-color: var(--color-accent);
}
.story-image-trigger:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 4px; }

.image-lightbox {
  width: min(100% - 32px, 980px);
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
}
.image-lightbox::backdrop { background: rgba(20, 19, 17, 0.78); }
.image-lightbox-inner { position: relative; overflow-y: auto; max-height: calc(100svh - 32px); }
.image-lightbox-close {
  position: sticky;
  top: 12px;
  z-index: 1;
  display: block;
  margin: 12px 12px 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--color-divider);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
}
.image-lightbox-image { width: 100%; height: auto; max-height: none; object-fit: contain; }
.image-lightbox-details { padding: 18px clamp(18px, 4vw, 34px) clamp(24px, 5vw, 38px); }
.image-lightbox-details h2 { margin: 0; font-size: clamp(23px, 4vw, 32px); line-height: 1.2; }
.image-lightbox-caption { margin: 12px 0 0; line-height: 1.65; }
.image-lightbox-meta { margin: 18px 0 0; }
.image-lightbox-meta div { padding-top: 10px; border-top: 1px solid var(--color-divider); }
.image-lightbox-meta dt { color: var(--color-accent-700); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.image-lightbox-meta dd { margin: 3px 0 0; color: var(--color-neutral-600); line-height: 1.55; }

.cite { font-size: 0.68em; font-weight: 600; vertical-align: super; line-height: 1; margin-left: 1px; }
.cite a { color: var(--color-accent-600); text-decoration: none; }
.cite a:hover { color: var(--color-accent-900); text-decoration: underline; }

.appendix-head { padding: clamp(40px, 6vw, 56px) 0 0; }
.content-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  color: var(--color-bg);
  background: var(--color-accent-600);
  border: 1px solid var(--color-accent-600);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.content-toggle:hover,
.content-toggle:focus-visible { color: var(--color-bg); background: var(--color-accent-500); border-color: var(--color-accent-500); outline: none; }
.toggle-rule { display: flex; align-items: center; width: 100%; }
.toggle-rule::after { content: ""; flex: 1; height: 1px; background: var(--color-divider); }
.theme-dark .btn,
.theme-dark .content-toggle,
html[data-theme="dark"] .btn,
html[data-theme="dark"] .content-toggle { background: var(--color-accent-500); border-color: var(--color-accent-500); }
.theme-dark .btn:hover,
.theme-dark .btn:active,
.theme-dark .content-toggle:hover,
.theme-dark .content-toggle:focus-visible,
html[data-theme="dark"] .btn:hover,
html[data-theme="dark"] .btn:active,
html[data-theme="dark"] .content-toggle:hover,
html[data-theme="dark"] .content-toggle:focus-visible { background: var(--color-accent-600); border-color: var(--color-accent-600); }
.collapsible-panel[hidden] { display: none; }
.timeline { position: relative; padding-left: 28px; margin-top: 28px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--color-divider); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 8px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--color-bg); border: 2px solid var(--color-accent); }
.tl-date { font-family: var(--font-heading); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--color-text); }
.tl-desc { font-size: 18px; line-height: 1.8; color: var(--color-neutral-800); margin-top: 4px; text-align: justify; }
.tl-item.current::before { background: var(--color-accent); }
.lead-note { font-size: 18px; color: var(--color-neutral-700); line-height: 1.8; margin-bottom: 28px; }

.refs { border-top: 1px solid var(--color-divider); padding: clamp(40px, 6vw, 56px) 0; }
.refs .toggle-rule { align-items: flex-end; margin-top: 18px; }
.refs ol { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: ref; }
.refs li { position: relative; counter-increment: ref; padding: 0 0 16px 52px; font-size: 18px; line-height: 1.75; color: var(--color-neutral-800); }
.refs li::before { content: counter(ref); position: absolute; left: 0; top: 3px; width: 33px; height: 33px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--color-accent-700); border: 1px solid var(--color-accent); border-radius: 50%; }
.refs .rhead { font-weight: 600; color: var(--color-text); font-size: 18px; }
.refs .rmeta { color: var(--color-neutral-600); font-size: 16px; margin-top: 2px; line-height: 1.7; }
.refs li .rmeta a { word-break: break-all; }
.refs-note { font-size: 16px; color: var(--color-neutral-600); line-height: 1.8; margin-top: 12px; }

.epilogue { padding: clamp(40px, 6vw, 56px) 0; border-top: 1px solid var(--color-divider); }
.epilogue p { margin-bottom: 20px; text-align: justify; text-justify: inter-ideograph; }
.backtop-link { display: block; text-align: center; padding: 28px 0 44px; font-size: 17px; color: var(--color-neutral-600); text-decoration: none; }
.backtop-link:hover { color: var(--color-accent-700); }
.footer { background: #2d2b2b; color: color-mix(in srgb, #f3f2f2 65%, transparent); text-align: center; padding: 28px; font-size: 15px; letter-spacing: 0.05em; line-height: 1.8; }

/* Shared legal pages and archive footer. */
.site-footer { display: block; margin-top: 0; padding: clamp(24px, 3.5vw, 36px) clamp(20px, 6vw, 48px) 22px; background: color-mix(in srgb, var(--color-bg) 88%, var(--color-surface)); border-top: 1px solid var(--color-divider); color: color-mix(in srgb, var(--color-neutral-600) 80%, var(--color-bg)); font-size: 14px; letter-spacing: normal; line-height: 1.55; text-transform: none; }
.site-footer-inner { width: 100%; max-width: 720px; margin: 0 auto; }
.site-footer-top, .site-footer-nav { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.site-footer-top strong { display: block; color: color-mix(in srgb, var(--color-neutral-800) 84%, var(--color-bg)); font-family: var(--font-heading); font-size: 20px; letter-spacing: 0.01em; text-transform: none; }
.site-footer-top span { display: block; margin-top: 2px; color: color-mix(in srgb, var(--color-neutral-600) 80%, var(--color-bg)); }
.site-footer-top p { margin: 5px 0 0; text-align: right; }
.site-footer-top a { color: var(--color-accent-700); }
.site-footer-nav { margin-top: 18px; padding: 12px 0; border-top: 1px solid var(--color-divider); border-bottom: 0; align-items: center; }
.site-footer-nav nav { display: flex; flex-wrap: wrap; gap: 6px 15px; }
.site-footer-nav a { color: color-mix(in srgb, var(--color-neutral-600) 80%, var(--color-bg)); text-decoration: none; transition: color 150ms ease, border-color 150ms ease, background 150ms ease; }
.site-footer-nav a:hover { color: var(--color-accent-700); text-decoration: underline; }
.site-footer-languages a { padding: 1px 7px; border: 1px solid transparent; border-radius: 2px; }
.site-footer-languages a:hover { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 8%, transparent); text-decoration: none; }
.site-footer-languages a[aria-current="page"] { color: var(--color-accent-800); border-color: var(--color-accent); }
.site-footer-bottom { margin-top: 15px; color: color-mix(in srgb, var(--color-neutral-600) 78%, var(--color-bg)); font-size: 13px; }
.site-footer-bottom p + p { margin-top: 4px; }
.legal-page { min-height: 100svh; display: flex; flex-direction: column; }
.legal-header { background: var(--color-surface); border-bottom: 1px solid var(--color-divider); }
.legal-bar { max-width: 1040px; min-height: 76px; margin: 0 auto; padding: 14px clamp(20px, 6vw, 48px); display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.legal-brand { color: var(--color-text); text-decoration: none; }
.legal-brand strong { display: block; font-family: var(--font-heading); font-size: 24px; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-brand span { display: block; margin-top: -4px; color: var(--color-neutral-600); font-size: 14px; }
.legal-controls { display: flex; gap: 10px; align-items: center; }
.legal-reader { width: min(100% - 40px, 720px); margin: 0 auto; padding: clamp(56px, 9vw, 104px) 0 clamp(72px, 10vw, 120px); flex: 1; }
.legal-kicker, .legal-number { color: var(--color-accent-700); font-size: 14px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; }
.legal-reader h1 { margin: 6px 0 12px; font-size: clamp(42px, 7vw, 68px); line-height: 1.04; }
.legal-effective { color: var(--color-neutral-600); font-size: 16px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 38px 0 24px; padding: 16px 0; border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.legal-toc a { color: var(--color-accent-700); font-size: 16px; text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-notice { margin: 0 0 54px; padding: 16px 18px; border-left: 3px solid var(--color-accent); background: color-mix(in srgb, var(--color-accent) 9%, transparent); font-size: 17px; line-height: 1.7; }
.legal-reader section { margin-top: 64px; scroll-margin-top: 28px; }
.legal-reader h2 { margin: 6px 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--color-divider); font-size: clamp(30px, 5vw, 38px); }
.legal-reader h3 { margin: 34px 0 10px; color: var(--color-text); font-size: 23px; }
.legal-reader p, .legal-reader li { font-size: 18px; line-height: 1.85; }
.legal-reader p + p { margin-top: 18px; }
.legal-reader ul { margin: 18px 0 0; padding-left: 25px; }
.legal-reader li + li { margin-top: 10px; }

@media (max-width: 640px) {
  .controls { top: 10px; right: 10px; gap: 8px; }
  .btn { padding: 10px 14px; font-size: 17px; }
  .textscale button { padding: 10px 13px; font-size: 17px; }
  h1 { font-size: clamp(48px, 13vw, 62px); }
  .refs li { padding-left: 48px; }
  .refs li::before { width: 30px; height: 30px; font-size: 15px; top: 4px; }
  #backtop, .backtop-fab { width: 46px; height: 46px; right: 14px; bottom: 14px; }
  .story-image { width: 100%; margin: 24px auto 26px; }
  .story-image figcaption { font-size: 14px; }
  body:not(.theme-dark) .story-image figcaption { color: color-mix(in srgb, var(--color-neutral-600) 85%, var(--color-text)); }
  .image-lightbox { width: calc(100% - 20px); max-height: calc(100svh - 20px); }
  .image-lightbox-inner { max-height: calc(100svh - 20px); }
  .site-footer-top, .site-footer-nav, .legal-bar { flex-direction: column; align-items: flex-start; }
  .site-footer-top p { text-align: left; }
  .legal-bar { padding-block: 16px; }
  .legal-controls { width: 100%; flex-wrap: wrap; }
  .legal-reader { width: min(100% - 32px, 720px); }
  .legal-reader p, .legal-reader li { font-size: 17px; }
}

html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1); }
html.js .reveal.reveal-active { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  .controls, .progress, #backtop, .backtop-fab, .expandbar, .content-toggle { display: none !important; }
  .collapsible-panel[hidden] { display: block !important; }
  body { font-size: 12pt; background: #fff; color: #000; }
  .footer { background: none; color: #000; }
  details.sect > summary { padding: 14px 0 8px; }
  details.sect > .body { padding-bottom: 20px; }
  .chevron { display: none; }
}
