/* ---------- Share bar ------------------------------------------------------ */

.share-bar {
  max-width: 680px;
  margin: 0 auto 2.8rem;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper, #c47a4a);
  margin-right: 4px;
  flex-shrink: 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--rule, #d8d2c2);
  border-radius: 2px;
  background: transparent;
  color: var(--ink, #1a1a14);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
  line-height: 1;
}

.share-btn:hover {
  border-color: var(--copper, #c47a4a);
  color: var(--copper, #c47a4a);
  background: rgba(196, 122, 74, 0.05);
}

.share-btn.copied {
  border-color: #6a9a6a;
  color: #6a9a6a;
  background: rgba(106, 154, 106, 0.06);
}

.share-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.share-btn-label {
  line-height: 1;
}

@media (max-width: 520px) {
  .share-bar { padding: 0 16px; gap: 8px; }
  .share-btn-label { display: none; }
  .share-btn { padding: 7px 10px; }
}

/* ---------- Cover explainer video ----------------------------------------- */

.cover-explainer {
  margin: 2.4rem 0;
}

.cover-explainer-lede {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #888;
  margin: 0.5rem 0 1.2rem;
  letter-spacing: 0.02em;
}

.cover-yt-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border: 1px solid var(--rule, #d8d2c2);
  border-radius: 3px;
  overflow: hidden;
  background: #111;
}

.cover-yt-frame {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Audio player bar ---------------------------------------------- */

.audio-bar {
  max-width: 680px;
  margin: 0 auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  border-bottom: 1px solid var(--rule, #d8d2c2);
}

.audio-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--chalkboard, #1a1a14);
  color: var(--cream, #f5f0e8);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.14s;
}
.audio-play:hover { background: var(--copper, #c47a4a); }

.audio-listen {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper, #c47a4a);
  flex-shrink: 0;
}

.audio-track {
  flex: 1;
  height: 3px;
  background: var(--rule, #d8d2c2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.audio-fill {
  height: 100%;
  width: 0%;
  background: var(--copper, #c47a4a);
  border-radius: 2px;
  transition: width 0.25s linear;
  pointer-events: none;
}

.audio-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #888;
  flex-shrink: 0;
  min-width: 36px;
  text-align: right;
}

@media (max-width: 520px) {
  .audio-bar { padding: 0 16px; }
  .audio-listen { display: none; }
}

/* ---------- Related Media drawer ------------------------------------------ */

.media-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px 15px;
  background: var(--chalkboard, #1a1a14);
  color: var(--cream, #f5f0e8);
  border: none;
  border-radius: 6px 0 0 6px;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: -2px 0 10px rgba(0,0,0,0.22);
}

.media-tab:hover {
  background: #28281e;
}

.media-tab-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--copper, #c47a4a);
}

.media-tab-text {
  writing-mode: vertical-lr;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Backdrop */
.media-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,10,8,0.52);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.media-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* Drawer panel */
.media-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 100vw;
  height: 100vh;
  z-index: 950;
  background: var(--cream, #f5f0e8);
  border-left: 1px solid var(--rule, #d8d2c2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.media-drawer.open {
  transform: translateX(0);
}

.media-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rule, #d8d2c2);
  flex-shrink: 0;
  background: var(--cream, #f5f0e8);
}

.media-drawer-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper, #c47a4a);
}

.media-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule, #d8d2c2);
  border-radius: 2px;
  cursor: pointer;
  color: var(--ink, #1a1a14);
  transition: border-color 0.12s, color 0.12s;
  flex-shrink: 0;
}
.media-close:hover {
  border-color: var(--copper, #c47a4a);
  color: var(--copper, #c47a4a);
}

.media-scroller {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 32px;
}

.media-section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #888;
  margin: 20px 0 6px;
  padding: 0 20px;
}

.media-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--ink, #1a1a14);
  border-bottom: 1px solid var(--rule, #d8d2c2);
  transition: background 0.12s;
}
.media-card:first-of-type {
  border-top: 1px solid var(--rule, #d8d2c2);
}
.media-card:hover {
  background: rgba(196, 122, 74, 0.05);
}

/* YouTube thumbnail */
.media-thumb {
  position: relative;
  width: 90px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #1a1a14;
}
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.38);
  color: #fff;
  transition: background 0.12s;
}
.media-card:hover .media-play-icon {
  background: rgba(196,122,74,0.72);
}

/* Article icon placeholder */
.media-article-icon {
  width: 90px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #232318;
  border-radius: 2px;
  color: var(--copper, #c47a4a);
}

.media-card-body {
  flex: 1;
  min-width: 0;
}
.media-card-source {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper, #c47a4a);
  margin-bottom: 4px;
}
.media-card-title {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink, #1a1a14);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-card-arrow {
  flex-shrink: 0;
  color: var(--copper, #c47a4a);
  opacity: 0.45;
  transition: opacity 0.12s;
}
.media-card:hover .media-card-arrow {
  opacity: 1;
}

@media (max-width: 400px) {
  .media-drawer { width: 100vw; }
  .media-tab { display: none; } /* replaced by inline trigger on small screens */
}

/* ---------- Cover resources (PDF download + skills link) ------------------ */

.cover-resources {
  margin: 0 0 2.4rem;
}

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resource-item {
  border: 1px solid var(--rule, #d8d2c2);
  border-radius: 3px;
  overflow: hidden;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: background 0.12s;
}

.resource-link:hover {
  background: rgba(196, 122, 74, 0.06);
}

.resource-icon {
  font-size: 20px;
  color: var(--copper, #c47a4a);
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.resource-thumb {
  width: 44px;
  height: 58px;
  object-fit: cover;
  object-position: top;
  border-radius: 2px;
  flex-shrink: 0;
  border: 1px solid var(--rule, #d8d2c2);
  display: block;
}

.resource-arrow {
  color: var(--copper, #c47a4a);
  font-size: 14px;
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0.6;
  transition: opacity 0.12s;
}

.resource-link:hover .resource-arrow {
  opacity: 1;
}

.resource-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.resource-title {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #1c1917);
}

.resource-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted, #5a5040);
}

/* ---------- Chapter figures (archival images / infographics) -------------- */

.chapter-figure {
  margin: 2.4rem 0;
  padding: 0;
  border: 1px solid var(--rule, #d8d2c2);
  background: var(--chalkboard-soft, #1a1a1a);
  border-radius: 3px;
  overflow: hidden;
  max-width: 100%;
}

.chapter-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  background: #111;
}

.chapter-figure figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--chalk-soft, #d8d2c2);
  padding: 6px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  opacity: 0.7;
}

/* Inline RSP / external link marker */
.prose a[href^="http"]:not([href*="docs.google"]):not([href*="contextjamming"]) {
  color: var(--copper, #c47a4a);
  text-decoration: none;
  font-size: 0.8em;
  vertical-align: super;
  margin-left: 1px;
}

/* ---------- book/ — adopts the FounderFile / gemclaw design system. ------- */

/* book/ — adopts the FounderFile / gemclaw design system.
 *
 * Palette + fonts copied from gemclaw-fresh's globals.css. This is a static
 * site (no Next.js), so fonts are loaded via Google Fonts <link> in the head
 * (see commonHead in build.ts) rather than next/font. */

:root {
  /* FounderFile palette (gemclaw globals.css, verbatim) */
  --oxford-red: #872434;
  --cream: #faf8f5;
  --foreground: #1c1917;

  --chalkboard: #0d0d0d;
  --chalkboard-soft: #1a1a1a;
  --chalkboard-warm: #141413;
  --copper: #c47a4a;
  --copper-soft: #d89068;
  --gem-blue: #5b8fAF;
  --gem-blue-soft: #7daac8;
  --chalk: #f5f0e8;
  --chalk-soft: #d8d2c2;
  --chalk-dim: rgba(245, 240, 232, 0.55);
  --chalk-fade: rgba(245, 240, 232, 0.30);
  --chalk-dust: rgba(245, 240, 232, 0.12);

  /* Editorial system aliases */
  --bg: var(--cream);
  --ink: var(--foreground);
  --muted: #5a5040;
  --rule: #d8d2c2;
  --rule-strong: #1c1917;
  --quote-tint: #efe9d8;
}

/* ============== reset ============== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Fraunces', ui-serif, Georgia, "Iowan Old Style", serif;
  font-size: 18px;
  line-height: 1.65;
  font-variation-settings: 'opsz' 14;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--oxford-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

/* Newspaper rules */
.rule-double { border-top: 3px double var(--rule-strong); }
hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}
hr.double { border: 0; border-top: 3px double var(--rule-strong); }

/* ============== shared eyebrow / mono ============== */

.eyebrow, .toc-eyebrow, .chapter-eyebrow, .bar-chapter, .bar-meta, .toc-num, .toc-meta, .nav-label, .prov, .single-source {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow, .toc-eyebrow, .chapter-eyebrow {
  font-size: 12px;
  color: var(--copper);
}

/* Italic single-source attribution tag, copper */
.single-source {
  text-transform: uppercase;
  font-style: italic;
  font-size: 0.7em;
  color: var(--copper-soft);
  margin-left: 0.25em;
}

/* ============== cover ============== */

.cover {
  max-width: 760px;
  margin: 0 auto;
  padding: 8vh 24px 12vh;
}
.cover-eyebrow { margin-bottom: 1rem; }
.cover-title {
  font-family: 'Playfair Display', ui-serif, serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(3.4rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 2.2rem;
  color: var(--ink);
}
.cover-lede {
  font-family: 'Fraunces', ui-serif, serif;
  font-variation-settings: 'opsz' 36;
  font-size: clamp(1.18rem, 2.2vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 2rem;
  max-width: 38em;
}
.cover-byline {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cover-byline strong { color: var(--ink); font-weight: 600; }

.cover-divider {
  border: 0;
  border-top: 3px double var(--rule-strong);
  margin: 4rem 0 2.4rem;
}

.toc-eyebrow {
  margin: 0 0 1.4rem;
  font-size: 12px;
  color: var(--copper);
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-item a {
  display: grid;
  grid-template-columns: 4em 1fr auto;
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.12s ease;
}
.toc-item a:hover { background: rgba(135, 36, 52, 0.04); }
.toc-num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--copper);
}
.toc-title {
  font-family: 'Playfair Display', ui-serif, serif;
  font-size: 1.28rem;
  line-height: 1.3;
  font-weight: 500;
}
.toc-meta {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}
.cover-footer {
  font-family: 'Fraunces', ui-serif, serif;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 3rem;
  font-style: italic;
}

/* ============== chapter bar (top) ============== */

.chapter-bar {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 24px;
  border-bottom: 1px solid var(--rule);
}
.bar-home {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.bar-home:hover { color: var(--oxford-red); }
.bar-chapter {
  flex: 1;
  text-align: center;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--copper);
}
.bar-meta {
  font-size: 11px;
  color: var(--muted);
}

/* ============== chapter hero ============== */

.chapter-hero {
  background: var(--chalkboard);
  color: var(--chalk);
  padding: 8vh 24px 8vh;
  border-bottom: 3px double var(--chalkboard-soft);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: end;
}
.hero-text { padding-right: 1rem; }
.hero-eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.4rem;
}
.hero-eyebrow .dot { color: var(--chalk-dim); margin: 0 0.6em; }
.hero-title {
  font-family: 'Playfair Display', ui-serif, serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  color: var(--chalk);
}
.hero-title em { font-style: italic; color: var(--copper-soft); }
.hero-lede {
  font-family: 'Fraunces', ui-serif, serif;
  font-variation-settings: 'opsz' 36;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--chalk-dim);
  max-width: 32em;
}

/* SVG monogram placeholder — replaces with real photo treatment when assets land */
.hero-mark {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--chalkboard-soft);
  border: 1px solid var(--chalk-dust);
  position: relative;
  overflow: hidden;
}
.hero-mark svg { width: 100%; height: 100%; display: block; }

/* ============== chapter prose ============== */

.chapter {
  max-width: 720px;
  margin: 0 auto;
  padding: 6vh 24px 4vh;
}

.prose h1 {
  /* H1 is hidden in chapter prose because the hero handles it */
  display: none;
}
.prose h2 {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 500;
  margin: 3.5rem 0 1rem;
}
.prose h2 a { color: inherit; text-decoration: none; }
.prose h3 {
  font-family: 'Playfair Display', ui-serif, serif;
  font-size: 1.36rem;
  line-height: 1.3;
  margin: 2.4rem 0 0.8rem;
  font-weight: 700;
}

.prose p {
  margin: 0 0 1.2rem;
  font-size: 1.06rem;
  line-height: 1.7;
}

/* Drop cap on the first paragraph after the hero */
.prose > p:first-of-type::first-letter,
.prose > h2:first-of-type + p::first-letter {
  font-family: 'Playfair Display', ui-serif, serif;
  font-size: 4.6em;
  font-weight: 700;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.08em -0.05em 0;
  color: var(--oxford-red);
}

/* Verbatim corpus quote — distinct typeface + accent border + warm tint */
.prose blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem 1.2rem 1.6rem;
  border-left: 3px solid var(--oxford-red);
  background: var(--quote-tint);
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink);
}
.prose blockquote p { margin: 0 0 0.8rem; font-size: inherit; line-height: inherit; }
.prose blockquote p:last-child { margin-bottom: 0; }

.prose code {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.92em;
  background: rgba(135, 36, 52, 0.08);
  padding: 0.08em 0.36em;
  border-radius: 3px;
}
.prose pre {
  background: var(--chalkboard);
  color: var(--chalk);
  padding: 1rem 1.2rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 1.6rem 0;
}
.prose pre code { background: transparent; padding: 0; color: inherit; }

.prose ul, .prose ol {
  padding-left: 1.4em;
  margin: 0 0 1.2rem;
}
.prose li { margin-bottom: 0.4rem; }

.prose hr { margin: 2.5rem 0; }

/* Working-document section markers (Brief / cj queries / Sources / Open
 * questions) are styled as faded scaffolding so the published prose stands out */
.prose h2 + p,
.prose h2 + ul,
.prose h2 + ol {
  color: var(--muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 0.95rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--rule);
}
.prose th { font-weight: 600; }

/* ============== provenance footer ============== */

.prov {
  margin-top: 3rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: rgba(255,255,255,0.4);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: none;
}
.prov-unknown { border-color: var(--copper); color: var(--copper); }
.prov-mono { color: var(--ink); font-weight: 600; }

/* ============== chapter nav (prev/next) ============== */

.chapter-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 24px 12vh;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 3px double var(--rule-strong);
  margin-top: 4rem;
}
.nav-prev, .nav-next {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  text-decoration: none;
  color: var(--ink);
  padding: 1rem 0.4rem;
  border-radius: 3px;
}
.nav-prev:hover, .nav-next:hover { background: rgba(135, 36, 52, 0.04); }
.nav-next { text-align: right; }
.nav-arrow { font-size: 1.2rem; color: var(--copper); }
.nav-label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--copper);
}
.nav-title {
  font-family: 'Playfair Display', ui-serif, serif;
  font-size: 1.04rem;
  line-height: 1.3;
}
.placeholder { flex: 1; }

/* ============== mobile ============== */

@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    align-items: start;
  }
  .hero-text { padding-right: 0; }
  .hero-mark { aspect-ratio: 16 / 10; max-height: 50vh; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .cover { padding: 6vh 20px 8vh; }
  .toc-item a {
    grid-template-columns: 3em 1fr;
    grid-template-rows: auto auto;
    gap: 0.4rem 1rem;
  }
  .toc-meta { grid-column: 2; justify-self: end; }
  .chapter-hero { padding: 6vh 20px 6vh; }
  .chapter { padding: 4vh 20px 2vh; }
  .chapter-nav { flex-direction: column; padding-bottom: 8vh; }
  .nav-next { text-align: left; }
  .prose > p:first-of-type::first-letter { font-size: 3.6em; }
}
