/* Hallmark · 8f5a7b0d3a21bfbd · genre: editorial · posture: committed · surface: absolute · nav: single-row ivory print bar · hero: 1:1 front cover on dark dusk slate · footer: quiet running folio rule */
@font-face {
  font-family: "Besley";
  src: url("fonts/besley-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Besley";
  src: url("fonts/besley-italic-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --desk-canvas: #e4ddd0;
  --paper-eggshell: #f7f3ea;
  --paper-oat: #efe9dc;
  --cloth-dusk: #223247;
  --cloth-sage: #27443c;
  --card-ivory: #fcfbf7;
  --stage-mat: #ebe5d7;

  --ink: #23262e;
  --ink-dark: #1f1b14;
  --ink-muted: #4e535f;
  --cream-ink: #f8f4ec;
  --cream-muted: #d5dfec;
  --sage-muted: #d4e5df;
  --rule-sand: #ddd5c5;
  --rule-strong: #c7beb0;
  --cloth-rule: rgba(248, 244, 236, 0.22);

  --honey: #8f520b;
  --honey-badge: #e09838;
  --honey-focus: #d98a26;
  --honey-wash: #fbf1df;

  --rosehip: #a83b35;
  --rosehip-dot: #c55850;
  --seafoam: #265d52;
  --seafoam-dot: #3b7d6f;
  --harbor: #2d547e;
  --harbor-dot: #3d6b9c;
  --plumb: #5c3f8a;

  --paper-tooth: rgba(35, 38, 46, 0.018);
  --cloth-tooth: rgba(248, 244, 236, 0.024);
  --spine-ink: rgba(35, 38, 46, 0.075);
  --sheet-shadow: rgba(35, 38, 46, 0.13);
  --transparent: rgba(35, 38, 46, 0);
  --scrollbar-track: #ded6c7;
  --scrollbar-thumb: #6c7785;

  --font-display: "Besley", Georgia, serif;
  --font-body: "Figtree", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

html {
  overflow-x: clip;
  font-synthesis: none;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background: var(--desk-canvas);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--honey-badge);
  color: var(--ink-dark);
}

:focus-visible {
  outline: 3px solid var(--honey-focus);
  outline-offset: 2px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 5px;
  border: 2px solid var(--scrollbar-track);
}

/* =========================================================
   SLIM PRINT-DOWNLOAD UTILITY BAR (HIDDEN WHEN PRINTING)
   ========================================================= */
.print-bar {
  position: relative;
  z-index: 20;
  min-height: 48px;
  background: var(--card-ivory);
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media print {
  .print-bar { display: none !important; }
}

.print-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.print-brand strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  white-space: nowrap;
}
.print-brand span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.pdf-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pdf-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--harbor);
  color: var(--card-ivory);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.16s ease, filter 0.16s ease;
}
.pdf-btn:hover { filter: brightness(1.05); }
.pdf-btn:active { transform: translateY(1px); }
.pdf-btn.sec {
  background: var(--paper-oat);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}

/* =========================================================
   UNIFORM 16-PAGE SQUARE BOOK STREAM (1:1 -> 7x 2:1 -> 1:1)
   ========================================================= */
.zine-stream {
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.zine-stream > .single-square-page {
  position: relative;
  width: 50%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  container-type: inline-size;
  box-shadow: 0 18px 40px var(--sheet-shadow);
}

.spread-card {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--paper-eggshell);
  box-shadow: 0 18px 40px var(--sheet-shadow);
  container-type: inline-size;
}
.spread-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2.0%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--transparent), var(--spine-ink) 50%, var(--transparent));
  pointer-events: none;
  z-index: 15;
}

/* Double-Page Exploded Spread (pp. 04-05) */
.spread-card--exploded {
  display: block;
}
.exploded-grid {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 27.6% 44.8% 27.6%;
  padding: 1.0cqw 1.2cqw 2.4cqw;
  z-index: 3;
}
.exploded-col {
  display: flex;
  flex-direction: column;
  gap: 0.45cqw;
  min-width: 0;
  min-height: 0;
  z-index: 5;
}
.exploded-head {
  height: 4.5cqw;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.18cqw;
}
.exploded-head--right {
  text-align: right;
  align-items: flex-end;
}
.exploded-rows-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(9, minmax(0, 1fr));
  gap: 0.25cqw;
}
.exploded-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}
.exploded-center img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.leader-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}
.exploded-folios {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.35cqw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 8;
}
.exploded-folio-half {
  position: relative;
  height: 100%;
}

/* Tight Print Page Half Grounds */
.page-half {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 1.15cqw 1.3cqw 2.45cqw;
  display: flex;
  flex-direction: column;
  gap: 0.38cqw;
}
.page-half--cover {
  padding: 3.6cqw 3.8cqw 5.8cqw;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 0.8cqw;
}
.page-half--fullplate {
  padding: 0.9cqw 1.0cqw 2.4cqw;
  gap: 0.34cqw;
}

.page-dusk { background: var(--cloth-dusk); color: var(--cream-ink); }
.page-sage { background: var(--cloth-sage); color: var(--cream-ink); }
.page-eggshell { background: var(--paper-eggshell); color: var(--ink); }
.page-oat { background: var(--paper-oat); color: var(--ink); }
.page-dusk::before,
.page-sage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--cloth-tooth) 1px, transparent 0);
  background-size: 8px 8px;
  pointer-events: none;
}
.page-eggshell::before,
.page-oat::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--paper-tooth) 1px, transparent 0);
  background-size: 8px 8px;
  pointer-events: none;
}
.page-half > * { position: relative; z-index: 2; }

/* =========================================================
   COVERS (p. 01 Front & p. 16 Back)
   ========================================================= */
.cover-head { width: 100%; }
.cover-display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.2cqw;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--cream-ink);
  text-wrap: balance;
}
.cover-lead {
  margin: 0.9cqw auto 0;
  font-family: var(--font-body);
  font-size: 3.0cqw;
  line-height: 1.35;
  color: var(--cream-muted);
  max-width: 30ch;
  text-wrap: pretty;
}
.cover-hero-open {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-hero-open img {
  width: 96%;
  max-height: 100%;
  object-fit: contain;
}
.cover-edition-dots {
  display: inline-flex;
  align-items: center;
  gap: 1.2cqw;
}
.ink-swatch {
  display: inline-block;
  width: 1.8cqw;
  height: 1.8cqw;
  border-radius: 50%;
}
.sw-rosehip { background: var(--rosehip-dot); }
.sw-honey { background: var(--honey-badge); }
.sw-seafoam { background: var(--seafoam-dot); }

.back-top-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 2.3cqw;
  color: var(--cream-muted);
}
.mono-dim {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.back-colophon {
  width: 94%;
  margin: auto 0;
  padding: 2.6cqw 2.8cqw;
  background: var(--card-ivory);
  border: 1px solid var(--rule-sand);
  border-radius: 1.8cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2cqw;
}
.back-crest-svg {
  display: block;
  flex-shrink: 0;
  width: 34%;
  height: auto;
  max-height: 5.8cqw;
}
.back-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 5.0cqw;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}
.back-copy {
  margin: 0;
  font-size: 2.6cqw;
  line-height: 1.38;
  color: var(--ink-muted);
  max-width: 28ch;
}
.back-divider {
  width: 100%;
  height: 1px;
  background: var(--rule-sand);
}
.back-meta-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6cqw;
  font-size: 2.15cqw;
  line-height: 1.35;
  text-align: left;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.back-meta-grid strong { color: var(--harbor); font-weight: 600; }
.back-meta-grid span { font-size: 1.95cqw; color: var(--ink-muted); }
.back-signoff {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 2.3cqw;
  line-height: 1.35;
  color: var(--rosehip);
}

/* =========================================================
   PRINT TYPOGRAPHY & STATIC PRINT COMPONENTS
   ========================================================= */
.zine-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.72cqw;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.zine-h2--sm { font-size: 1.54cqw; }
.page-dusk .zine-h2,
.page-sage .zine-h2 { color: var(--cream-ink); }
.page-eggshell .zine-h2,
.page-oat .zine-h2 { color: var(--ink); }

.zine-copy {
  margin: 0;
  font-size: 0.96cqw;
  line-height: 1.38;
  max-width: 68ch;
  text-wrap: pretty;
}
.page-dusk .zine-copy { color: var(--cream-muted); }
.page-sage .zine-copy { color: var(--sage-muted); }
.page-eggshell .zine-copy,
.page-oat .zine-copy { color: var(--ink-muted); }

/* Static Stage & Pin Overlay */
.plate-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.48cqw;
  overflow: hidden;
  color: var(--ink);
  container-type: size;
}
.plate-stage--mat {
  background: var(--stage-mat);
  padding: 0.25cqw;
}
.plate-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.pin-canvas {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100cqw, calc(100cqh * var(--ar, 1)));
  height: auto;
  aspect-ratio: var(--ar, 1);
  max-width: 100%;
  max-height: 100%;
}
.pin-canvas img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.print-badge {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 24px;
  height: 22px;
  padding: 0 4px;
  border-radius: 4px;
  border: 1.5px solid var(--card-ivory);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 6;
}
@media print {
  .print-badge {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9px;
    line-height: 1.32;
  }
}
.zrect { fill: none; stroke-width: 10; stroke-dasharray: 18 12; }
.zrect-rosehip { stroke: var(--rosehip); }
.zrect-seafoam { stroke: var(--seafoam); }
.zrect-harbor { stroke: var(--harbor); }
.zrect-plumb { stroke: var(--plumb); }
.zrect-honey { stroke: var(--honey); }
.zrect-ink { stroke: var(--ink); }
.zpin { color: var(--card-ivory); }
.zpin-honey { color: var(--ink-dark); border-color: var(--ink-dark); }
.c-harbor { background: var(--harbor); color: var(--card-ivory); }
.c-honey { background: var(--honey-badge); color: var(--ink-dark); border-color: var(--ink-dark); }
.c-seafoam { background: var(--seafoam); color: var(--card-ivory); }
.c-rosehip { background: var(--rosehip); color: var(--card-ivory); }
.c-ink { background: var(--ink); color: var(--card-ivory); }
.c-plumb { background: var(--plumb); color: var(--card-ivory); }

.zone-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

/* Static Callout Legend Grid */
.legend-grid {
  display: grid;
  gap: 0.24cqw;
  min-height: 0;
}
.legend-grid.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.legend-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35cqw;
  padding: 0.22cqw 0.38cqw;
  border-radius: 0.36cqw;
  background: var(--card-ivory);
  border: 1px solid var(--rule-sand);
  color: var(--ink);
  min-width: 0;
}
.mook-num {
  flex-shrink: 0;
  width: 1.32cqw;
  height: 1.24cqw;
  border-radius: 0.28cqw;
  font-family: var(--font-mono);
  font-size: 0.68cqw;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mook-txt {
  min-width: 0;
  flex: 1;
  line-height: 1.32;
}
.mook-txt strong {
  display: block;
  font-size: 0.78cqw;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
  overflow-wrap: break-word;
}
.mook-txt span {
  display: block;
  font-size: 0.68cqw;
  font-weight: 400;
  line-height: 1.32;
  color: var(--ink-muted);
  overflow-wrap: break-word;
}

.exploded-row {
  display: flex;
  align-items: center;
  gap: 0.34cqw;
  padding: 0.24cqw 0.42cqw;
  border-radius: 0.38cqw;
  background: var(--card-ivory);
  border: 1px solid var(--rule-sand);
  min-width: 0;
}
.exploded-row--right {
  flex-direction: row-reverse;
  text-align: right;
}

/* Info Cards, Equation Pills, Zones & Dense Print Tables */
.dual-plates-row {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.45cqw;
}

.story-photo-pair {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 0.38cqw;
}
.split-horizontal {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: 0.5cqw;
}
.split-50 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.42cqw;
  min-height: 0;
}
.split-54-46 {
  display: grid;
  grid-template-columns: minmax(0, 0.54fr) minmax(0, 0.46fr);
  gap: 0.45cqw;
  min-height: 0;
}

.stamp-box {
  background: var(--card-ivory);
  color: var(--ink);
  border: 1px solid var(--rule-sand);
  border-radius: 0.48cqw;
  padding: 0.46cqw 0.6cqw;
  display: flex;
  flex-direction: column;
  gap: 0.22cqw;
  min-height: 0;
}
.stamp-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4cqw;
  padding-bottom: 0.22cqw;
  border-bottom: 1px solid var(--rule-sand);
}
.stamp-box-title {
  margin: 0;
  font-size: 0.86cqw;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
}
.stamp-box-tag {
  font-family: var(--font-body);
  font-size: 0.74cqw;
  font-weight: 600;
  line-height: 1.32;
  color: var(--harbor);
  white-space: nowrap;
}
.box-copy {
  margin: 0;
  font-size: 0.8cqw;
  line-height: 1.35;
  color: var(--ink-muted);
}

.stat-strip-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35cqw;
}
.stat-pill {
  background: var(--card-ivory);
  border: 1px solid var(--rule-sand);
  border-radius: 0.42cqw;
  padding: 0.34cqw 0.46cqw;
}
.stat-pill b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8cqw;
  font-weight: 700;
  line-height: 1.32;
  color: var(--harbor);
}
.stat-pill span {
  display: block;
  font-size: 0.68cqw;
  line-height: 1.32;
  color: var(--ink-muted);
}

.zone-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card-ivory);
  border: 1px solid var(--rule-sand);
  border-radius: 0.48cqw;
  overflow: hidden;
  min-height: 0;
}
.zone-row {
  color: var(--ink);
  border-bottom: 1px solid var(--rule-sand);
  padding: 0.34cqw 0.52cqw;
  display: flex;
  align-items: flex-start;
  gap: 0.44cqw;
}
.zone-row:last-child { border-bottom: none; }
.zone-tag {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.72cqw;
  font-weight: 700;
  line-height: 1.32;
  padding: 0.12cqw 0.36cqw;
  border-radius: 4px;
  margin-top: 0.08cqw;
}
.zone-body strong {
  display: block;
  font-size: 0.8cqw;
  line-height: 1.32;
  color: var(--ink);
}
.zone-body p {
  margin: 0.06cqw 0 0;
  font-size: 0.72cqw;
  line-height: 1.34;
  color: var(--ink-muted);
}

.eq-pill {
  font-family: var(--font-mono);
  font-size: 0.72cqw;
  font-weight: 600;
  line-height: 1.35;
  background: var(--honey-wash);
  border: 1px solid var(--rule-sand);
  border-radius: 0.32cqw;
  padding: 0.22cqw 0.44cqw;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.rail-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-ivory);
  border: 1px solid var(--rule-sand);
  border-radius: 0.42cqw;
  font-size: 0.72cqw;
  font-variant-numeric: tabular-nums;
}
.rail-table th,
.rail-table td {
  text-align: left;
  padding: 0.22cqw 0.36cqw;
  border-bottom: 1px solid var(--rule-sand);
  line-height: 1.32;
}
.rail-table th {
  background: var(--paper-oat);
  font-family: var(--font-body);
  font-size: 0.72cqw;
  font-weight: 700;
  color: var(--harbor);
}
.rail-table tr:last-child td { border-bottom: none; }
.rail-table td code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: inherit;
  color: var(--ink);
}

.atlas-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.35cqw;
}
.rail-table--dense {
  font-size: 0.64cqw;
}
.rail-table--dense th,
.rail-table--dense td {
  padding: 0.16cqw 0.28cqw;
  line-height: 1.32;
}
.rail-table--dense th { font-size: 0.64cqw; }

.memoir-note {
  background: var(--honey-wash);
  color: var(--ink);
  border: 1px solid var(--rule-sand);
  border-radius: 0.48cqw;
  padding: 0.48cqw 0.65cqw;
}
.memoir-note-title {
  margin: 0 0 0.16cqw;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94cqw;
  color: var(--ink);
}
.memoir-note p {
  margin: 0;
  font-size: 0.8cqw;
  line-height: 1.36;
  color: var(--ink);
}

/* Quiet Running Page Footers */
.page-footer-bar {
  position: absolute;
  left: 1.3cqw;
  right: 1.3cqw;
  bottom: 0.28cqw;
  height: 1.95cqw;
  border-top: 1px solid var(--rule-sand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6cqw;
  font-size: 0.72cqw;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
  z-index: 6;
}
.page-footer-bar.foot-cloth {
  border-top-color: var(--cloth-rule);
  color: var(--cream-muted);
}
.page-footer-bar.foot-cover {
  left: 4.5cqw;
  right: 4.5cqw;
  bottom: 1.1cqw;
  height: 4.6cqw;
  font-size: 2.1cqw;
}
.folio-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.foot-cloth .folio-num { color: var(--cream-ink); }

@media screen and (min-width: 768px) {
  .zine-copy { font-size: max(12.5px, 0.96cqw); line-height: 1.38; }
  .box-copy { font-size: max(12px, 0.8cqw); line-height: 1.36; }
  .memoir-note p { font-size: max(12px, 0.8cqw); line-height: 1.36; }
  .stamp-box-title { font-size: max(12px, 0.86cqw); line-height: 1.32; }
  .stamp-box-tag { font-size: max(12px, 0.72cqw); line-height: 1.32; }
  .mook-txt strong { font-size: max(12px, 0.78cqw); line-height: 1.32; }
  .mook-txt span { font-size: max(12px, 0.68cqw); line-height: 1.32; }
  .mook-num { min-width: 22px; height: 20px; font-size: 12px; line-height: 1.32; border-radius: 4px; }
  .stat-pill b { font-size: max(12px, 0.8cqw); line-height: 1.32; }
  .stat-pill span { font-size: max(12px, 0.68cqw); line-height: 1.32; }
  .zone-body strong { font-size: max(12px, 0.8cqw); line-height: 1.32; }
  .zone-body p { font-size: max(12px, 0.72cqw); line-height: 1.34; }
  .zone-tag { font-size: 12px; line-height: 1.32; }
  .eq-pill { font-size: max(12px, 0.72cqw); line-height: 1.35; }
  .rail-table { font-size: max(12px, 0.72cqw); }
  .rail-table th { font-size: max(12px, 0.68cqw); line-height: 1.32; }
  .rail-table td { font-size: max(12px, 0.72cqw); line-height: 1.32; }
  .rail-table--dense th { font-size: 12px; padding: 0 4px; line-height: 1.32; }
  .rail-table--dense td { font-size: 12px; padding: 0 4px; line-height: 1.32; }
  .memoir-note-title { font-size: max(12.5px, 0.94cqw); line-height: 1.32; }
  .back-copy { font-size: max(12.5px, 2.6cqw); line-height: 1.38; }
  .back-meta-grid,
  .back-meta-grid strong,
  .back-meta-grid span,
  .back-signoff { font-size: max(12px, 2.0cqw); line-height: 1.35; }
  .page-footer-bar { height: max(28px, 1.95cqw); font-size: max(12px, 0.72cqw); line-height: 1.32; }
  .page-footer-bar.foot-cover,
  .back-top-row { font-size: max(12.5px, 2.1cqw); line-height: 1.32; }
  .page-half:not(.page-half--cover) { padding-bottom: max(32px, 2.45cqw); }
  .page-half--fullplate { padding-bottom: max(32px, 2.4cqw); }
  .exploded-grid { padding-bottom: max(32px, 2.4cqw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   MOBILE RESPONSIVE (< 768px SCREEN ONLY)
   Front & Back Covers stay strict 1:1 Squares!
   ========================================================= */
@media screen and (max-width: 767px) {
  .print-bar {
    flex-wrap: wrap;
    padding: 8px 12px;
  }
  .print-brand span { display: none; }
  .pdf-actions { flex-wrap: wrap; flex-shrink: 1; max-width: 100%; }
  .zine-stream {
    padding: 12px 12px 36px;
    gap: 16px;
  }
  .zine-stream > .single-square-page {
    width: 100%;
    aspect-ratio: 1 / 1;
    container-type: inline-size;
    padding: 16px 16px 40px;
  }
  .spread-card,
  .spread-card--exploded {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    container-type: normal;
  }
  .spread-card::after { display: none; }
  .exploded-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 16px 44px;
  }
  .leader-svg { display: none; }
  .exploded-folios { position: static; height: auto; padding: 8px 16px; border-top: 1px solid var(--rule-sand); }
  .exploded-head--right { text-align: left; }
  .exploded-row--right { flex-direction: row; text-align: left; }
  .page-half:not(.single-square-page),
  .page-half--fullplate {
    height: auto;
    padding: 16px 16px 52px;
    gap: 12px;
  }
  .plate-stage { container-type: normal; }
  .pin-canvas {
    width: min(100%, calc(340px * var(--ar, 1)));
    height: auto;
    aspect-ratio: var(--ar, 1);
  }
  .dual-plates-row,
  .story-photo-pair,
  .split-horizontal,
  .split-50,
  .split-54-46,
  .atlas-grid-2 {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 12px;
  }
  .legend-grid.cols-2,
  .legend-grid.cols-3,
  .stat-strip-4 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
  .zine-h2,
  .zine-h2--sm { font-size: 22px; line-height: 1.15; text-wrap: balance; }
  .zine-copy { font-size: 14px; line-height: 1.4; }
  .mook-num { width: 24px; height: 20px; font-size: 12px; border-radius: 4px; }
  .mook-txt strong { font-size: 12.5px; white-space: normal; }
  .mook-txt span { font-size: 12px; white-space: normal; }
  .print-badge { min-width: 24px; height: 22px; font-size: 12px; border-radius: 4px; }
  .stamp-box { padding: 12px; gap: 8px; border-radius: 8px; }
  .stamp-box-title { font-size: 14px; }
  .stamp-box-tag { font-size: 12px; }
  .box-copy { font-size: 13px; }
  .stat-pill { padding: 8px; border-radius: 8px; }
  .stat-pill b { font-size: 13px; }
  .stat-pill span { font-size: 12px; }
  .zone-row { padding: 8px 12px; gap: 8px; }
  .zone-tag { font-size: 12px; padding: 4px 8px; }
  .zone-body strong { font-size: 13px; }
  .zone-body p { font-size: 12px; }
  .eq-pill { font-size: 12px; padding: 4px 8px; }
  .rail-table,
  .rail-table th,
  .rail-table td,
  .rail-table--dense,
  .rail-table--dense th,
  .rail-table--dense td { font-size: 12px; line-height: 1.32; }
  .rail-table th,
  .rail-table td { padding: 4px 8px; line-height: 1.32; }
  .memoir-note { padding: 12px; border-radius: 8px; }
  .memoir-note-title { font-size: 15px; line-height: 1.32; }
  .memoir-note p { font-size: 13.5px; line-height: 1.38; }
  .page-footer-bar:not(.foot-cover) {
    left: 16px;
    right: 16px;
    bottom: 8px;
    height: auto;
    min-height: 32px;
    font-size: 12px;
    line-height: 1.32;
  }
  .page-footer-bar.foot-cover {
    left: 16px;
    right: 16px;
    bottom: 8px;
    height: 32px;
    font-size: 12px;
    line-height: 1.32;
  }
  .cover-display { font-size: 44px; text-wrap: balance; }
  .cover-lead { font-size: 14px; margin-top: 4px; }
  #page-back-cover { padding: 8px 12px 44px; gap: 4px; }
  .back-top-row { font-size: 12px; line-height: 1.32; }
  .back-colophon { width: 96%; border-radius: 12px; padding: 8px 12px; gap: 4px; }
  .back-crest-svg { width: 76px; height: 20px; max-height: none; }
  .back-title { font-size: 16px; line-height: 1.15; text-wrap: balance; }
  .back-copy { font-size: 12px; line-height: 1.32; }
  .back-meta-grid { font-size: 12px; gap: 4px 8px; line-height: 1.32; }
  .back-meta-grid span { font-size: 12px; line-height: 1.32; }
  .back-signoff { font-size: 12px; line-height: 1.32; }
}
