/* ==========================================================================
   Budget Committee! — theme stylesheet
   A bold editorial look for a school-finance & ed-politics podcast.
   Oat paper + hot red + plum, drawn from the show's cover art.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  --ink:        #16110d;   /* warm near-black — headlines, dark sections */
  --ink-soft:   #322a22;
  --paper:      #e4dab9;   /* brand oat — page background */
  --surface:    #f4eedb;   /* lifted cream — cards & panels */
  --surface-2:  #ece2c7;
  --text:       #1d1813;   /* warm black body text */
  --muted:      #6f6650;   /* warm taupe */
  --line:       #d2c5a1;   /* hairline rules on oat */
  --accent:     #fe2800;   /* brand hot red — primary pop (overridable in admin) */
  --accent-ink: #ffffff;   /* readable text on red */
  --plum:       #853176;   /* brand plum — secondary accent */
  --plum-soft:  #9c4e8c;
  --red:        #fe2800;   /* brand red emphasis */
  --red-dark:   #d21f00;

  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 1px 2px rgba(22,17,13,.07), 0 10px 30px -12px rgba(22,17,13,.22);
  --shadow-lg:  0 24px 60px -24px rgba(22,17,13,.40);

  --font-head:  "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap:       1180px;
  --wrap-narrow: 720px;
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.1; font-weight: 600; }
p { margin: 0 0 1.1em; }

/* ---- Layout helpers ------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding: 64px 0; }
.kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--red);
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; cursor: pointer; transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn:hover { color: #fff; background: var(--ink-soft); transform: translateY(-1px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent); color: var(--accent-ink); filter: brightness(.96); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ---- Top tip bar --------------------------------------------------------- */
.tipbar {
  display: block; text-align: center; text-decoration: none;
  background: var(--plum); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 9px 16px; line-height: 1.35;
}
.tipbar b { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.tipbar:hover { background: var(--plum-soft); color: #fff; }

/* ---- Site header --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  color: var(--ink);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 6px 20px -16px rgba(22,17,13,.7);
}
.site-header a { color: var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.brand .seal {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  box-shadow: inset 0 0 0 2px rgba(22,17,13,.22);
}
.brand .brand-logo {
  width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none;
  box-shadow: 0 1px 0 var(--line), var(--shadow);
}
.brand b { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 15px; font-weight: 600; color: var(--ink); }
.nav a:hover { color: var(--accent); }
.nav .btn { color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(900px 380px at 86% -25%, rgba(254,40,0,.12), transparent 62%),
    radial-gradient(760px 440px at 2% 130%, rgba(133,49,118,.14), transparent 62%),
    var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* faint ledger lines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(transparent, transparent 38px, rgba(22,17,13,.035) 38px, rgba(22,17,13,.035) 39px);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.hero-art { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.hero-art img {
  width: 100%; border-radius: 16px; border: 7px solid var(--surface);
  box-shadow: var(--shadow-lg); transform: rotate(1.6deg);
}
.hero-copy { min-width: 0; }
.hero h1 { color: var(--ink); font-size: clamp(42px, 7.4vw, 82px); margin: 14px 0 0; letter-spacing: -.025em; }
.hero h1 .pop { color: var(--accent); }
.hero .lede { font-size: clamp(18px, 2.4vw, 23px); color: var(--ink-soft); max-width: 620px; margin: 18px 0 28px; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.hero .platforms a { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.hero .platforms a:hover { color: var(--accent); }

/* ---- Player (podcast embed / placeholder) ------------------------------ */
.player {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden;
}
.player__head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.player__badge { background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .08em; }
.player__title { font-family: var(--font-head); font-size: 19px; color: var(--ink); }
.player iframe { display: block; width: 100%; border: 0; }
/* Spotify (or any) embed rendered from the full embed code */
.player-embed .kicker { margin-bottom: 12px; }
.player-embed iframe { display: block; width: 100% !important; height: 152px !important; border: 0; border-radius: 12px; box-shadow: var(--hard); }
.player--placeholder { display: grid; place-items: center; text-align: center; padding: 46px 24px; background:
  repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 14px, #fff 14px, #fff 28px); }
.player--placeholder .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); display: inline-block; margin-right: 8px; animation: pulse 1.6s infinite; vertical-align: middle; }
.player--placeholder h3 { margin: 6px 0; }
.player--placeholder p { color: var(--muted); max-width: 440px; margin: 0 auto; font-size: 15px; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---- Section headings ---------------------------------------------------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); margin: 6px 0 0; }
.section-head .more { font-weight: 600; font-size: 15px; color: var(--red); }

/* ---- Episode grid / cards ------------------------------------------------ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 16/9; background: var(--ink); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__ep { position: absolute; top: 12px; left: 12px; background: var(--plum); color: #fff; font-family: var(--font-mono); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 6px; }
.card__ep b { color: var(--accent); }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.card__title { font-size: 22px; line-height: 1.15; margin: 0; }
.card__title a:hover { color: var(--red); }
.card__excerpt { color: var(--muted); font-size: 15.5px; margin: 0; }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.card__playlink { color: var(--red); font-weight: 600; }

/* Featured (first) card spans wide */
.grid--featured .card:first-child { grid-column: span 2; flex-direction: row; }
.grid--featured .card:first-child .card__media { aspect-ratio: auto; width: 46%; min-height: 100%; }
.grid--featured .card:first-child .card__title { font-size: 30px; }

/* ---- Episode rows (Song Exploder-style editorial feed) ------------------- */
.erows { display: grid; }
.erow {
  display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: start;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.erow:last-child { border-bottom: 1px solid var(--line); }
.erow__art { position: relative; display: block; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.erow__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.erow__art:hover img { transform: scale(1.04); }
.erow__body { min-width: 0; }
.erow__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.erow__title { font-size: clamp(22px, 3vw, 29px); line-height: 1.12; margin: 0 0 9px; }
.erow__title a:hover { color: var(--red); }
.erow__desc { color: var(--text); font-size: 16.5px; line-height: 1.55; margin: 0 0 15px; max-width: 62ch; }
.erow__links { display: flex; flex-wrap: wrap; gap: 9px 18px; align-items: center; font-size: 14px; }
.erow__links .listen { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.erow__links .listen:hover { color: var(--red); }
.erow__links .listen svg { width: 16px; height: 16px; flex: none; }
.erow__links .shownotes { font-weight: 700; color: var(--red); }
.erow__links .shownotes:hover { color: var(--red-dark); }

/* Episode type badge (primary tag): color by slug — explainer/interview/news */
.type-badge { display: inline-flex; align-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 5px; background: var(--ink); color: #fff; }
.type-badge.is-explainer { background: var(--plum); }
.type-badge.is-interview { background: var(--red); }
.type-badge.is-news      { background: var(--ink); }
.type-badge.is-analysis  { background: #1f6f54; }

/* ---- Browse by topic ----------------------------------------------------- */
.topic-chips { display: flex; flex-wrap: wrap; gap: 11px; }
.topic-chip { display: inline-flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 15px; color: var(--ink); }
.topic-chip:hover { border-color: var(--plum); color: var(--plum); transform: translateY(-1px); }
.topic-chip .n { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 7px; }

/* ---- Tipline ("send us a budget") ---------------------------------------- */
.tipline { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; background: var(--surface); border: 2px dashed var(--plum); border-radius: var(--radius); padding: 30px 34px; }
.tipline h2 { margin: 6px 0 8px; font-size: clamp(24px, 3.4vw, 32px); }
.tipline p { margin: 0; color: var(--muted); max-width: 54ch; }

/* ---- Subscribe band ------------------------------------------------------ */
.band { background: var(--plum); color: #fff; }
.band h2 { color: #fff; }
.band .kicker { color: #f3d7ec; }
.subscribe { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.subscribe .lede { color: #ece2c7; }
.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.subscribe-form input[type="email"] {
  flex: 1 1 240px; min-width: 0; padding: 14px 16px; border-radius: 999px; border: 2px solid transparent;
  font-size: 16px; font-family: var(--font-body); background: #fff; color: var(--text);
}
.subscribe-form input:focus { outline: none; border-color: var(--accent); }
.subscribe-note { font-size: 13px; color: #e3cbdd; margin-top: 12px; }
.platform-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.platform-cards a {
  display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 14px 16px; color: #fff; font-weight: 600; font-size: 15px;
}
.platform-cards a:hover { background: rgba(254,40,0,.18); border-color: var(--accent); color: #fff; }
.platform-cards .ico { width: 24px; height: 24px; flex: none; }

/* ---- Single post / episode ----------------------------------------------- */
.post-hero { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); padding: 56px 0 40px; }
.post-hero .wrap { max-width: var(--wrap-narrow); }
.post-hero .post-tag { color: var(--accent); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; font-weight: 600; }
.post-hero h1 { color: var(--ink); font-size: clamp(32px, 5.5vw, 52px); margin: 12px 0 14px; }
.post-hero .post-meta { color: var(--muted); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.post-hero .post-meta .by { color: var(--ink); }
.post-hero .post-meta .by a { color: var(--ink); }

.post-feature { max-width: var(--wrap); margin: -28px auto 0; padding: 0 24px; }
.post-feature img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.post-player { max-width: var(--wrap-narrow); margin: 36px auto 0; padding: 0 24px; }

.post-content { max-width: var(--wrap-narrow); margin: 0 auto; padding: 44px 24px 12px; font-size: 19px; }
.post-content > * { margin-bottom: 1.5rem; }
.post-content h2 { font-size: 30px; margin: 2.2rem 0 1rem; }
.post-content h3 { font-size: 23px; margin: 1.8rem 0 .8rem; }
.post-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.post-content a:hover { color: var(--red-dark); }
.post-content img { border-radius: var(--radius); margin: 1.5rem auto; }
.post-content blockquote {
  margin: 1.8rem 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--plum);
  font-family: var(--font-head); font-size: 24px; line-height: 1.35; color: var(--ink); font-style: italic;
}
.post-content figure { margin: 1.8rem 0; }
.post-content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.post-content ul, .post-content ol { padding-left: 1.3em; }
.post-content code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.post-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
/* Ghost cards */
.kg-card-begin, .post-content .kg-embed-card { margin: 1.8rem 0; }
.post-content .kg-embed-card iframe { width: 100%; }
.kg-audio-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.kg-width-wide { width: min(1020px, 92vw); margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); border-radius: 0; }

.post-foot { max-width: var(--wrap-narrow); margin: 8px auto 0; padding: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.tags a:hover { border-color: var(--plum); color: var(--plum); }
.author-byline { display: flex; align-items: center; gap: 12px; }
.author-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.author-byline .name { font-weight: 700; color: var(--ink); }
.author-byline .role { font-size: 13px; color: var(--muted); }

/* ---- Page (about etc.) --------------------------------------------------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(34px, 6vw, 56px); }
.page-content { max-width: var(--wrap-narrow); margin: 0 auto; padding: 44px 24px; font-size: 19px; }

/* ---- Pagination ---------------------------------------------------------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 0 0; }
.pagination a { font-weight: 600; }
.pagination .page-number { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }

/* ---- Web-art brand strip (above footer) ---------------------------------- */
.web-strip {
  height: 84px; margin-top: 24px;
  background: url(../images/web-art.png) center/cover no-repeat;
  border-top: 3px solid var(--accent); border-bottom: 3px solid var(--accent);
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: #dccfa9; color: var(--ink-soft); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: var(--ink); margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 360px; }
.footer-col h4 { color: var(--ink); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-body); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(22,17,13,.16); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13.5px; color: var(--muted); }

/* ---- Misc ---------------------------------------------------------------- */
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.error-page { text-align: center; padding: 100px 20px; }
.error-page .code { font-family: var(--font-mono); font-size: 90px; color: var(--accent); font-weight: 700; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid--featured .card:first-child { grid-column: span 2; flex-direction: column; }
  .grid--featured .card:first-child .card__media { width: 100%; aspect-ratio: 16/9; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { justify-self: center; max-width: 340px; }
  .hero-art img { transform: none; }
  .subscribe { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .nav { position: fixed; inset: 72px 0 auto 0; background: var(--surface); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; border-bottom: 3px solid var(--accent); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .25s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 24px; opacity: 1; }
  .nav .btn { margin: 10px 24px; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .grid, .grid--featured { grid-template-columns: 1fr; }
  .erow { grid-template-columns: 92px 1fr; gap: 16px; padding: 22px 0; }
  .erow__title { font-size: 20px; }
  .erow__desc { font-size: 15px; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .tipline { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .section { padding: 48px 0; }
  .post-foot { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   VISUAL POLISH v2 — riso-print / editorial treatment
   Hard offset shadows, paper grain, halftone, highlighter, stamp, section rhythm
   ========================================================================== */
:root {
  --edge: 2px solid var(--ink);
  --hard:      4px 4px 0 var(--ink);
  --hard-lg:   6px 6px 0 var(--ink);
  --hard-plum: 6px 6px 0 var(--plum);
}

/* Subtle printed-paper grain over the whole page (below the sticky header) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Hard "sticker" shadows on feature elements ------------------------- */
.card, .player, .erow__art, .topic-chip, .subscribe-form input[type="email"] {
  border: var(--edge);
}
.card    { box-shadow: var(--hard); transition: transform .14s ease, box-shadow .14s ease; }
.card:hover { transform: translate(-2px,-2px); box-shadow: var(--hard-lg); }
.player  { box-shadow: var(--hard-lg); }
.erow__art { box-shadow: 5px 5px 0 var(--plum); }
.erow:hover .erow__art { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--plum); }
.tipline { box-shadow: 8px 8px 0 rgba(133,49,118,.22); }
.hero-art img { border: 6px solid var(--ink); box-shadow: 10px 10px 0 var(--plum); }

/* Buttons become printed stickers with a press interaction */
.btn { box-shadow: 3px 3px 0 var(--plum); transition: transform .1s ease, box-shadow .1s ease, background .15s ease, color .15s ease; }
.btn:hover  { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--plum); }
.btn:active { transform: translate(2px,2px);   box-shadow: 1px 1px 0 var(--plum); }
.btn--accent { box-shadow: 3px 3px 0 var(--ink); }
.btn--accent:hover  { box-shadow: 5px 5px 0 var(--ink); }
.btn--accent:active { box-shadow: 1px 1px 0 var(--ink); }
.btn--ghost { box-shadow: 3px 3px 0 var(--ink); }

/* Topic chips get a small hard edge + lift */
.topic-chip { box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, border-color .12s, color .12s; }
.topic-chip:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--plum); }

/* ---- Highlighter marker (thematic: marking up the budget) --------------- */
.hl {
  background: linear-gradient(180deg, transparent 10%, rgba(133,49,118,.32) 10%, rgba(133,49,118,.32) 86%, transparent 86%);
  padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hl--red { background: linear-gradient(180deg, transparent 10%, rgba(254,40,0,.26) 10%, rgba(254,40,0,.26) 86%, transparent 86%); }

/* ---- Kicker: leading red tick for a wonky/official feel ------------------ */
.kicker { display: inline-flex; align-items: center; gap: 9px; }
.kicker::before { content: ""; width: 22px; height: 3px; background: currentColor; display: inline-block; }

/* ---- Rubber-stamp seal -------------------------------------------------- */
.stamp {
  font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  font-size: 11px; color: var(--red); border: 2px solid var(--red); border-radius: 8px;
  padding: 9px 13px; display: inline-block; transform: rotate(-8deg); position: relative; background: transparent;
}
.stamp::before { content: ""; position: absolute; inset: 3px; border: 1px solid var(--red); border-radius: 5px; opacity: .55; }
.hero-art { position: relative; }
.hero-art .stamp { position: absolute; top: 14px; right: -16px; z-index: 3; background: var(--paper); box-shadow: var(--hard); }

/* ---- Section rhythm: dark "ink" block + halftone dots -------------------- */
.section--ink { background: var(--ink); color: #f4eedb; }
.section--ink h2 { color: #fff; }
.section--ink .kicker { color: var(--accent); }
.section--ink .topic-chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.22); color: #f4eedb; box-shadow: 3px 3px 0 rgba(0,0,0,.35); }
.section--ink .topic-chip:hover { border-color: var(--accent); color: #fff; box-shadow: 5px 5px 0 var(--plum); }
.section--ink .topic-chip .n { background: rgba(255,255,255,.12); color: #d8ccaf; }
.dots { background-image: radial-gradient(rgba(255,255,255,.09) 1.4px, transparent 1.5px); background-size: 15px 15px; }

/* ---- Animated underlines on editorial links ----------------------------- */
.post-content a, .page-content a {
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat;
  text-decoration: none; transition: background-size .2s ease;
}
.post-content a:hover, .page-content a:hover { background-size: 100% 100%; color: #fff; padding: 0 2px; }
.erow__title a { background-image: linear-gradient(var(--plum), var(--plum)); background-size: 0 3px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .22s ease; }
.erow__title a:hover { background-size: 100% 3px; color: var(--ink); }

/* ---- Type confidence ---------------------------------------------------- */
.hero h1 { font-weight: 600; letter-spacing: -.03em; }
.section-head h2 { position: relative; }
.section-head h2::after { content: ""; display: block; width: 46px; height: 4px; background: var(--red); margin-top: 10px; border-radius: 2px; }

/* ---- Episode page hero + editorial content ------------------------------ */
.post-hero { position: relative; }
.post-hero .stamp { position: absolute; top: 34px; right: 6%; background: var(--paper); box-shadow: var(--hard); z-index: 2; }
.post-hero .post-meta { margin-top: 4px; }

/* Big drop-cap to open an episode / page */
.post-content > p:first-of-type::first-letter,
.page-content > p:first-of-type::first-letter {
  font-family: var(--font-head); font-weight: 600; color: var(--red);
  float: left; line-height: .72; font-size: 4.4em; padding: .06em .10em 0 0;
}

/* Content section headings get the ledger tick */
.post-content h2, .page-content h2 { display: flex; align-items: baseline; gap: .5em; }
.post-content h2::before, .page-content h2::before {
  content: ""; flex: none; width: 26px; height: 5px; background: var(--red);
  border-radius: 2px; transform: translateY(-.22em);
}

/* Pull-quote becomes a printed card */
.post-content blockquote {
  position: relative; background: var(--surface); border: 2px solid var(--ink);
  border-left: 8px solid var(--plum); box-shadow: var(--hard);
  border-radius: 4px; padding: 26px 30px 22px; margin: 2rem 0;
  font-family: var(--font-head); font-style: italic; font-size: 23px; line-height: 1.4; color: var(--ink);
}
.post-content blockquote::after {
  content: "\201D"; position: absolute; right: 14px; bottom: -6px;
  font-family: var(--font-head); font-size: 3.4em; line-height: 1; color: var(--plum); opacity: .28;
}

/* Content lists, images, rules */
.post-content ul li::marker { color: var(--red); }
.post-content ol li::marker { color: var(--plum); font-family: var(--font-mono); font-weight: 700; }
.post-content img, .page-content img { border: 2px solid var(--ink); box-shadow: var(--hard); }
.post-content hr { border: 0; border-top: 3px dotted var(--line); }

@media (max-width: 680px) {
  .post-hero .stamp { display: none; }
  .post-content > p:first-of-type::first-letter,
  .page-content > p:first-of-type::first-letter { font-size: 3.6em; }
}

/* ---- Tag / author / archive hero polish -------------------------------- */
.page-hero { position: relative; }
.page-hero .stamp { position: absolute; top: 30px; right: 6%; background: var(--paper); box-shadow: var(--hard); z-index: 2; }
.page-hero .author-byline img { border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--plum); }

/* ---- Hosts page -------------------------------------------------------- */
.hosts { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.hosts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.host-card {
  background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--hard-lg);
  border-radius: 14px; padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 14px;
}
.host-card__top { display: flex; align-items: center; gap: 16px; }
.host-avatar {
  width: 78px; height: 78px; border-radius: 50%; border: 3px solid var(--ink); flex: none;
  object-fit: cover; display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-head); font-weight: 600; font-size: 28px; color: #fff;
  background: var(--plum); box-shadow: 5px 5px 0 var(--ink);
}
.host-avatar.red { background: var(--red); }
.host-avatar svg { width: 40px; height: 40px; }
.host-card__name { font-family: var(--font-head); font-size: 25px; line-height: 1.05; }
.host-card__role { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-top: 4px; }
.host-card__bio { color: var(--text); font-size: 16px; line-height: 1.55; margin: 0; }
.host-card__bio a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.host-card__bio a:hover { color: var(--red-dark); }
.host-card__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.host-card__links a {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 12px;
}
.host-card__links a:hover { background: var(--ink); color: #fff; }

/* ---- Listen page ------------------------------------------------------- */
.listen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 760px; margin: 0 auto; }
.listen-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--hard);
  border-radius: 14px; padding: 20px 22px;
  font-family: var(--font-head); font-size: 20px; color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, color .12s ease;
}
.listen-card:hover { transform: translate(-2px,-2px); box-shadow: var(--hard-lg); color: var(--red); }
.listen-card svg { width: 32px; height: 32px; flex: none; }
.listen-card .arrow { margin-left: auto; color: var(--red); font-weight: 700; font-family: var(--font-body); }
@media (max-width: 680px) { .listen-grid { grid-template-columns: 1fr; } }

/* ---- 404 / error ------------------------------------------------------- */
.error-page .stamp { display: inline-block; margin-bottom: 24px; font-size: 13px; }
.error-page .code { font-family: var(--font-mono); font-size: clamp(72px, 16vw, 132px); font-weight: 700; color: var(--red); line-height: 1; text-shadow: 6px 6px 0 var(--ink); margin-bottom: 6px; }

@media (max-width: 680px) {
  .hosts-grid { grid-template-columns: 1fr; }
  .page-hero .stamp { display: none; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
