/* =========================================================================
   Hensel's Dream — Digital Program Booklet
   Global shell + page internals. Page internals preserved from the
   print design so the digital and print versions stay visually synced.
   ========================================================================= */

/* ---------- Design tokens (ported from shared.css) ---------- */
:root {
  --paper:      oklch(0.965 0.012 85);
  --paper-warm: oklch(0.945 0.018 78);
  --paper-edge: oklch(0.90 0.025 75);
  --ink:        oklch(0.28 0.028 50);
  --ink-soft:   oklch(0.40 0.025 55);
  --ink-faint:  oklch(0.60 0.020 60);
  --rule:       oklch(0.72 0.020 60);
  --rule-faint: oklch(0.82 0.015 65);

  /* Page geometry — 5.5in × 8.5in @ 96dpi */
  --pg-w: 528px;
  --pg-h: 816px;
  --pg-pad-o: 44px;
  --pg-pad-i: 54px;
  --pg-pad-y: 36px;

  /* Shell */
  --bg:          #1f1a14;
  --bg-rail:     #14100b;
  --bg-panel:    oklch(0.22 0.015 55);
  --bg-panel-2:  oklch(0.18 0.015 55);
  --chrome-ink:  oklch(0.86 0.010 75);
  --chrome-soft: oklch(0.62 0.012 70);
  --chrome-rule: oklch(0.40 0.02 55 / 0.5);
  --accent:      oklch(0.75 0.07 75);

  --topbar-h: 64px;
  --footbar-h: 56px;
}

@media (max-width: 720px) {
  :root {
    --topbar-h: 56px;
    --footbar-h: 52px;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--chrome-ink); }
body {
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-feature-settings: "liga","onum","kern";
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

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

.skip-link {
  position: absolute; top: -40px; left: 8px; z-index: 200;
  background: var(--accent); color: #1a1510; padding: 6px 10px;
  font-family: "JetBrains Mono", monospace; font-size: 11px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--topbar-h);
  background: var(--bg-rail);
  border-bottom: 1px solid var(--chrome-rule);
  display: flex; align-items: center;
}
.topbar-inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}
.topbar-title {
  display: flex; flex-direction: column; line-height: 1.15;
  min-width: 0;
}
.topbar-title .t-german {
  font-family: "Italiana", serif;
  font-size: 22px; letter-spacing: 0.02em;
  color: var(--chrome-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-title .t-sub {
  font-family: "Cormorant Garamond", serif;
  font-size: 12px; font-style: italic;
  color: var(--chrome-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-title .t-sub em { font-style: normal; }

.topbar-nav {
  display: flex; align-items: center; gap: 10px;
}
.nav-btn {
  appearance: none; border: 1px solid var(--chrome-rule);
  background: var(--bg-panel); color: var(--chrome-ink);
  width: 40px; height: 40px; border-radius: 2px;
  font-family: "EB Garamond", serif; font-size: 20px; line-height: 1;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.nav-btn:hover:not(:disabled) { background: var(--bg-panel-2); border-color: var(--accent); }
.nav-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.share-btn {
  margin-left: 10px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.share-btn svg { display: block; }
.share-btn::before {
  /* thin divider from the nav cluster */
  content: ""; position: absolute; left: -6px; top: 20%; bottom: 20%;
  width: 1px; background: var(--chrome-rule);
}
.share-toast {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-panel-2);
  color: var(--chrome-ink);
  border: 1px solid var(--chrome-rule);
  padding: 6px 10px; border-radius: 2px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 60;
}
.share-toast.visible { opacity: 1; transform: translateY(0); }

.nav-readout {
  text-align: center; min-width: 120px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--chrome-ink); line-height: 1.25;
  display: flex; flex-direction: column;
}
.nav-readout small {
  font-size: 9px; letter-spacing: 0.16em;
  color: var(--chrome-soft); margin-top: 2px;
}

@media (max-width: 720px) {
  .topbar-title .t-sub { display: none; }
  .topbar-title .t-german { font-size: 17px; }
  .nav-btn { width: 36px; height: 36px; font-size: 17px; }
  .nav-readout { min-width: 90px; font-size: 10px; }
  .nav-readout small { font-size: 8px; }
}

/* ---------- Main stage ---------- */
.book-stage {
  min-height: 100dvh;
  padding-top: var(--topbar-h);
  padding-bottom: var(--footbar-h);
  padding-left: 20px; padding-right: 20px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at center top, oklch(0.24 0.02 55) 0%, transparent 55%),
    var(--bg);
}

.book-scaler {
  /* JS sets --scale based on viewport size so the book fits on screen. */
  --scale: 1;
  transform: scale(var(--scale));
  transform-origin: center center;
  transition: transform 180ms ease-out;
  will-change: transform;
}

/* ---------- Book / Spread container ---------- */
.book {
  display: flex; flex-direction: row;
  background: var(--bg-rail);
  padding: 14px;
  gap: 0;
  box-shadow: 0 60px 120px -50px rgba(0,0,0,0.8),
              0 20px 40px -20px rgba(0,0,0,0.6);
  position: relative;
  transition: opacity 140ms ease;
}
.book.is-turning { opacity: 0.0; }
.book.is-single { justify-content: center; }

.book::before {
  /* Spine shadow between pages */
  content: ""; position: absolute;
  top: 14px; bottom: 14px; left: 50%;
  width: 1px;
  background: linear-gradient(to right,
    rgba(0,0,0,0.0),
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.0));
  pointer-events: none;
  z-index: 5;
}
.book.is-single::before { display: none; }

/* ---------- Page ---------- */
.page {
  width: var(--pg-w);
  height: var(--pg-h);
  background: var(--paper);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  font-family: "EB Garamond", serif;
}
.page-inner {
  position: absolute; inset: 0;
  padding: var(--pg-pad-y) var(--pg-pad-o) var(--pg-pad-y) var(--pg-pad-i);
  display: flex; flex-direction: column;
}
.page.recto .page-inner { padding-left: var(--pg-pad-i); padding-right: var(--pg-pad-o); }
.page.verso .page-inner { padding-left: var(--pg-pad-o); padding-right: var(--pg-pad-i); }

.book .page.verso { border-right: 1px solid oklch(0.55 0.04 55 / 0.25); }

/* ---------- Paper tones ---------- */
.paper-cover, .paper-white { background: #ffffff; }

/* ---------- Folio (preserved page numbers) ---------- */
.folio {
  position: absolute;
  bottom: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.18em;
  color: oklch(0.50 0.03 55 / 0.8);
  text-transform: uppercase;
}
.page.verso .folio { left: var(--pg-pad-o); }
.page.recto .folio { right: var(--pg-pad-o); }

.running-head { display: none; }

/* =========================================================================
   ------ Page-internal styles (ported verbatim from the print build) ------
   These make each individual page look identical to the print artifact.
   ========================================================================= */

/* -------------- COVER -------------- */
.cover { padding: 0; }
.cover .page-inner { padding: 48px 40px; text-align: center; align-items: stretch; }
.cover-frame {
  flex: 1;
  border: 1px solid oklch(0.55 0.04 55 / 0.5);
  padding: 40px 28px 32px;
  display: flex; flex-direction: column;
  position: relative;
}
.cover-frame::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid oklch(0.55 0.04 55 / 0.25);
  pointer-events: none;
}
.cover-kicker {
  font-family: "EB Garamond", serif; font-style: italic;
  font-size: 12px; letter-spacing: 0.15em;
  color: var(--ink-soft); text-transform: uppercase;
  margin-bottom: 14px;
}
.cover-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 54px; line-height: 0.95; font-weight: 500;
  margin: 14px 0 4px;
}
.cover-sub {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 18px; color: var(--ink-soft);
  line-height: 1.2; margin: 0 0 18px;
}
.cover-vig { width: 58%; margin: 16px auto 20px; display: flex; flex-direction: column; align-items: center; }
.cover-vig img {
  width: 100%;
  aspect-ratio: 250/352;
  object-fit: cover;
  display: block;
  mix-blend-mode: multiply;
  border: 1px solid oklch(0.55 0.04 55 / 0.3);
  filter: sepia(0.12) contrast(1.02);
}
.cover-work { font-family: "Italiana", serif; font-size: 36px; letter-spacing: 0.02em; line-height: 1; margin: 0; }
.cover-work-en {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 14px; color: var(--ink-soft);
  margin-top: 6px; line-height: 1.45;
}
.cover-performers {
  margin-top: auto; padding-top: 22px;
  display: flex; flex-direction: column; gap: 4px;
  text-align: center;
}
.cover-performers .perf-n {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px; font-style: italic; color: var(--ink);
}
.cover-performers .perf-r {
  font-family: "EB Garamond", serif;
  font-size: 11px; font-variant-caps: small-caps;
  letter-spacing: 0.16em; color: var(--ink-soft);
  margin-left: 6px;
}

/* -------------- BACK COVER -------------- */
.back-cover-inner {
  padding: 0; display: flex; flex-direction: column; gap: 0;
  position: relative; height: 100%;
}
.back-hero {
  margin-top: 48px; width: 100%; overflow: hidden;
  height: calc(50% - 48px);
  display: flex; align-items: flex-start; justify-content: center;
}
.back-hero img {
  width: 100%; height: 100%; object-fit: contain;
  object-position: top center; display: block; background: #fff;
}
.back-footer {
  height: 50%; display: flex; justify-content: center; align-items: center;
  padding: 0 36px 100px;
  box-sizing: border-box;
}
.back-qr {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.back-qr .qr-box {
  width: 110px; height: 110px;
  display: flex; align-items: center; justify-content: center;
  background: #ffffff;
  padding: 4px;
  box-sizing: border-box;
}
.back-qr .qr-box img {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
}
.back-qr .qr-cap {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; color: var(--ink-faint);
  letter-spacing: 0.14em; text-transform: uppercase;
  max-width: none;
  white-space: nowrap;
  line-height: 1.4;
}
.back-hero-cap {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; color: var(--ink-faint);
  letter-spacing: 0.14em; text-transform: uppercase;
  text-align: center; line-height: 1.5;
  padding: 10px 36px 0;
}

/* -------------- INSIDE FRONT / TEXT PAGES -------------- */
.ifront h2 { font-family: "Cormorant Garamond", serif; font-size: 30px; font-weight: 500; margin: 0 0 4px; }
.ifront .en-sub { font-family: "EB Garamond", serif; font-style: italic; color: var(--ink-soft); font-size: 13px; margin: 0 0 18px; }
.ifront p { font-family: "EB Garamond", serif; font-size: 13px; line-height: 1.55; margin: 0 0 10px; }
.ifront p.drop::first-letter {
  font-family: "Cormorant Garamond", serif; font-size: 48px;
  float: left; line-height: 0.9; padding: 4px 6px 0 0;
  color: var(--ink-soft);
}
.ifront .credit-block {
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid oklch(0.55 0.04 55 / 0.35);
  font-family: "EB Garamond", serif;
  font-size: 11px; line-height: 1.5; color: var(--ink-soft);
}
.ifront .credit-block .line-name {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 15px; color: var(--ink);
}

/* -------------- CONTENTS -------------- */
.toc-page h2 { font-family: "Cormorant Garamond", serif; font-size: 30px; font-weight: 500; margin: 0 0 2px; text-align: center; }
.toc-page .en-sub { font-family: "EB Garamond", serif; font-style: italic; color: var(--ink-soft); font-size: 12px; margin: 0 0 18px; text-align: center; }
.toc-rule { border: 0; border-top: 3px double oklch(0.55 0.04 55 / 0.5); margin: 0 auto 14px; width: 70%; }
.toc-list { font-family: "EB Garamond", serif; font-size: 12px; line-height: 1.3; display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
.toc-col { display: flex; flex-direction: column; }
.toc-row {
  display: grid; grid-template-columns: 22px 1fr;
  gap: 10px; align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dotted oklch(0.55 0.04 55 / 0.35);
  cursor: pointer;
  transition: background 100ms ease;
}
.toc-row:hover { background: oklch(0.88 0.03 70 / 0.4); }
.toc-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.toc-col:first-child .toc-row:last-child { border-bottom: 0; }
.toc-row .n { font-family: "Cormorant Garamond", serif; font-style: italic; color: var(--ink-faint); font-size: 11px; }
.toc-row .t { font-family: "Italiana", serif; font-size: 14px; }
.toc-row .t .sep { color: var(--ink); margin: 0 4px; }
.toc-row .en { grid-column: 2; font-family: "Cormorant Garamond", serif; font-style: italic; color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
.toc-foot { margin-top: auto; padding-top: 14px; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 11px; color: var(--ink-soft); text-align: center; line-height: 1.5; }
.toc-foot:empty { display: none; }
.toc-dedication {
  margin-top: 8px; padding-top: 10px;
  border-top: 1px solid oklch(0.55 0.04 55 / 0.35);
  text-align: center;
}
.toc-dedication-h { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 15px; margin: 0 0 4px; color: var(--ink); letter-spacing: 0.02em; }
.toc-dedication-rule { border: 0; border-top: 1px solid oklch(0.55 0.04 55 / 0.4); width: 36px; margin: 0 auto 10px; }
.toc-dedication .ded-de { font-family: "Cormorant Garamond", serif; font-size: 16px; line-height: 1.45; color: var(--ink); margin: 0 0 8px; }
.toc-dedication .ded-en { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 8px; }

/* -------------- MONTH (full-page) -------------- */
.month-full {
  padding: 28px var(--pg-pad-o) 22px;
  display: flex; flex-direction: column; row-gap: 10px;
}
.month-full .mf-epi { flex: 1 0 auto; }
.month-full .mf-shadow { flex-shrink: 0; margin-top: auto; }
.mf-shadow {
  margin: 2px 0 50px;
  width: 100%;
  aspect-ratio: 960/360;
  background-size: cover; background-position: center;
  display: block;
  border: 1px solid oklch(0.40 0.03 55 / 0.55);
}

.mf-epi.two-col { text-align: center; }
.mf-epi.two-col .poem-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mf-epi.two-col .poem-cols .de, .mf-epi.two-col .poem-cols .en {
  font-size: 13.5px; line-height: 1.38; margin: 0; text-align: center;
}
.mf-epi.two-col .src { text-align: center; margin-top: 6px; }

.mf-three-col {
  padding-top: 8px;
  border-top: 1px dotted oklch(0.55 0.04 55 / 0.45);
  display: grid; grid-template-columns: 1.1fr 2fr; gap: 12px;
}
.mf-three-col .chorale-group { display: grid; grid-template-rows: auto 1fr; }
.mf-three-col .chorale-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mf-three-col .col-head {
  font-family: "EB Garamond", serif;
  font-variant-caps: small-caps; letter-spacing: 0.14em;
  font-size: 10.5px; color: var(--ink);
  margin-bottom: 4px; text-align: center;
}
.mf-three-col .col-quote, .mf-three-col .col-chorale { text-align: center; }
.mf-three-col .col-quote .de, .mf-three-col .col-quote .en, .mf-three-col .col-chorale p {
  font-family: "Cormorant Garamond", serif;
  font-size: 11.5px; line-height: 1.38; margin: 0 0 6px;
}
.mf-three-col .col-quote .en, .mf-three-col .col-chorale.en-col p { font-style: italic; color: var(--ink-soft); }
.mf-three-col .col-quote .src {
  font-family: "EB Garamond", serif;
  font-variant-caps: small-caps; letter-spacing: 0.08em;
  font-size: 10px; color: var(--ink-faint); margin-top: 4px;
}
.page.recto .month-full { padding-left: var(--pg-pad-i); padding-right: var(--pg-pad-o); }
.page.verso .month-full { padding-left: var(--pg-pad-o); padding-right: var(--pg-pad-i); }

.mf-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid oklch(0.55 0.04 55 / 0.35); }
.mf-title { display: block; }
.mf-title-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mf-german { font-family: "Italiana", serif; font-size: 38px; line-height: 1; margin: 0; }
.mf-sub-de { font-family: "Italiana", serif; font-size: 22px; color: var(--ink-soft); line-height: 1; }
.mf-en { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 13px; color: var(--ink-soft); margin: 4px 0 0; line-height: 1.15; }
.mf-en b { font-style: normal; font-weight: 500; color: var(--ink); }

.mf-vig-wrap {
  margin: 2px 0;
  border: 1px solid oklch(0.40 0.03 55 / 0.55);
  background: oklch(0.97 0.015 80);
  padding: 0; overflow: hidden;
  aspect-ratio: 1670/1058;
  position: relative;
}
.mf-vig[src$="November.png"] { filter: brightness(1.12) contrast(0.96); }
.mf-vig {
  display: block;
  width: calc(100% + 14px); height: calc(100% + 14px);
  margin: -7px; object-fit: cover; object-position: center;
  mix-blend-mode: multiply; border: 0; background: transparent;
}

.mf-epi { padding-top: 8px; border-top: 1px dotted oklch(0.55 0.04 55 / 0.45); text-align: center; }
.mf-epi .de { font-family: "Cormorant Garamond", serif; font-size: 15px; line-height: 1.4; margin: 0 0 6px; }
.mf-epi .en { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 13.5px; line-height: 1.42; color: var(--ink-soft); margin: 0 0 6px; }
.mf-epi .src { font-family: "EB Garamond", serif; font-variant-caps: small-caps; letter-spacing: 0.1em; font-size: 12px; color: var(--ink-faint); text-align: center; }

.mf-chorale { padding-top: 6px; border-top: 1px dotted oklch(0.55 0.04 55 / 0.35); }
.mf-chorale .label { font-family: "EB Garamond", serif; font-variant-caps: small-caps; letter-spacing: 0.16em; font-size: 11.5px; color: var(--ink); margin-bottom: 4px; text-align: center; }
.mf-chorale .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 12px 0 36px; }
.mf-chorale .cols .en { padding-left: 16px; }
.mf-chorale .de, .mf-chorale .en { font-family: "Cormorant Garamond", serif; font-size: 11.5px; line-height: 1.38; margin: 0; }
.mf-chorale .en { font-style: italic; color: var(--ink-soft); }

/* -------------- POSTLUDE -------------- */
.postlude .page-inner { align-items: stretch; }
.pl-head { text-align: left; padding-bottom: 4px; display: flex; flex-direction: column; gap: 4px; }
.pl-num { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 13px; color: var(--ink-faint); margin: 0 0 4px; letter-spacing: 0.08em; }
.pl-german { font-family: "Italiana", serif; font-size: 38px; line-height: 1; margin: 0; }
.pl-en { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 13px; color: var(--ink); margin: 0; line-height: 1.15; }
.pl-vig { width: 55%; margin: 6px auto 4px; }
.pl-vig img { width: 100%; display: block; mix-blend-mode: multiply; filter: sepia(0.08) contrast(1.02); }
.pl-vig.pl-vig-pair {
  width: 100%; margin: 6px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end;
}
.pl-vig.pl-vig-pair img {
  width: 100%; height: auto; max-height: 300px;
  object-fit: contain; object-position: bottom; display: block;
  mix-blend-mode: multiply; filter: sepia(0.08) contrast(1.02);
}
.pl-vig-cap {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; color: var(--ink-faint);
  letter-spacing: 0.14em; text-transform: uppercase;
  text-align: center; margin-top: 10px; margin-bottom: 16px;
}
.pl-epi { margin-top: 14px; padding-top: 14px; border-top: 1px solid oklch(0.55 0.04 55 / 0.35); text-align: center; }
.pl-epi .de { font-family: "Cormorant Garamond", serif; font-size: 17px; line-height: 1.45; margin: 0 0 8px; }
.pl-epi .en { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 15px; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.5; }
.pl-epi .src { font-family: "EB Garamond", serif; font-variant-caps: small-caps; letter-spacing: 0.12em; font-size: 12px; color: var(--ink-faint); }

/* -------------- NOTES -------------- */
.notes-page h2 { font-family: "Cormorant Garamond", serif; font-size: 26px; font-weight: 500; margin: 0 0 2px; }
.notes-page .en-sub { font-family: "EB Garamond", serif; font-style: italic; color: var(--ink-soft); font-size: 12px; margin: 0 0 14px; }
.notes-page hr.d { border: 0; border-top: 3px double oklch(0.55 0.04 55 / 0.4); margin: 0 0 14px; }
.notes-page .section-h { font-family: "Cormorant Garamond", serif; font-size: 16px; font-weight: 500; margin: 14px 0 6px; }
.notes-body p { font-family: "EB Garamond", serif; font-size: 11.5px; line-height: 1.5; margin: 0 0 7px; }
.notes-body p:first-of-type::first-letter {
  font-family: "Cormorant Garamond", serif; font-size: 36px;
  float: left; line-height: 0.85; padding: 3px 5px 0 0;
  color: var(--ink-soft);
}

/* -------------- PERFORMERS / BACK -------------- */
.perf-full { display: flex; flex-direction: column; }
.perf-portrait {
  width: 55%; aspect-ratio: 1/1;
  margin: 0 auto 14px; overflow: hidden;
  border: 1px solid oklch(0.55 0.04 55 / 0.3);
}
.perf-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; filter: grayscale(0.15) contrast(1.02);
}
.perf-name { font-family: "Cormorant Garamond", serif; font-size: 26px; font-weight: 500; margin: 0 0 2px; text-align: center; }
.perf-role { font-family: "EB Garamond", serif; font-style: italic; font-size: 12px; color: var(--ink-soft); margin: 0 0 10px; text-align: center; }
.perf-body p { font-family: "EB Garamond", serif; font-size: 12px; line-height: 1.55; margin: 0 0 7px; }

.ack-inline {
  margin-top: 20px; padding-top: 14px;
  border-top: 1px solid oklch(0.55 0.04 55 / 0.35);
  font-family: "EB Garamond", serif;
  font-size: 11.5px; line-height: 1.5;
  color: var(--ink); text-align: center;
}
.ack-inline .ack-inline-h { font-family: "Cormorant Garamond", serif; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink); margin: 0 0 4px; text-align: center; }
.ack-inline .ack-inline-rule { border: 0; border-top: 1px solid oklch(0.55 0.04 55 / 0.4); width: 36px; margin: 0 auto 10px; }
.ack-inline p { margin: 0 0 7px; }
.ack-inline p:last-child { margin-bottom: 0; font-style: italic; }

/* ---------- Foot bar ---------- */
.footbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  height: var(--footbar-h);
  background: var(--bg-rail);
  border-top: 1px solid var(--chrome-rule);
  display: flex; align-items: center;
}
.footbar-inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.foot-meta {
  font-family: "EB Garamond", serif; font-size: 12px;
  color: var(--chrome-soft); font-style: italic;
  display: flex; gap: 8px; align-items: baseline;
  min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.foot-meta .dot { color: var(--chrome-rule); }
.foot-jump select {
  appearance: none;
  background: var(--bg-panel); color: var(--chrome-ink);
  border: 1px solid var(--chrome-rule);
  padding: 7px 28px 7px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.08em;
  border-radius: 2px; cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--chrome-soft) 50%),
    linear-gradient(135deg, var(--chrome-soft) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.foot-jump select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 720px) {
  .foot-meta { font-size: 11px; }
  .foot-meta .dot ~ span { display: none; }
  .foot-jump select { font-size: 10px; padding: 6px 24px 6px 8px; }
}

/* ---------- Single-page mode on narrow viewports ---------- */
body.single-page .book.has-spread .page.verso { display: none; }
body.single-page .book.has-spread.showing-verso .page.verso { display: block; }
body.single-page .book.has-spread.showing-verso .page.recto { display: none; }
body.single-page .book::before { display: none; }
body.single-page .book { padding: 10px; }

/* ---------- Touch target / touch-action on book ---------- */
.book { touch-action: pan-y; user-select: none; }
