:root {
  color-scheme: light dark;
  --bg: #f6f4ef; --paper: #fffdf8; --text: #262626; --muted: #696969;
  --line: #d7d1c7; --accent: #283845; --soft: #ece7de; --max: 760px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#17191b; --paper:#1d2023; --text:#ece8df; --muted:#aaa7a0; --line:#3a3d40; --accent:#d2dde6; --soft:#25292d; }
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--text); font-family:Georgia,"Times New Roman",serif; line-height:1.72; font-size:18px; }
a { color:inherit; text-decoration-thickness:1px; text-underline-offset:3px; }
a:hover { text-decoration-thickness:2px; }
.hero,.site-header { border-bottom:1px solid var(--line); background:var(--paper); }
.hero-inner,.home-shell,.reading-shell,.site-footer { width:min(calc(100% - 36px),var(--max)); margin:0 auto; }
.hero-inner { padding:78px 0 64px; }
.hero h1,.chapter h1 { font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing:-.035em; line-height:1.06; }
.hero h1 { font-size:clamp(2.7rem,7vw,4.7rem); max-width:950px; margin:0 0 24px; }
.dek { font-size:1.22rem; color:var(--muted); max-width:700px; }
.eyebrow,.part-label { font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-transform:uppercase; letter-spacing:.11em; font-size:.74rem; color:var(--muted); font-weight:700; }
.home-shell { padding:52px 0 72px; }
.note,.closing-note { border-left:3px solid var(--accent); padding:2px 0 2px 22px; margin:0 0 52px; }
.home-shell h2 { font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:1rem; text-transform:uppercase; letter-spacing:.11em; margin:0 0 18px; }
.chapter-list { list-style:none; padding:0; margin:0 0 58px; border-top:1px solid var(--line); }
.chapter-list li { border-bottom:1px solid var(--line); }
.chapter-list a { display:grid; grid-template-columns:52px 1fr; gap:16px; padding:21px 0; text-decoration:none; font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height:1.35; }
.chapter-list a:hover { padding-left:8px; transition:padding .15s ease; }
.chapter-number { color:var(--muted); font-variant-numeric:tabular-nums; }
.site-header { min-height:72px; padding:17px max(18px,calc((100% - var(--max))/2)); display:flex; gap:24px; justify-content:space-between; align-items:center; font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.site-title { text-decoration:none; font-size:.92rem; font-weight:650; line-height:1.25; max-width:580px; }
.reading-shell { padding:66px 0 36px; }
.chapter h1 { font-size:clamp(2.2rem,6vw,3.7rem); margin:6px 0 42px; }
.chapter h2,.chapter h3,.chapter h4 { font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height:1.2; margin-top:2.2em; margin-bottom:.75em; }
.chapter p { margin:1.05em 0; }
.chapter blockquote { margin:1.7em 0; padding:4px 0 4px 24px; border-left:3px solid var(--accent); font-size:1.03em; }
.chapter ul,.chapter ol { padding-left:1.4em; }
.chapter li { margin:.45em 0; }
code { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.88em; background:var(--soft); padding:.1em .32em; border-radius:4px; }
hr { border:0; border-top:1px solid var(--line); margin:3.2em 0; }
.chapter-nav { margin:64px 0 18px; padding-top:24px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:24px; font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:.92rem; }
.site-footer { color:var(--muted); font-size:.83rem; padding:24px 0 48px; border-top:1px solid var(--line); }
@media (max-width:640px) {
  body { font-size:17px; }
  .hero-inner { padding:54px 0 44px; }
  .site-header { align-items:flex-start; flex-direction:column; gap:5px; }
  .reading-shell { padding-top:44px; }
  .chapter-nav { flex-direction:column; }
}
