/* ==========================================================================
   Explainercast — visual system
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --ink-900: #04070f;
  --ink-800: #070b16;

  --text: #e9eefb;
  --text-dim: #b3bed8;
  --text-mute: #8291b1;

  --c-cyan: #4fe3ff;
  --c-indigo: #7b6cff;
  --c-pink: #ff5fa2;
  --c-amber: #ffcb6b;

  --grad-brand: linear-gradient(112deg, var(--c-cyan), var(--c-indigo) 52%, var(--c-pink));
  --grad-soft: linear-gradient(140deg, rgba(79, 227, 255, .16), rgba(123, 108, 255, .12) 55%, rgba(255, 95, 162, .12));

  --surface: rgba(255, 255, 255, .038);
  --surface-2: rgba(255, 255, 255, .062);
  --hairline: rgba(255, 255, 255, .085);
  --hairline-2: rgba(255, 255, 255, .16);

  --shadow-lg: 0 30px 70px -28px rgba(0, 0, 0, .85);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shell: 1120px;
  --read: 780px;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* --- Reset -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 92px;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ink-800);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

a { color: var(--c-cyan); text-decoration: none; }
a:hover { color: #9df1ff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

pre, code { font-family: var(--font-mono); }

::selection {
  background: rgba(123, 108, 255, .45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- Background layers -------------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(79, 227, 255, .13), transparent 62%),
    radial-gradient(980px 640px at 88% 4%, rgba(123, 108, 255, .17), transparent 60%),
    radial-gradient(900px 700px at 55% 108%, rgba(255, 95, 162, .1), transparent 60%),
    linear-gradient(180deg, var(--ink-900), var(--ink-800) 42%, #060a14);
}

/* faint engineering grid */
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 72%);
  opacity: .55;
}

/* film grain */
.bg::after {
  content: "";
  position: absolute;
  inset: -50%;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
  animation: grain 7s steps(6) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -2%); }
  80%  { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

#graph-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* --- Shell -------------------------------------------------------------- */
.page {
  position: relative;
  z-index: 3;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

/* narrower measure for long-form reading */
.shell--read { max-width: calc(var(--read) + 5rem); }

/* these sit tight under what precedes them */
.shell--read.section {
  padding-block: clamp(.5rem, 1.2vw, .9rem) clamp(1.75rem, 3.5vw, 2.75rem);
}

/* --- Wordmark ----------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  color: var(--text);
}
.brand:hover { color: var(--text); }

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: -.03em;
}

/* --- Nav ---------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(7, 11, 22, .72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--hairline);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .93rem;
  font-weight: 500;
}
.nav__links a {
  color: var(--text-dim);
  padding: .5rem .8rem;
  border-radius: 999px;
  transition: color .25s ease, background .25s ease;
}
.nav__links a:hover {
  color: var(--text);
  background: var(--surface-2);
}
/* Scoped to .nav__links so it outranks the generic `.nav__links a:hover`
   above — otherwise hover replaced the gradient with a near-transparent
   surface and left dark text on a dark nav. */
.nav__links a.nav__cta {
  color: var(--ink-900);
  background: var(--grad-brand);
  font-weight: 650;
  padding: .55rem 1.05rem;
  box-shadow: 0 10px 30px -12px rgba(123, 108, 255, .9);
  transition: transform .3s var(--ease-spring), box-shadow .3s ease, filter .3s ease;
}
.nav__links a.nav__cta:hover {
  color: var(--ink-900);
  background: var(--grad-brand);
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(79, 227, 255, .85);
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(6.5rem, 13vw, 9.5rem) clamp(1.5rem, 3.5vw, 2.5rem);
}

.hero__title {
  font-size: clamp(2.5rem, 4.6vw, 3.9rem);
  text-wrap: balance;
  margin-bottom: 1.1rem;
}

.hero__lede {
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
  color: var(--text-dim);
  max-width: 34ch;
  margin-bottom: 1.6rem;
}
.hero__lede strong { color: var(--text); }

/* subscribe buttons */
.subscribe {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.15rem;
}

.sub-btn {
  --tint: var(--c-indigo);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .68rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-2);
  background: var(--surface);
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -.01em;
  backdrop-filter: blur(10px);
  transition: transform .35s var(--ease-spring), border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.sub-btn svg { width: 20px; height: 20px; color: var(--tint); flex: none; }
.sub-btn:hover {
  color: var(--text);
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tint) 55%, transparent);
  background: color-mix(in srgb, var(--tint) 12%, var(--surface));
  box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--tint) 90%, transparent);
}
.sub-btn--apple { --tint: #c86dd7; }
.sub-btn--youtube { --tint: #ff5252; }
.sub-btn--spotify { --tint: #1ed760; }
.sub-btn--rss { --tint: var(--c-amber); }

/* hero artwork */
.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1100px;
  /* sized to the artwork so the glow and badge anchor to the card, not the column */
  width: min(360px, 78vw);
  margin-inline: auto;
}

.art-glow {
  position: absolute;
  width: 108%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--c-cyan), var(--c-indigo), var(--c-pink), var(--c-cyan));
  filter: blur(58px);
  opacity: .42;
  animation: spin 22s linear infinite;
}
@keyframes spin {
  to { transform: rotate(1turn); }
}

.art-card {
  position: relative;
  width: 100%;
  border-radius: var(--r-xl);
  padding: 10px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03));
  border: 1px solid var(--hairline-2);
  box-shadow: var(--shadow-lg);
  transform: rotate3d(1, -1, 0, 0deg);
  transform-style: preserve-3d;
  transition: transform .35s var(--ease-out);
  animation: float 8s ease-in-out infinite;
}
.art-card img {
  width: 100%;
  border-radius: calc(var(--r-xl) - 10px);
}
.art-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--r-xl) - 10px);
  background: linear-gradient(115deg, rgba(255, 255, 255, .28), transparent 42%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

/* --- Section furniture -------------------------------------------------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  margin-bottom: 1.9rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}
.section-head .count {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--c-cyan);
  padding: .2rem .6rem;
  border: 1px solid rgba(79, 227, 255, .3);
  border-radius: 999px;
  background: rgba(79, 227, 255, .08);
}
.rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--hairline-2), transparent);
}

/* --- Glass card --------------------------------------------------------- */
.card {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  overflow: hidden;
}
/* cursor-tracked sheen */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s ease;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
              rgba(123, 108, 255, .16), transparent 70%);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

/* --- How to listen ------------------------------------------------------ */
.steps {
  display: grid;
  gap: .35rem;
}
.step {
  padding: 1.4rem clamp(1.2rem, 3vw, 1.7rem) 1.5rem;
  transition: transform .4s var(--ease-out), border-color .4s ease;
}
/* the preferred route reads a shade louder than the alternatives */
.step--primary {
  border-color: var(--hairline-2);
  background: var(--grad-soft), var(--surface);
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-2);
}
.step__n {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--c-indigo);
  letter-spacing: .1em;
}
.step h3 {
  font-size: 1.12rem;
  margin: .45rem 0 .5rem;
}
.step p {
  color: var(--text-mute);
  font-size: .94rem;
}

.or-rule {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: .7rem 0;
  font-family: var(--font-mono);
  font-size: 1.56rem;
  font-weight: 500;
  letter-spacing: .28em;
  color: var(--text-dim);
}
.or-rule span { margin-right: -.28em; }
.or-rule::before,
.or-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
              transparent, rgba(255, 255, 255, .3) 22%, rgba(255, 255, 255, .3) 78%, transparent);
}

.feed-chip {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .7rem;
  padding: .45rem .5rem .45rem .75rem;
  border: 1px dashed var(--hairline-2);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .25);
}
.feed-chip code {
  font-size: .72rem;
  color: var(--c-cyan);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-btn {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--hairline-2);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: pointer;
  transition: color .25s, background .25s, transform .25s var(--ease-spring);
}
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn:hover {
  color: var(--c-cyan);
  background: rgba(79, 227, 255, .14);
  transform: scale(1.08);
}
.copy-btn.is-done { color: #4ade80; border-color: rgba(74, 222, 128, .5); }

/* --- Episodes ----------------------------------------------------------- */
.episodes {
  display: grid;
  gap: 1.1rem;
}

.post {
  padding: 1.5rem clamp(1.1rem, 3vw, 1.8rem) 1.6rem;
  transition: transform .45s var(--ease-out), border-color .45s ease, box-shadow .45s ease;
}
.post:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-2);
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .9);
}

.post-title {
  font-size: clamp(1.22rem, 2.4vw, 1.55rem);
  letter-spacing: -.025em;
}
.post-title a {
  color: inherit;
  transition: color .25s ease;
}
.post-title a:hover { color: var(--c-cyan); }

/* arrow slides in on hover; hidden from the accessible name */
.post-title__arrow {
  display: inline-block;
  margin-left: .4em;
  opacity: 0;
  transform: translateX(-.3em);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.post-title a:hover .post-title__arrow,
.post-title a:focus-visible .post-title__arrow {
  opacity: 1;
  transform: none;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin: .7rem 0 1.1rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.post-meta .chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .58rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
}
.post-meta .chip svg { width: 12px; height: 12px; opacity: .8; }

.post-summary {
  color: var(--text-dim);
  font-size: 1rem;
}
.post-summary p { margin-bottom: .8em; }
.post-summary a { border-bottom: 1px solid rgba(79, 227, 255, .35); }
.post-summary ul { padding-left: 1.15rem; }

/* --- Audio player ------------------------------------------------------- */
.audio-player {
  margin: 0 0 1.25rem;
  padding: .75rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: linear-gradient(120deg, rgba(79, 227, 255, .05), rgba(123, 108, 255, .05));
}

/* native fallback (before JS upgrade) */
.audio-player audio { width: 100%; }
.audio-player.is-enhanced audio { display: none; }

.ap {
  display: none;
  align-items: center;
  gap: .8rem;
}
.audio-player.is-enhanced .ap { display: flex; }

.ap__play {
  flex: none;
  position: relative;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-900);
  background: var(--grad-brand);
  box-shadow: 0 8px 26px -10px rgba(123, 108, 255, .85);
  transition: transform .3s var(--ease-spring), box-shadow .3s ease;
}
.ap__play:hover { transform: scale(1.07); box-shadow: 0 12px 30px -10px rgba(79, 227, 255, .9); }
.ap__play:active { transform: scale(.96); }
.ap__play svg { width: 18px; height: 18px; }
.ap__play .icon-pause { display: none; }
.ap.is-playing .ap__play .icon-play { display: none; }
.ap.is-playing .ap__play .icon-pause { display: block; }

/* halo pulse while playing */
.ap__play::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(79, 227, 255, .6);
  opacity: 0;
}
.ap.is-playing .ap__play::after { animation: halo 2s var(--ease-out) infinite; }
@keyframes halo {
  0%   { opacity: .8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.45); }
}

.ap__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .42rem;
}

.ap__scrub {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.ap__track {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.ap__buffer {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(255, 255, 255, .1);
}
.ap__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: var(--grad-brand);
}
.ap__knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px; height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 227, 255, .3);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.ap__scrub:hover .ap__knob,
.ap.is-playing .ap__knob { opacity: 1; }

.ap__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-mute);
  letter-spacing: .04em;
}

.ap__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.ap__bars i {
  width: 2px;
  height: 42%;
  border-radius: 1px;
  background: var(--c-indigo);
  opacity: .35;
  transition: height .2s ease;
}
.ap.is-playing .ap__bars i {
  opacity: 1;
  animation: bars 1.1s ease-in-out infinite;
}
.ap__bars i:nth-child(1) { animation-delay: 0s; }
.ap__bars i:nth-child(2) { animation-delay: .14s; }
.ap__bars i:nth-child(3) { animation-delay: .28s; }
.ap__bars i:nth-child(4) { animation-delay: .42s; }
.ap__bars i:nth-child(5) { animation-delay: .2s; }
@keyframes bars {
  0%, 100% { height: 25%; background: var(--c-indigo); }
  50%      { height: 100%; background: var(--c-cyan); }
}

.ap__dl {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .25s ease;
}
.ap__dl svg { width: 13px; height: 13px; }
.ap__dl:hover { color: var(--c-cyan); }

/* --- Pagination --------------------------------------------------------- */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}
.pager a {
  padding: .6rem 1.1rem;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: .9rem;
  font-weight: 600;
  transition: background .3s, color .3s, transform .3s var(--ease-spring);
}
.pager a:hover { color: var(--text); background: var(--surface-2); transform: translateY(-2px); }

/* --- Footer ------------------------------------------------------------- */
.footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35));
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 2.2rem 0;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: .9rem;
}
.footer__links a { color: var(--text-mute); }
.footer__links a:hover { color: var(--c-cyan); }
.footer__note {
  width: 100%;
  padding-bottom: 2rem;
  font-size: .78rem;
  color: rgba(130, 145, 177, .75);
}

/* --- Back to top -------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 55;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline-2);
  border-radius: 50%;
  background: rgba(9, 14, 28, .8);
  backdrop-filter: blur(12px);
  color: var(--text-dim);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: all .4s var(--ease-out);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--c-cyan); border-color: rgba(79, 227, 255, .5); }
.to-top svg { width: 17px; height: 17px; }

/* --- Toast -------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 70;
  padding: .6rem 1.1rem;
  border: 1px solid rgba(79, 227, 255, .35);
  border-radius: 999px;
  background: rgba(9, 14, 28, .92);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: .86rem;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity .35s ease, transform .35s var(--ease-out);
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* --- Episode page ------------------------------------------------------- */
/* .section wins on specificity, so match it to clear the fixed nav */
.section.episode-page { padding-block-start: 7.5rem; }

.crumb {
  margin-bottom: 1.25rem;
  font-size: .88rem;
}
.crumb a { color: var(--text-mute); }
.crumb a:hover { color: var(--c-cyan); }

.episode-page__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-wrap: balance;
}

.episode-page__subscribe {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}
.episode-page__subscribe h2 {
  font-size: 1.3rem;
  margin-bottom: .5rem;
}
.episode-page__subscribe p {
  color: var(--text-mute);
  font-size: .95rem;
}

/* --- 404 ---------------------------------------------------------------- */
.section.notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block-start: 7.5rem;
}
.notfound .hero__title { margin-bottom: .5rem; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block-start: 6.5rem;
  }
  .hero__copy { order: 2; }
  .hero__art { order: 1; margin-bottom: 1rem; }
  .hero__lede { margin-inline: auto; }
  .episodes, .pager { margin-inline: auto; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links .nav-hide { display: none; }
  .section-head { flex-wrap: wrap; }
  .ap__row .ap__bars { display: none; }
}

@media (max-width: 420px) {
  .sub-btn { flex: 1 1 100%; justify-content: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* --- Motion preferences ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .bg::after { display: none; }
}
