:root {
  color-scheme: dark;
  --ink: #e8e1d4;
  --muted: #9d968b;
  --paper: #161411;
  --panel: #201d18;
  --line: #3b362e;
  --signal: #e55638;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0, #2a251d 0, transparent 30rem),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 0.96rem + 0.35vw, 1.25rem);
  line-height: 1.78;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(15rem, 26rem) minmax(18rem, 34rem);
  place-content: center;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding: 5rem 6vw 7rem;
  border-bottom: 1px solid var(--line);
}
.hero img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2rem 3rem #000a);
}
.eyebrow {
  color: var(--signal);
  font: 700 0.72rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0.25rem 0 1.5rem;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 0.82;
  letter-spacing: -0.065em;
}
.lede { max-width: 33rem; color: #c5bcad; }
.start {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.83rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--signal);
}

#reader { overflow: clip; }
.book-break {
  min-height: 75svh;
  display: grid;
  grid-template-columns: minmax(12rem, 21rem) minmax(16rem, 30rem);
  place-content: center;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding: 7rem 6vw;
  background: var(--panel);
  border-block: 1px solid var(--line);
}
.book-break img { width: 100%; height: auto; box-shadow: 0 1.5rem 3rem #0008; }
.book-number {
  color: var(--signal);
  font: 700 0.75rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.book-break h2 { margin: 0.15rem 0 0; font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.9; }

.section {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 1.5rem;
}
.section + .section { border-top: 1px solid var(--line); }
.section h1 {
  margin: 0 0 3rem;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.section h2 { margin-top: 3.5rem; line-height: 1.2; }
.section p { margin: 0 0 1.35em; }
.section blockquote {
  margin: 2.5rem 0;
  padding-left: 1.25rem;
  color: #c8beae;
  border-left: 2px solid var(--signal);
}
.section hr { width: 4rem; margin: 4rem auto; border: 0; border-top: 1px solid var(--line); }
.section table { width: 100%; border-collapse: collapse; font-size: 0.88em; }
.section th, .section td { padding: 0.6rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.section a { color: #f28a72; }
.section code { font-size: 0.85em; overflow-wrap: anywhere; }

#sentinel { height: 8rem; }
.reader-nav {
  position: fixed;
  z-index: 10;
  inset: auto 1rem 1rem;
  max-width: 44rem;
  margin: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
  align-items: center;
  padding: 0.75rem 1rem 0.65rem;
  color: var(--muted);
  background: #201d18ed;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 0.8rem 2rem #0008;
  backdrop-filter: blur(12px);
  font: 0.72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.reader-nav select {
  max-width: 12rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: inherit;
}
#position { justify-self: end; }
.progress { grid-column: 1 / -1; height: 2px; overflow: hidden; background: var(--line); }
.progress i { display: block; width: 0; height: 100%; background: var(--signal); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 700px) {
  .hero, .book-break { grid-template-columns: 1fr; }
  .hero { align-content: start; padding-top: 2rem; }
  .hero img { width: min(72vw, 20rem); margin: auto; }
  .hero h1 { font-size: clamp(3.7rem, 19vw, 6rem); }
  .book-break img { width: min(64vw, 18rem); margin: auto; }
  .book-break { text-align: center; }
}
