/* Castle Bridge Media
   Type: Gloock (display) · Source Serif 4 (reading) · IBM Plex Mono (labels, numbers, sources)
   Motif: castle battlements. Palette: paper, ink, blood, pulp. */
:root {
  --paper: #f4efe6;
  --paper-2: #ebe3d5;
  --card: #fbf8f2;
  --ink: #16130f;
  --ink-2: #3f3a33;
  --muted: #776f63;
  --rule: #d6ccbb;
  --blood: #a3191f;
  --blood-2: #7f1217;
  --pulp: #f2c417;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Gloock", "Didot", "Bodoni 72", Georgia, serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --merlon: 22px;          /* battlement tooth width */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blood); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blood-2); text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 .45em; }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: 21px; line-height: 1.15; }
p { margin: 0 0 1em; }
::selection { background: var(--pulp); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blood); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--pulp); color: var(--ink); padding: 8px 12px; z-index: 20; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.meta { font: 400 13px/1.5 var(--mono); color: var(--muted); letter-spacing: .01em; }
.label {
  display: flex; align-items: center; gap: 10px;
  font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--blood); margin: 0 0 16px;
}
.label::before { content: ""; width: 22px; height: 2px; background: currentColor; flex: none; }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; color: var(--ink-2); max-width: 66.6%; }
.hero .lede { max-width: none; }  /* already in a narrow column */
.text-link { font: 500 14px/1.4 var(--mono); text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

/* ---------- buttons: printed, hard-edged */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 24px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--blood); color: #fff;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font: 500 14px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.button:hover { color: #fff; background: var(--blood-2); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.button.ghost { background: var(--card); color: var(--ink); }
.button.ghost:hover { background: var(--pulp); color: var(--ink); }

/* ---------- now-playing bar */
.ticker { background: var(--ink); color: #e9e2d4; font: 400 13px/1.4 var(--mono); }
.ticker .wrap { display: flex; align-items: center; gap: 14px; min-height: 36px; overflow: hidden; }
.ticker-label { flex: none; display: inline-flex; align-items: center; gap: 8px; color: var(--pulp); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.ticker-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e5372f; box-shadow: 0 0 0 3px rgba(229, 55, 47, .25); animation: pulse 2s infinite; }
.ticker a { color: #e9e2d4; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker a:hover { color: #fff; text-decoration: underline; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(229, 55, 47, 0); } }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 2px solid var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 52px; height: auto; }
.brand span { font: 400 28px/1 var(--display); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; gap: 2px; }
.site-nav a {
  color: var(--ink); text-decoration: none;
  font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 12px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--blood); }
.site-nav a[aria-current="page"] { color: var(--blood); border-bottom-color: var(--blood); }
.menu-toggle { display: none; }

/* ---------- battlements (the castle motif) */
.battlements { position: relative; }
.battlements::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--merlon) * -1 + 1px); height: var(--merlon);
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%) 0 0 / calc(var(--merlon) * 2) 100% repeat-x;
}

/* ---------- home: hero */
.hero { padding: clamp(40px, 6vw, 72px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 80px); line-height: .98; letter-spacing: -0.02em; margin-bottom: 36px; }
.hero h1 em { font-style: normal; color: var(--blood); }
.hero .lede { margin-bottom: 34px; }
.hero-copy { padding-bottom: clamp(40px, 6vw, 72px); }
.cover-wall {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  height: clamp(420px, 46vw, 600px); overflow: hidden;
  transform: rotate(4deg); margin-right: calc(var(--gutter) * -1.5);
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 85%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 85%, transparent);
}
.wall-col { display: flex; flex-direction: column; gap: 14px; }
.wall-col:nth-child(1) { margin-top: -40px; }
.wall-col:nth-child(2) { margin-top: -150px; }
.wall-col:nth-child(3) { margin-top: -70px; }
.wall-col a { display: block; transition: transform .25s ease; }
.wall-col a:hover { transform: translateY(-6px) rotate(-1deg); }
.wall-col img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 10px 24px rgba(22, 19, 15, .28); }

.stats { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--card); }
.stats ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 18px 16px 18px 0; font: 400 13px/1.4 var(--mono); color: var(--ink-2); }
.stats li + li { padding-left: 18px; border-left: 1px solid var(--rule); }
.stats strong { display: block; font: 400 34px/1.1 var(--display); color: var(--ink); margin-bottom: 2px; }

/* ---------- home: chapters */
.band { padding: clamp(56px, 7vw, 96px) 0; }
.band-alt { background: var(--paper-2); }
.chapter-head { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; margin-bottom: 40px; align-items: start; }
.chapter-num { font: 400 clamp(48px, 6vw, 74px)/0.85 var(--display); color: var(--blood); margin: 0; }
.chapter-head h2 { font-size: clamp(34px, 4.2vw, 54px); margin-bottom: 12px; }
.chapter-head .lede { margin: 0; }
.chapter .text-link { margin-right: 18px; }
.chapter .book-grid { margin-bottom: 32px; }

.dark { background: var(--ink); color: #e9e2d4; }
.dark h2, .dark h3 { color: #fff; }
.dark .lede, .dark .episode-summary { color: #c9c1b3; }
.dark .chapter-num, .dark .label { color: var(--pulp); }
.dark a { color: var(--pulp); }
.dark .meta { color: #9b9387; }
.on-air { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; padding: 28px; border: 1px solid #3b362f; margin-bottom: 28px; background: #1f1b16; }
.on-air .episode-title { font-size: clamp(22px, 2.5vw, 30px); }
.on-air .show-art { box-shadow: 6px 6px 0 var(--blood); }

.pulp { background: var(--pulp); }
.pulp .chapter-num, .pulp .label { color: var(--ink); }
.pulp .lede { color: var(--ink); }
.feature-project {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0;
  background: var(--card); color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.feature-project:hover { color: var(--ink); transform: translate(3px, 3px); box-shadow: 5px 5px 0 var(--ink); }
.feature-project img { width: 100%; height: 100%; object-fit: cover; border-right: 2px solid var(--ink); }
.feature-project > div { padding: clamp(24px, 3vw, 40px); }
.feature-project h3 { font-size: clamp(26px, 2.9vw, 36px); }
.feature-project p { color: var(--ink-2); }
.arrow { font: 500 14px/1.4 var(--mono); color: var(--blood); }

.creed blockquote {
  position: relative; margin: 0 0 24px; max-width: 30em;
  font: 400 clamp(24px, 3vw, 38px)/1.2 var(--display); letter-spacing: -0.01em; color: var(--ink);
}
.creed blockquote::before {
  content: "“"; position: absolute; left: -0.55em; top: -0.25em;
  font-size: 2.6em; line-height: 1; color: var(--blood);
}

/* ---------- page heads & subnav */
.page-head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 36px; }
.page-head h1 { font-size: clamp(38px, 5vw, 66px); letter-spacing: -0.02em; line-height: 1; }
.subnav { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 22px; border-bottom: 1px solid var(--rule); }
.subnav a {
  text-decoration: none; color: var(--ink-2);
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 12px 0 11px; margin-bottom: -1px; border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--blood); }
.subnav a[aria-current="page"] { color: var(--blood); border-bottom-color: var(--blood); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* ---------- book grid */
.book-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 44px 28px; }
.book-grid.shelf { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.book-grid.shelf .book-card:nth-child(n+6) { display: none; }
.book-card a { display: block; text-decoration: none; color: var(--ink); }
.cover { position: relative; display: block; aspect-ratio: 2 / 3; margin-bottom: 14px; background: var(--paper-2); box-shadow: 0 2px 4px rgba(22,19,15,.12), 0 10px 22px rgba(22,19,15,.16); transition: transform .2s ease, box-shadow .2s ease; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card a:hover .cover { transform: translateY(-5px) rotate(-1.2deg); box-shadow: 0 4px 8px rgba(22,19,15,.15), 0 18px 34px rgba(22,19,15,.24); }
.book-title { display: block; font: 600 15px/1.25 var(--serif); }
.book-card a:hover .book-title { color: var(--blood); }
.book-author { display: block; font: 400 13px/1.4 var(--mono); color: var(--muted); margin-top: 5px; }
.badge {
  display: inline-block; background: var(--pulp); color: var(--ink);
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 8px; border: 1.5px solid var(--ink);
}
.cover .badge { position: absolute; top: 10px; left: -6px; transform: rotate(-3deg); box-shadow: 2px 2px 0 var(--ink); }
.badge.static { margin-bottom: 18px; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- catalog */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 32px; }
.search { flex: 1 1 260px; max-width: 420px; }
.search input, .genre-select select {
  width: 100%; min-height: 44px; padding: 0 14px;
  font: 400 15px var(--mono); color: var(--ink);
  background: var(--card); border: 2px solid var(--ink); border-radius: 0;
}
.search input:focus, .genre-select select:focus { outline: none; box-shadow: 3px 3px 0 var(--blood); }
.genre-select { flex: 0 1 240px; }
.genre-select select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 19px, calc(100% - 14px) 19px;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.toolbar #count { margin: 0 0 0 auto; }
.catalog, .imprint { padding-bottom: 88px; }
.empty { font-style: italic; color: var(--muted); padding: 24px 0; }
.imprint-logo { width: 240px; height: auto; margin-bottom: 44px; }

/* ---------- product */
.product { padding-top: 28px; padding-bottom: 80px; }
.crumbs { font: 400 13px/1.4 var(--mono); color: var(--muted); margin-bottom: 30px; }
.crumbs a { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.product-cover { position: sticky; top: 100px; }
.product-cover img { width: 100%; box-shadow: 0 4px 10px rgba(22,19,15,.15), 0 30px 60px rgba(22,19,15,.28); }
.product-info h1 { font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -0.02em; line-height: 1; margin-bottom: 14px; }
.byline { font-size: 17px; font-style: italic; color: var(--ink-2); margin-bottom: 8px; }
.note { font: 500 14px/1.4 var(--mono); color: var(--blood); margin: 14px 0 0; }
.product-info .actions { margin: 28px 0 36px; }
.prose { max-width: 66ch; color: var(--ink-2); }
.prose > p:first-child::first-letter {
  float: left; font: 400 4.2em/0.8 var(--display); color: var(--blood); padding: 6px 10px 0 0;
}
.prose h2 { margin-top: 44px; font-size: 34px; }

/* ---------- podcast page */
.show { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; padding: 32px; background: var(--ink); color: #e9e2d4; margin-bottom: 64px; }
.show h2 { color: #fff; }
.show p { color: #c9c1b3; }
.show a { color: var(--pulp); }
.show .label { color: var(--pulp); }
.show .button.ghost { color: var(--ink); }
.show-art { width: 100%; aspect-ratio: 1; object-fit: cover; background: #2a251f; box-shadow: 6px 6px 0 var(--blood); }
.episodes { list-style: none; margin: 0 0 40px; padding: 0; }
.episode { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 28px; align-items: start; padding: 28px 0; border-top: 1px solid var(--rule); }
.ep-thumb { width: 140px; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); box-shadow: 4px 4px 0 var(--ink); }
.on-air .episode-title, .episode-title { margin-bottom: 6px; }
.episode-title { font-size: 22px; }
.episode .meta { margin-bottom: 14px; }
audio { width: 100%; max-width: 640px; margin: 0 0 14px; display: block; }
.episode-summary { color: var(--ink-2); max-width: 75ch; margin: 0; }

/* ---------- data */
.project-grid { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 28px; }
.project-card a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card); color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.project-card a:hover { color: var(--ink); transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.project-card img { aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 2px solid var(--ink); }
.project-card .project-host, .project-card h3, .project-card p, .project-card .arrow { margin-left: 24px; margin-right: 24px; }
.project-host { font: 400 12px/1.4 var(--mono); color: var(--muted); margin-top: 20px; margin-bottom: 6px; }
.project-card h3 { font-size: 30px; }
.project-card p { color: var(--ink-2); flex: 1; }
.project-card .arrow { margin-bottom: 24px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 32px 0 56px; border-top: 2px solid var(--ink); }
.principles h3 { font-size: 26px; }
.principles p { color: var(--ink-2); margin: 0; }
.contact-note { color: var(--ink-2); padding-bottom: 88px; }

/* ---------- two-column pages */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: 72px; }
.callout { position: sticky; top: 100px; background: var(--card); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 28px; }
.callout h2 { font-size: 30px; }
.callout p { color: var(--ink-2); }
.checklist { margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--rule); list-style: none; font: 400 14px/1.5 var(--mono); color: var(--ink-2); }
.checklist li { padding: 4px 0 4px 24px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--blood); }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--display); color: var(--blood); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }
section.wrap > .guides { padding: 8px 0 56px; }
.guides blockquote { margin: 0 0 20px; max-width: 30em; font: 400 clamp(22px, 2.6vw, 32px)/1.25 var(--display); }

/* ---------- authors */
.alpha { display: flex; flex-wrap: wrap; margin-bottom: 44px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.alpha a {
  flex: 1 0 40px; display: grid; place-items: center; height: 44px;
  text-decoration: none; color: var(--ink); font: 400 20px/1 var(--display);
}
.alpha a:hover { background: var(--pulp); }
.author-grid { list-style: none; margin: 0; padding: 0 0 88px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 48px 40px; }
.author { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: start; padding-top: 24px; border-top: 1px solid var(--rule); scroll-margin-top: 120px; }
.author:target { border-top: 3px solid var(--blood); }
.author img { width: 110px; height: 132px; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .3s; box-shadow: 4px 4px 0 var(--ink); }
.author:hover img, .author:target img { filter: none; }
.author h2 { font-size: 24px; margin-bottom: 6px; }
.author-books { font: 400 13px/1.5 var(--mono); margin-bottom: 10px; }
.bio { font-size: 15px; color: var(--ink-2); }
.bio p { margin-bottom: .7em; }
.bio.clamped { max-height: 170px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.more { font: 500 13px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--blood); background: none; border: 0; padding: 6px 0; cursor: pointer; }
.more:hover { text-decoration: underline; }

/* ---------- about */
.press { list-style: none; margin: 0 0 88px; padding: 0; columns: 2 380px; column-gap: 48px; }
.press li { break-inside: avoid; padding: 14px 0; border-top: 1px solid var(--rule); }
.press a { color: var(--ink); text-decoration: none; font-weight: 600; }
.press a:hover { color: var(--blood); text-decoration: underline; }
.press .meta { display: block; margin-top: 3px; }

/* ---------- footer */
.site-footer { background: var(--ink); color: #d8d0c2; padding: 72px 0 28px; margin-top: var(--merlon); position: relative; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--merlon) * -1 + 1px); height: var(--merlon);
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%) 0 0 / calc(var(--merlon) * 2) 100% repeat-x;
}
.dark + .site-footer, .pulp + .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand img { filter: invert(1); }
.footer-brand p { max-width: 32ch; color: #b4ab9d; font-style: italic; }
.site-footer h2 { font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pulp); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #d8d0c2; text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: 52px; padding-top: 22px; border-top: 1px solid #3a3530; font: 400 13px/1.4 var(--mono); color: #8f877a; }

/* ---------- responsive */
@media (max-width: 980px) {
  .book-grid.shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .book-grid.shelf .book-card:nth-child(n+5) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .two-col { grid-template-columns: 1fr; }
  .callout { position: static; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .feature-project { grid-template-columns: 1fr; }
  .feature-project img { border-right: 0; border-bottom: 2px solid var(--ink); }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .lede { max-width: none; }
  :root { --merlon: 16px; }
  /* header: brand on top, menu as a row you swipe left/right */
  .menu-toggle { display: none; }
  .header-inner { flex-wrap: wrap; gap: 0; }
  .site-nav {
    order: 2; flex: 0 0 calc(100% + var(--gutter) * 2); margin: 0 calc(var(--gutter) * -1);
    display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
    padding: 0 var(--gutter); border-top: 1px solid var(--rule);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; scroll-snap-align: start; padding: 13px 12px 11px; font-size: 13px; }
  .site-nav a:first-child { margin-left: auto; }   /* centered when it fits, swipeable when it doesn't */
  .site-nav a:last-child { margin-right: auto; }
  .header-inner { min-height: 0; padding-top: 14px; justify-content: center; }
  .brand { padding-bottom: 12px; gap: 12px; }
  .brand img { width: 58px; }
  .brand span { font-size: 22px; }
  .episode { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
  .ep-thumb { width: 84px; box-shadow: 3px 3px 0 var(--ink); }
  .ticker .wrap { min-height: 32px; font-size: 12px; }
  /* hero: the faded cover collage as one pre-rendered image (images/hero-collage.jpg, made by
     tools/snapshot-collage.js), so phones don't download 15 covers. The live collage is desktop-only. */
  .hero { position: relative; padding: 0; background: var(--paper) url("../images/hero-collage.jpg") center top / cover no-repeat; }
  .hero-grid { display: block; }
  .hero-copy { position: relative; padding: 64px 0 56px; }
  .hero .button.ghost { background: var(--card); }
  .cover-wall { display: none; }
  .chapter-head { grid-template-columns: 1fr; gap: 6px; }
  .book-grid, .book-grid.shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .book-grid.shelf .book-card:nth-child(-n+4) { display: block; }
  .product-grid { grid-template-columns: 1fr; }
  .product-cover { position: static; max-width: 280px; }
  .show, .on-air { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .show-art { max-width: 200px; }
  .on-air .show-art { max-width: 150px; }
  .principles { grid-template-columns: 1fr; gap: 24px; }
  .author-grid { grid-template-columns: 1fr; }
  .author { grid-template-columns: 84px 1fr; gap: 16px; }
  .author img { width: 84px; height: 100px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .project-card a { box-shadow: 4px 4px 0 var(--ink); }
  .feature-project { box-shadow: 5px 5px 0 var(--ink); }
  .creed blockquote::before { position: static; display: block; height: .45em; }
  .subnav a { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { transition: none !important; animation: none !important; }
}

/* ---------- genre tags on book pages */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tag {
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); padding: 7px 9px;
}
.tag:hover { background: var(--pulp); color: var(--ink); text-decoration: none; }

/* ---------- podcast archive search */
.ep-search { margin: 0 0 48px; }
.ep-search-label { display: block; font: 500 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.ep-search input {
  width: 100%; max-width: 560px; min-height: 44px; padding: 0 14px;
  font: 400 15px var(--mono); color: var(--ink); background: var(--card);
  border: 2px solid var(--ink); border-radius: 0;
}
.ep-search input:focus { outline: none; box-shadow: 3px 3px 0 var(--blood); }
#ep-status { margin: 10px 0 0; }
#ep-status:empty { display: none; }
#ep-results { margin: 16px 0 0; }
mark { background: var(--pulp); color: var(--ink); padding: 0 2px; }
@media (max-width: 760px) { .ep-search .episode-title { font-size: 19px; } }

.contact-box { position: static; max-width: 560px; margin: 0 0 64px; }

/* long links (podcast descriptions, book blurbs) wrap instead of widening the page on phones */
.show p, .episode-summary, .prose, .bio, .press a { overflow-wrap: anywhere; }

/* ---------- back-to-top arrow (phones) */
.to-top {
  position: fixed; z-index: 20;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; border: 0; padding: 0; margin: 0; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 2px 8px rgba(0,0,0,.18);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; opacity: .85; }
@media (min-width: 761px) { .to-top { display: none; } }

/* ---------- phones: podcast episodes stacked (art on top) on the page background, with separators */
@media (max-width: 760px) {
  .episodes .episode { display: block; padding: 28px 0; margin: 0; border-top: 1px solid var(--rule); background: none; }
  .episodes .episode:first-child { border-top: 2px solid var(--ink); }
  .episodes .ep-thumb { width: 150px; max-width: 150px; margin: 0 0 20px; box-shadow: 6px 6px 0 var(--blood); background: var(--paper-2); }
  .episodes .episode-title { font-size: 22px; }
}

/* ---------- About: contact form (submits into the Google Form) */
.contact { max-width: 760px; margin: 0 0 80px; }
.contact h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 8px; }
.contact-intro { color: var(--ink-2); margin-bottom: 22px; }
.contact-card { background: var(--card); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: clamp(20px, 3vw, 32px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { display: block; margin-bottom: 20px; }
.field span { display: block; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.field span::after { content: " *"; color: var(--blood); }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.5 var(--serif); color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 0; padding: 10px 12px;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--blood); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.form-actions .meta { margin: 0; }
.form-actions .button:disabled { opacity: .6; cursor: progress; }
.form-status { margin: 12px 0 0; font: 400 14px var(--mono); color: var(--muted); }
.form-status:empty { display: none; }
.contact-thanks h3 { font-size: 28px; }
.contact-thanks p { color: var(--ink-2); }
.contact-thanks:focus { outline: none; }
@media (max-width: 760px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-card { box-shadow: 4px 4px 0 var(--ink); }
}
