/* ==========================================================================
   BookReport.pro — Reading Room · Florian edition
   Canonical stylesheet. Every page links this file; nothing carries its own
   copy. Palette and type are derived from The Florian (Watson), sampled
   2026-07-31: forest green #243D20, butter cream #FBFADE.

   Two-tone discipline: cream and green. There is no third colour. Emphasis
   comes from inverting the pair — a green field with cream type — never from
   introducing a new hue.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Cream paper, green ink */
  --color-paper:      #FBFADE;
  --color-paper-2:    #F5F3D2;
  --color-paper-3:    #EDEBC3;
  --color-ink:        #1C2E19;
  --color-ink-2:      #3A4F34;
  --color-ink-3:      #66765E;
  --color-rule:       #DEDBB4;
  --color-rule-soft:  #E8E6C8;
  --color-accent:     #3D6B2F;
  --color-accent-2:   #2F5A28;
  --color-accent-soft:#EFEDC8;
  --color-focus:      #2F5A28;

  /* The inverted field — green band, cream type. Fixed across themes so a
     band reads the same whichever theme the reader is in. */
  --color-field:      #243D20;
  --color-field-2:    #1C2E19;
  --color-field-ink:  #FBFADE;
  --color-field-ink-2:#C9D3B4;
  --color-field-rule: rgba(251, 250, 222, 0.22);

  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body:    "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-ui:      "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --measure: 66ch;
  --wide: 78rem;
  --rule-hairline: 1px;
  --radius-card: 2px;

  /* Where the printable face sits inside the book plate photograph. Both
     plates are normalised to a 1200x1750 frame with the volume in the same
     position; only the spine width differs, so only --book-face-left moves. */
  --book-face-top:    10.5%;
  --book-face-right:  11.5%;
  --book-face-bottom: 12.5%;
  --book-face-left:   16.6%;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-base: 200ms;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --color-paper:      #1C2E19;
  --color-paper-2:    #23381F;
  --color-paper-3:    #2C4527;
  --color-ink:        #FBFADE;
  --color-ink-2:      #DDDCBB;
  --color-ink-3:      #9FAE93;
  --color-rule:       #35492F;
  --color-rule-soft:  #2A3D25;
  --color-accent:     #B9CE8E;
  --color-accent-2:   #CBDCA4;
  --color-accent-soft:#243A20;
  --color-focus:      #B9CE8E;

  /* On green paper the band inverts the other way — cream field, green type. */
  --color-field:      #FBFADE;
  --color-field-2:    #F1EFCB;
  --color-field-ink:  #1C2E19;
  --color-field-ink-2:#3A4F34;
  --color-field-rule: rgba(28, 46, 25, 0.20);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.72;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; display: block; }

::selection { background: var(--color-accent); color: var(--color-paper); }

/* The Florian micro-label: Inter, uppercase, wide tracking. Used for every
   piece of chrome — kickers, counts, meta lines, section eyebrows. */
.label,
.voice-label,
.story-context .label,
.section-kicker,
.titlecard .kicker,
.plain-terms .label,
.colophon .mark .wm-tag {
  font-family: var(--font-ui);
  /* Never inherit an italic from a display parent. */
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.68rem;
  font-feature-settings: "tnum";
}

/* ---------- Masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--color-paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: var(--rule-hairline) solid var(--color-rule);
}
.masthead-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--color-ink);
  letter-spacing: -0.005em;
  line-height: 1;
}
/* The old rule between name and suffix read as a stray hyphen at this
   weight. The wordmark now runs straight through. */
.wordmark .wm-rule { display: none; }
.wordmark .wm-tag {
  font-family: var(--font-ui);
  font-style: normal;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--color-accent);
  font-size: 0.82rem;
}
.masthead-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.masthead-nav a {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  font-size: 0.66rem;
  color: var(--color-ink-3);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 140ms var(--ease-out), border-color 140ms var(--ease-out);
}
.masthead-nav a:hover { color: var(--color-ink); border-bottom-color: var(--color-accent); }

.theme-toggle {
  appearance: none;
  background: none;
  border: 1px solid var(--color-rule);
  border-radius: 100px;
  padding: 0.28rem 0.8rem;
  margin: 0;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--color-ink-3);
  cursor: pointer;
  white-space: nowrap;
  transition: color 140ms var(--ease-out), border-color 140ms var(--ease-out);
}
.theme-toggle:hover { color: var(--color-ink); border-color: var(--color-ink-3); }
.theme-toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* Reading-progress hairline under the masthead. report.js writes --scroll. */
.scroll-rule {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: calc(var(--scroll, 0) * 100%);
  background: var(--color-accent);
  z-index: 50;
  will-change: width;
}

/* ==========================================================================
   The book object — a cloth-bound hardcover photographed straight on, with
   the printed face composited in CSS so the type stays crisp and per-title.
   Mirrors the two Florian volumes: green cloth with foil lettering, bone
   cloth with an inset plate.
   ========================================================================== */
.book {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
}
.book-plate { width: 100%; height: auto; border-radius: 1px; }
.book-face {
  position: absolute;
  top: var(--book-face-top);
  right: var(--book-face-right);
  bottom: var(--book-face-bottom);
  left: var(--book-face-left);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Heavier foot padding so a centred block lands on the optical centre
     rather than the geometric one. */
  padding: 8% 8% 13%;
  line-height: 1.2;
  text-align: center;
  /* Nothing may ever spill past the boards. */
  overflow: hidden;
}
/* Green cloth: cream foil, title centred, imprint at the foot. */
.book--green .book-face { color: #E7E4C6; --book-face-left: 16.6%; }
/* Bone cloth: green ink, inset plate up top. */
.book--bone .book-face { color: #2A3A22; --book-face-left: 18.2%; }

/* Block, not a flex item: as a column flex child the intrinsic height would
   win over aspect-ratio and the plate would burst the boards. */
.book-inset {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0 auto 9%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}
/* Everything on the cover is sized in cqw so the volume reads identically at
   card size and at hero size. */
.book-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 8cqw;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
.book-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-variant: small-caps;
  letter-spacing: 0.09em;
  font-size: 3cqw;
  line-height: 1.25;
  margin: 0.7em 0 0;
  opacity: 0.9;
  text-wrap: balance;
}
.book-flourish {
  font-size: 4cqw;
  line-height: 1;
  margin: 0.9em 0 0;
  opacity: 0.65;
}
/* Pinned to the foot of the boards, the way a publisher's imprint sits. */
.book-imprint {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 5%;
  margin: 0;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  font-size: 1.9cqw;
  line-height: 1.3;
  opacity: 0.7;
}
/* Long titles get a step down so they never crowd the boards. */
.book-title.is-long { font-size: 6.2cqw; }
.book-title.is-very-long { font-size: 5.1cqw; }
.book-face > .book-stack {
  margin: auto 0;
  width: 100%;
  display: block;
}
/* A cover carrying an inset plate stacks from the top instead of centring. */
.book-face:has(.book-inset) { justify-content: flex-start; }
.book-face:has(.book-inset) > .book-stack { margin: 0; }

/* ==========================================================================
   Homepage
   ========================================================================== */
.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-3xl);
  align-items: center;
}
.hero-copy { max-width: 34rem; }
.hero .kicker { display: inline-block; color: var(--color-accent); margin-bottom: var(--space-lg); }
.hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-lg);
  color: var(--color-ink);
  text-wrap: balance;
}
.hero .lede {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.52;
  color: var(--color-ink);
  margin: 0 0 var(--space-md);
  max-width: 46ch;
}
.hero p.detail {
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--color-ink-2);
  margin: 0 0 var(--space-xl);
  max-width: 50ch;
}
.nots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin: 0 0 var(--space-xl);
  padding: 0;
  list-style: none;
}
.nots li {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-ink-3);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.nots li::before {
  content: "";
  width: 6px; height: 6px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
}
.hero .close-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.4;
  color: var(--color-ink);
  margin: 0 0 var(--space-lg);
  max-width: 46ch;
  padding-left: var(--space-lg);
  border-left: 1px solid var(--color-accent);
}
.hero .meta { color: var(--color-ink-3); }

.hero-art { position: relative; }
.hero-art .book { container-type: inline-size; max-width: 30rem; margin-left: auto; }

/* ---------- Full-bleed section band — the inverted field ---------- */
.band {
  position: relative;
  background: var(--color-field);
  color: var(--color-field-ink);
  padding: var(--space-2xl) var(--space-xl);
  margin-top: var(--space-2xl);
  scroll-margin-top: 4rem;
  overflow: hidden;
}
/* A photograph fills the right of the band and dissolves left into the field,
   so the heading always sits on flat colour and never on the picture. */
.band-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(48%, 40rem);
  object-fit: cover;
  height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 62%);
  mask-image: linear-gradient(to right, transparent 0, #000 62%);
  opacity: 0.9;
  pointer-events: none;
}
html[data-theme="dark"] .band-art { opacity: 0.5; }
.band-inner {
  position: relative;
  z-index: 1;
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  min-height: 9rem;
}
.band .band-kicker {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  font-size: 0.64rem;
  color: var(--color-field-ink-2);
  display: block;
  margin-bottom: var(--space-md);
}
.band h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--color-field-ink);
}
.band .band-note {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--color-field-ink-2);
  margin: 0;
  max-width: 34ch;
}

/* ---------- Report grid ---------- */
.shelf {
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
}
.shelf-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--space-2xl) var(--space-xl);
}
.shelf-grid > li { min-width: 0; }
a.shelf-card { display: block; color: var(--color-ink); }
a.shelf-card .book {
  container-type: inline-size;
  transition: transform 320ms var(--ease-out);
  filter: drop-shadow(0 8px 24px rgba(28, 46, 25, 0.14));
}
a.shelf-card:hover .book { transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) { a.shelf-card:hover .book { transform: none; } }

a.shelf-card .card-meta {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-rule);
}
a.shelf-card .card-genres {
  display: block;
  color: var(--color-accent);
  font-size: 0.6rem;
  margin-bottom: var(--space-xs);
}
a.shelf-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: -0.008em;
  margin: 0 0 var(--space-2xs);
  color: var(--color-ink);
}
a.shelf-card .card-source {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--color-ink-2);
  margin: 0 0 var(--space-2xs);
}
a.shelf-card .card-line {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--color-ink-3);
  margin: 0;
}
a.shelf-card:hover h3 { color: var(--color-accent); }

.empty {
  padding: var(--space-2xl) 0;
  text-align: center;
  color: var(--color-ink-3);
  font-family: var(--font-display);
  font-style: italic;
}

/* ---------- About ---------- */
.about {
  max-width: var(--measure);
  margin: var(--space-2xl) auto 0;
  padding: var(--space-2xl) var(--space-xl);
  border-top: 1px solid var(--color-rule);
}
.about h2 { color: var(--color-ink-3); margin: 0 0 var(--space-md); }
.about p {
  font-size: 1.1rem;
  line-height: 1.62;
  color: var(--color-ink);
  max-width: 58ch;
  margin: 0 0 var(--space-md);
}
.about p.fine { font-size: 1rem; color: var(--color-ink-2); }

/* ==========================================================================
   Report pages
   ========================================================================== */
.titlecard, .column, .colophon {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

/* The report opens on its own bound volume. This field is a photographic
   set, not a themed surface — it holds the same deep green in both themes,
   tuned to the plate's own background so the photograph has no visible edge. */
.titlecard-field {
  background: #213024;
  color: #FBFADE;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
}
/* Feather the plate's outer margin into the field. The volume itself starts
   at 11.5% so it is never touched.

   On cream the plate's dark rectangle reads as a deliberate photograph and is
   left crisp; on the green paper of the dark theme it lands a few points off
   the page colour and reads as an unintended tile, so it gets feathered too. */
.titlecard-field .book-plate,
html[data-theme="dark"] .book-plate {
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.titlecard-field-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-3xl);
  align-items: center;
}
.titlecard-field .book { container-type: inline-size; max-width: 24rem; }
.titlecard-field .titlecard { max-width: none; padding: 0; }
.titlecard-field .titlecard .kicker { color: #C9D3B4; }
.titlecard-field .titlecard h1 { color: #FBFADE; }
.titlecard-field .titlecard .dek { color: #C9D3B4; }
.titlecard-field .titlecard .meta { color: #C9D3B4; }
.titlecard-field .titlecard .titlecard-rule { background: rgba(251, 250, 222, 0.34); }

.titlecard { padding-top: var(--space-3xl); padding-bottom: var(--space-xl); }
.titlecard .kicker { display: inline-block; color: var(--color-accent); margin-bottom: var(--space-lg); }
.titlecard h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-lg);
  color: var(--color-ink);
  text-wrap: balance;
}
.titlecard .dek {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.5;
  color: var(--color-ink-2);
  margin: 0 0 var(--space-lg);
  max-width: 52ch;
}
.titlecard .titlecard-rule {
  width: 56px; height: 1px;
  background: var(--color-accent);
  margin: var(--space-lg) 0;
}
.titlecard .meta { color: var(--color-ink-3); }
.titlecard .meta .dot { display: inline-block; margin: 0 var(--space-xs); opacity: 0.5; }

/* ---------- Reading column ---------- */
.column { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.column h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.014em;
  margin: var(--space-2xl) 0 var(--space-md);
  color: var(--color-ink);
  text-wrap: balance;
}
.column h2 + .h2-rule {
  width: 40px; height: 1px;
  background: var(--color-accent);
  margin: 0 0 var(--space-lg);
}
.column h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  line-height: 1.22;
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--color-ink);
}
.column p {
  margin: 0 0 var(--space-md);
  color: var(--color-ink);
  hanging-punctuation: first last;
}

.foreword { margin-bottom: var(--space-xl); }
.foreword p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  float: left;
  font-size: 3.6em;
  line-height: 0.78;
  padding: 0.06em 0.1em 0 0;
  color: var(--color-accent);
}

.section-kicker { display: block; color: var(--color-accent); margin-bottom: var(--space-sm); }

.theme { margin-top: var(--space-3xl); scroll-margin-top: 4.5rem; }
.theme:first-of-type { margin-top: var(--space-xl); }
.idea { margin-top: var(--space-xl); scroll-margin-top: 4.5rem; }
.idea .idea-kicker {
  display: block;
  color: var(--color-accent);
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.idea h3 { margin-top: 0; }

/* ---------- Contents ---------- */
.toc {
  margin: var(--space-2xl) 0;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
}
.toc h2 {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--color-ink-3);
  margin: 0 0 var(--space-md);
}
.toc ol, .toc ul { list-style: none; padding: 0; margin: 0; }
.toc > ol { counter-reset: toc; }
.toc > ol > li {
  counter-increment: toc;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: var(--space-md);
}
.toc > ol > li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.15em;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}
.toc a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--color-ink);
  border-bottom: 1px solid transparent;
}
.toc a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.toc ul { margin-top: var(--space-xs); }
.toc ul li { margin-bottom: var(--space-2xs); }
.toc ul li a {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.96rem;
  color: var(--color-ink-2);
}

/* ---------- Document map ---------- */
.docmap { list-style: none; padding: 0; margin: var(--space-md) 0 0; counter-reset: dm; }
.docmap li {
  counter-increment: dm;
  border-top: 1px solid var(--color-rule);
  padding: var(--space-md) 0 var(--space-md) var(--space-2xl);
  position: relative;
}
.docmap li:last-child { border-bottom: 1px solid var(--color-rule); }
.docmap li::before {
  content: counter(dm, decimal-leading-zero);
  position: absolute;
  left: 0; top: calc(var(--space-md) + 0.2em);
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  font-weight: 600;
}
.docmap .term {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-ink);
  letter-spacing: -0.005em;
}
.docmap .greek {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--color-ink-3);
  font-size: 0.95rem;
}
.docmap .gloss { display: block; color: var(--color-ink-2); font-size: 1rem; line-height: 1.55; margin-top: var(--space-2xs); }

/* ---------- Plain-terms box ---------- */
.plain-terms {
  margin: var(--space-md) 0 var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent-soft);
  border-radius: var(--radius-card);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-ink);
}
.plain-terms .label { color: var(--color-accent); margin-right: var(--space-xs); }

/* ---------- Voice blocks ---------- */
.voices { margin: var(--space-lg) 0 var(--space-xl); }
.voice {
  border-left: 1px solid var(--color-rule);
  padding: 0 0 0 var(--space-lg);
  margin-bottom: var(--space-lg);
}
.voice:last-child { margin-bottom: 0; }
.voice-label { display: block; color: var(--color-accent); margin-bottom: var(--space-xs); }
.voice p { font-size: 1rem; line-height: 1.6; color: var(--color-ink-2); margin: 0 0 var(--space-sm); }
.voice p:last-child { margin-bottom: 0; }
.voice ul { margin: 0 0 var(--space-sm); padding-left: 1.1rem; }
.voice ul li { font-size: 1rem; line-height: 1.6; color: var(--color-ink-2); margin-bottom: var(--space-2xs); }

.voice.voice-practice,
.voice.voice-counter,
.story-context,
.sharpest .open-prompt,
.use-line {
  background: var(--color-accent-soft);
  border-left: 1px solid var(--color-accent);
  border-radius: var(--radius-card);
  padding: var(--space-md) var(--space-lg);
}
.voice.voice-practice + .voice { margin-top: var(--space-lg); }

.story-context { margin: var(--space-lg) 0; }
.story-context .label { display: block; color: var(--color-accent); margin-bottom: var(--space-xs); }
.story-context p { font-size: 1rem; line-height: 1.6; color: var(--color-ink-2); margin: 0 0 var(--space-sm); }
.story-context p:last-child { margin-bottom: 0; }

.use-line { margin: var(--space-md) 0 var(--space-lg); font-size: 1rem; line-height: 1.6; color: var(--color-ink-2); }
.use-line .arrow { color: var(--color-accent); font-weight: 600; margin-right: var(--space-xs); }

.lines-list { list-style: none; padding: 0; margin: var(--space-md) 0 var(--space-lg); }
.lines-list li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--color-ink-2);
}
.lines-list li:last-child { margin-bottom: 0; }
.lines-list li::before {
  content: "—";
  position: absolute;
  left: 0; top: 0;
  color: var(--color-accent);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  line-height: 1.9;
}

/* ---------- Pull quote ---------- */
blockquote.pull {
  margin: var(--space-xl) 0 var(--space-lg);
  padding: var(--space-lg) 0 0;
  border: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.36;
  color: var(--color-ink);
  position: relative;
}
blockquote.pull::before {
  content: "";
  display: block;
  width: 40px; height: 1px;
  background: var(--color-accent);
  margin-bottom: var(--space-lg);
}
blockquote.pull cite {
  display: block;
  margin-top: var(--space-md);
  font-family: var(--font-ui);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  font-size: 0.66rem;
  color: var(--color-ink-3);
}

/* ---------- Closing sections ---------- */
.sharpest { margin-top: var(--space-3xl); }
.sharpest h2 { margin-top: 0; }
.sharpest .open-prompt { margin-top: var(--space-lg); }
.sharpest .open-prompt .label { display: block; color: var(--color-accent); margin-bottom: var(--space-xs); }

.launchpad { margin-top: var(--space-3xl); }
.launchpad h2 { margin-top: 0; }
.launchpad h3 {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--color-ink-3);
  margin: var(--space-xl) 0 var(--space-sm);
  font-style: normal;
}
.launchpad ol.numbered { list-style: none; padding: 0; margin: 0; counter-reset: lp; }
.launchpad ol.numbered li {
  counter-increment: lp;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: var(--space-lg);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--color-ink-2);
}
.launchpad ol.numbered li:last-child { margin-bottom: 0; }
.launchpad ol.numbered li b { color: var(--color-ink); font-weight: 600; }
.launchpad ol.numbered li::before {
  content: counter(lp, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.15em;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.library { margin-top: var(--space-3xl); }
.library h2 { margin-top: 0; }
.library ul { list-style: none; padding: 0; margin: var(--space-md) 0 0; }
.library li {
  border-top: 1px solid var(--color-rule);
  padding: var(--space-md) 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink-2);
}
.library li:last-child { border-bottom: 1px solid var(--color-rule); }
.library li b { color: var(--color-ink); font-weight: 600; }

/* ---------- Colophon ---------- */
.colophon {
  border-top: 1px solid var(--color-rule);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
  margin-top: var(--space-3xl);
  max-width: none;
}
.colophon-inner { max-width: var(--measure); margin: 0 auto; text-align: center; }
.colophon .mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--color-ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
  margin-bottom: var(--space-md);
}
.colophon .mark .wm-rule { display: none; }
.colophon .mark .wm-tag {
  font-family: var(--font-ui);
  font-style: normal;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--color-accent);
  font-size: 0.92rem;
}
.colophon .statement {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--color-ink-2);
  line-height: 1.45;
  max-width: 46ch;
  margin: 0 auto var(--space-xl);
}
.colophon .meta { color: var(--color-ink-3); }
.colophon .meta .dot { display: inline-block; margin: 0 var(--space-xs); opacity: 0.5; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hero-art .book { max-width: 22rem; margin: 0 auto; }
  .titlecard-field-inner { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .titlecard-field .book { max-width: 17rem; margin: 0 auto; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .masthead-inner { padding: var(--space-xs) var(--space-md); }
  .masthead-nav { gap: var(--space-md); }
  .masthead-nav a { font-size: 0.6rem; letter-spacing: 0.08em; }
  .wordmark { font-size: 1.25rem; }
  .hero { padding: var(--space-2xl) var(--space-md) var(--space-xl); }
  .band { padding: var(--space-xl) var(--space-md); }
  .shelf { padding: var(--space-xl) var(--space-md); }
  /* Two up, always — auto-fill drops to a single column at 390px and turns
     the shelf into a mile of scrolling. */
  .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-md); }
  a.shelf-card h3 { font-size: 1rem; }
  a.shelf-card .card-source { font-size: 0.85rem; }
  .about { padding: var(--space-xl) var(--space-md); }
  .titlecard, .column, .colophon { padding-left: var(--space-md); padding-right: var(--space-md); }
  .titlecard-field { padding: var(--space-2xl) var(--space-md) var(--space-xl); }
  .hero .close-line { padding-left: var(--space-md); }
  .voice { padding-left: var(--space-md); }
  .voice.voice-practice, .voice.voice-counter, .story-context, .sharpest .open-prompt, .use-line {
    padding: var(--space-sm) var(--space-md);
  }
}

/* Below this the shelf links no longer fit beside the wordmark. Both shelves
   are a scroll away on a single-column page, so the links stand down and the
   theme toggle keeps its place. */
@media (max-width: 520px) {
  .masthead-nav a { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .masthead, .theme-toggle, .scroll-rule, .masthead-nav { display: none !important; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .titlecard-field, .band { background: #fff !important; color: #111 !important; }
  .titlecard-field .titlecard h1, .band h2 { color: #111 !important; }
  .theme, .idea, .sharpest, .launchpad, .library { break-inside: avoid-page; }
  a { text-decoration: none; color: #111; }
}
