
:root {
  color-scheme: light;
  --bg: #eef3ea;
  --paper: #fbfdf8;
  --ink: #1e2a22;
  --muted: #5d6f62;
  --line: #d6e2d1;
  --accent: #2f6b4f;
  --accent-dark: #1f4a37;
  --gold: #b08b4f;
  --shadow: rgba(31, 74, 55, .12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(47,107,79,.14), transparent 34rem),
    var(--bg);
  color: var(--ink);
  font-family: ui-serif, "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
.site { width: min(100%, 840px); margin: 0 auto; padding: 22px 18px 64px; }
.hero { padding: clamp(30px, 7vw, 76px) 0 22px; }
.kicker {
  color: var(--accent); font-weight: 700; letter-spacing: .12em;
  font-family: ui-sans-serif, system-ui, sans-serif; font-size: .82rem; margin: 0;
}
.hero h1 {
  margin: 12px 0 10px; font-size: clamp(2.6rem, 13vw, 5.4rem);
  line-height: 1.02; letter-spacing: -.04em;
}
.hero .sub { margin: 0 0 16px; color: var(--gold); font-size: clamp(1rem, 4vw, 1.2rem); font-style: italic; }
.lede { max-width: 700px; color: var(--muted); font-size: clamp(1.05rem, 3.8vw, 1.28rem); line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 700;
}
.primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px var(--shadow); }
.primary:hover { color: #fff; background: var(--accent-dark); }
.secondary { border: 1px solid var(--line); color: var(--accent); background: rgba(251,253,248,.7); }
.card {
  margin: 18px 0; padding: clamp(18px, 5vw, 30px);
  background: rgba(251,253,248,.85); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: 0 16px 44px var(--shadow);
}
.card.compact { box-shadow: none; background: rgba(251,253,248,.6); }
.card h2 { margin: 0 0 14px; font-size: 1.2rem; display: flex; align-items: baseline; justify-content: space-between; }
.card h2 small { color: var(--muted); font-size: .82rem; font-weight: 400; }
.card p { color: var(--muted); line-height: 1.95; margin: 0; }
.toc { display: grid; gap: 10px; }
.chapter-link {
  display: flex; align-items: baseline; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.chapter-link b { color: var(--accent); white-space: nowrap; }
.chapter-link span { color: var(--ink); font-weight: 500; }
.chapter-link.active { border-color: rgba(47,107,79,.5); background: #eef7f0; }
.chapter-link:hover { border-color: rgba(47,107,79,.5); }
.topbar {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 12px 2px;
  background: linear-gradient(to bottom, var(--bg), rgba(238,243,234,.9));
  backdrop-filter: blur(8px);
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.topbar strong { font-weight: 700; font-size: .95rem; }
.reader {
  margin-top: 16px; padding: clamp(22px, 6vw, 46px);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: 0 16px 44px var(--shadow);
}
.reader h1 {
  margin: 0 0 30px; font-size: clamp(1.7rem, 6.5vw, 2.7rem);
  line-height: 1.3; letter-spacing: -.02em; padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.reader p { margin: 0 0 1.2em; font-size: clamp(1.1rem, 4.5vw, 1.24rem); line-height: 2.1; text-align: justify; }
.reader hr.scene {
  border: none; margin: 1.8em auto; width: 40%; text-align: center; overflow: visible;
}
.reader hr.scene::after {
  content: "· · ·"; color: var(--gold); letter-spacing: .5em; font-size: 1.1rem;
}
.chapter-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center;
  margin: 22px 0; font-family: ui-sans-serif, system-ui, sans-serif;
}
.chapter-nav a, .chapter-nav span {
  min-height: 48px; display: flex; align-items: center; justify-content: center;
  padding: 12px 14px; border-radius: 999px; text-align: center;
  border: 1px solid var(--line); background: rgba(251,253,248,.75);
}
.chapter-nav span { color: #a2b0a6; }
.foot { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 26px; font-family: ui-sans-serif, system-ui, sans-serif; }
@media (max-width: 560px) {
  .site { padding: 16px 12px 48px; }
  .hero { padding-top: 24px; }
  .reader { border-radius: 18px; padding: 22px 17px; }
  .reader p { text-align: left; }
  .chapter-link { display: block; }
  .chapter-link span { display: block; margin-top: 4px; }
}
