/* =====================================================================
   The Firestone Files / Dr. Chris L. Firestone — design system
   "Study Lamp": warm paper, walnut ink, brass, spectacle blue.
   ===================================================================== */

:root {
  --paper: #F6F1E8;
  --paper-2: #EFE7D9;
  --surface: #FFFDF9;
  --ink: #241A11;
  --ink-2: #4A3A2B;
  --muted: #6B5E50;
  --rule: #E2D8C8;
  --rule-2: #D2C4AE;
  --accent: #2F5D8A;
  --accent-2: #244A70;
  --accent-soft: #E3ECF5;
  --brass: #B8863B;
  --brass-text: #8A6224;
  --brass-deep: #7A5520;
  --brass-soft: #F3E7CF;
  --walnut: #3B2A18;
  --walnut-2: #2C1F12;
  --cream-on-dark: #EFE6D6;
  --muted-on-dark: #C9BBA5;
  --ok: #3C7A5A;
  --err: #A5402E;
  --shadow: 0 1px 2px rgba(36,26,17,.06), 0 8px 24px rgba(36,26,17,.08);
  --shadow-lg: 0 2px 4px rgba(36,26,17,.08), 0 24px 48px rgba(36,26,17,.14);
  --radius: 10px;
  --radius-lg: 16px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-read: "Newsreader", "Iowan Old Style", Georgia, serif;
  --max: 1180px;
  --max-prose: 72ch;
  --gutter: clamp(22px, 5.5vw, 44px);
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #1B140E;
  --paper-2: #221A12;
  --surface: #261D14;
  --ink: #EFE6D6;
  --ink-2: #DED2BE;
  --muted: #B3A48E;
  --rule: #3A2E22;
  --rule-2: #4A3C2E;
  --accent: #7FB0E0;
  --accent-2: #A3C6EA;
  --accent-soft: #223244;
  --brass: #D2A44E;
  --brass-text: #D2A44E;
  --brass-deep: #8A6224;
  --brass-soft: #3A2E1C;
  --walnut: #120D08;
  --walnut-2: #0B0705;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 24px 48px rgba(0,0,0,.5);
  color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.012em; margin: 0 0 .5em; color: var(--ink); font-variation-settings: "SOFT" 30, "WONK" 0; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-text); margin: 0 0 .75rem; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.prose { max-width: var(--max-prose); }
.prose p { font-size: 1.08rem; line-height: 1.7; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--brass); color: var(--ink-2); font-family: var(--font-read); font-size: 1.2rem; }
.read { font-family: var(--font-read); font-size: 1.12rem; line-height: 1.72; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 1000; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--narrow { max-width: 880px; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--band { background: var(--paper-2); }
.section--walnut { background: var(--walnut); color: var(--cream-on-dark); }
.section--walnut h1, .section--walnut h2, .section--walnut h3 { color: var(--cream-on-dark); }
.section--walnut .muted { color: var(--muted-on-dark); }
.section--walnut a { color: #CFE0F2; }
.section--walnut .eyebrow { color: var(--brass); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .section-head__sub { color: var(--muted); max-width: 56ch; margin: .4rem 0 0; }
.section-head .more { white-space: nowrap; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr .85fr; } .split--even { grid-template-columns: 1fr 1fr; } .split--sidebar { grid-template-columns: minmax(0, 1fr) 320px; } }
.stack > * + * { margin-top: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 1rem } .mt-2 { margin-top: 2rem } .mt-3 { margin-top: 3rem }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 1rem } .mb-2 { margin-bottom: 2rem }

/* ---------- Buttons, chips, badges ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease; font-family: var(--font-body); }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); color: #fff; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--walnut); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: var(--cream-on-dark); color: var(--walnut); }
.btn--light:hover { background: #fff; color: var(--walnut); }
.btn--sm { padding: .55rem .9rem; font-size: .88rem; }
.btn .icon { width: 18px; height: 18px; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .02em; background: var(--brass-soft); color: var(--walnut); text-decoration: none; border: 1px solid transparent; }
[data-theme="dark"] .chip { color: var(--brass); }
.chip--blue { background: var(--accent-soft); color: var(--accent-2); }
.chip--outline { background: transparent; border-color: var(--rule-2); color: var(--ink-2); }
.chip--outline:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 6px; background: var(--brass-deep); color: #fff; }
.meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; color: var(--muted); font-size: .9rem; }
.meta .icon { width: 16px; height: 16px; opacity: .8; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand span small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }
.nav { display: none; align-items: center; gap: .1rem; }
.nav > li { list-style: none; position: relative; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a, .nav button { display: inline-flex; align-items: center; gap: .2rem; padding: .55rem .75rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; background: none; border: 0; cursor: pointer; font-family: var(--font-body); }
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--accent-2); }
.nav .icon { width: 16px; height: 16px; opacity: .6; }
.nav .sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .5rem; display: none; z-index: 60; }
.nav li:hover > .sub, .nav li:focus-within > .sub, .nav li.is-open > .sub { display: block; }
.nav .sub a { display: block; padding: .55rem .75rem; font-size: .92rem; border-radius: 8px; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--paper-2); }
.header-cta { display: none; }
@media (min-width: 1000px) { .nav { display: flex; } .header-cta { display: inline-flex; } .menu-btn { display: none; } }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(20,12,6,.5); }
.drawer__panel { position: absolute; top: 0; right: 0; width: min(360px, 90vw); height: 100%; background: var(--surface); padding: 1.25rem; overflow-y: auto; box-shadow: var(--shadow-lg); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav > ul > li { border-bottom: 1px solid var(--rule); }
.drawer nav a { display: block; padding: .8rem .25rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.drawer nav ul ul a { font-weight: 400; font-size: .95rem; padding: .45rem .25rem .45rem 1rem; color: var(--ink-2); }
.drawer .cluster { margin-top: 1.25rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid { display: grid; gap: 2rem; align-items: center; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; min-height: 560px; } }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 500; letter-spacing: -.02em; margin-bottom: 1rem; }
.hero h1 em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--accent); }
.hero .lede { margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.5rem; }
.hero__portrait { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: var(--paper-2); }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
/* Optional muted b-roll loop over the portrait (site.photos.hero_video). Poster is the portrait; hidden for reduced-motion, narrow screens, and slow connections (JS). */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focus, 50% 30%); display: none; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) { .hero__video { display: block; } }
.hero__portrait::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), inset 0 -80px 80px -40px rgba(36,26,17,.25); pointer-events: none; }
.hero__caption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(36,26,17,.75); color: var(--cream-on-dark); font-size: .78rem; padding: .35rem .6rem; border-radius: 6px; backdrop-filter: blur(4px); }
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem); }
.page-hero .lede { margin-top: .5rem; }
.page-hero--image { position: relative; color: var(--cream-on-dark); background: var(--walnut); display: flex; align-items: center; min-height: min(37.5vw, 560px); }
.page-hero--image .page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: 70% 50%; opacity: .62; }
.page-hero--image .page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(44,31,18,.94) 0%, rgba(44,31,18,.7) 45%, rgba(44,31,18,.15) 100%); }
.page-hero--image .wrap { width: 100%; }
.page-hero--image .wrap { position: relative; }
.page-hero--image h1, .page-hero--image .lede { color: var(--cream-on-dark); }
.page-hero--image .eyebrow { color: var(--brass); }

/* ---------- Listen-on / social rows ---------- */
.listen-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.listen-row__label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: .25rem; }
.listen-row a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 500; background: var(--surface); }
.listen-row a:hover { border-color: var(--ink); }
.listen-row a .icon { width: 18px; height: 18px; }
.social-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.social-row a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); border: 1px solid var(--rule); background: var(--surface); }
.social-row a:hover { color: var(--accent); border-color: var(--accent); }
.social-row--labels a { width: auto; padding: 0 .8rem; gap: .45rem; font-size: .88rem; text-decoration: none; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 16/9; background: var(--paper-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__media .badge { position: absolute; left: .75rem; top: .75rem; }
.card__media .dur { position: absolute; right: .6rem; bottom: .6rem; background: rgba(0,0,0,.72); color: #fff; font-size: .74rem; font-weight: 600; padding: .2rem .45rem; border-radius: 4px; }
.card__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.25; margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__summary { color: var(--muted); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: .25rem; }
.card--row { flex-direction: row; align-items: stretch; }
.card--row .card__media { width: 200px; flex: 0 0 200px; aspect-ratio: auto; }
@media (max-width: 640px) { .card--row { flex-direction: column; } .card--row .card__media { width: 100%; aspect-ratio: 16/9; } }
.card--series .card__media { aspect-ratio: 3/2; }
.card--series .card__media img { filter: saturate(.9); }
.card--series .count { position: absolute; right: .75rem; bottom: .75rem; background: var(--brass-deep); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .5rem; border-radius: 6px; }
.numbered { counter-reset: n; }
.numbered .card__title::before { counter-increment: n; content: counter(n) ". "; color: var(--brass); }

/* Episode list (compact rows) */
.ep-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ep-list li { border-bottom: 1px solid var(--rule); }
.ep-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 1rem; align-items: center; padding: .9rem 0; text-decoration: none; color: var(--ink); }
.ep-row:hover .ep-row__title { color: var(--accent); }
.ep-row__thumb { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.ep-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-row__title { font-weight: 600; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; margin: 0 0 .2rem; }
.ep-row__meta { font-size: .85rem; color: var(--muted); }
.ep-row__dur { font-size: .85rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .ep-row { grid-template-columns: 96px 1fr; } .ep-row__dur { display: none; } }

/* Books */
.book-card { display: grid; grid-template-columns: 120px 1fr; gap: 1.1rem; align-items: start; }
.book-card__cover { border-radius: 4px; box-shadow: 0 1px 0 rgba(0,0,0,.08), 6px 8px 22px rgba(36,26,17,.22); border: 1px solid rgba(0,0,0,.08); background: var(--paper-2); aspect-ratio: 2/3; overflow: hidden; }
.book-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.book-card .meta { margin-bottom: .5rem; }
.cover-lg { border-radius: 6px; box-shadow: 0 2px 0 rgba(0,0,0,.08), 14px 18px 40px rgba(36,26,17,.28); border: 1px solid rgba(0,0,0,.08); max-width: 320px; aspect-ratio: 2/3; overflow: hidden; background: var(--paper-2); }
.cover-lg img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; font-family: var(--font-display); color: var(--walnut); background: linear-gradient(160deg, var(--brass-soft), var(--paper-2)); font-size: 1.1rem; height: 100%; }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 1.5rem 1.25rem; }
.cover-grid a { text-decoration: none; color: var(--ink); }
.cover-grid .book-card__cover { transition: transform .2s ease; }
.cover-grid a:hover .book-card__cover { transform: translateY(-4px); }
.cover-grid .t { font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.25; margin: .7rem 0 .15rem; }
.cover-grid .y { font-size: .8rem; color: var(--muted); }

/* Pull quote */
.pullquote { position: relative; padding: 2rem 2rem 2rem 3.25rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.pullquote::before { content: "\201C"; position: absolute; left: 1.1rem; top: .6rem; font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--brass); opacity: .8; }
.pullquote p { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.35; font-weight: 500; margin: 0 0 .75rem; font-variation-settings: "SOFT" 60; }
.pullquote cite { font-style: normal; font-size: .88rem; color: var(--muted); }
.pullquote cite a { color: inherit; }
.section--walnut .pullquote { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.section--walnut .pullquote p { color: var(--cream-on-dark); }

/* Video facade */
.yt { position: relative; aspect-ratio: 16/9; background: #000 center/cover no-repeat; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); cursor: pointer; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45)); border: 0; cursor: pointer; width: 100%; }
.yt__play span { display: inline-flex; align-items: center; justify-content: center; width: 78px; height: 54px; border-radius: 14px; background: rgba(0,0,0,.72); color: #fff; transition: background .15s ease, transform .15s ease; }
.yt__play span .icon { width: 34px; height: 34px; }
.yt:hover .yt__play span { background: #e62117; transform: scale(1.04); }
.yt__title { position: absolute; left: 1rem; right: 1rem; top: .9rem; color: #fff; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.7); font-size: .95rem; pointer-events: none; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.5rem; }
.filters .search { flex: 1 1 240px; display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--rule-2); border-radius: 999px; padding: .45rem .9rem; }
.filters .search input { border: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; outline: none; }
.filters select { font: inherit; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); }
.empty { padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed var(--rule-2); border-radius: var(--radius-lg); display: none; }
.empty.is-visible { display: block; }

/* Details / accordion */
.acc { border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); }
.acc > summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; list-style: none; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .icon { transition: transform .2s ease; }
.acc[open] > summary .icon { transform: rotate(180deg); }
.acc > summary + * { border-top: 1px solid var(--rule); }
.acc__body { padding: 1.25rem; }
.transcript { font-family: var(--font-read); font-size: 1.08rem; line-height: 1.72; max-width: 70ch; }
.transcript p { margin: 0 0 1.1em; }
.transcript-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.transcript-tools input { font: inherit; padding: .5rem .8rem; border-radius: 8px; border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink); }
mark { background: #FFE58A; color: #241A11; padding: 0 .1em; border-radius: 2px; }

/* Newsletter */
.newsletter { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.5rem; align-items: center; box-shadow: var(--shadow); }
@media (min-width: 800px) { .newsletter { grid-template-columns: 1.2fr 1fr; } }
.newsletter h3 { margin-bottom: .35rem; }
.newsletter form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter input[type=email] { flex: 1 1 200px; font: inherit; padding: .8rem 1rem; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink); }
.newsletter .fine { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; }
.newsletter .hp { position: absolute; left: -9999px; }
.section--walnut .newsletter { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section--walnut .newsletter input[type=email] { background: rgba(0,0,0,.25); border-color: rgba(255,255,255,.2); color: var(--cream-on-dark); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 88px; top: 0; bottom: 0; width: 2px; background: var(--rule-2); }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 2.2rem; padding: .9rem 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 82px; top: 1.35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--brass); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--rule-2); }
.timeline .yr { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--accent); text-align: right; }
.timeline .t { font-weight: 600; margin: 0 0 .15rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 560px) { .timeline::before { left: 8px; } .timeline li { grid-template-columns: 1fr; gap: .2rem; padding-left: 2rem; } .timeline li::before { left: 2px; } .timeline .yr { text-align: left; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .9rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--paper-2); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure.wide { grid-column: span 2; aspect-ratio: 2/1; }
@media (max-width: 560px) { .gallery figure.wide { grid-column: span 1; aspect-ratio: 1; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1rem; }
.stat { padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.stat b { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--accent); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }
.section--walnut .stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section--walnut .stat b { color: var(--brass); }

/* Tables & misc */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 .4rem; opacity: .6; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.pager a { text-decoration: none; color: var(--ink); max-width: 46%; }
.pager a small { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .2rem; }
.pager a b { font-family: var(--font-display); font-weight: 600; }
.pager a:hover b { color: var(--accent); }
.pager .next { text-align: right; margin-left: auto; }
.copy-btn { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .82rem; font-weight: 600; padding: .4rem .7rem; border-radius: 8px; border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.copy-btn.is-done { border-color: var(--ok); color: var(--ok); }
.callout { padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); background: var(--brass-soft); border: 1px solid color-mix(in srgb, var(--brass) 40%, transparent); }
.callout--blue { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.def-list { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
.def-list dt { font-weight: 600; }
.def-list dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .def-list { grid-template-columns: 1fr; gap: .1rem .5rem; } .def-list dd { margin-bottom: .6rem; } }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); width: 100%; }
.form textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form .fine { font-size: .82rem; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.avatar-ring { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--brass); object-fit: cover; }
.knight-divider { display: flex; justify-content: center; color: var(--brass); margin: 2rem 0; opacity: .8; }
.knight-divider .icon { width: 28px; height: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--walnut); color: var(--cream-on-dark); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; margin-top: 2rem; }
.site-footer a { color: var(--cream-on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 2.5rem; }
.footer-grid h4 { color: var(--brass); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: .4rem 0; font-size: .95rem; }
.footer-brand { grid-column: 1 / -1; display: flex; gap: 1rem; align-items: center; margin-bottom: .5rem; }
.footer-brand img { width: 56px; height: 56px; border-radius: 12px; }
.footer-brand b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; display: block; }
.footer-brand span { font-size: .85rem; color: var(--muted-on-dark); }
@media (min-width: 900px) { .footer-brand { grid-column: auto; flex-direction: column; align-items: flex-start; } }
.footer-rows { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; display: grid; gap: 1.25rem; }
.footer-rows .row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.footer-rows .row > span:first-child { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); min-width: 80px; }
.footer-rows .row a { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; opacity: .9; }
.footer-rows .row a .icon { width: 18px; height: 18px; }
.footer-legal { margin-top: 2rem; font-size: .82rem; color: var(--muted-on-dark); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer-legal a { color: var(--muted-on-dark); }

/* ---------- Utilities for text-over-image ---------- */
.overlay-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-lg); background: var(--walnut); }
.overlay-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.overlay-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,26,17,0) 30%, rgba(36,26,17,.85) 100%); }
.overlay-card > div { position: relative; z-index: 1; padding: 1.5rem; }
.overlay-card h3 { color: #fff; margin-bottom: .25rem; }
.overlay-card p { color: rgba(255,255,255,.85); margin: 0; font-size: .95rem; }

/* Print */
@media print { .site-header, .site-footer, .drawer, .newsletter, .btn, .listen-row { display: none !important; } body { background: #fff; color: #000; } }

/* Theme toggle icon swap */
[data-theme-toggle] .i-sun { display: none; }
[data-theme="dark"] [data-theme-toggle] .i-sun { display: block; }
[data-theme="dark"] [data-theme-toggle] .i-moon { display: none; }
/* Reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Shared fixes after page builds */
svg.icon { display: inline-block; vertical-align: -0.15em; }
.meta > span { display: inline-flex; align-items: center; gap: .3rem; }
.section--walnut .btn--light { color: var(--walnut); }
.section--walnut .btn--light:hover { color: var(--walnut); }
.section--walnut .btn--ghost { color: var(--cream-on-dark); border-color: rgba(255,255,255,.3); }
.section--walnut .btn--ghost:hover { border-color: #fff; color: #fff; }
.cover-placeholder { overflow: hidden; font-size: .9rem; line-height: 1.25; }

/* Long URLs and words must never widen the page */
.prose, .desc, .transcript, .card__body, .ep-row, .callout, .def-list dd, .pubs, .page-hero, .section { overflow-wrap: anywhere; }
.prose a, .desc a { word-break: break-all; }
.section--walnut .eyebrow, .site-footer .eyebrow { color: var(--brass); }
[data-theme="dark"] .section--walnut { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); background: #14100B; }
.tabs [role="tab"][aria-selected="true"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gallery--2 { grid-template-columns: 1fr 1fr; }

/* Mobile breathing room */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .card__body { padding: 1.05rem 1.15rem 1.2rem; }
  .section-head { margin-bottom: 1.5rem; }
  .grid { gap: 1.25rem; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .hero__grid { gap: 1.75rem; }
  .lede { font-size: 1.1rem; }
  .pullquote { padding: 1.6rem 1.25rem 1.5rem 2.6rem; }
  .pullquote::before { left: .8rem; font-size: 3.2rem; }
  .newsletter { padding: 1.5rem 1.25rem; }
  .stat { padding: 1rem 1.1rem; }
  .callout { padding: 1.1rem 1.2rem; }
  .book-card { grid-template-columns: 100px 1fr; gap: 1rem; }
  .prose p, .read { font-size: 1.04rem; }
  .btn { padding: .8rem 1.1rem; }
  .listen-row a { padding: .5rem .75rem; }
  .filters .search { flex-basis: 100%; }
}

/* Council pass: hero, proof line, compact listen row, start-here 2-up on phones, transcript clip */
.listen-row__more { border: 0 !important; background: none !important; padding-left: .25rem !important; color: var(--accent) !important; font-weight: 600 !important; }
.listen-row__more .icon { transform: rotate(-90deg); width: 16px; height: 16px; }
.hero h1.hero__name { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -.02em; margin: 0 0 .5rem; line-height: 1.02; }
.hero__sub { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 400; line-height: 1.35; color: var(--ink-2); max-width: 26ch; margin: 0 0 1.25rem; font-variation-settings: "SOFT" 60; }
.hero__sub em { color: var(--accent); font-style: italic; }
.proof { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .35rem; }
.proof li { font-size: .92rem; color: var(--muted); padding-left: 1.1rem; position: relative; }
.proof li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.hero__portrait img { object-position: var(--hero-focus, 50% 30%); }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
@media (max-width: 640px) {
  .hero__grid { grid-template-areas: "portrait" "text"; }
  .hero__grid > div:first-child { grid-area: text; }
  .hero__portrait { grid-area: portrait; aspect-ratio: 4 / 4.4; }
  .hero h1.hero__name { font-size: 2.6rem; }
  .grid--start { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .grid--start .card__title { font-size: .98rem; }
  .grid--start .card__body { padding: .8rem .85rem .9rem; }
  .grid--start .badge { display: none; }
}
.cred-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.cred-list li { padding-left: 1.1rem; position: relative; }
.cred-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.praise-line { border-left: 3px solid var(--brass); padding: .25rem 0 .25rem 1.1rem; margin: 0; }
.praise-line p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.4; margin: 0 0 .35rem; }
.praise-line cite { font-style: normal; font-size: .85rem; color: var(--muted); }
.transcript-clip { position: relative; max-height: 24rem; overflow: hidden; }
.transcript-clip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7rem; background: linear-gradient(180deg, transparent, var(--surface)); pointer-events: none; }
.transcript-clip.is-open { max-height: none; }
.transcript-clip.is-open::after { display: none; }


/* ---- about.css ---- */
/* About, CV, media kit, appearances, speaking, contact, 404 */
.form .hp { position: absolute; left: -9999px; }
.form label > span:first-child { display: block; }
.link-more { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; text-decoration: none; }
.link-more .icon { width: 16px; height: 16px; flex: none; }
.section--walnut .btn--light, .section--walnut .btn--light:hover { color: var(--walnut); }

/* Media kit */
.kit-block { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); }
.kit-block__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.kit-block__head h3 { margin: 0; font-size: 1.15rem; }
.kit-block p { margin: 0 0 .8em; }
.kit-block p:last-child { margin-bottom: 0; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 1.25rem 1rem; }
.dl-grid figure { margin: 0; }
.dl-grid .thumb { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.dl-grid .thumb--wide { aspect-ratio: 16 / 9; }
.dl-grid .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-grid figcaption { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.dl-grid figcaption a { font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: .2rem; }
.dl-grid figcaption a .icon { width: 16px; height: 16px; flex: none; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 1rem; }
.swatch { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: .6rem; }
.swatch__color { height: 64px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); margin-bottom: .5rem; }
.swatch b { display: block; font-size: .9rem; }
.swatch code { font-size: .82rem; color: var(--muted); }
.swatch .copy-btn { margin-top: .5rem; }
.email-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.email-line code { font-size: 1.05rem; background: var(--paper-2); padding: .3rem .6rem; border-radius: 8px; word-break: break-all; }

/* CV */
.cv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: flex-start; }
.cv h2 { font-size: 1.45rem; margin: 2.5rem 0 1rem; padding-bottom: .4rem; border-bottom: 1px solid var(--rule); }
.cv h2:first-child { margin-top: 0; }
.cv ul { padding-left: 1.2em; margin: 0; }
.cv li { margin: .5em 0; }
.cv .pubs { list-style: none; padding: 0; }
.cv .pubs li { padding-left: 2em; text-indent: -2em; }
.cv .def-list { gap: .8rem 1.5rem; }
.cv .def-list dt { color: var(--muted); font-family: var(--font-display); font-size: 1.05rem; }

/* 404 */
.not-found { text-align: center; padding-block: clamp(2rem, 8vw, 5rem); }
.not-found > .icon { width: 56px; height: 56px; color: var(--brass); margin: 0 auto 1rem; }

/* Contact tabs */
.tabs[role="tablist"] .chip { cursor: pointer; }

/* Print: the CV */
@media print {
  body { font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
  .page-hero { padding: 0; }
  .section { padding: 0; }
  .breadcrumb, .cv-actions, .knight-divider, .copy-btn, .yt, .acc, .callout { display: none !important; }
  .cv h1 { font-size: 22pt; }
  .cv h2 { font-size: 13pt; margin-top: 1.4rem; break-after: avoid; page-break-after: avoid; }
  .cv li, .cv .def-list dd, .cv .def-list dt { break-inside: avoid; page-break-inside: avoid; }
  .cv a { color: #000; text-decoration: none; }
  .cv .pubs a[href^="/"] { display: none; }
  .cv .def-list { grid-template-columns: 7em 1fr; gap: .35rem 1rem; }
  .cv .lede { font-size: 12pt; color: #000; }
  .cv .muted { color: #333; }
}


/* ---- books.css ---- */
/* Shared book-card fixes (candidates for site.css): inline arrow, legible placeholder at 120px */
.book-card a.small .icon { display: inline-block; vertical-align: middle; width: 16px; height: 16px; }
.book-card > .book-card__cover { text-decoration: none; }
.book-card > .book-card__cover .cover-placeholder { font-size: .78rem; line-height: 1.3; padding: .6rem; }

/* Books index: featured block */
.book-feature { display: grid; gap: 2rem; align-items: start; }
.book-feature > a { display: block; max-width: 240px; }
@media (min-width: 800px) { .book-feature { grid-template-columns: 300px minmax(0, 1fr); gap: 3.5rem; } .book-feature > a { max-width: 320px; } }
.book-feature h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: .35rem; }
.quote-compact { margin: 0 0 1rem; padding: .1rem 0 .1rem 1rem; border-left: 3px solid var(--brass); }
.quote-compact p { font-family: var(--font-read); font-size: 1.1rem; line-height: 1.5; color: var(--ink-2); margin: 0 0 .3rem; }
.quote-compact cite { font-style: normal; font-size: .85rem; color: var(--muted); }
.honors { margin: 0 0 1.5rem; padding-left: 1.2em; font-size: .95rem; color: var(--ink-2); }
.honors li { margin: .3em 0; }

/* Book detail page: title first on small screens, sticky cover column on wide ones */
.book-page { display: grid; gap: 2rem; align-items: start; }
.book-page__aside .cover-lg { max-width: 240px; }
@media (min-width: 900px) {
  .book-page { grid-template-columns: 280px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 4rem; row-gap: 1.5rem; }
  .book-page__head { grid-column: 2; grid-row: 1; }
  .book-page__aside { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 84px; }
  .book-page__body { grid-column: 2; grid-row: 2; }
  .book-page__aside .cover-lg { max-width: 280px; }
}
.book-page__aside .def-list { grid-template-columns: 1fr; gap: 0; }
.book-page__aside .def-list dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .7rem; }
.book-page__aside .def-list dd { margin: 0; }
.book-page__aside .copy-btn { padding: .2rem .5rem; font-size: .75rem; vertical-align: middle; margin-left: .25rem; }
.btn-stack { display: grid; gap: .5rem; max-width: 320px; margin: 1.5rem 0; }
.btn-stack .btn { justify-content: center; text-align: center; line-height: 1.25; }
.praise blockquote { margin: 0 0 1.5rem; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--brass); }
.praise blockquote p { font-family: var(--font-read); font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); margin: 0 0 .4rem; }
.praise cite { font-style: normal; font-size: .88rem; color: var(--muted); }
.cite-box { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.25rem; font-family: var(--font-read); font-size: 1.05rem; line-height: 1.55; }
.cite-box .copy-btn { font-family: var(--font-body); }

/* Writing: publication list */
.pub-list h2.pub-group { margin: 2.5rem 0 .5rem; padding-bottom: .5rem; border-bottom: 2px solid var(--rule-2); font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.pub { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.pub__cite { margin: 0 0 .35rem; font-size: 1.02rem; line-height: 1.55; }
.pub__cite .badge { vertical-align: middle; margin-left: .25rem; }
.pub__gloss { margin: 0 0 .6rem; color: var(--muted); font-size: .95rem; max-width: 72ch; }
.pub-chips { gap: .4rem; }
.pub-chips .chip { font-size: .74rem; padding: .25rem .6rem; }
.pub-chips .chip .icon { width: 13px; height: 13px; }

.chapter-list { padding-left: 1.3em; } .chapter-list li { margin: .8em 0; }


/* ---- podcast.css ---- */
/* Podcast section: hub header, platform grid, numbered lists, episode page,
   shorts cards, transcript rows. Only what site.css does not already cover. */

/* Hub header: square artwork beside the title block */
.podcast-hero { display: grid; gap: 1.5rem; align-items: center; }
.podcast-hero__art { width: min(100%, 220px); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper-2); aspect-ratio: 1; }
.podcast-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.podcast-hero h1 { margin-bottom: .1em; }
.podcast-hero__sub { font-family: var(--font-display); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(1.25rem, 2.4vw, 1.7rem); color: var(--accent); margin: 0 0 .75rem; }
@media (min-width: 720px) { .podcast-hero { grid-template-columns: 260px minmax(0, 1fr); gap: 2.75rem; } .podcast-hero__art { width: 100%; } }

/* Where-to-listen grid */
.platforms { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.platform { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease; }
.platform:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.platform > .icon { width: 24px; height: 24px; flex: 0 0 24px; }
.platform span { flex: 1; min-width: 0; line-height: 1.25; }
.platform b { display: block; font-weight: 600; font-size: .95rem; }
.platform small { display: block; color: var(--muted); font-size: .78rem; margin-top: .1rem; }
.platform .platform__ext { width: 16px; height: 16px; opacity: .45; }

/* Numbered compact episode list (start-here packs) */
.ep-list--numbered { counter-reset: ep; }
.ep-list--numbered > li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); align-items: center; counter-increment: ep; }
.ep-list--numbered > li::before { content: counter(ep); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--brass); line-height: 1; }

/* Filterable grid: wrapper divs must not break equal-height cards */
[data-filter-grid] > [data-series] > .card { height: 100%; }

/* Inline icon + text inside meta rows (svg is display:block by default) */
.meta > span { display: inline-flex; align-items: center; gap: .3rem; }

/* "More" arrow links outside a section head (callouts) */
.callout .more { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; text-decoration: none; }
.callout h3 { margin-bottom: .35rem; }
.callout p:last-of-type { margin-bottom: .75rem; }

/* Episode page */
.episode-title { font-size: clamp(1.9rem, 3.8vw, 2.9rem); max-width: 26ch; }
.page-episode .yt { margin-top: .5rem; }
.chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: var(--max-prose); }
.chapters li { border-bottom: 1px solid var(--rule); }
.chapters a { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: .6rem 0; text-decoration: none; color: var(--ink); }
.chapters a:hover span:last-child { color: var(--accent); }
.chapters__t { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; font-size: .92rem; }
.share { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.share .social-row { gap: .5rem; }

/* Shorts: 9:16 cards. Source thumbnails are 16:9 frames with the vertical
   video centred, so object-fit: cover on a 9:16 box crops to the clip. */
.shorts-grid { display: grid; gap: 1rem .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.short-card { display: block; text-decoration: none; color: var(--ink); }
.short-card__media { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.short-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.short-card__media .dur { position: absolute; right: .5rem; bottom: .5rem; background: rgba(0,0,0,.72); color: #fff; font-size: .72rem; font-weight: 600; padding: .15rem .4rem; border-radius: 4px; }
.short-card:hover .short-card__media { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.short-card__title { font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.25; margin: .6rem 0 .15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.short-card:hover .short-card__title { color: var(--accent); }
.short-card__meta { font-size: .78rem; color: var(--muted); margin: 0; }
@media (max-width: 420px) { .shorts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Transcript hub rows (ep-row on a div, with links inside) */
.page-transcripts .ep-row__title a { color: inherit; text-decoration: none; }
.page-transcripts .ep-row__title a:hover { color: var(--accent); }
.page-transcripts .ep-row__meta a { white-space: nowrap; }
