:root {
  color-scheme: light;
  --paper: #eee7d8;
  --paper-deep: #ddd2bd;
  --paper-light: #f8f4e9;
  --ink: #191a16;
  --ink-soft: #4b4b43;
  --water: #235d66;
  --water-deep: #123d45;
  --copper: #b64f2f;
  --copper-dark: #7d2f1e;
  --moss: #51633f;
  --line: rgba(25, 26, 22, 0.2);
  --shadow: 0 28px 80px rgba(34, 29, 20, 0.18);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --rail: 278px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.74), transparent 27rem),
    repeating-linear-gradient(93deg, rgba(60, 52, 38, 0.018) 0 1px, transparent 1px 5px),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image:
    radial-gradient(rgba(30, 27, 20, 0.12) 0.55px, transparent 0.65px),
    radial-gradient(rgba(255, 255, 255, 0.32) 0.55px, transparent 0.65px);
  background-position: 0 0, 3px 3px;
  background-size: 6px 6px;
  mix-blend-mode: multiply;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--paper-light);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.reading-line {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.reading-line > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--copper);
  transition: width 120ms linear;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 28px;
  color: var(--paper-light);
  background: rgba(19, 29, 28, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.topbar-brand,
.topbar-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-brand {
  text-decoration: none;
}

.topbar-brand .edition-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 18px;
}

.topbar-brand b,
.topbar-brand small {
  display: block;
}

.topbar-brand b {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.topbar-brand small {
  color: rgba(248, 244, 233, 0.62);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar-tools a,
.topbar-tools button,
.toc-toggle {
  min-height: 44px;
  padding: 9px 14px;
  color: var(--paper-light);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 99px;
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
}

.topbar-tools a:hover,
.topbar-tools button:hover,
.toc-toggle:hover {
  border-color: rgba(255, 255, 255, 0.72);
}

.toc-toggle {
  display: none;
}

.book-cover {
  position: relative;
  display: grid;
  min-height: min(900px, calc(100vh - 72px));
  overflow: hidden;
  color: var(--paper-light);
  background: var(--water-deep);
  isolation: isolate;
}

.book-cover::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(11, 37, 42, 0.98) 0%, rgba(11, 37, 42, 0.84) 45%, rgba(11, 37, 42, 0.14) 76%),
    linear-gradient(0deg, rgba(11, 37, 42, 0.8), transparent 50%);
}

.cover-image {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: min(62%, 980px);
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
  filter: grayscale(1) contrast(1.06) sepia(0.12);
}

.cover-watermark {
  position: absolute;
  top: 7%;
  right: 5%;
  z-index: -1;
  color: rgba(248, 244, 233, 0.1);
  font-family: Georgia, serif;
  font-size: clamp(110px, 24vw, 360px);
  font-weight: 700;
  line-height: 0.7;
  letter-spacing: -0.09em;
  writing-mode: vertical-rl;
}

.cover-copy {
  align-self: center;
  width: min(900px, 72vw);
  padding: clamp(64px, 9vw, 138px) 42px clamp(64px, 9vw, 138px) clamp(28px, 8vw, 132px);
}

.cover-kicker,
.chapter-kicker,
.section-kicker {
  margin: 0 0 18px;
  color: #d9b19a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.cover-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 7.3vw, 112px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.08em;
  white-space: nowrap;
}

.cover-title span {
  display: block;
  color: #e8c6b2;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 0.06em;
  white-space: normal;
}

.cover-deck {
  max-width: 590px;
  margin: 30px 0 0;
  color: rgba(248, 244, 233, 0.82);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.55;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}

.cover-meta span {
  padding: 7px 11px;
  border: 1px solid rgba(248, 244, 233, 0.28);
  border-radius: 99px;
  color: rgba(248, 244, 233, 0.78);
  font-size: 11px;
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.cover-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 19px;
  border: 1px solid rgba(248, 244, 233, 0.38);
  border-radius: 99px;
  text-decoration: none;
  font-size: 13px;
}

.cover-actions a:first-child {
  color: var(--water-deep);
  background: var(--paper-light);
  border-color: var(--paper-light);
  font-weight: 700;
}

.cover-credit {
  position: absolute;
  right: 22px;
  bottom: 18px;
  max-width: 380px;
  color: rgba(248, 244, 233, 0.62);
  font-size: 10px;
  text-align: right;
}

.prototype-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 17px clamp(20px, 5vw, 72px);
  color: #e8e4d8;
  background: var(--ink);
  font-size: 12px;
}

.prototype-note b {
  color: #e0a381;
  letter-spacing: 0.12em;
}

.prototype-note a {
  color: #f3dfd1;
}

.reader-shell {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  max-width: 1440px;
  margin: 0 auto;
}

.reader-rail {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  overflow: auto;
  padding: 32px 22px 44px;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}

.rail-head {
  padding: 0 7px 20px;
  border-bottom: 1px solid var(--line);
}

.rail-head small,
.rail-head b {
  display: block;
}

.rail-head small {
  color: var(--copper-dark);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.rail-head b {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.chapter-nav {
  display: grid;
  gap: 2px;
  padding: 18px 0;
}

.chapter-nav a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;
  min-height: 44px;
  padding: 8px 7px;
  border-radius: 8px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.45;
}

.chapter-nav a span {
  color: rgba(25, 26, 22, 0.46);
  font-family: Georgia, serif;
}

.chapter-nav a:hover,
.chapter-nav a[aria-current="location"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.54);
}

.chapter-nav a[aria-current="location"] span {
  color: var(--copper);
}

.rail-foot {
  padding: 18px 7px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}

.rail-foot p {
  margin: 0 0 10px;
}

.rail-foot a {
  color: var(--water-deep);
}

.book-content {
  min-width: 0;
}

.book-section,
.chapter {
  width: min(100% - 48px, 850px);
  margin-inline: auto;
}

.book-section {
  padding-block: clamp(70px, 9vw, 130px);
}

.opening-note {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

.opening-note h2,
.timeline-section h2,
.constellation-section h2,
.source-ledger h2,
.afterword h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.opening-note .lead {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 22px);
}

.edition-card {
  padding: 28px;
  background: var(--paper-light);
  border: 1px solid rgba(25, 26, 22, 0.14);
  border-radius: 3px 28px 3px 3px;
  box-shadow: var(--shadow);
}

.edition-card strong {
  display: block;
  margin-bottom: 18px;
  color: var(--copper-dark);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.edition-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edition-card li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.edition-card li b {
  color: var(--water);
  font-family: Georgia, serif;
  font-size: 18px;
}

.timeline-section {
  width: min(100% - 48px, 1040px);
  border-block: 1px solid var(--line);
}

.timeline-intro {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 44px;
  align-items: end;
}

.timeline-intro > p {
  margin: 0;
  color: var(--ink-soft);
}

.timeline-controls {
  display: flex;
  gap: 8px;
  margin-top: 38px;
  padding-bottom: 15px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.timeline-controls button {
  flex: 0 0 auto;
  min-width: 72px;
  min-height: 44px;
  padding: 8px 13px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  font-family: Georgia, serif;
}

.timeline-controls button:hover,
.timeline-controls button[aria-selected="true"] {
  color: var(--paper-light);
  background: var(--water);
  border-color: var(--water);
}

.timeline-panel {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(24px, 5vw, 70px);
  min-height: 220px;
  padding: 38px 0 0;
}

.timeline-year {
  color: var(--copper);
  font-family: Georgia, serif;
  font-size: clamp(56px, 9vw, 108px);
  line-height: 1;
}

.timeline-copy h3 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 500;
}

.timeline-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.chapter {
  position: relative;
  padding-block: clamp(84px, 12vw, 166px);
}

.chapter + .chapter {
  border-top: 1px solid var(--line);
}

.chapter-number {
  position: absolute;
  top: 74px;
  left: -88px;
  color: rgba(25, 26, 22, 0.12);
  font-family: Georgia, serif;
  font-size: 74px;
  line-height: 1;
}

.chapter-header {
  margin-bottom: 42px;
}

.chapter h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6.5vw, 80px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.065em;
}

.chapter-deck {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--water-deep);
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.55;
}

.chapter-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.chapter-tools button,
.source-chip,
.plain-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 13px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.chapter-tools button:hover,
.source-chip:hover,
.chapter-tools button.is-speaking {
  color: var(--paper-light);
  background: var(--water);
  border-color: var(--water);
}

.chapter-tools button.is-paused {
  color: var(--paper-light);
  background: var(--copper-dark);
  border-color: var(--copper-dark);
}

.chapter-tools .speech-stop {
  color: var(--copper-dark);
  border-color: rgba(151, 84, 53, 0.48);
}

.chapter-text {
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 2.02;
}

.chapter-text p {
  margin: 0 0 1.28em;
}

.chapter-text p:first-child::first-letter {
  float: left;
  margin: 0.05em 0.12em 0 0;
  color: var(--copper);
  font-family: Georgia, var(--serif);
  font-size: 4.2em;
  line-height: 0.78;
}

.chapter-text blockquote {
  position: relative;
  margin: 2.4em 0;
  padding: 28px 34px 26px 46px;
  color: var(--water-deep);
  background: rgba(255, 255, 255, 0.46);
  border-left: 5px solid var(--water);
  font-size: 1.12em;
  line-height: 1.78;
}

.chapter-text blockquote::before {
  position: absolute;
  top: -18px;
  left: 12px;
  color: rgba(35, 93, 102, 0.2);
  content: "“";
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: 1;
}

.translation-note {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.archive-figure {
  position: relative;
  margin: 56px 0;
}

.archive-figure img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  background: var(--paper-deep);
  filter: grayscale(1) contrast(1.04) sepia(0.05);
  box-shadow: var(--shadow);
}

.archive-figure.portrait img {
  width: min(76%, 560px);
  margin-inline: auto;
  max-height: 760px;
  object-fit: contain;
}

.archive-figure figcaption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.archive-figure figcaption b {
  color: var(--copper-dark);
  letter-spacing: 0.08em;
}

.media-chapter {
  width: min(100% - 24px, 1080px);
  padding-inline: 0;
}

.film-room {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 0;
  margin: 58px 0 22px;
  overflow: hidden;
  color: var(--paper-light);
  background: #101413;
  border-radius: 4px;
  box-shadow: 0 30px 90px rgba(7, 13, 12, 0.3);
}

.film-room video {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: contain;
  background: #050606;
}

.film-notes {
  padding: clamp(24px, 4vw, 48px);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.film-notes small {
  color: #d7a487;
  letter-spacing: 0.14em;
}

.film-notes h3 {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
}

.film-notes p {
  color: rgba(248, 244, 233, 0.72);
  font-size: 12px;
  line-height: 1.75;
}

.film-notes .caption-credit {
  font-size: 10px;
  line-height: 1.7;
}

.caption-credit a {
  color: var(--paper-light);
  text-underline-offset: 3px;
}

.film-notes .media-state {
  display: block;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #e9d4c8;
  font-size: 11px;
}

.transcript-details {
  margin-top: 18px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid var(--line);
}

.transcript-details summary {
  min-height: 44px;
  cursor: pointer;
  color: var(--water-deep);
  font-weight: 700;
}

.transcript-details p {
  color: var(--ink-soft);
  font-size: 13px;
}

.chapter-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.reader-prompt {
  position: relative;
  margin: 46px 0 0;
  padding: 22px 24px 22px 76px;
  background: rgba(35, 93, 102, 0.08);
  border: 1px solid rgba(35, 93, 102, 0.22);
  border-radius: 3px 28px 3px 3px;
}

.reader-prompt::before {
  position: absolute;
  top: 17px;
  left: 22px;
  color: var(--water);
  content: "?";
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
}

.reader-prompt b {
  display: block;
  margin-bottom: 5px;
  color: var(--copper-dark);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.reader-prompt p {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
}

.chapter-sources > span {
  margin-right: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.constellation-section {
  width: min(100% - 48px, 1040px);
  border-block: 1px solid var(--line);
}

.constellation-intro {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 50px;
  align-items: end;
}

.constellation-intro p:last-child {
  color: var(--ink-soft);
}

.constellation {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  margin-top: 48px;
}

.constellation-map {
  position: relative;
  min-height: 470px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.constellation-map::before,
.constellation-map::after {
  position: absolute;
  inset: 15%;
  content: "";
  border: 1px dashed rgba(35, 93, 102, 0.28);
  border-radius: 50%;
}

.constellation-map::after {
  inset: 33%;
}

.person-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 96px;
  min-height: 64px;
  place-items: center;
  padding: 10px;
  color: var(--paper-light);
  background: var(--water);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 13px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(18, 61, 69, 0.24);
}

.person-node:hover,
.person-node[aria-selected="true"] {
  background: var(--copper);
  transform: scale(1.04);
}

.person-node[data-person="helen"] { inset: 42% auto auto 39%; }
.person-node[data-person="anne"] { inset: 8% auto auto 41%; }
.person-node[data-person="bell"] { inset: 36% 2% auto auto; }
.person-node[data-person="family"] { inset: auto auto 9% 12%; }
.person-node[data-person="public"] { inset: auto 8% 8% auto; }

.person-panel {
  min-height: 310px;
  padding: clamp(26px, 4vw, 46px);
  background: var(--paper-light);
  border-radius: 4px 38px 4px 4px;
  box-shadow: var(--shadow);
}

.person-panel small {
  color: var(--copper-dark);
  letter-spacing: 0.16em;
}

.person-panel h3 {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
}

.person-panel p {
  margin: 0;
  color: var(--ink-soft);
}

.source-ledger {
  width: min(100% - 48px, 1040px);
}

.ledger-intro {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 50px;
  align-items: end;
}

.ledger-intro p:last-child {
  color: var(--ink-soft);
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.ledger-card {
  min-width: 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.ledger-card header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.ledger-card header b {
  color: var(--copper-dark);
  font-family: Georgia, serif;
}

.ledger-card header span {
  color: var(--moss);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.ledger-card h3 {
  margin: 16px 0 8px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.ledger-card p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 12px;
}

.ledger-card button,
.ledger-card > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 13px;
  color: var(--water-deep);
  background: transparent;
  border: 1px solid var(--water);
  border-radius: 99px;
  cursor: pointer;
  font-size: 11px;
  text-decoration: none;
}

.afterword {
  width: min(100% - 48px, 1040px);
  padding-bottom: 140px;
}

.word-lab {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(30px, 7vw, 90px);
  align-items: start;
  margin-top: 46px;
  padding: clamp(28px, 6vw, 70px);
  color: var(--paper-light);
  background: var(--water-deep);
  border-radius: 4px 70px 4px 4px;
  box-shadow: var(--shadow);
}

.word-lab h3 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.18;
}

.word-lab p {
  color: rgba(248, 244, 233, 0.72);
}

.word-form {
  display: grid;
  gap: 14px;
}

.word-form label {
  display: grid;
  gap: 7px;
  color: rgba(248, 244, 233, 0.72);
  font-size: 11px;
}

.word-form input,
.word-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--paper-light);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
}

.word-form textarea {
  min-height: 110px;
  resize: vertical;
}

.word-form input::placeholder,
.word-form textarea::placeholder {
  color: rgba(248, 244, 233, 0.42);
}

.word-form button,
.seed-card button {
  min-height: 48px;
  padding: 10px 16px;
  color: var(--water-deep);
  background: var(--paper-light);
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 700;
}

.seed-card {
  display: none;
  padding: 30px;
  color: var(--ink);
  background: var(--paper-light);
  border-radius: 3px 30px 3px 3px;
}

.seed-card.is-visible {
  display: block;
}

.seed-card small {
  color: var(--copper-dark);
  letter-spacing: 0.14em;
}

.seed-card h4 {
  margin: 12px 0 16px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.seed-card p {
  color: var(--ink-soft);
}

.seed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.seed-card button {
  color: var(--paper-light);
  background: var(--water);
  font-size: 11px;
}

.afterword-figure {
  margin-top: 72px;
}

.start-my-book {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(30px, 6vw, 76px);
  margin-top: 46px;
  padding: clamp(28px, 5vw, 58px);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-left: 5px solid var(--copper);
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.start-my-book h3 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 500;
  line-height: 1.12;
}

.title-keep {
  white-space: nowrap;
}

.start-my-book p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.start-delivery ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.start-delivery li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.start-delivery li b {
  color: var(--copper-dark);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.start-delivery li span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.start-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 17px;
  color: var(--water-deep);
  border: 1px solid var(--water);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.start-actions a.primary {
  color: var(--paper-light);
  background: var(--water-deep);
  border-color: var(--water-deep);
}

.start-delivery > small {
  display: block;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}

.book-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 34px clamp(24px, 6vw, 80px);
  color: rgba(248, 244, 233, 0.68);
  background: var(--ink);
  font-size: 11px;
}

.book-footer b {
  display: block;
  margin-bottom: 4px;
  color: var(--paper-light);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.book-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.source-dialog {
  width: min(92vw, 640px);
  max-height: min(82vh, 760px);
  padding: 0;
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid rgba(25, 26, 22, 0.26);
  border-radius: 4px 34px 4px 4px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.36);
}

.source-dialog::backdrop {
  background: rgba(8, 13, 12, 0.72);
  backdrop-filter: blur(5px);
}

.dialog-inner {
  padding: clamp(24px, 5vw, 48px);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.dialog-type {
  color: var(--copper-dark);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.source-dialog h2 {
  max-width: 480px;
  margin: 14px 0 10px;
  padding-right: 34px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
}

.source-dialog dl {
  display: grid;
  gap: 0;
  margin: 28px 0;
}

.source-dialog dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.source-dialog dt {
  color: var(--ink-soft);
}

.source-dialog dd {
  margin: 0;
  word-break: break-word;
}

.dialog-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 16px;
  color: var(--paper-light);
  background: var(--water);
  border-radius: 99px;
  text-decoration: none;
  font-size: 12px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1180px) {
  :root { --rail: 238px; }
  .chapter-number { left: -56px; }
}

@media (max-width: 920px) {
  html { scroll-padding-top: 76px; }
  .topbar { min-height: 64px; padding-inline: 16px; }
  .topbar-brand small { display: none; }
  .topbar-tools a { display: none; }
  .toc-toggle { display: inline-flex; align-items: center; }
  .book-cover { min-height: 760px; }
  .book-cover::before {
    background: linear-gradient(0deg, rgba(11, 37, 42, 0.98) 0%, rgba(11, 37, 42, 0.84) 48%, rgba(11, 37, 42, 0.2) 100%);
  }
  .cover-image { inset: 0; width: 100%; height: 70%; object-position: 52% 36%; }
  .cover-copy { align-self: end; width: 100%; padding: 330px 24px 70px; }
  .cover-title { font-size: clamp(52px, 15vw, 84px); }
  .cover-credit { right: 14px; bottom: 8px; max-width: 90%; }
  .prototype-note { grid-template-columns: 1fr; gap: 4px; }
  .reader-shell { display: block; }
  .reader-rail {
    position: fixed;
    inset: 64px 0 auto;
    z-index: 65;
    height: min(76vh, 720px);
    padding: 24px;
    background: rgba(238, 231, 216, 0.98);
    border: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms;
  }
  .reader-rail.is-open { transform: translateY(0); visibility: visible; }
  .chapter-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-foot { display: none; }
  .chapter-number { position: static; display: block; margin-bottom: 22px; font-size: 58px; }
  .film-room { grid-template-columns: 1fr; }
  .film-notes { border-top: 1px solid rgba(255,255,255,.14); border-left: 0; }
}

@media (max-width: 720px) {
  .book-section,
  .chapter,
  .timeline-section,
  .constellation-section,
  .source-ledger,
  .afterword { width: min(100% - 32px, 850px); }
  .cover-meta span:nth-child(n+4) { display: none; }
  .cover-credit { display: none; }
  .opening-note,
  .timeline-intro,
  .constellation-intro,
  .ledger-intro,
  .word-lab,
  .start-my-book { grid-template-columns: 1fr; }
  .timeline-panel { grid-template-columns: 1fr; gap: 14px; }
  .timeline-year { font-size: 58px; }
  .archive-figure figcaption { grid-template-columns: 1fr; gap: 4px; }
  .archive-figure.portrait img { width: 100%; }
  .constellation { grid-template-columns: 1fr; }
  .constellation-map { min-height: 390px; }
  .ledger-grid { grid-template-columns: 1fr; }
  .film-room video { min-height: 260px; }
  .book-footer { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .topbar-brand b { font-size: 13px; }
  .topbar-brand .edition-mark { width: 38px; height: 38px; }
  .topbar-tools { gap: 7px; }
  .topbar-tools button,
  .toc-toggle { padding-inline: 11px; }
  #printBook { display: none; }
  .book-cover { min-height: 700px; }
  .cover-copy { padding-top: 280px; }
  .cover-title { font-size: clamp(48px, 13.2vw, 58px); letter-spacing: -0.09em; }
  .cover-deck { font-size: 17px; }
  .cover-actions { display: grid; }
  .prototype-note { font-size: 11px; }
  .chapter-nav { grid-template-columns: 1fr; }
  .chapter { padding-block: 76px; }
  .chapter h2 { font-size: 44px; }
  .chapter-text { font-size: 17px; line-height: 1.95; }
  .chapter-text blockquote { padding: 24px 20px 22px 28px; }
  .reader-prompt { padding: 66px 20px 20px; }
  .reader-prompt::before { top: 15px; left: 20px; }
  .film-room { margin-inline: -8px; }
  .film-room video { min-height: 220px; }
  .constellation-map { min-height: 340px; }
  .person-node { width: 82px; min-height: 58px; font-size: 12px; }
  .person-node[data-person="helen"] { left: 38%; }
  .person-node[data-person="anne"] { left: 38%; }
  .word-lab { margin-inline: -2px; padding: 24px; border-radius: 3px 36px 3px 3px; }
  .start-my-book { padding: 24px; }
  .start-actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body { background: #fff; }
  body::before,
  .reading-line,
  .topbar,
  .reader-rail,
  .chapter-tools,
  .word-lab,
  .start-my-book,
  .prototype-note { display: none !important; }
  .book-cover { min-height: 250mm; break-after: page; print-color-adjust: exact; }
  .reader-shell { display: block; max-width: none; }
  .book-section,
  .chapter,
  .timeline-section,
  .constellation-section,
  .source-ledger,
  .afterword { width: 100%; max-width: none; padding: 18mm 16mm; }
  .chapter { break-before: page; }
  .archive-figure,
  .film-room,
  blockquote { break-inside: avoid; }
  .film-room { display: block; color: #111; background: #eee; box-shadow: none; }
  .film-room video { display: none; }
  .film-notes { border: 0; }
  a { text-decoration: none; }
}
