:root {
  --bg: #0f0b08;
  --panel: #17110d;
  --panel-2: #221811;
  --ink: #f3eadf;
  --muted: #b7a58d;
  --line: #4e3726;
  --gold: #d7b56d;
  --rust: #8e4f29;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Han Serif SC", "Noto Serif SC", "PingFang SC", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(215, 181, 109, 0.1), transparent 24%),
    radial-gradient(circle at 85% 0%, rgba(142, 79, 41, 0.16), transparent 30%),
    linear-gradient(180deg, #0d0907 0%, #120d09 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(1200px, calc(100vw - 40px)); margin: 0 auto; padding: 22px 0 56px; }
.nav {
  position: sticky; top: 14px; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 18px 22px; border-radius: 22px; border: 1px solid var(--line);
  background: rgba(20, 14, 10, 0.88); backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.brand { font-size: 24px; font-weight: 700; letter-spacing: 0.02em; }
.nav-sub, .subtitle, .lead, .meta, .note, .section-head p, .quote-card cite, .mini-note p, .body-copy p, .glossary-note { color: var(--muted); }
.nav-links { display: flex; flex-wrap: wrap; gap: 12px; }
.nav-links a {
  min-height: 34px; display: inline-flex; align-items: center; padding: 0 12px;
  border: 1px solid rgba(215, 181, 109, 0.28); border-radius: 999px; background: rgba(255,255,255,0.03);
}
.nav-links a:hover, .button.primary {
  background: linear-gradient(135deg, #d7b56d, #9a5e35);
  color: #120d09;
}
.hero {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 24px; margin-top: 26px;
  padding: 34px; border-radius: 34px; border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(28, 20, 14, 0.95), rgba(16, 11, 8, 0.98));
  box-shadow: var(--shadow);
}
.hero-cover {
  overflow: hidden; border-radius: 26px; border: 1px solid rgba(215, 181, 109, 0.2); background: #130e0a;
}
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-side { display: grid; gap: 18px; }
.mini-note, .quote-card, .card, .section-block, .stat-card, .plate-frame {
  border-radius: 24px; border: 1px solid var(--line); background: rgba(27, 19, 13, 0.94); box-shadow: var(--shadow);
}
.mini-note, .quote-card, .section-block, .stat-card, .plate-frame { padding: 18px; }
.kicker {
  display: inline-flex; padding: 7px 11px; border-radius: 999px;
  background: rgba(215, 181, 109, 0.12); color: var(--gold); font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase;
}
h1 { margin: 16px 0 10px; font-size: clamp(36px, 5vw, 60px); line-height: 1.03; }
h2 { margin: 0; font-size: 30px; }
h3 { margin: 12px 0 8px; font-size: 22px; }
.actions, .chips, .meta, .footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.button, .chip, .meta span {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 16px; border-radius: 999px; border: 1px solid rgba(215, 181, 109, 0.24);
  background: rgba(255,255,255,0.03);
}
.section { margin-top: 28px; }
.stats, .grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 16px; transition: transform 180ms ease, border-color 180ms ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(215, 181, 109, 0.55); }
.thumb {
  aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px; background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.quote-card blockquote { margin: 10px 0; font-size: 28px; line-height: 1.4; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 14px; }
.chapter-layout, .concept-layout, .plate-layout { display: grid; grid-template-columns: minmax(0, 0.97fr) minmax(290px, 0.63fr); gap: 22px; }
.content-stack, .side-stack { display: grid; gap: 18px; }
.list { margin: 0; padding-left: 20px; line-height: 1.72; }
.body-copy p { margin: 0 0 14px; line-height: 1.82; }
.reading-card {
  margin-top: 14px; padding: 16px; border-radius: 18px;
  border: 1px solid rgba(215, 181, 109, 0.18); background: rgba(255,255,255,0.03);
}
.details-box summary {
  cursor: pointer; font-weight: 700; color: var(--gold);
}
.details-box[open] summary { margin-bottom: 10px; }
.plate-frame img { border-radius: 18px; width: 100%; }
.glossary-table { width: 100%; border-collapse: collapse; }
.glossary-table th, .glossary-table td {
  padding: 14px; border-bottom: 1px solid rgba(215, 181, 109, 0.16); text-align: left; vertical-align: top;
}
@media (max-width: 980px) {
  .hero, .stats, .grid.cols-3, .chapter-layout, .concept-layout, .plate-layout { grid-template-columns: 1fr; }
}