/* Delicious Revolution archive.
   Styled with the Polyculture Research design system (Cream theme): Figtree for
   display, Source Serif 4 for body, slate and cream grounds, fuchsia and blue
   accents at display size only. Token names match the system's tokens.json. */
:root {
  --surface: #faf7f2;
  --surface-raised: #ffffff;
  --surface-tint: #f1ece3;
  --line: #e8eaed;
  --ink: #1e1e1e;
  --ink-muted: rgba(30, 30, 30, 0.72);
  --ink-subtle: rgba(30, 30, 30, 0.65);
  --heading: #3d4f5f;
  --slate: #3d4f5f;
  --on-slate: #ffffff;
  --on-slate-muted: rgba(255, 255, 255, 0.82);
  --on-slate-subtle: rgba(255, 255, 255, 0.66);
  --fuchsia: #ff2e7e;
  --blue: #2d9cdb;
  --fuchsia-text: #d40051;
  --link: #1b70a0;
  --link-hover: #145680;
  --action: #e80059;
  --action-hover: #c8004d;
  --on-action: #ffffff;
  --focus: var(--link);

  --font-display: "Figtree", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;

  --space-050: 0.5rem;
  --space-100: 1rem;
  --space-150: 1.5rem;
  --space-200: 2rem;
  --space-300: 3rem;
  --space-500: 5rem;
  --radius-xs: 2px;
  --radius-md: 8px;
  --rule-accent: 3px;
  --rule-hairline: 1px;
  --container-max: 1100px;
  --measure: 720px;
  --measure-wide: 760px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }
@media (max-width: 768px) { html { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--heading);
  letter-spacing: -0.025em;
  margin: 0;
}
a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--surface-raised); padding: 0.5rem 0.75rem; }

/* ---------- Eyebrow + accent heading ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--link);
  margin: 0 0 0.85rem;
}
a.eyebrow:hover { color: var(--link-hover); }
.accent-heading { font-size: 1.75rem; }
.accent-heading::after {
  content: "";
  display: block;
  width: 52px;
  height: var(--rule-accent);
  margin-top: 0.85rem;
  border-radius: var(--radius-xs);
  background: linear-gradient(90deg, var(--fuchsia), var(--blue));
}

/* ---------- Button ---------- */
.button {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.button--primary { background: var(--action); color: var(--on-action); }
.button--primary:hover { background: var(--action-hover); color: var(--on-action); }
.button--secondary {
  background: transparent;
  color: var(--heading);
  border: 2px solid var(--heading);
  padding: calc(0.9rem - 2px) calc(2rem - 2px);
}
.button--secondary:hover { background: var(--heading); color: var(--surface); }

/* ---------- Nav ---------- */
.header { padding: 1.5rem var(--gutter); background: var(--surface); }
.nav {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 0.25rem var(--space-200);
  max-width: var(--container-max); margin: 0 auto;
}
.nav__logo {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--heading); letter-spacing: -0.5px;
}
.nav__logo:hover { color: var(--heading); }
.nav__menu { display: flex; gap: var(--space-200); list-style: none; margin: 0; padding: 0; }
.nav__link {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--heading); padding: 0.5rem 0; display: inline-block;
}
.nav__link:hover { color: var(--fuchsia-text); }
@media (max-width: 480px) { .nav__menu { gap: var(--space-150); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero__background { position: absolute; inset: 0; z-index: 1; }
.hero__background img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__overlay {
  position: absolute; inset: 0;
  /* The system's 135deg slate overlay, held darker through the middle: the title is centred on a busy photo. */
  background: linear-gradient(135deg, rgba(61, 79, 95, 0.9) 0%, rgba(61, 79, 95, 0.8) 40%, rgba(61, 79, 95, 0.68) 70%, rgba(61, 79, 95, 0.5) 100%);
}
.hero__content { position: relative; z-index: 10; text-align: center; padding: var(--gutter); }
.hero__title {
  font-size: clamp(3rem, 10vw, 5.5rem); font-weight: 800; color: #ffffff;
  margin: 0 0 1rem; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}
.hero__accent { color: var(--fuchsia); }
.hero__subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem); color: rgba(255, 255, 255, 0.9);
  max-width: 600px; margin: 0 auto; text-shadow: 0 1px 20px rgba(0, 0, 0, 0.35);
}
@media (max-width: 768px) {
  .hero { min-height: 420px; }
  .hero__overlay { background: linear-gradient(180deg, rgba(61, 79, 95, 0.85), rgba(61, 79, 95, 0.6)); }
}

/* ---------- Bands ---------- */
.band { padding: var(--space-500) 0; }
@media (max-width: 768px) { .band { padding: 3.25rem 0; } }
.band__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }

.intro { text-align: center; }
.intro__text {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.35rem); line-height: 1.25; letter-spacing: -0.02em;
  color: var(--heading); max-width: 800px; margin: 0 auto;
}
.intro__text em { font-style: normal; color: var(--fuchsia); }
.intro__lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-muted); max-width: 640px; margin: 1.25rem auto 0; }

/* ---------- Archive: find bar, seasons, episode rows ---------- */
.archive { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter) var(--space-500); }
.find {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface);
  padding: var(--space-100) 0;
  border-bottom: var(--rule-hairline) solid var(--line);
}
.find label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--heading); margin-bottom: 0.35rem; }
.find__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem var(--space-150); }
.find input {
  flex: 1 1 16rem; max-width: 26rem;
  font: inherit; color: var(--ink);
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--heading); border-radius: var(--radius-md); background: var(--surface-raised);
}
.find input::placeholder { color: var(--ink-subtle); opacity: 1; }
.jump { display: flex; align-items: baseline; gap: 0.9rem; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.jump span { color: var(--ink-subtle); font-weight: 400; }
.jump a { color: var(--heading); padding: 0.25rem 0; }
.jump a:hover { color: var(--fuchsia-text); }
.find-status { margin: 0.35rem 0 0; color: var(--ink-subtle); font-size: 0.88rem; min-height: 1.5em; }

.season { padding-top: var(--space-300); scroll-margin-top: 7.5rem; }
.season[hidden] { display: none; }
.season-head { margin-bottom: var(--space-100); }
.season-blurb { margin: var(--space-100) 0 0; color: var(--ink-muted); max-width: var(--measure); }

.eps { list-style: none; margin: 0; padding: 0; }
.ep {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-100);
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: var(--rule-hairline) solid var(--line);
}
.ep[hidden] { display: none; }
.ep-label {
  margin: 0 0 0.2rem;
  font-size: 0.8rem; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--fuchsia-text);
}
.ep h3 { font-size: 1.1rem; line-height: 1.35; letter-spacing: 0; font-weight: 400; margin: 0 0 0.25rem; }
.ep h3 a { color: var(--heading); }
.guest { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.025em; }
.topic { font-family: var(--font-body); font-size: 0.95rem; color: var(--ink-muted); }
.ep h3 a:hover .guest { color: var(--fuchsia-text); }
.ep-meta { margin: 0; font-size: 0.85rem; line-height: 1.5; color: var(--ink-subtle); }
.ep-meta span::before { content: " · "; }

/* Play is a secondary action: outlined at rest, slate while playing. */
.play {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border: 2px solid var(--heading); border-radius: var(--radius-md);
  background: transparent; color: var(--heading);
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.play:hover, .play.is-playing { background: var(--heading); color: var(--surface); }
.play svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.play .i-pause, .play.is-playing .i-play { display: none; }
.play.is-playing .i-pause { display: inline; }

/* ---------- Sticky player ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  background: var(--slate); color: var(--on-slate);
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-100); align-items: center;
}
.player[hidden] { display: none; }
.now { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player audio { width: 100%; }
@media (max-width: 640px) { .player { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--slate); color: var(--on-slate); text-align: center; padding: var(--space-500) var(--gutter); }
@media (max-width: 768px) { .cta-band { padding: 3.5rem var(--gutter); } }
.cta-band h2 { color: var(--on-slate); font-size: 1.75rem; margin: 0 0 0.75rem; }
.cta-band p { color: var(--on-slate-muted); max-width: 560px; margin: 0 auto 1.75rem; font-size: 1.1rem; }
.cta-band .feed-url { margin: 1.25rem auto 0; font-size: 0.85rem; color: var(--on-slate-subtle); overflow-wrap: anywhere; }

.footer {
  background: var(--slate); color: var(--on-slate-muted); text-align: center;
  padding: var(--space-300) var(--gutter);
}
.footer:has(+ .player) { padding-bottom: calc(var(--space-300) + 4rem); } /* room for the fixed player */
main:has(.cta-band) + .footer { border-top: var(--rule-hairline) solid rgba(255, 255, 255, 0.16); }
.footer__nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem var(--space-150); margin-bottom: var(--space-150); }
.footer__nav a { color: var(--on-slate-muted); font-size: 0.95rem; }
.footer__nav a:hover { color: var(--on-slate); }
.footer__copyright { font-size: 0.85rem; color: var(--on-slate-subtle); margin: 0; }

/* ---------- Episode page ---------- */
.page { max-width: var(--measure); margin: 0 auto; padding: 4rem var(--gutter) var(--space-500); }
.page h1 { font-size: 2.5rem; margin: 0 0 var(--space-100); }
@media (max-width: 768px) { .page h1 { font-size: 2rem; } }
.page .lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-muted); margin: 0 0 var(--space-100); }
.page .ep-meta { font-size: 0.88rem; }
.ep-audio { width: 100%; margin: var(--space-150) 0 var(--space-100); display: block; }
.download { margin: 0; }
.notes { margin-top: 2.5rem; border-top: var(--rule-hairline) solid var(--line); padding-top: var(--space-150); overflow-wrap: anywhere; }
.notes p, .notes ul, .notes ol, .notes blockquote { margin: 0 0 1.25rem; }
.notes li { margin-bottom: var(--space-050); }
.notes a, .page > p a:not(.button) { text-decoration: underline; text-underline-offset: 2px; }
.notes blockquote { padding: var(--space-100) var(--space-150); background: var(--surface-tint); border-radius: var(--radius-md); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-150); margin-top: var(--space-300); border-top: var(--rule-hairline) solid var(--line); padding-top: var(--space-150); }
.pager a { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.025em; color: var(--heading); }
.pager a:hover { color: var(--fuchsia-text); }
.pager a span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; letter-spacing: 0; color: var(--ink-subtle); }
.pager .next { grid-column: 2; text-align: right; }

@media (max-width: 640px) {
  .ep { grid-template-columns: 2.75rem 1fr; gap: 0.75rem; }
  .play { width: 2.75rem; height: 2.75rem; }
  .jump { gap: 0.75rem; }
}
