/* ==========================================================================
   Out From — "The Glovebox Monograph" (redesign frontend)
   Implements Gemini 4 Neon's redesign proposal: warm uncoated-paper
   neutrals, Newsreader / Plus Jakarta Sans / IBM Plex Mono, hairline rules,
   drive-order structure as UI, real folio pagination.
   ========================================================================== */

:root {
  --bg-paper: #f6f3ec;
  --bg-surface: #ede8dd;
  --bg-stone: #e3ddd0;
  --ink-primary: #1c1b18;
  --ink-muted: #5a564d;
  --border-rule: #d4cec0;
  --accent-ochre: #a64b2a;
  --accent-eucalyptus: #3b5249;
  --bg-night: #181714;

  --issue-accent: var(--accent-ochre);

  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container-max: 1280px;
  --reading-max: 1120px;
  --prose-max: 660px;
  --margin-rail: 300px;
  --hairline: 1px solid var(--border-rule);
  --radius: 2px;
  --cover-shadow: 3px 3px 0 var(--bg-stone), 4px 4px 0 var(--border-rule);
  --topbar-height: 52px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-paper);
  color: var(--ink-primary);
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--issue-accent); color: var(--bg-paper); }

a { color: var(--accent-ochre); text-decoration-color: color-mix(in srgb, var(--accent-ochre) 45%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent-ochre); }
:focus-visible { outline: 2px solid var(--accent-ochre); outline-offset: 2px; }

img, svg { display: block; }

.wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.3;
}
.kicker .accent { color: var(--issue-accent); }

.rule { border: 0; border-top: var(--hairline); margin: 0; }

/* ---------- Boot / error ---------- */
.boot { padding: 96px 24px; text-align: center; }
.boot-mark { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.boot-note { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.error-box { max-width: 640px; margin: 80px auto; padding: 0 24px; text-align: center; }
.error-box h1 { font-weight: 400; font-size: 36px; margin: 8px 0; }

/* ---------- 6-segment drive progress thread ---------- */
.progress-thread {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; gap: 4px; padding: 0 4px; height: 2px;
}
.progress-thread .seg { flex: 1; height: 2px; background: var(--border-rule); overflow: hidden; }
.progress-thread .seg i { display: block; height: 100%; background: var(--issue-accent); }

/* ---------- Folio / masthead bar ---------- */
.folio-bar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--hairline);
  transition: transform 0.28s ease;
}
.folio-bar.hidden { transform: translateY(-100%); }
.folio-bar-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 24px;
  height: var(--topbar-height);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark {
  font-family: var(--font-serif); font-size: 28px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1; color: var(--ink-primary); text-decoration: none;
  white-space: nowrap;
}
.folio-centre {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
  text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.folio-actions { display: flex; align-items: center; gap: 8px; }
.folio-btn {
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; line-height: 1.2;
  color: var(--ink-primary); background: none; border: var(--hairline); border-radius: var(--radius);
  padding: 8px 12px; cursor: pointer; white-space: nowrap; text-decoration: none;
  min-height: 36px; display: inline-flex; align-items: center;
}
.folio-btn:hover { border-color: var(--issue-accent); color: var(--issue-accent); }

/* Masthead band (home) */
.masthead { border-bottom: var(--hairline); }
.masthead-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.masthead .tagline { font-style: italic; font-size: 20px; color: var(--ink-muted); margin: 0; }
.masthead nav { display: flex; gap: 24px; }
.masthead nav a {
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--ink-primary);
  text-decoration: none;
}
.masthead nav a:hover { color: var(--accent-ochre); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Contents drawer ---------- */
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(24, 23, 20, 0.42); z-index: 70;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(380px, 92vw); z-index: 71;
  background: var(--bg-paper); border-right: var(--hairline);
  transform: translateX(-102%); transition: transform 0.28s ease;
  overflow-y: auto; padding: 24px;
}
body.drawer-open .drawer { transform: translateX(0); }
body.drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer h2 { font-weight: 400; font-size: 26px; margin: 4px 0 16px; line-height: 1.15; }
.drawer .drawer-close { float: right; }
.drawer-pocket { border-top: var(--hairline); padding: 14px 0 6px; }
.drawer-pocket h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--issue-accent); margin: 0 0 8px; font-weight: 500; }
.drawer-pocket ul { list-style: none; margin: 0; padding: 0; }
.drawer-pocket li a {
  display: flex; justify-content: space-between; gap: 12px; padding: 6px 0;
  color: var(--ink-primary); text-decoration: none; font-size: 17px; line-height: 1.35;
}
.drawer-pocket li a:hover, .drawer-pocket li a.current { color: var(--issue-accent); }
.drawer-pocket .pg { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); padding-top: 4px; }

/* ---------- Art panels (abstract editorial SVG) ---------- */
.art-panel { position: relative; overflow: hidden; background: var(--bg-surface); border: var(--hairline); }
.art-panel svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.art-panel.ratio-cover { aspect-ratio: 3 / 4; }
.art-panel.ratio-hero { aspect-ratio: 3 / 2; }
.art-panel.ratio-lead { aspect-ratio: 16 / 10; }
.art-caption {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-muted); margin-top: 8px; text-transform: uppercase;
}

/* ---------- Home / shelf ---------- */
.hero { padding: 64px 0 56px; border-bottom: var(--hairline); }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.hero-copy .kicker { color: var(--issue-accent); }
.hero-copy h1 {
  font-size: clamp(2.5rem, 4.5vw, 4rem); font-weight: 400; line-height: 1.05;
  letter-spacing: -0.025em; margin: 12px 0 16px; font-optical-sizing: auto;
}
.hero-standfirst { font-style: italic; font-size: 22px; line-height: 1.45; color: var(--ink-muted); margin: 0 0 24px; }
.pocket-strip { display: flex; flex-wrap: wrap; gap: 0; border-top: var(--hairline); border-bottom: var(--hairline); margin: 0 0 28px; }
.pocket-strip span {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 10px 14px 10px 0; margin-right: 14px; color: var(--ink-primary);
}
.pocket-strip span b { color: var(--issue-accent); font-weight: 500; margin-right: 6px; }
.btn-primary {
  display: inline-block; font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  background: var(--ink-primary); color: var(--bg-paper); text-decoration: none;
  padding: 13px 20px; border-radius: var(--radius); min-height: 44px;
}
.btn-primary:hover { background: var(--issue-accent); color: var(--bg-paper); }
.btn-quiet {
  display: inline-block; font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: var(--ink-primary); text-decoration: none; border: var(--hairline);
  padding: 12px 18px; border-radius: var(--radius); margin-left: 10px; min-height: 44px;
}
.btn-quiet:hover { border-color: var(--issue-accent); color: var(--issue-accent); }

.shelf-section { padding: 56px 0 72px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.shelf-head h2 { font-weight: 400; font-size: clamp(1.75rem, 2.5vw, 2.25rem); margin: 0; letter-spacing: -0.015em; }
.shelf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.issue-card { text-decoration: none; color: var(--ink-primary); display: block; }
.issue-card .cover-frame { position: relative; transition: transform 0.2s ease; }
.issue-card:hover .cover-frame { transform: translateY(-3px); }
.issue-card .cover-frame::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--issue-accent); opacity: 0; transition: opacity 0.2s ease; z-index: 2;
}
.issue-card:hover .cover-frame::before { opacity: 1; }
.issue-card .art-panel { box-shadow: var(--cover-shadow); }
.cover-title-block {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  background: linear-gradient(transparent, color-mix(in srgb, var(--bg-night) 78%, transparent));
  color: var(--bg-paper);
}
.cover-title-block .no { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.cover-title-block .place { font-size: 24px; line-height: 1.12; font-weight: 500; margin-top: 2px; }
.issue-card-meta { padding-top: 14px; }
.issue-card-meta .no { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--issue-accent); }
.issue-card-meta h3 { font-weight: 400; font-size: 22px; line-height: 1.2; margin: 4px 0; letter-spacing: -0.015em; }
.issue-card-meta p { font-size: 16px; line-height: 1.45; color: var(--ink-muted); margin: 0; font-style: italic; }

/* ---------- Footer colophon ---------- */
.colophon { background: var(--bg-stone); border-top: var(--hairline); margin-top: 0; }
.colophon-inner { max-width: var(--container-max); margin: 0 auto; padding: 48px 24px 56px; }
.colophon .wordmark { font-size: 24px; }
.house-rules {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  border-top: var(--hairline); padding-top: 28px; margin-top: 28px;
}
.house-rules .rule-item .kicker { color: var(--ink-primary); }
.house-rules .rule-item p { font-size: 17px; line-height: 1.5; margin: 6px 0 0; }
.house-stamp {
  display: inline-block; margin-top: 32px; padding: 8px 14px;
  border: 1px solid var(--ink-muted); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-primary);
}
.colophon .fineprint { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); margin-top: 20px; letter-spacing: 0.02em; }

/* ---------- Issue contents (drive spine) ---------- */
.issue-head { padding: 56px 0 48px; border-bottom: var(--hairline); }
.issue-head-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.issue-head-copy .kicker { color: var(--issue-accent); }
.issue-head-copy h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.025em; margin: 12px 0 16px; }
.issue-head-copy .standfirst { font-style: italic; font-size: 22px; line-height: 1.45; color: var(--ink-muted); margin: 0 0 20px; }
.meta-row {
  display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: var(--hairline); border-bottom: var(--hairline);
  padding: 10px 0; margin: 0 0 28px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.cover-lines { list-style: none; margin: 0 0 28px; padding: 0; }
.cover-lines li { font-size: 18px; line-height: 1.5; padding: 7px 0 7px 18px; border-bottom: var(--hairline); position: relative; }
.cover-lines li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 1px; background: var(--issue-accent); }
.cover-lines li:first-child { border-top: var(--hairline); }

.spine { max-width: 920px; margin: 0 auto; padding: 56px 24px 8px; }
.spine-section { position: relative; padding: 0 0 40px 56px; }
.spine-section::before {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 1px;
  background: color-mix(in srgb, var(--issue-accent) 40%, transparent);
}
.spine-section.last::before { display: none; }
.spine-node {
  position: absolute; left: 0; top: 2px; width: 31px; height: 31px; border-radius: 50%;
  border: 1px solid var(--issue-accent); background: var(--bg-paper);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--issue-accent);
  display: flex; align-items: center; justify-content: center;
}
.spine-node.plain { border-color: var(--border-rule); color: var(--ink-muted); }
.spine-head .kicker { color: var(--issue-accent); }
.spine-head h2 { font-weight: 400; font-size: clamp(1.75rem, 2.5vw, 2.25rem); line-height: 1.15; letter-spacing: -0.015em; margin: 4px 0 6px; }
.spine-head .orient { font-style: italic; font-size: 18px; color: var(--ink-muted); margin: 0 0 8px; line-height: 1.45; }
.story-rows { list-style: none; margin: 8px 0 0; padding: 0; }
.story-rows li { border-bottom: var(--hairline); }
.story-rows li:first-child { border-top: var(--hairline); }
.story-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: baseline;
  padding: 13px 0; text-decoration: none; color: var(--ink-primary); min-height: 44px;
}
.story-row:hover .story-row-title { color: var(--issue-accent); }
.story-row .pg { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.story-row-title { font-size: 20px; line-height: 1.3; display: block; }
.story-row-dek { font-size: 16px; font-style: italic; color: var(--ink-muted); line-height: 1.4; display: block; margin-top: 2px; }
.story-row .pins { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }

.contents-prose { max-width: 920px; margin: 0 auto; padding: 8px 24px 64px; }
.contents-prose .prose-col { max-width: var(--prose-max); }

/* ---------- Story page ---------- */
.story-opener { max-width: 1040px; margin: 0 auto; padding: 48px 24px 0; }
.story-opener .breadcrumb { margin-bottom: 16px; }
.story-opener h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 16px; font-optical-sizing: auto; }
.story-opener .standfirst { font-style: italic; font-size: 22px; line-height: 1.45; color: var(--ink-muted); margin: 0 0 32px; max-width: 720px; }
.story-lead { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.story-grid {
  max-width: var(--reading-max); margin: 0 auto; padding: 40px 24px 8px;
  display: grid; grid-template-columns: var(--prose-max) var(--margin-rail);
  column-gap: 80px; justify-content: center; align-items: start;
}
.story-grid > * { grid-column: 1; min-width: 0; }
.story-grid > .field-notes { grid-column: 2; }

.prose p.body-copy { margin: 0 0 26px; max-width: 62ch; }
.prose p.body-copy:first-of-type { margin-top: 0; }
.drop-cap::first-letter {
  font-size: 3.4em; float: left; line-height: 0.82; padding: 6px 10px 0 0; font-weight: 500;
}
.crosshead {
  font-size: 26px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em;
  margin: 40px 0 16px; max-width: 62ch;
}
.pull-quote { margin: 40px 0 40px -32px; padding-top: 16px; position: relative; max-width: 62ch; }
.pull-quote::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 2px; background: var(--issue-accent); }
.pull-quote p { font-style: italic; font-size: 28px; line-height: 1.32; letter-spacing: -0.01em; margin: 0; }
.pull-quote cite { display: block; margin-top: 10px; font-family: var(--font-mono); font-style: normal; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }

.field-notes {
  background: var(--bg-surface); border-left: 2px solid var(--issue-accent);
  padding: 16px 18px; margin: 0 0 26px; align-self: start;
}
.field-notes h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; margin: 0 0 10px; color: var(--ink-primary);
}
.field-notes ul { list-style: none; margin: 0; padding: 0; }
.field-notes li {
  font-family: var(--font-sans); font-size: 14px; line-height: 1.55; margin: 0 0 10px;
  padding-left: 14px; position: relative;
}
.field-notes li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 1px; background: var(--issue-accent); }
.field-notes li:last-child { margin-bottom: 0; }

.mag-table-wrap { margin: 32px 0; max-width: 62ch; }
.mag-table-wrap h4 { font-size: 20px; font-weight: 500; margin: 0 0 12px; }
.mag-table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.45; }
.mag-table th {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; text-align: left; color: var(--ink-muted);
  border-top: var(--hairline); border-bottom: var(--hairline); padding: 8px 12px 8px 0;
}
.mag-table td { border-bottom: var(--hairline); padding: 9px 12px 9px 0; vertical-align: top; }
.mag-table td:last-child, .mag-table th:last-child { padding-right: 0; white-space: nowrap; font-family: var(--font-mono); font-size: 14px; }
.table-note { font-size: 15px; font-style: italic; color: var(--ink-muted); margin-top: 10px; line-height: 1.5; }

.schedule { list-style: none; margin: 24px 0; padding: 0; max-width: 62ch; }
.schedule li { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 12px 0; border-bottom: var(--hairline); }
.schedule li:first-child { border-top: var(--hairline); }
.schedule .time { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--issue-accent); padding-top: 5px; }
.schedule .sched-title { font-size: 20px; line-height: 1.3; margin: 0; }
.schedule .sched-note { font-size: 16px; color: var(--ink-muted); line-height: 1.5; margin: 3px 0 0; }

/* Locked (deeper pins) panel */
.locked-panel {
  border: var(--hairline); background: var(--bg-surface); padding: 20px 22px; margin: 0 0 26px; max-width: 62ch;
}
.locked-panel .kicker { color: var(--issue-accent); }
.locked-panel h3 { font-size: 24px; font-weight: 500; line-height: 1.25; margin: 6px 0 8px; }
.locked-panel p { font-size: 17px; line-height: 1.55; color: var(--ink-muted); margin: 0; }
.unlock-box { margin-top: 16px; border-top: var(--hairline); padding-top: 16px; }
.unlock-box .unlock-note {
  font-family: var(--font-sans); font-size: 13px; line-height: 1.55;
  background: var(--bg-paper); border: var(--hairline); padding: 10px 12px; margin: 0 0 14px;
}
.unlock-box .unlock-error { font-family: var(--font-sans); font-size: 14px; color: #8c2f1d; margin: 0 0 12px; }
.btn-unlock {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--ink-primary); color: var(--bg-paper); border: 0; border-radius: var(--radius);
  padding: 12px 18px; min-height: 44px;
}
.btn-unlock:hover:not(:disabled) { background: var(--issue-accent); }
.btn-unlock:disabled { opacity: 0.6; cursor: wait; }

/* Gazetteer band (pins) */
.gazetteer { max-width: var(--reading-max); margin: 40px auto 0; padding: 0 24px 8px; }
.gazetteer-inner { background: var(--bg-surface); border: var(--hairline); padding: 28px 32px 12px; }
.gazetteer-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.gazetteer-head h2 { font-weight: 400; font-size: 30px; margin: 0; letter-spacing: -0.015em; }
.gazetteer-sub { font-style: italic; color: var(--ink-muted); font-size: 17px; margin: 0 0 12px; }
.pin-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pin-item {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px;
  padding: 14px 20px 14px 0; border-top: var(--hairline); min-height: 44px;
}
.pin-item:nth-child(even) { padding-left: 20px; }
.pin-badge {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--accent-ochre);
  color: var(--accent-ochre); font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.pin-name { font-family: var(--font-sans); font-size: 15px; font-weight: 600; line-height: 1.35; }
.pin-name a { color: var(--ink-primary); text-decoration: none; }
.pin-name a:hover { color: var(--accent-ochre); text-decoration: underline; }
.pin-note { font-size: 15px; line-height: 1.45; color: var(--ink-muted); margin: 2px 0 4px; }
.pin-open { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.pin-group-title {
  grid-column: 1 / -1; font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--issue-accent);
  padding: 18px 0 2px; border-top: var(--hairline);
}

/* Advertising */
.ad-unit {
  background: var(--bg-stone); border: var(--hairline); border-radius: var(--radius);
  padding: 16px 20px; margin: 0 0 26px; max-width: 62ch;
}
.ad-unit.size-full { padding: 28px 32px; }
.ad-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted); margin: 0 0 12px;
}
.ad-head .placement { text-transform: none; letter-spacing: 0.02em; text-align: right; }
.ad-unit h3 { font-weight: 400; font-size: 20px; line-height: 1.25; margin: 0 0 6px; }
.ad-unit.size-full h3 { font-size: 30px; }
.ad-unit p { font-size: 16px; line-height: 1.55; color: var(--ink-muted); margin: 0 0 12px; }
.ad-unit .ad-link { font-family: var(--font-sans); font-size: 14px; font-weight: 500; }
.ad-unit .ad-fineprint { font-size: 13px; margin: 10px 0 0; }
.ad-half-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 62ch; }
.ad-half-row .ad-unit { max-width: none; }

/* Folio prev/next bar */
.folio-nav { max-width: var(--reading-max); margin: 48px auto 0; padding: 0 24px 72px; }
.folio-nav-inner { border-top: var(--hairline); display: grid; grid-template-columns: 1fr 1fr; }
.folio-nav a {
  display: block; padding: 20px 0; text-decoration: none; color: var(--ink-primary); min-height: 44px;
}
.folio-nav a:hover .folio-nav-title { color: var(--issue-accent); }
.folio-nav .next { text-align: right; }
.folio-nav .dir { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); display: block; margin-bottom: 4px; }
.folio-nav-title { font-size: 21px; line-height: 1.3; display: block; }
.entering-tag {
  display: inline-block; margin-top: 8px; padding: 4px 8px; border: 1px solid var(--issue-accent);
  color: var(--issue-accent); font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--radius);
}

/* Mobile pins pill + bottom sheet */
.mobile-pill {
  display: none; position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 65;
  background: color-mix(in srgb, var(--bg-paper) 94%, transparent); backdrop-filter: blur(8px);
  border: var(--hairline); border-radius: 999px; height: 44px; padding: 0 6px;
  align-items: center; gap: 4px; box-shadow: 0 4px 18px rgba(24, 23, 20, 0.14);
}
.mobile-pill button {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; border: 0; background: none;
  color: var(--ink-primary); padding: 10px 14px; cursor: pointer; min-height: 44px;
}
.mobile-pill button b { color: var(--issue-accent); font-weight: 600; }
.sheet-scrim { position: fixed; inset: 0; background: rgba(24, 23, 20, 0.42); z-index: 72; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.pin-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 73; max-height: 72vh; overflow-y: auto;
  background: var(--bg-paper); border-top: var(--hairline); border-radius: 10px 10px 0 0;
  transform: translateY(103%); transition: transform 0.28s ease; padding: 20px 24px 32px;
}
body.sheet-open .pin-sheet { transform: translateY(0); }
body.sheet-open .sheet-scrim { opacity: 1; pointer-events: auto; }
.pin-sheet h2 { font-weight: 400; font-size: 24px; margin: 0 0 8px; }
.pin-sheet .pin-item { grid-template-columns: 34px 1fr; padding-left: 0; }
.pin-sheet .pin-grid { grid-template-columns: 1fr; }

/* ---------- Road sheet (all pins) ---------- */
.road-sheet { max-width: 920px; margin: 0 auto; padding: 48px 24px 72px; }
.road-sheet h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; letter-spacing: -0.02em; margin: 8px 0 12px; }
.road-pocket { margin-top: 40px; }
.road-pocket h2 { font-weight: 400; font-size: 28px; margin: 0 0 4px; }
.road-pocket .kicker { color: var(--issue-accent); }
.road-list { list-style: none; margin: 12px 0 0; padding: 0; }
.road-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline;
  border-top: var(--hairline); padding: 11px 0; min-height: 44px;
}
.road-list .r-name { font-family: var(--font-sans); font-size: 15px; font-weight: 600; }
.road-list .r-note { font-size: 15px; color: var(--ink-muted); line-height: 1.45; grid-column: 1; }
.road-list .r-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.road-list .pin-open { align-self: center; }

/* ---------- Advertise / forms ---------- */
.buy-form {
  border: var(--hairline); background: var(--bg-surface); padding: 24px; margin: 32px 0; max-width: 62ch;
}
.buy-form h3 { font-size: 22px; font-weight: 500; margin: 0 0 4px; }
.buy-form label { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin: 18px 0 6px; }
.buy-form select, .buy-form input {
  width: 100%; font-family: var(--font-sans); font-size: 15px; padding: 11px 12px;
  border: var(--hairline); border-radius: var(--radius); background: var(--bg-paper); color: var(--ink-primary);
  min-height: 44px;
}
.buy-form .form-msg { font-family: var(--font-sans); font-size: 14px; line-height: 1.55; margin: 14px 0 0; }
.buy-form .form-msg.error { color: #8c2f1d; }
.buy-form .btn-unlock { margin-top: 20px; }

/* Cover view */
.cover-view { padding: 56px 0 72px; }
.cover-view-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.cover-view h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.025em; margin: 12px 0 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .shelf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .story-grid { grid-template-columns: 1fr; padding-top: 32px; }
  .story-grid > * { grid-column: 1; }
  .story-grid > .field-notes { grid-column: 1; }
  .pull-quote { margin-left: 0; }
  .mobile-pill { display: flex; }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  :root { --topbar-height: 48px; }
  .wordmark { font-size: 22px; }
  .folio-centre { display: none; }
  .hero { padding: 40px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-standfirst { font-size: 19px; }
  .issue-head-grid, .cover-view-grid { grid-template-columns: 1fr; gap: 28px; }
  .shelf-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .house-rules { grid-template-columns: 1fr; gap: 20px; }
  .pin-grid { grid-template-columns: 1fr; }
  .pin-item:nth-child(even) { padding-left: 0; }
  .gazetteer-inner { padding: 22px 20px 8px; }
  .spine { padding: 40px 20px 8px; }
  .spine-section { padding-left: 44px; }
  .story-row { grid-template-columns: 48px 1fr; }
  .story-row .pins { display: none; }
  .folio-nav-inner { grid-template-columns: 1fr; }
  .folio-nav .next { text-align: left; }
  .ad-half-row { grid-template-columns: 1fr; }
  .story-opener .standfirst { font-size: 19px; }
  .pull-quote p { font-size: 22px; }
}
