:root {
  --wine: #641f28;
  --deep: #45171d;
  --gold: #b89a61;
  --pale-gold: #ead3a0;
  --paper: #f6f1e8;
  --ivory: #fcf8ef;
  --ink: #302b27;
  --muted: #665d52;
  --sage: #79816d;
  --rule: #d9cbb7;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --numeral: Georgia, "Times New Roman", serif;
  --bar-height: 72px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-height) + 20px);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
main { padding-top: var(--bar-height); }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
p, dd { line-height: 1.85; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.topbar :focus-visible, .team :focus-visible, .footer :focus-visible, .lightbox :focus-visible { outline-color: var(--pale-gold); }
.wrap { width: min(100% - 104px, 1200px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { z-index: 6; position: fixed; left: 1rem; top: .5rem; transform: translateY(-150%); background: var(--ivory); padding: .6rem 1rem; }
.skip:focus { transform: none; }
.topbar { position: fixed; inset: 0 0 auto; z-index: 5; height: var(--bar-height); background: var(--deep); color: var(--ivory); border-bottom: 1px solid #b89a615c; }
.topbar-in { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 1.25rem; }
.identity { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; color: var(--ivory); text-decoration: none; }
.identity-mark { display: grid; place-content: center; width: 36px; height: 38px; border: 1px solid #d1ad71; font-family: var(--serif); font-size: .8rem; line-height: .91; text-align: center; color: var(--pale-gold); }
.identity strong { display: block; font-family: var(--serif); font-size: 1.02rem; font-weight: 700; letter-spacing: .105em; }
.identity small { display: block; font-size: .72rem; color: #ddc7a5; letter-spacing: .2em; margin-top: 4px; }
.topbar nav { display: flex; height: 100%; gap: clamp(.45rem, 1.5vw, 1.5rem); align-items: center; }
.topbar nav a { display: grid; place-items: center; height: 100%; position: relative; text-decoration: none; color: #f0e2d5; font-size: .875rem; white-space: nowrap; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--pale-gold); }
.topbar nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--gold); }
.menu-toggle { display: none; }
.reading { position: absolute; bottom: -2px; width: 100%; pointer-events: none; }
.reading div { transform: scaleX(0); transform-origin: left; height: 2px; background: #e2ba70; }

.hero { background: var(--deep); }
.hero-scene { min-height: clamp(490px, 50vw, 690px); position: relative; isolation: isolate; display: flow-root; overflow: clip; color: var(--deep); background: #ebd7b5; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -2; }
.hero-art img { object-fit: cover; object-position: 58% 48%; }
.hero-scene::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #fbf1dcb3, #fbf1dc22 50%, transparent 67%); }
.hero-in { padding-block: clamp(71px, 9.5vw, 139px) 6rem; }
.eyebrow, .chapter-label { display: flex; align-items: center; gap: .7rem; font-size: .84rem; font-weight: 700; letter-spacing: .16em; }
.eyebrow span, .chapter-label span { width: 2.35rem; border-top: 1px solid var(--wine); }
.hero h1 { margin: .25em 0 .2em; font: 700 clamp(3.9rem, 7vw, 7.05rem)/1.07 var(--serif); letter-spacing: .09em; }
.hero h1 > span { display: block; }
.hero-dot { color: #967549; font-size: .55em; vertical-align: .16em; letter-spacing: 0; }
.hero-sub { width: fit-content; padding: .12em .46em .18em; color: var(--pale-gold); background: var(--deep); font: 700 clamp(1rem, 2.1vw, 1.6rem)/1.55 var(--serif); letter-spacing: .05em; }
.hero-meta { display: flex; flex-wrap: wrap; column-gap: .65rem; align-items: center; color: #4f4030; font-size: .875rem; margin-top: 1.15rem; }
.hero-meta span { width: 1px; height: 13px; background: #937548; }
.action { display: inline-block; border: 1px solid var(--wine); padding: .78rem 1.25rem; color: var(--ivory); background: var(--wine); text-decoration: none; font-weight: 700; font-size: .875rem; }
.action:hover { color: var(--wine); background: var(--ivory); }
.hero-link { margin-top: 1.7rem; color: var(--deep); background: #faf0d9; border-color: var(--deep); }
.hero-link:hover { color: var(--ivory); background: var(--wine); }
.hero-caption { position: absolute; z-index: 1; right: max(25px, (100vw - 1200px) / 2); bottom: 3.15rem; color: #fff6e5; padding: .3rem .5rem; background: #302b279e; font-size: .75rem; letter-spacing: .1em; }
.hero-edge { position: absolute; inset: auto 0 -1px; height: clamp(30px, 6vw, 82px); background: var(--gold); clip-path: polygon(0 49%, 5% 62%, 12% 77%, 21% 82%, 30% 78%, 41% 63%, 51% 46%, 64% 42%, 76% 55%, 86% 57%, 94% 47%, 100% 34%, 100% 100%, 0 100%); }
.hero-edge::after { content: ""; position: absolute; inset: 3px 0 0; background: linear-gradient(100deg, var(--wine), var(--deep) 72%); clip-path: inherit; }
.hero-data { background: linear-gradient(100deg, var(--wine), var(--deep) 72%); color: var(--pale-gold); }
.hero-data #hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 1.3rem .8rem; }
.hero-data-source { padding-bottom: 1rem; text-align: right; font-size: .8125rem; color: #e4cdb2; }
.stat { padding: 0 1.3rem; border-left: 1px solid var(--rule); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat > div { display: flex; align-items: baseline; gap: .28em; white-space: nowrap; }
.stat strong { font: 400 clamp(2.2rem, 4.5vw, 4.25rem)/.95 var(--numeral); font-variant-numeric: lining-nums tabular-nums; }
.stat span { font-size: 1rem; font-weight: 700; }
.stat small { font-size: .9rem; display: block; margin-top: .7rem; }
.hero-data .stat { border-color: #caa86f55; padding-left: clamp(1.1rem, 3.4vw, 3.5rem); }
.hero-data .stat:first-child { padding-left: 0; }
.hero-data small { color: #fff1dd; letter-spacing: .11em; }

.chapter { padding: clamp(4.3rem, 8vw, 8.3rem) 0; }
.chapter-heading { margin-bottom: clamp(2.1rem, 4vw, 4rem); }
.chapter-label { color: var(--wine); }
.chapter h2 { font: 700 clamp(2.1rem, 5vw, 4.35rem)/1.16 var(--serif); letter-spacing: -.022em; color: var(--deep); margin-top: .33em; text-wrap: balance; }
.chapter h3 { font: 700 clamp(1.27rem, 2.65vw, 2.25rem)/1.35 var(--serif); text-wrap: pretty; }
.chapter-intro { margin-top: .9rem; color: var(--muted); max-width: 43rem; }
.micro-label { color: var(--wine); font-weight: 700; letter-spacing: .12em; font-size: .8125rem; }
.source-note { color: var(--muted); font-size: .875rem; line-height: 1.65; }
[data-reveal] { transition: opacity .53s ease, transform .55s ease; }
.await-reveal:not(:focus-within) { opacity: .05; transform: translateY(13px); }
.photo-button { width: 100%; padding: 0; border: 0; position: relative; display: block; overflow: hidden; background: #e9dfce; text-align: left; }
.photo-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-button:hover img { transform: scale(1.025); }
.zoom { position: absolute; bottom: .65rem; right: .65rem; width: 34px; height: 34px; display: grid; place-items: center; background: #45171de8; color: var(--ivory); font-size: 1rem; }
figcaption { padding: .55rem 0 0; font-size: .875rem; color: var(--muted); line-height: 1.55; }
.dialog-open { overflow: hidden; }
.lightbox { color: var(--ivory); background: var(--deep); border: 1px solid #ae8b56; padding: 0; width: min(calc(100% - 1.5rem), 1080px); max-height: 95dvh; overflow: auto; box-shadow: 0 24px 72px #23161770; }
.lightbox::backdrop { background: #211518dc; }
.lightbox-top, .lightbox-controls { padding: .6rem 1rem; display: flex; gap: .6rem; align-items: center; justify-content: space-between; }
.lightbox-close, .lightbox-controls button { color: var(--ivory); border: 1px solid #caa86f88; background: transparent; min-height: 40px; padding-inline: .7rem; }
.lightbox-close { font-size: 1.6rem; }
.lightbox-body { display: grid; justify-items: center; background: #211518; }
.lightbox-body img { max-height: 75dvh; max-width: 100%; object-fit: contain; }

@media (max-width: 990px) {
  .wrap { width: calc(100% - 64px); }
  .topbar nav { gap: .72rem; }
}
@media (max-width: 850px) {
  :root { --bar-height: 62px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .65rem; background: transparent; border: 1px solid #c4a47487; color: var(--ivory); font-size: .875rem; white-space: nowrap; }
  .menu-toggle span { display: block; width: 15px; height: 10px; border-top: 1px solid; border-bottom: 1px solid; background: linear-gradient(currentColor,currentColor) center / 100% 1px no-repeat; }
  .topbar nav { display: none; height: auto; position: absolute; inset: 100% 0 auto; padding: 1rem max(32px, calc((100vw - 1200px)/2)); background: var(--deep); border-bottom: 1px solid var(--gold); grid-template-columns: repeat(3, 1fr); gap: 1px; }
  .topbar.menu-open nav { display: grid; }
  .topbar nav a { min-height: 44px; padding-inline: .15rem; }
  .topbar nav a[aria-current]::after { inset-inline: 24%; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 38px); }
  .hero-scene { min-height: 560px; }
  .hero-art img { object-position: 58% 100%; }
  .hero-scene::before { background: linear-gradient(180deg, #f5e4c9a0, #f5e4c92b 61%, transparent 80%); }
  .hero-in { padding-block: 4.6rem 8rem; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.55rem); letter-spacing: .08em; }
  .hero-sub { font-size: clamp(.9rem, 4vw, 1.2rem); letter-spacing: 0; }
  .hero-caption { right: 19px; bottom: 1.2rem; }
  .hero-data #hero-stats { grid-template-columns: repeat(2, 1fr); padding-block: 1rem .68rem; row-gap: .75rem; }
  .hero-data .stat { padding-block: .35rem; }
  .hero-data .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero-data .stat:nth-child(even) { padding-left: 1.3rem; }
  .hero-data .stat strong { font-size: 2.75rem; }
  .stat small { margin-top: .4rem; }
  .chapter h2 { text-wrap: balance; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .await-reveal { opacity: 1 !important; transform: none !important; }
}
