/* ============================================================================
   Vera — single stylesheet
   Hand-written per extended-masters deliberation 2026-06-09.

   Discipline (masters-locked, R8 register-lock):
   - Cream-and-near-black literary austerity, pitched between Sebald and Master 8 P.
   - Two cream temperatures: cool on home, warm on pavilion. ~2-3 hex shift.
   - Brick-red appears exactly ONCE on the entire site (vitrine XIII sentence).
   - Typography does all the work. Lora SemiBold for two display marks only.
   - Georgia for everything else. Body renders Georgia from frame zero (no FOUT).
   - No box-shadow, no border-radius above 0, no gradients, no transforms.
   - No transitions except link opacity at 120ms.
   - scroll-behavior: auto (NOT smooth — Master 2 C guards anchor-jump stability).
   ============================================================================ */

:root {
  /* Color palette — three operational values + one cool-shift variant */
  --vera-cream-cool: #EAE2CA;     /* home page ground */
  --vera-cream-warm: #E8DFC8;     /* pavilion ground (matches book interior cream) */
  --vera-ink:        #1F1A14;     /* type, links, arrows; warm near-black */
  --vera-grief:      #692118;     /* vitrine XIII sentence ONLY + og-image */

  /* Link discipline — rest opacity raised from 0.6 to 0.78 to clear WCAG AA */
  --vera-link-opacity-rest: 0.78;
  --vera-link-opacity-hover: 1.0;
  --vera-transition: 120ms;

  /* Typographic discipline */
  --max-prose-width: 640px;
  --max-chart-width: 800px;
  --body-size: 19px;
  --body-line: 1.55;

  /* Typography (v3): Lora is now reserved for the cover image's own baked-in
     title-mark — Georgia carries all web prose. Display register is Georgia
     at larger weight/size, not a separate font family. */
  --display-font: 'Georgia', serif;
  --body-font:    'Georgia', serif;
}

/* ----------------------------------------------------------------------------
   Reset (minimal — only what we need)
   ---------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* Skip-link — keyboard accessibility (Leatherman v3-improvement) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--vera-ink);
  color: var(--vera-cream-cool);
  text-decoration: none;
  z-index: 100;
  font-family: var(--body-font);
  font-size: 16px;
  outline: 2px solid var(--vera-cream-cool);
  outline-offset: 2px;
}
html { scroll-behavior: auto; }   /* Master 2 C guard — instant anchor jumps */
img { max-width: 100%; height: auto; display: block; }

/* ----------------------------------------------------------------------------
   Page grounds — page-scoped via body class
   ---------------------------------------------------------------------------- */

body {
  font-family: var(--body-font);
  font-size: var(--body-size);
  line-height: var(--body-line);
  color: var(--vera-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.home   { background-color: var(--vera-cream-cool); }
body.method { background-color: var(--vera-cream-warm); }
body.doc    { background-color: var(--vera-cream-warm); }

/* ----------------------------------------------------------------------------
   Typography
   ---------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  margin: 0;
}

/* Display register — page titles on /method, /read indexes, and primary documents.
   v3: the home page no longer carries a 72px VERA wordmark; the cover image carries
   the title. Display marks elsewhere use Georgia bold at size, not Lora SemiBold. */
.display-mark {
  font-family: var(--display-font);
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
}

.display-mark.pavilion { font-size: 48px; text-align: left; }

@media (max-width: 600px) {
  .display-mark.pavilion { font-size: 36px; }
}

/* Body prose */
p {
  margin: 0 0 1em 0;
}

p:last-child {
  margin-bottom: 0;
}

/* Vitrine titles (Georgia 24px italic) */
.vitrine-title {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 1.2em 0;
}

@media (max-width: 600px) {
  .vitrine-title { font-size: 22px; }
}

/* Disclosure line directly under masthead */
.disclosure {
  font-family: var(--body-font);
  font-size: var(--body-size);
  line-height: var(--body-line);
  margin: 0.5em 0 2em 0;
}

/* Pavilion colophon — Georgia 17px italic, 0.7 opacity */
.colophon {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  opacity: 0.7;
}

/* Vitrine caption (Master 6 P narrative under chart) — 17px italic 0.85 opacity */
.vitrine-caption {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  opacity: 0.85;
  margin: 0.8em 0 1.5em 0;
}

/* Master signature (vitrine V) — 17px italic 0.7 opacity */
.master-tag {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  opacity: 0.7;
}

/* ----------------------------------------------------------------------------
   Links — single transition rule
   ---------------------------------------------------------------------------- */

a {
  color: var(--vera-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  opacity: var(--vera-link-opacity-rest);
  transition: opacity var(--vera-transition) linear;
}

a:hover,
a:focus {
  opacity: var(--vera-link-opacity-hover);
}

a:focus-visible {
  outline: 2px solid var(--vera-ink);
  outline-offset: 4px;
}

/* ----------------------------------------------------------------------------
   Home page (v3 — page zero of the book)
   ----------------------------------------------------------------------------
   Composition top-to-bottom: cover → opening line → date-stack band →
   disclosure → Continue arrow → secondary nav → colophon footnote.
   No 72px VERA wordmark (the cover carries the title-mark). No 300-word
   placeholder. Three above-fold events locked: see cover → hear opening
   line → read geography. */

body.home {
  background-color: var(--vera-cream-cool);
}

body.home .home-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem 2rem;
  text-align: center;
}

@media (max-width: 600px) {
  body.home .home-shell {
    padding: 1.5rem 1rem 3rem 1rem;
  }
}

/* (1) Cover — 400px desktop, full-width-minus-32px mobile */
body.home .home-cover {
  display: block;
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
}

body.home .home-cover img {
  display: block;
  width: 100%;
  height: auto;
  /* Hairline trace — barely-perceptible edge that defines object on cream
     ground without framing it (v3-improvement panel ratification) */
  border: 1px solid rgba(31, 26, 20, 0.08);
}

@media (max-width: 600px) {
  body.home .home-cover {
    max-width: calc(100vw - 2rem);
  }
}

/* (2) Opening line — "You are running" — Georgia 38px desktop / 32px mobile */
body.home .home-opening {
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.2;
  color: var(--vera-ink);
  text-align: center;
  margin: 80px auto 60px auto;
  letter-spacing: 0;
}

@media (max-width: 600px) {
  body.home .home-opening {
    font-size: 32px;
    margin: 60px auto 40px auto;
  }
}

/* (3) Date-stack band — recede per v3-improvement panel: smaller, quieter,
       slightly wider letter-spacing so it reads as whispered coordinate-line */
body.home .home-datestack {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.65;
  text-align: center;
  letter-spacing: 0.03em;
  margin: 0 auto 2.5rem auto;
}

body.home .home-datestack span[lang] {
  font-family: inherit;
}

@media (max-width: 600px) {
  body.home .home-datestack {
    font-size: 15px;
    margin-bottom: 2rem;
  }
}

/* (4) Disclosure — Georgia 17px (smaller than v2's 19px) */
body.home .home-disclosure {
  font-family: var(--body-font);
  font-size: 17px;
  line-height: var(--body-line);
  text-align: center;
  margin: 2rem auto 0 auto;
  max-width: 520px;
  opacity: 0.85;
}

@media (max-width: 600px) {
  body.home .home-disclosure {
    font-size: 16px;
  }
}

/* (5) Continue → arrow — single primary affordance */
body.home .home-arrow-wrap {
  margin: 3rem auto 0 auto;
  text-align: center;
}

body.home .home-arrow {
  font-family: var(--body-font);
  font-size: 22px;
  line-height: 1.4;
  color: var(--vera-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  opacity: 0.85;
  display: inline-block;
}

body.home .home-arrow:hover,
body.home .home-arrow:focus {
  opacity: 1;
}

@media (max-width: 600px) {
  body.home .home-arrow { font-size: 20px; }
}

/* (6) Secondary nav — quiet footer band */
body.home .home-secondary {
  margin: 3.5rem auto 0 auto;
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  opacity: 0.78;
}

body.home .home-secondary a {
  color: var(--vera-ink);
}

body.home .home-secondary .sep {
  margin: 0 0.5em;
  opacity: 0.6;
}

@media (max-width: 600px) {
  body.home .home-secondary {
    font-size: 15px;
  }
  body.home .home-secondary .sep {
    display: none;
  }
  body.home .home-secondary a {
    display: block;
    margin: 0.4em 0;
  }
}

/* (7) Storefront — own line, smaller and quieter than secondary nav (v3.3
   closing panel: the storefront acquisition link sits below the apparatus
   nav at its own quieter register, acknowledging acquisition without
   ranking it co-equal with methodology and companion materials). */
body.home .home-storefront {
  margin: 1.25rem auto 0 auto;
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  opacity: 0.62;
}
body.home .home-storefront a {
  color: var(--vera-ink);
}
@media (max-width: 600px) {
  body.home .home-storefront { font-size: 13px; }
}

/* (8) Colophon footnote REMOVED at v3.1 polish pass (R3 retraction of the
   layered-access R1 idea — "On method" in the secondary nav carries the
   full burden). Rules dropped 2026-06-09; held in git history. */

/* ----------------------------------------------------------------------------
   Cover thumbnails on /read/ index and /companion/ index
   ---------------------------------------------------------------------------- */

.read-cover-thumb,
.companion-cover-thumb {
  display: block;
  width: 160px;
  height: auto;
  margin: 0 0 2rem 0;
}

@media (max-width: 600px) {
  .read-cover-thumb,
  .companion-cover-thumb {
    width: 120px;
  }
}

/* ----------------------------------------------------------------------------
   Cover feature on /method/ pavilion (600px archive-scale)
   ---------------------------------------------------------------------------- */

.method-cover-feature {
  display: block;
  margin: 2rem auto;
  max-width: 600px;
  width: 100%;
  height: auto;
}

.method-cover-caption {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  opacity: 0.78;
  text-align: center;
  margin: 0 auto 3rem auto;
  max-width: var(--max-prose-width);
}

/* ----------------------------------------------------------------------------
   Pavilion layout — single vertical scroll
   ---------------------------------------------------------------------------- */

body.method .pavilion {
  max-width: var(--max-prose-width);
  margin: 0 auto;
  padding: 4rem 2rem 6rem 2rem;
}

body.method .pavilion > header {
  margin-bottom: 4rem;
}

body.method .vitrine {
  margin-bottom: 4rem;
  scroll-margin-top: 3.5rem;   /* anchor-jump breathing room; clears the sticky .site-nav */
}

body.method .vitrine:last-of-type {
  margin-bottom: 5rem;
}

/* Vitrine I — centered triple */
body.method .vitrine-i {
  text-align: center;
  margin-bottom: 5rem;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.method .vitrine-i p {
  font-style: italic;
  font-size: 24px;
  line-height: 1.6;
  margin: 0.2em 0;
}

@media (max-width: 600px) {
  body.method .vitrine-i p { font-size: 22px; }
}

/* Vitrine V — masters list */
.masters-list {
  list-style: none;
  padding: 0;
  margin: 1.5em 0 0 0;
}

.masters-list li {
  margin: 0 0 1.6em 0;
}

.master-name {
  font-family: var(--body-font);
  font-size: var(--body-size);
  font-weight: normal;
  margin: 0;
}

.master-signature {
  font-family: var(--body-font);
  font-style: italic;
  font-size: var(--body-size);
  margin: 0.2em 0 0 0;
}

/* Vitrine XIII — the brick-red sentence */
.brick-red-sentence {
  color: var(--vera-grief);
  font-family: var(--body-font);
  font-size: 24px;
  line-height: 1.6;
  text-align: center;
  margin: 4rem auto;
  max-width: var(--max-prose-width);
}

@media (max-width: 600px) {
  .brick-red-sentence { font-size: 22px; margin: 3rem auto; }
}

/* Chart and SVG figures */
figure {
  margin: 1.5em 0;
  padding: 0;
}

figure.chart img,
figure.diagram svg,
figure.diagram img {
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

figure.chart {
  max-width: var(--max-chart-width);
  margin: 1.5em auto;
}

figcaption {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  opacity: 0.85;
  margin: 0.8em 0 0 0;
  max-width: var(--max-prose-width);
}

/* Primary documents block at pavilion foot */
.primary-documents {
  margin-top: 5rem;
  border-top: 1px solid var(--vera-ink);
  padding-top: 2.5rem;
}

.primary-documents h2 {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 1.2em 0;
}

.primary-documents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-documents li {
  margin: 0 0 0.8em 0;
  font-family: var(--body-font);
  font-size: var(--body-size);
  line-height: 1.5;
}

.primary-documents .doc-name {
  font-style: normal;
}

.primary-documents .doc-version {
  font-style: italic;
  opacity: 0.85;
}

.primary-documents .doc-links {
  font-style: normal;
}

.primary-documents .doc-links a {
  margin-left: 0.6em;
}

/* Pavilion colophon-at-foot */
.pavilion-colophon {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(31, 26, 20, 0.3);
}

.pavilion-colophon p {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.7;
  margin: 0;
}

/* Back link */
.back-link {
  margin-top: 3rem;
  font-size: var(--body-size);
}

/* ----------------------------------------------------------------------------
   Primary documents layout (rendered .md files)
   ---------------------------------------------------------------------------- */

body.doc .doc-shell {
  max-width: var(--max-prose-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem 2rem;
}

body.doc .doc-shell.wide {
  max-width: var(--max-chart-width);
}

body.doc .doc-back-link {
  margin: 0 0 3rem 0;
}

body.doc h1 {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 0.5em 0;
}

body.doc h2 {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 24px;
  line-height: 1.3;
  margin: 2em 0 0.8em 0;
}

body.doc h3 {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 21px;
  line-height: 1.3;
  margin: 1.6em 0 0.6em 0;
}

body.doc h4 {
  font-family: var(--body-font);
  font-weight: bold;
  font-size: var(--body-size);
  line-height: 1.3;
  margin: 1.4em 0 0.4em 0;
}

body.doc p {
  font-size: var(--body-size);
  line-height: var(--body-line);
  margin: 0 0 1em 0;
}

body.doc ul, body.doc ol {
  font-size: var(--body-size);
  line-height: var(--body-line);
  margin: 0 0 1em 0;
  padding-left: 1.5em;
}

body.doc li {
  margin: 0 0 0.4em 0;
}

body.doc blockquote {
  margin: 1em 0;
  padding-left: 1.2em;
  border-left: 2px solid rgba(31, 26, 20, 0.3);
  font-style: italic;
}

body.doc code {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
  font-size: 0.9em;
  background: rgba(31, 26, 20, 0.07);
  padding: 0.1em 0.3em;
  border-radius: 0;
}

body.doc pre {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
  font-size: 14px;
  line-height: 1.5;
  background: rgba(31, 26, 20, 0.07);
  padding: 1em;
  overflow-x: auto;
  border-radius: 0;
  margin: 1em 0;
}

body.doc pre code {
  background: none;
  padding: 0;
}

body.doc table {
  border-collapse: collapse;
  margin: 1em 0;
  font-size: var(--body-size);
}

body.doc th, body.doc td {
  text-align: left;
  padding: 0.5em 0.8em;
  border-bottom: 1px solid rgba(31, 26, 20, 0.2);
}

body.doc th {
  font-weight: bold;
}

body.doc hr {
  border: 0;
  border-top: 1px solid rgba(31, 26, 20, 0.3);
  margin: 2em 0;
}

body.doc strong { font-weight: bold; }
body.doc em { font-style: italic; }

/* Anchor-friendly heading IDs — invisible link icon on hover */
body.doc h1[id]:hover::after,
body.doc h2[id]:hover::after,
body.doc h3[id]:hover::after,
body.doc h4[id]:hover::after {
  content: " §";
  opacity: 0.3;
}

body.doc img {
  margin: 1.5em auto;
  max-width: 100%;
}

/* ----------------------------------------------------------------------------
   Editorial reset — kill any browser default that violates the discipline
   ---------------------------------------------------------------------------- */

button, input, select, textarea { font-family: inherit; }

::selection { background: var(--vera-ink); color: var(--vera-cream-warm); }

/* Reduced-motion safety net (site has no animation anyway) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}

/* ----------------------------------------------------------------------------
   v3-improvement panel additions (Chat 49 two-stream)
   ---------------------------------------------------------------------------- */

/* Prologue Shevchenko source-note recedes into footnote register, lets the
   "Verify the columns" body-prose carry the reader's first encounter */
body.read .prologue-source-note {
  font-size: 0.82em;
  opacity: 0.72;
  max-width: 32em;
  margin: 0 auto 1.8em auto;
  text-align: center;
  line-height: 1.5;
}

/* /read/ offering paragraph — surfaces the chapter-by-chapter vs single-scroll
   choice at the moment of choosing, not buried at footer */
body.read.index .read-offering {
  font-size: 1.05em;
  text-align: center;
  max-width: 32em;
  margin: 0 auto 2.5em auto;
  font-style: normal;
  opacity: 0.92;
}

/* Book IV "out of time" gloss — small italic register */
body.read.index .book-out-of-time,
body.read .book-out-of-time {
  font-style: italic;
  opacity: 0.72;
  font-size: 0.9em;
}

/* Focus-visible for keyboard users on the home Continue arrow */
body.home .home-arrow:focus-visible {
  outline: 2px solid var(--vera-ink);
  outline-offset: 4px;
}

/* ----------------------------------------------------------------------------
   Site top-nav — sticky CSS-only wayfinding bar (method + companion + about).
   The long pages whose only escape was the foot. All three grounds are warm
   cream, so one background token serves them. Data-ink only: type + one hairline.
   No box, no fill, no shadow, no radius. Mirrors the .read-breadcrumb register.
   ---------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;                                     /* below .skip-link (z-index:100) */
  background: var(--vera-cream-warm);              /* opaque hex — no bleed-through */
  border-bottom: 1px solid rgba(31, 26, 20, 0.15); /* --vera-ink low alpha; the only seam */
  font-family: var(--body-font);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  padding: 0.7rem 1.5rem;
  margin: 0;
}
.site-nav a {
  color: var(--vera-ink);
  text-decoration: none;
  opacity: var(--vera-link-opacity-rest);
}
.site-nav a:hover,
.site-nav a:focus {
  opacity: var(--vera-link-opacity-hover);
}
.site-nav [aria-current="page"] {
  opacity: 1;
}
.site-nav .sep {
  margin: 0 0.5em;
  opacity: 0.4;
}

/* Keep anchor jumps (incl. the skip-link #continue target) clear of the ~44px bar. */
body.method .pavilion,
body.companion .companion-shell,
body.about .about-shell { scroll-margin-top: 3.5rem; }
body.companion .companion-section { scroll-margin-top: 3.5rem; }

@media (max-width: 600px) {
  .site-nav { font-size: 15px; padding: 0.6rem 1.25rem; }
  .site-nav .sep { display: none; }
}

/* ----------------------------------------------------------------------------
   About page — author section, mirroring the Exposures /about/ register.
   ---------------------------------------------------------------------------- */
body.about { background-color: var(--vera-cream-warm); }
.about-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 3.5rem 2rem 6rem 2rem;
}
.about-kicker {
  font-family: var(--body-font);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  text-align: center;
  margin: 0 0 0.6rem 0;
}
.about-name {
  font-family: var(--body-font);
  font-style: italic;
  font-weight: normal;
  font-size: 32px;
  text-align: center;
  color: var(--vera-ink);
  margin: 0 0 2.6rem 0;
}
.about-bio p {
  font-family: var(--body-font);
  font-size: 19px;
  line-height: 1.7;
  color: var(--vera-ink);
  margin: 0 0 1.4rem 0;
}
.about-links { margin-top: 2.8rem; }
.about-links h2 {
  font-family: var(--body-font);
  font-style: italic;
  font-weight: normal;
  font-size: 20px;
  opacity: 0.85;
  margin: 0 0 0.9rem 0;
}
.about-links .link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-links .link-list li {
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.95;
}
.about-links .link-list a {
  color: var(--vera-ink);
  text-decoration: none;
  opacity: var(--vera-link-opacity-rest);
}
.about-links .link-list a:hover,
.about-links .link-list a:focus {
  opacity: var(--vera-link-opacity-hover);
}
.about-links .link-note {
  opacity: 0.55;
  font-style: italic;
}

/* Read-aloud floor — the optional machine narration; secondary to the text. */
body.read .listen { margin: 0 0 2rem 0; font-family: var(--body-font); }
body.read .listen > summary { font-style: italic; font-size: 16px; opacity: var(--vera-link-opacity-rest); cursor: pointer; }
body.read .listen > summary:hover { opacity: 1; }
body.read .listen > summary:focus-visible { outline: 2px solid var(--vera-ink); outline-offset: 3px; }
body.read .listen .listen-note { font-size: 14px; font-style: italic; opacity: 0.6; margin: 0.6rem 0 0.5rem 0; line-height: 1.5; }
body.read .listen audio { width: 100%; max-width: 420px; margin: 0.2rem 0 0.4rem 0; }

/* Print — pavilion as a clean printed artifact */
@media print {
  body { background: white; color: black; }
  a { color: black; opacity: 1; text-decoration: underline; }
  .back-link, .doc-back-link, .read-nav, .read-breadcrumb, .skip-link, .site-nav, .listen { display: none; }
}

/* ============================================================================
   READING INTERFACE (v2 pivot — full manuscript on site)
   ============================================================================ */

body.read {
  background-color: var(--vera-cream-warm);
}

body.read .read-shell {
  max-width: var(--max-prose-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem 1.5rem;
}

body.read .read-breadcrumb {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.7;
  margin: 0 0 3rem 0;
}

body.read .read-breadcrumb a { font-style: italic; }

body.read .read-section-mark {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.6;
  margin: 0 0 0.5em 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.read h1.chapter-title {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 3rem 0;
}

@media (max-width: 600px) {
  body.read h1.chapter-title { font-size: 26px; margin-bottom: 2rem; }
  body.read .read-shell { padding: 2rem 1.25rem 4rem 1.25rem; }
}

body.read article p {
  font-family: var(--body-font);
  font-size: 19px;
  line-height: 1.7;
  margin: 0 0 1.2em 0;
}

body.read article p:first-of-type::first-letter {
  /* No drop cap — masters discipline says no ornament. Plain prose. */
}

body.read article em { font-style: italic; }
body.read article strong { font-weight: bold; }

/* Section breaks: --- in source render as horizontal rule */
body.read article hr {
  border: 0;
  margin: 2em auto;
  width: 4em;
  text-align: center;
}

body.read article hr::before {
  content: '· · ·';
  font-family: var(--body-font);
  font-size: 19px;
  opacity: 0.6;
  letter-spacing: 0.5em;
}

/* Italic block quotes for italicized scene markers like "Keep your face still." */
body.read article blockquote {
  margin: 1.5em 0;
  padding-left: 1.2em;
  border-left: 2px solid rgba(31, 26, 20, 0.25);
  font-style: italic;
}

/* Bottom navigation: prev | book index | next */
body.read .read-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(31, 26, 20, 0.25);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  font-size: 18px;
}

body.read .read-nav .nav-prev { text-align: left; }
body.read .read-nav .nav-up { text-align: center; }
body.read .read-nav .nav-next { text-align: right; }

body.read .read-nav .nav-empty { visibility: hidden; }

@media (max-width: 600px) {
  body.read .read-nav {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    text-align: center;
  }
  body.read .read-nav .nav-prev,
  body.read .read-nav .nav-up,
  body.read .read-nav .nav-next { text-align: center; }
}

/* Reading index pages — TOC for the whole book and per-book */

body.read.index .read-shell {
  max-width: 760px;
}

body.read.index h1.read-title {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 56px;
  line-height: 1.1;
  text-align: center;
  margin: 1rem 0 0.5rem 0;
}

@media (max-width: 600px) {
  body.read.index h1.read-title { font-size: 42px; }
}

body.read.index .read-subtitle {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 19px;
  text-align: center;
  opacity: 0.75;
  margin: 0 0 4rem 0;
}

body.read.index .toc {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.read.index .toc-group {
  margin-bottom: 3rem;
}

body.read.index .toc-group-label {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 16px;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem 0;
}

body.read.index .toc-book-title {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
}

body.read.index .toc-book-title a {
  text-decoration: none;
  opacity: 1;
}

body.read.index .toc-book-title a:hover {
  text-decoration: underline;
}

body.read.index .toc-chapters {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0 0;
  border-left: 1px solid rgba(31, 26, 20, 0.2);
}

body.read.index .toc-chapter {
  padding: 0.3em 0 0.3em 1em;
}

body.read.index .toc-chapter a {
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.5;
  opacity: 0.85;
}

body.read.index .toc-chapter .toc-chapter-num {
  font-family: var(--body-font);
  font-style: italic;
  opacity: 0.6;
  margin-right: 0.5em;
}

body.read.index .toc-incipit {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.55;
  margin: 0.2em 0 0 0;
  padding-left: calc(1em + 1.5em);
}

body.read.index .toc-standalone {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  padding: 0.5em 0;
}

body.read.index .toc-actions {
  margin: 4rem 0 0 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(31, 26, 20, 0.25);
  text-align: center;
  font-size: 18px;
}

body.read.index .toc-actions a { margin: 0 1.5em; }

/* Continuous / single-page complete reading mode */
body.read.complete .read-shell {
  max-width: var(--max-prose-width);
}

body.read.complete h2.book-divider {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  text-align: center;
  margin: 6rem 0 4rem 0;
  padding-top: 4rem;
  border-top: 1px solid rgba(31, 26, 20, 0.2);
}

body.read.complete h3.chapter-divider {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.3;
  margin: 4rem 0 2rem 0;
  text-align: center;
}

body.read.complete .scroll-warning {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 16px;
  opacity: 0.65;
  text-align: center;
  margin: 1rem 0 3rem 0;
}

/* ============================================================================
   COMPANION GALLERY (v2 — third-party materials)
   ============================================================================ */

body.companion {
  background-color: var(--vera-cream-warm);
}

body.companion .companion-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem 1.5rem;
}

body.companion h1.companion-title {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  text-align: left;
  margin: 0 0 0.5rem 0;
}

@media (max-width: 600px) {
  body.companion h1.companion-title { font-size: 36px; }
}

body.companion .companion-disclosure {
  font-family: var(--body-font);
  font-size: var(--body-size);
  line-height: var(--body-line);
  margin: 0 0 4rem 0;
}

body.companion .companion-section {
  margin-bottom: 5rem;
}

body.companion .companion-section-title {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 1.5rem 0;
}

body.companion .companion-section-intro {
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0 0 2rem 0;
  max-width: var(--max-prose-width);
}

body.companion .companion-item {
  margin-bottom: 4rem;
}

body.companion .companion-item-title {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
}

body.companion .companion-item-caption {
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.75;
  margin: 0 0 1.5rem 0;
}

body.companion .companion-item-image img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(31, 26, 20, 0.15);
}

body.companion .companion-item-audio {
  margin: 1.5rem 0;
}

body.companion .companion-item-audio audio {
  width: 100%;
  max-width: 600px;
}

body.companion .companion-item-link a {
  font-family: var(--body-font);
  font-size: 19px;
  line-height: 1.5;
}

body.companion .companion-attribution {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.65;
  margin: 0.5rem 0 0 0;
}

body.companion .companion-foot {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(31, 26, 20, 0.25);
  font-size: 18px;
}
