@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Playfair+Display:ital,wght@0,500;1,600&display=swap');

/* ============================================================
   Gray Christie — site styles
   Direction: classic-computing minimalism (Engelbart-adjacent).
   Mono for the "chrome" (nav, labels, metadata), a warm serif for
   reading. Warm paper, near-black ink, hairline rules. No fluff.
   ============================================================ */

:root {
  --paper:  #ffffff;   /* white */
  --ink:    #1c1b18;   /* near-black */
  --faint:  #6c675c;   /* muted metadata */
  --rule:   #d7d1c3;   /* hairline borders */
  --accent: #9c4a1a;   /* rust/amber — Apple Press */
  --hl:     #f0e4c6;   /* jump-to highlight flash */
  --paper-2:#f2f2f0;   /* faint hover fill */

  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --serif: "EB Garamond", "Iowan Old Style", Palatino, Georgia, "Times New Roman", serif;

  --measure: 40rem;    /* reading width */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

/* ---- top bar --------------------------------------------------- */
.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.topbar .sig { text-decoration: none; font-weight: 600; letter-spacing: 0.03em; }
.topbar .sig:hover { color: var(--accent); }
.topbar nav a { margin-left: 1.1rem; text-decoration: none; color: var(--faint); }
.topbar nav a:hover { color: var(--ink); }
.crumb { color: var(--faint); }

/* ---- generic page frame --------------------------------------- */
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.4rem; }

.lede {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: var(--measure);
  color: var(--ink);
}

.label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.placeholder-note {
  font-size: 0.72rem;
  color: var(--faint);
  border: 1px dashed var(--rule);
  padding: 0.5rem 0.7rem;
  margin: 1.4rem 0;
}

/* ============================================================
   LANDING — panel index
   ============================================================ */
.masthead { padding: 3.4rem 0 2.2rem; }
.masthead h1 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.01em;
  margin: 0 0 0.6rem;
}
.masthead .sub { color: var(--faint); max-width: var(--measure); font-size: 0.9rem; }

.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--rule);            /* gap lines */
  border: 1px solid var(--rule);
  margin: 1.5rem 0 4rem;
}
.panel {
  background: var(--paper);
  padding: 1.5rem 1.4rem 1.6rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  transition: background 0.12s ease;
}
.panel:hover { background: var(--paper-2); color: var(--ink); }
.panel .idx { font-size: 0.72rem; color: var(--faint); }
.panel h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0.6rem 0 0.5rem;
}
.panel p { margin: 0; color: var(--faint); font-size: 0.82rem; line-height: 1.45; }
.panel .go { margin-top: auto; font-size: 0.74rem; color: var(--accent); padding-top: 1rem; }
.panel.soon { color: var(--faint); }
.panel.soon h2 { color: var(--faint); }

/* ============================================================
   BOOK — radial chapter hub
   ============================================================ */
.hub {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}
.radial {
  position: relative;
  width: min(88vw, 620px);
  aspect-ratio: 1 / 1;
  margin: 1rem auto;
}
.radial .center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.radial .center .booktitle {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3.4vw, 1.7rem);
  line-height: 1.15;
  font-style: italic;
}
.radial .center .byline { font-size: 0.72rem; color: var(--faint); letter-spacing: 0.08em; }
.radial .ring-line {
  position: absolute; inset: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
}
.chapnode {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 8.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}
.chapnode .num {
  font-size: 0.7rem; color: var(--faint);
  display: inline-block; margin-bottom: 0.15rem;
}
.chapnode .ttl {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.2;
  border-bottom: 1px solid transparent;
  display: inline;
}
.chapnode:hover .ttl { color: var(--accent); border-bottom-color: var(--accent); }
.chapnode .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink);
  margin: 0.35rem auto 0;
}
.chapnode:hover .dot { background: var(--accent); }

.hub .below { margin-top: 2rem; display: flex; gap: 1.2rem; align-items: center; font-size: 0.8rem; }
.hub .below a { color: var(--faint); }
.hub .below a:hover { color: var(--accent); }

.applelogo { width: 46px; height: 46px; }

/* ============================================================
   READER
   ============================================================ */
.reader-shell { display: grid; grid-template-columns: 15rem 1fr; gap: 0; align-items: start; }
.toc {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--rule);
  padding: 1.4rem 1.2rem;
  font-size: 0.8rem;
}
.toc .toc-head { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 0.9rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.toc li { margin: 0.15rem 0; }
.toc a { display: block; padding: 0.28rem 0.4rem; text-decoration: none; color: var(--ink); border-radius: 2px; }
.toc a:hover { background: var(--paper-2); }
.toc a.active { background: var(--ink); color: var(--paper); }
.toc a .n { color: var(--faint); margin-right: 0.5rem; }
.toc a.active .n { color: var(--paper); opacity: 0.7; }
.toc .toc-foot { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.dl-btn {
  display: inline-block; text-decoration: none;
  font-size: 0.74rem; color: var(--ink);
  border: 1px solid var(--ink); padding: 0.4rem 0.7rem;
}
.dl-btn:hover { background: var(--ink); color: var(--paper); }

.reading { padding: 3rem 2.4rem 8rem; min-width: 0; }
.reading .book-h { max-width: var(--measure); margin: 0 auto 2.5rem; }
.reading .book-h .booktitle { font-family: var(--serif); font-style: italic; font-size: 1.7rem; margin: 0; }
.reading .book-h .byline { color: var(--faint); font-size: 0.78rem; margin-top: 0.3rem; }

.chapter { max-width: var(--measure); margin: 0 auto 3.4rem; padding-top: 2.8rem; scroll-margin-top: 1.5rem; }
.chapter > .ch-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.chapter > h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.2; margin: 0.4rem 0 1.4rem; }
.chapter p { font-family: var(--serif); font-size: 1.06rem; line-height: 1.5; margin: 0 0 0.9rem; }

/* inline hypertext cross-reference */
a.xref {
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
}
a.xref:hover { background: var(--hl); }

/* "related passages" control */
.related {
  margin: 1.6rem 0 0;
  border-top: 1px dotted var(--rule);
  padding-top: 0.9rem;
  font-family: var(--mono);
}
.related button {
  font-family: var(--mono); font-size: 0.74rem;
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--faint); text-decoration: underline; text-underline-offset: 2px;
}
.related button:hover { color: var(--accent); }
.related ul { list-style: none; margin: 0.7rem 0 0; padding: 0; display: none; }
.related.open ul { display: block; }
.related li { font-size: 0.82rem; margin: 0.3rem 0; }
.related li .rel-why { color: var(--faint); }
.related li a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.related li a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* jump flash */
.flash { animation: flash 1.6s ease; }
@keyframes flash {
  0% { background: var(--hl); }
  100% { background: transparent; }
}

/* ============================================================
   GALLERY (photography + masks)
   ============================================================ */
.controls { display: flex; gap: 0.5rem; align-items: center; margin: 1.4rem 0 2rem; flex-wrap: wrap; }
.controls .label { margin-right: 0.4rem; }
.seg { display: inline-flex; border: 1px solid var(--rule); }
.seg button {
  font-family: var(--mono); font-size: 0.76rem;
  background: none; border: none; border-right: 1px solid var(--rule);
  padding: 0.35rem 0.8rem; cursor: pointer; color: var(--faint);
}
.seg button:last-child { border-right: none; }
.seg button.on { background: var(--ink); color: var(--paper); }

.group-h { font-family: var(--serif); font-size: 1.2rem; margin: 2.2rem 0 0.9rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.tile {
  background: var(--paper);
  aspect-ratio: 4 / 5;
  position: relative;
  display: flex; align-items: flex-end;
  padding: 0.6rem;
  overflow: hidden;
}
.tile .ph { position: absolute; inset: 0; opacity: 0.9; }
.tile .cap { position: relative; font-size: 0.72rem; color: var(--paper); z-index: 2; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.tile.masks { aspect-ratio: 1 / 1; }

footer.foot { border-top: 1px solid var(--rule); margin-top: 3rem; padding: 1.4rem; font-size: 0.74rem; color: var(--faint); text-align: center; }

/* ---- responsive ------------------------------------------------ */
@media (max-width: 720px) {
  .reader-shell { grid-template-columns: 1fr; }
  .toc { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--rule); }
  .reading { padding: 2rem 1.3rem 5rem; }
  .chapnode { width: 6.2rem; }
  .chapnode .ttl { font-size: 0.8rem; }
  .spiralnode { width: 6.2rem; }
  .spiralnode .ttl { font-size: 0.72rem; }
}

/* ============================================================
   BOOK — spiral hub (first chapters at the center, out to the edge)
   ============================================================ */
.spiral-guide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
}
.spiral-guide path { fill: none; stroke: var(--rule); stroke-width: 0.4; }

.spiralnode {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 8rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}
.spiralnode .num { font-size: 0.66rem; color: var(--faint); display: block; }
.spiralnode .ttl {
  font-family: var(--serif);
  font-size: 0.82rem;
  line-height: 1.15;
  border-bottom: 1px solid transparent;
}
.spiralnode:hover .ttl { color: var(--accent); border-bottom-color: var(--accent); }
.spiralnode .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin: 0.25rem auto 0; }
.spiralnode:hover .dot { background: var(--accent); }
.spiralnode.dim .ttl { color: var(--faint); }   /* "save for later" chapters */

/* plain contents list beneath the hub — always readable, no-JS safe */
.book-index { max-width: 40rem; margin: 2.6rem auto 0; text-align: left; font-size: 0.86rem; }
.book-index .bi-head { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); text-align: center; margin-bottom: 0.8rem; }
.book-index ol { list-style: none; margin: 0; padding: 0; }
.book-index li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.34rem 0; border-bottom: 1px dotted var(--rule); }
.book-index li a { text-decoration: none; }
.book-index li a:hover { color: var(--accent); }
.book-index .num { color: var(--faint); margin-right: 0.6rem; font-variant-numeric: tabular-nums; }
.book-index .pg { color: var(--faint); font-variant-numeric: tabular-nums; }
.book-index .part-label { margin: 1.3rem 0 0.4rem; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); text-align: center; }

/* ============================================================
   READER — front matter, preface, reading-guidance, mounts
   ============================================================ */
.frontmatter { max-width: var(--measure); margin: 0 auto 4rem; }

/* Binder's Note — front-matter link + modal popup */
.bn-link { text-align: center; max-width: var(--measure); margin: 1.4rem auto 0.2rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; }
.bn-link a { color: var(--faint); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.bn-link a:hover { color: var(--ink); border-color: var(--ink); }
.bn-link .bn-dot { color: var(--rule); margin: 0 0.7em; }
.bn-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center;
  background: rgba(28,27,24,0.36); padding: 6vh 1.2rem; overflow-y: auto; }
.bn-overlay[hidden] { display: none; }
.bn-modal { position: relative; background: #fff; width: 100%; max-width: 40rem; margin: auto;
  border: 1px solid var(--rule); box-shadow: 0 24px 60px rgba(0,0,0,0.22); padding: 3.2rem 3rem 2.6rem; }
.bn-close { position: absolute; top: 0.5rem; right: 0.8rem; background: none; border: none;
  font-size: 1.6rem; line-height: 1; color: var(--faint); cursor: pointer; padding: 0.2rem 0.45rem; }
.bn-close:hover { color: var(--ink); }
.bn-body { font-family: var(--serif); color: var(--ink); }
.bn-body .bn-title { text-align: center; font-family: var(--serif); font-style: normal; font-weight: 600;
  font-size: 1.4rem; letter-spacing: 0.01em; margin: 0 0 1.5rem; }
.bn-body p { font-size: 1.02rem; line-height: 1.6; margin: 0 0 1rem; }
.bn-body .bn-sep { text-align: center; font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0.12em; color: var(--ink); margin: 1.5rem 0; }
@media (max-width: 640px) { .bn-modal { padding: 2.6rem 1.4rem 2rem; } }
.titlepage { text-align: center; padding: 2rem 0 1rem; }
.titlepage .bt { font-family: var(--serif); font-size: 2rem; line-height: 1.1; margin: 0; }
.titlepage .by { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--faint); margin-top: 1rem; }
.titlepage .tp-name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.14em; margin: 1.4rem 0 0; }
.titlepage .tp-sub { font-family: var(--serif); font-size: 0.92rem; letter-spacing: 0.08em; color: var(--faint); line-height: 1.6; margin: 1rem 0 0; }
.title-apple { display: block; width: 122px; height: auto; margin: 1.6rem auto 1.3rem; }
.book-front .title-apple { width: 132px; margin: 0.4rem 0 1.5rem; }   /* header apple, left-aligned like the contents */
.titlepage .tp-press { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.14em; margin: 0; }
.titlepage .tp-press a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
.titlepage .tp-press a:hover { color: var(--accent); }
.colophon { font-family: var(--serif); font-size: 0.95rem; color: var(--faint); text-align: center; line-height: 1.6; margin: 2rem auto 3rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.4rem 0; }
.colophon em { font-style: italic; }

.preface h2 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0 0 1.2rem; }
.preface p { font-family: var(--serif); font-size: 1.06rem; line-height: 1.5; margin: 0 0 0.9rem; }
.preface .verse { font-style: italic; margin: 1.1rem 0 1.1rem 1.6rem; }
.preface .signoff { font-style: italic; color: var(--faint); }
.preface { max-width: var(--measure); margin: 0 auto 3.4rem; padding-top: 2.8rem; scroll-margin-top: 1.5rem; }

/* inline contents (single-page book) */
.reading .contents { max-width: var(--measure); margin: 3rem auto 0.6rem; }
.contents-label { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--faint); margin-bottom: 0.9rem; }
.reading .toc-flow { margin: 0; }

/* ============================================================
   LEFT DOT NAVIGATION — a spine of dots; hover reveals titles
   ============================================================ */
.dot-nav {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 0.95rem;
  padding: 0.9rem 0.5rem;
}
.dot-item { position: relative; display: block; width: 1.7rem; height: 9px; }
.dot {
  position: absolute; left: 0.4rem; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--rule);
  transition: background 0.15s ease, transform 0.15s ease;
}
.dot-item:hover .dot { background: var(--accent); }
.dot-item.active .dot { background: var(--ink); transform: translateY(-50%) scale(1.7); }
.dot-label {
  position: absolute; left: 1.4rem; top: 50%; transform: translateY(-50%) translateX(-6px);
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink); white-space: nowrap;
  opacity: 0; transition: opacity 0.16s ease, transform 0.16s ease; pointer-events: none;
}
.dot-nav:hover .dot-label { opacity: 1; transform: translateY(-50%) translateX(0); pointer-events: auto; }
.dot-item:hover .dot-label { color: var(--accent); }
/* on hover, expand the nav into a wide invisible hit-box (width of the longest title)
   so moving the mouse across labels/gaps doesn't fall out and close the panel */
.dot-nav:hover { width: 21rem; }
@media (max-width: 640px) { .dot-nav { display: none; } }

.guidance {
  border: 1px solid var(--rule); background: var(--paper-2);
  padding: 1rem 1.1rem; margin: 2rem auto; max-width: var(--measure);
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.55;
}
.guidance .g-head { text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); font-size: 0.7rem; margin-bottom: 0.6rem; }
.guidance a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); }
.guidance a:hover { background: var(--hl); }

.body-pending { font-family: var(--mono); font-size: 0.76rem; color: var(--faint); border: 1px dashed var(--rule); padding: 0.7rem 0.8rem; margin: 1rem 0; }
.paint-spot { border: 1px dashed var(--accent); color: var(--accent); background: rgba(156,74,26,0.05); padding: 0.7rem 0.8rem; margin: 1.4rem 0; font-family: var(--mono); font-size: 0.74rem; text-align: center; }
.ch-pages { color: var(--faint); }

/* ============================================================
   PROJECT PAGES — intro, process (Apple Press), section headings
   ============================================================ */
.page-head { padding: 2.4rem 0 0.4rem; }
.page-head h1 { font-family: var(--serif); font-weight: 500; font-size: 2rem; margin: 0 0 0.5rem; }
.intro { max-width: var(--measure); }
.section-h { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 3rem 0 0.5rem; }

.process { max-width: 44rem; margin: 1.4rem 0 0; }
.process ol { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.process li { position: relative; padding: 0 0 1.5rem 2.6rem; border-left: 1px solid var(--rule); margin-left: 0.85rem; }
.process li:last-child { border-left: 1px solid transparent; padding-bottom: 0; }
.process li .stepno { position: absolute; left: -0.85rem; top: -0.15rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 0.74rem; }
.process li h3 { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; margin: 0 0 0.25rem; }
.process li p { margin: 0; color: var(--faint); font-size: 0.9rem; line-height: 1.5; }
.cta { display: inline-block; margin-top: 1.2rem; border: 1px solid var(--ink); padding: 0.5rem 0.9rem; text-decoration: none; font-size: 0.8rem; }
.cta:hover { background: var(--ink); color: var(--paper); }

/* concrete / symbol lines carried over from the print typography */
.reading p.concrete {
  font-family: var(--mono);
  white-space: pre-wrap;
  text-align: center;
  color: var(--faint);
  letter-spacing: 0.04em;
  margin: 1.6rem auto;
}
/* machine separators — Playfair Display (matches the White Album freakout) */
.reading .msep {
  font-family: "Playfair Display", Georgia, serif;
  text-align: center; color: var(--ink);
  letter-spacing: 0.12em; font-size: 1.1rem;
  margin: 1.9rem auto; max-width: var(--measure);
}

/* signage / plaque replicas — centered like the objects they depict */
.reading .s-apollo-plaque { text-align: center; }
.reading .s-this-lp-contains-satisfaction { text-align: center; }

/* ============================================================
   BOOK FRONT DOOR — flowing contents (stark, white-album)
   ============================================================ */
.book-front {
  padding: 4.5rem 1.4rem 3rem;
  background: #ffffff;
}
.bf-inner { max-width: 40rem; margin: 0 auto; }
.book-front .mark { margin-bottom: 1.6rem; }
.book-front .bt { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0; line-height: 1.1; }
.book-front .by { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--faint); margin-top: 0.9rem; }
/* flowing contents — left-justified, as in the printed book (p.7) */
.toc-flow {
  margin: 2.4rem 0 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.9;
  text-align: left;
}
.toc-flow a { text-decoration: none; color: var(--ink); }
.toc-item { white-space: nowrap; }   /* title + page + colon never split; breaks only after a colon */
.toc-flow a:hover { color: var(--accent); }
.toc-flow .pg { font-style: italic; color: var(--faint); margin: 0 0.15em 0 0.35em; }
.toc-flow .sep { color: var(--rule); margin: 0 0.15em; }
.book-front .below { margin-top: 2.4rem; display: flex; gap: 1.1rem; font-size: 0.78rem; flex-wrap: wrap; }
.book-front .below a { color: var(--faint); text-decoration: none; }
.book-front .below a:hover { color: var(--accent); }

/* chapter title-image cards — scroll down from the contents */
.chapter-cards-section { background: #ffffff; padding: 0 1.4rem 5rem; }
.cards-head {
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--faint);
  max-width: 40rem; margin: 0 auto 1.6rem; padding-top: 2.2rem;
  border-top: 1px solid var(--rule);
}
.chapter-cards {
  max-width: 40rem; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 1.5rem 1.4rem;
}
.chapter-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.card-img {
  aspect-ratio: 2 / 3;
  background: #fff;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.chapter-card:hover .card-img { border-color: var(--accent); box-shadow: 0 3px 14px rgba(0,0,0,0.07); }
.card-meta { margin-top: 0.5rem; display: flex; gap: 0.45rem; align-items: baseline; }
.card-meta .card-n { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); }
.card-meta .card-title { font-family: var(--serif); font-size: 0.92rem; line-height: 1.15; }
.chapter-card:hover .card-title { color: var(--accent); }
.ph-note {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint); text-align: center; padding: 0 0.5rem;
}

/* reader: chapter title image (a graphic before the text) */
.ch-title-img {
  width: min(100%, 26rem);
  aspect-ratio: 2 / 3;
  margin: 0 auto 2.6rem;
  background: #fff;
  border: 1px dashed var(--rule);
  display: flex; align-items: center; justify-content: center;
}
/* real chapter art (Approach 1 = single image; Approach 2 = random from a pool) */
.reading .ch-art { max-width: var(--measure); margin: 1.4rem auto 1.3rem; text-align: center; }
.reading .ch-art img { max-width: 100%; max-height: 66vh; height: auto; display: inline-block; }
.reading .ch-art-full img { max-height: none; }              /* fill the column width */
.reading .ch-art.inline-fig { max-width: 58%; margin: 1.7rem auto; }   /* in-text figures (pawn, blood) */
.reading .ch-art.inline-fig.fig-apple { max-width: 29%; }              /* the big stamped apple, half size */
/* Approach 3 — master image with a generated splatter canvas overlaid exactly on it */
.reading .ch-art.a3 .a3-stack { position: relative; display: inline-block; line-height: 0; max-width: 100%; }
.reading .ch-art.a3 img { display: block; }
.reading .ch-art.a3 canvas.splat { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ============================================================
   READER — verse, block quotes, headings, citations, references
   ============================================================ */
/* verse: a tight italic block, not a run of paragraphs */
.reading .verse {
  font-family: var(--serif);
  font-style: italic;
  margin: 1.7rem auto;
  max-width: var(--measure);
  padding-left: 1.4rem;
}
.reading .verse .vline { line-height: 1.36; font-size: 1.05rem; }
.reading .verse .vgap { height: 0.75rem; }

/* block quotes (Shannon / Engelbart / Didion / standard) */
.reading blockquote {
  margin: 1.7rem auto; max-width: var(--measure);
  padding: 0 1.8rem; color: #40403a;   /* indented, no left bar */
}
.reading blockquote p { font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.55; margin: 0 0 0.7rem; }
.reading blockquote p.attribution {
  font-family: var(--mono); font-style: normal; font-size: 0.78rem;
  color: var(--faint); text-align: right; margin-top: -0.2rem;
}
.reading blockquote p.attribution::before { content: "\2014\00a0"; }

.reading h3.section-heading {
  font-family: var(--serif); font-weight: 500; font-size: 1.15rem;
  max-width: var(--measure); margin: 2.4rem auto 0.9rem;
  text-align: center;
}

/* citation superscripts */
sup.cite { font-size: 0.62em; line-height: 0; }
sup.cite a { text-decoration: none; color: var(--accent); padding: 0 0.05em; }
sup.cite a:hover { text-decoration: underline; }
[id^="citeref-"]:target { background: var(--hl); border-radius: 2px; }

/* references chapter */
.reading .refs-images, .reading .refs-cited { max-width: var(--measure); margin: 0.6rem auto; }
.reading .refs-images { list-style: none; padding: 0; }
.reading .refs-images li { font-size: 0.86rem; color: #40403a; margin: 0.5rem 0; padding-left: 1.2rem; text-indent: -1.2rem; }
.reading .refs-note { max-width: var(--measure); margin: 0.4rem auto 0.8rem; font-size: 0.8rem; color: var(--faint); font-style: italic; }
.reading ol.refs-cited { padding-left: 1.6rem; }
.reading ol.refs-cited li { font-size: 0.86rem; color: #40403a; line-height: 1.5; margin: 0.55rem 0; padding-left: 0.3rem; scroll-margin-top: 1.5rem; }
.reading ol.refs-cited li:target { background: var(--hl); }
a.backref { text-decoration: none; color: var(--accent); margin-left: 0.3rem; }
a.backref:hover { text-decoration: underline; }
