:root {
  --bg: #0b0a09;
  --bg-2: #12100e;
  --panel: #181512;
  --line: #2c261f;
  --gold: #c9a36a;
  --gold-dim: #8a7048;
  --ember: #c45c38;
  --text: #efe6d8;
  --muted: #9c9083;
  --ok: #7d9a6a;
  --warn: #c9a36a;
  --danger: #c45c38;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 12px; background: var(--panel); padding: 8px; z-index: 20; }

.topbar {
  background: linear-gradient(#1a120c, #0b0a09);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner, .wrap, .footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  min-width: 140px;
}
.brand:hover { text-decoration: none; }
.brand strong {
  font-family: "Cormorant Garamond", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.brand span { color: var(--muted); font-size: 0.75rem; }

nav { display: flex; flex-wrap: wrap; gap: 4px 14px; flex: 1; }
nav a {
  color: var(--muted);
  font-size: 0.92rem;
}
nav a[aria-current="page"], nav a:hover { color: var(--gold); text-decoration: none; }

.tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn, .icon-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
}
.btn { padding: 6px 10px; font-size: 0.85rem; }
.icon-btn { width: 36px; height: 36px; }
.btn:hover, .icon-btn:hover { border-color: var(--gold-dim); }
.menu-btn { display: none; }

.countdown {
  background: #1c1410;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.countdown-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.countdown b { color: var(--gold); font-weight: 600; }

.hero {
  padding: 48px 0 28px;
  background:
    radial-gradient(1200px 280px at 20% 0%, #3a2214 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-art {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 80px 0 36px;
  overflow: hidden;
}
.hero-art .hero-bg,
.hero-art .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 22%;
  z-index: 0;
}
.hero-art .hero-bg { display: block; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 10, 9, 0.28) 0%, rgba(11, 10, 9, 0.78) 70%, var(--bg) 100%);
}
.hero-art .wrap { position: relative; z-index: 2; }
.hero-art h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65); }
.hero-art .lede { color: #d8cfc0; }
.kicker {
  color: var(--ember);
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin: 0 0 8px;
}
h1, h2, h3 {
  font-family: "Cormorant Garamond", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 12px; }
h2 { font-size: 1.7rem; margin: 2rem 0 0.6rem; }
h3 { font-size: 1.25rem; margin: 1.4rem 0 0.4rem; }
.wrap > h2:first-child { margin-top: 0; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 14px;
}
.crumbs a { color: var(--gold); }
.crumbs [aria-current="page"] { color: var(--text); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}
.pill {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 99px;
}
.pill.warn { color: var(--warn); border-color: #4a3b22; }
.pill.ok { color: var(--ok); }

.grid {
  display: grid;
  gap: 14px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 6px;
}
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { border-color: var(--gold-dim); text-decoration: none; }
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 28px 0 64px;
}
.toc {
  position: sticky;
  top: 88px;
  align-self: start;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.toc p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc a {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 3px 0;
}
.article p, .article li { max-width: 70ch; }
.article ul, .article ol { padding-left: 1.2rem; }
.article li { margin: 0.35rem 0; }

.takeaway {
  background: #201810;
  border: 1px solid #3d2c1c;
  padding: 14px 16px;
  border-radius: 6px;
}
.takeaway strong { color: var(--gold); }

.callout {
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--bg-2);
}
.callout.warn { border-color: #5a4020; }
.callout.danger { border-color: #5a2a1c; }

.shot {
  border: 1px dashed var(--line);
  min-height: 140px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: repeating-linear-gradient(-45deg, #141210, #141210 8px, #181512 8px, #181512 16px);
  margin: 16px 0;
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}
.shot-fig, .poster {
  margin: 16px 0 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.shot-fig picture, .poster picture { display: block; }
.shot-fig img, .poster img {
  display: block;
  width: 100%;
  height: auto;
}
.shot-fig figcaption, .poster figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 8px 12px 10px;
}
.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 8px;
}
.poster { margin: 0; }
.art-note { color: var(--muted); font-size: 0.88rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 12px 0 20px;
}
th, td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 8px 6px;
  vertical-align: top;
}
th { color: var(--gold); font-weight: 600; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.faq summary { cursor: pointer; color: var(--gold); }

.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related a {
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 99px;
  color: var(--text);
}
.related a:hover { border-color: var(--gold-dim); text-decoration: none; }

.checklist label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.checklist input { margin-top: 5px; accent-color: var(--gold); }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
  background: #0a0908;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}
.legal { margin-top: 20px; font-size: 0.8rem; }

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 30;
  padding: 12vh 16px 16px;
}
.search-overlay.open { display: block; }
.search-box {
  width: min(640px, 100%);
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  padding: 12px;
}
.search-box input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
.search-results { margin-top: 10px; max-height: 50vh; overflow: auto; }
.search-results a {
  display: block;
  padding: 8px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.search-results a:hover { background: var(--bg-2); text-decoration: none; }
.search-results small { color: var(--muted); }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 64px;
    background: #14110e;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 16px;
    flex-direction: column;
  }
  nav.open { display: flex; }
  .layout, .grid-3, .grid-2, .footer-grid, .poster-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
}
