/* Rogers That Podcast — shared styles
   Tokens come straight from the design: cream paper, deep plum ink,
   peach accent, burnt-orange link colour, and a pale sky blue. */

:root {
  --cream: #fdf8ee;
  --plum: #2b2440;
  --peach: #f0a878;
  --orange: #e0793f;
  --sky: #cdeaf4;

  --font-sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;

  --gutter: clamp(20px, 5vw, 48px);
  --radius-card: 20px;
  --radius-panel: 28px;
  --line: 2px solid var(--plum);

  --glow: radial-gradient(ellipse 55% 85% at 50% 38%, rgba(190,160,255,.45) 0%, rgba(150,120,235,.22) 38%, rgba(43,36,64,0) 72%);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--font-sans);
  font-weight: 500;
}

img { max-width: 100%; }

a { color: var(--orange); }
a:hover { color: var(--plum); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--plum); color: var(--cream);
  padding: 10px 16px; border-radius: 99px; font-weight: 800; z-index: 10;
}
.skip-link:focus { left: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px var(--gutter);
  border-bottom: var(--line);
}
.site-header__logo { display: block; height: clamp(64px, 11vw, 100px); width: auto; }

/* Article pages use a compact bar: socials strip + logo left, nav right. */
.social-strip {
  background: var(--plum); color: var(--cream);
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px 22px;
  padding: 10px var(--gutter);
  font: 700 13px var(--font-sans); letter-spacing: .1em; text-transform: uppercase;
}
.social-strip a { color: var(--cream); text-decoration: none; }
.social-strip a:hover { color: var(--peach); }

.site-header--bar {
  flex-direction: row; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter);
}
.site-header--bar .site-header__logo { height: clamp(44px, 8vw, 60px); }
.site-nav { display: flex; gap: 24px; font: 700 16px var(--font-sans); }
.site-nav a { color: var(--plum); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--orange); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--glow), var(--plum); color: var(--cream);
  padding: clamp(64px, 10vw, 128px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(28px, 4vw, 40px);
}
.hero--compact { gap: 20px; }

.hero__tagline {
  margin: 0; max-width: 820px;
  font: 800 clamp(32px, 6vw, 64px)/1 var(--font-sans); letter-spacing: -.04em;
  text-wrap: balance;
}
.hero__title {
  margin: 0;
  font: 800 clamp(40px, 8vw, 84px)/1 var(--font-sans); letter-spacing: -.045em;
}
.hero__sub {
  margin: 0; max-width: 560px;
  font: 500 clamp(17px, 2.2vw, 22px)/1.45 var(--font-sans);
  color: var(--peach); text-wrap: balance;
}
.hero__eyebrow {
  white-space: nowrap; margin-bottom: -10px;
  font: 700 13px var(--font-sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--peach);
}

/* Drifting glow orbs behind the home hero */
.hero__orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(50px);
  transform: translate(-50%, -50%);
  animation: rt-drift var(--dur) ease-in-out var(--delay) infinite alternate;
  background: radial-gradient(closest-side, rgba(var(--rgb), var(--a)), rgba(var(--rgb), calc(var(--a) * .35)) 45%, rgba(var(--rgb), 0) 100%);
}
.orb--1 { left: 26%; top: 22%; width: min(60vw, 760px); height: min(60vw, 760px); --rgb: 190,160,255; --a: .5;  --dur: 34s; --delay: 0s; }
.orb--2 { left: 76%; top: 28%; width: min(52vw, 640px); height: min(52vw, 640px); --rgb: 120,165,255; --a: .42; --dur: 41s; --delay: -12s; }
.orb--3 { left: 50%; top: 84%; width: min(80vw, 960px); height: min(80vw, 960px); --rgb: 255,190,140; --a: .22; --dur: 48s; --delay: -20s; }
.orb--4 { left: 50%; top: 40%; width: min(70vw, 820px); height: min(70vw, 820px); --rgb: 200,175,255; --a: .3;  --dur: 38s; --delay: -5s; }

@keyframes rt-drift {
  from { transform: translate(-50%, -50%) translate(-7%, -3%) scale(1); }
  to   { transform: translate(-50%, -50%) translate(7%, 4%) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
}

/* ---------- Buttons & pills ---------- */

.btn {
  display: inline-block; white-space: nowrap; text-decoration: none;
  font: 800 17px var(--font-sans);
  padding: 15px 30px; border-radius: 99px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--peach { background: var(--peach); color: var(--plum); }
.btn--peach:hover { background: var(--cream); color: var(--plum); }
.btn--plum { background: var(--plum); color: var(--cream); padding: 14px 26px; }

.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill {
  white-space: nowrap; text-decoration: none;
  border: 2px solid var(--cream); color: var(--cream); background: transparent;
  font: 800 15px var(--font-sans); padding: 11px 20px; border-radius: 99px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.pill--solid { background: var(--cream); color: var(--plum); }
.pill:hover { background: var(--peach); color: var(--plum); border-color: var(--peach); }

.socials { display: flex; gap: 12px; }
.social-icon {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--cream); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.social-icon:hover { background: var(--peach); color: var(--plum); border-color: var(--peach); }
.social-icon svg { width: 22px; height: 22px; }

/* ---------- Featured episode band ---------- */

.feature { display: flex; flex-wrap: wrap; background: var(--peach); color: var(--plum); text-decoration: none; }
.feature:hover { color: var(--plum); }
.feature__media {
  flex: 1 1 320px; min-height: clamp(300px, 55vw, 460px);
  position: relative; overflow: hidden; background: var(--cream);
}
.feature__body {
  flex: 1 1 360px; padding: clamp(28px, 6vw, 64px);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.feature__eyebrow { font: 800 14px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; }
.feature__title { margin: 0; font: 800 clamp(32px, 5vw, 56px)/1 var(--font-sans); letter-spacing: -.045em; text-wrap: balance; }
.feature__dek { margin: 0; font: 500 clamp(17px, 2vw, 20px)/1.45 var(--font-sans); text-wrap: pretty; }
.feature .btn { align-self: flex-start; }
.feature:hover .btn--plum { background: var(--cream); color: var(--plum); }

/* Duotone guest portrait (plum → cream, matches the brand) */
.duotone {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 8%;
  filter: url(#rt-duo);
}

/* ---------- Episode grid ---------- */

.container { max-width: 1480px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) clamp(20px, 4vw, 32px); }
.section { display: flex; flex-direction: column; gap: 28px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section__title { margin: 0; font: 800 clamp(30px, 5vw, 44px)/1 var(--font-sans); letter-spacing: -.04em; }
.section__more { font: 800 16px var(--font-sans); text-decoration: none; }

.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 28px; }
/* Home: a single row of the most recent episodes, however wide the screen */
.ep-grid--row {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  grid-template-rows: auto; grid-auto-rows: 0;
  row-gap: 0; overflow: hidden;
}

.ep-card { text-decoration: none; color: var(--plum); display: flex; flex-direction: column; gap: 14px; }
.ep-card:hover { color: var(--orange); }
.ep-card__cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-card); border: var(--line); background: var(--plum);
}
.ep-card__name {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 0 7%;
  font: 800 clamp(30px, 4vw, 46px)/.92 var(--font-sans); letter-spacing: -.045em;
  white-space: pre-line;
}
.ep-card__cover--plum .ep-card__name { background: radial-gradient(ellipse 80% 120% at 85% 20%, rgba(190,160,255,.5), rgba(43,36,64,0) 70%), var(--plum); color: var(--cream); }
.ep-card__cover--peach .ep-card__name { background: var(--peach); color: var(--plum); }
.ep-card__cover--sky .ep-card__name { background: var(--sky); color: var(--plum); }
.ep-card__len {
  position: absolute; right: 10px; bottom: 10px;
  background: var(--plum); color: var(--cream);
  font: 700 13px var(--font-sans); padding: 5px 10px; border-radius: 99px;
}
.ep-card__num { font: 800 13px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.ep-card__title { font: 500 17px/1.3 var(--font-sans); }

/* ---------- Episode article ---------- */

.post-hero { display: flex; flex-wrap: wrap; background: var(--plum); color: var(--cream); }
.post-hero__text {
  flex: 1 1 360px; padding: clamp(28px, 6vw, 56px);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.post-hero__eyebrow { font: 700 14px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; }
.post-hero__title { margin: 0; font: 800 clamp(44px, 9vw, 84px)/.96 var(--font-sans); letter-spacing: -.05em; text-wrap: balance; }
.post-hero__dek { margin: 0; font: 500 22px/1.45 var(--font-sans); letter-spacing: -.01em; color: var(--peach); text-wrap: pretty; }
.post-hero__media { flex: 1 1 360px; min-height: clamp(380px, 70vw, 560px); background: var(--cream); position: relative; overflow: hidden; }

.post-meta { max-width: 1100px; margin: 0 auto; padding: 32px clamp(20px, 4vw, 32px) 0; font: 500 16px var(--font-sans); }
.post-meta b { font-weight: 800; }

.post-layout {
  max-width: 1100px; margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 32px) 72px;
  display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 64px); align-items: flex-start;
}

.prose {
  flex: 1 1 520px; min-width: 0; max-width: 720px;
  display: flex; flex-direction: column; gap: 24px;
  font: 400 clamp(19px, 2.4vw, 22px)/1.6 var(--font-serif);
}
.prose p { margin: 0; text-wrap: pretty; }
.prose b { font-weight: 800; }
.prose h2 {
  margin: 24px 0 0;
  font: 800 clamp(22px, 3.6vw, 28px)/1.1 var(--font-sans); letter-spacing: -.03em; text-wrap: balance;
}
.prose h2 span { color: var(--orange); }
.dropcap {
  float: left; padding: 8px 14px 0 0; color: var(--orange);
  font: 800 clamp(84px, 14vw, 120px)/.8 var(--font-sans); letter-spacing: -.04em;
}
.pullquote {
  margin: 24px 0; padding: 8px 0 8px clamp(16px, 4vw, 32px);
  border-left: 6px solid var(--orange);
  font: italic 600 clamp(26px, 5vw, 40px)/1.15 var(--font-serif); letter-spacing: -.01em; text-wrap: balance;
}
.callout {
  margin: 24px 0; background: var(--plum); color: var(--cream);
  border-radius: var(--radius-panel); padding: clamp(24px, 5vw, 40px);
  display: flex; flex-direction: column; gap: 12px;
}
.callout__label { font: 800 14px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--peach); }
.callout__quote { margin: 0; font: italic 600 clamp(24px, 4.5vw, 34px)/1.15 var(--font-serif); text-wrap: balance; }

.sidebar { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.panel { border: var(--line); border-radius: var(--radius-panel); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.panel--glance { padding: 24px; }
.panel--sky { border: 0; background: var(--sky); }
.panel__logo { height: 56px; width: auto; align-self: flex-start; }
.panel__label { font: 800 14px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.panel__title { margin: 0; font: 800 26px/1.05 var(--font-sans); letter-spacing: -.03em; }
.panel__text { margin: 0; font: 500 16px/1.45 var(--font-sans); }
.facts { margin: 0; display: flex; flex-direction: column; gap: 10px; font: 500 17px/1.3 var(--font-sans); }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; }

.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font: 700 16px var(--font-sans); }
.link-list a {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-top: var(--line); color: var(--plum); text-decoration: none;
}
.link-list li:last-child a { padding-bottom: 0; }
.link-list a:hover { color: var(--orange); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  text-decoration: none; border-radius: 99px;
  border: 2px solid var(--plum); color: var(--plum);
  font: 700 15px var(--font-sans); padding: 8px 16px;
}
.chip:hover, .chip--solid { background: var(--plum); color: var(--cream); }
.chip--solid { font-weight: 800; }
.chip--solid:hover { background: var(--orange); border-color: var(--orange); color: var(--cream); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: var(--line);
  padding: 28px var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font: 500 15px var(--font-sans);
}
.site-footer a { color: var(--plum); font-weight: 700; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer nav { display: flex; gap: 20px; }

/* ---------- Additions beyond the artboards, same tokens ---------- */

/* Episode pages without a guest photo use the cover tile instead */
.post-hero__tile {
  flex: 1 1 360px; min-height: clamp(260px, 40vw, 460px);
  position: relative; overflow: hidden;
}
.post-hero__tile .ep-card__name { font-size: clamp(56px, 9vw, 112px); padding: 0 8%; }
.ep-card__cover--plum.post-hero__tile .ep-card__name { color: var(--cream); background: radial-gradient(ellipse 80% 120% at 85% 20%, rgba(190,160,255,.5), rgba(43,36,64,0) 70%), #362d50; }
.ep-card__cover--peach.post-hero__tile .ep-card__name { background: var(--peach); color: var(--plum); }
.ep-card__cover--sky.post-hero__tile .ep-card__name { background: var(--sky); color: var(--plum); }

.prose a { color: var(--orange); }
.prose a:hover { color: var(--plum); }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; }
.prose--notes { font-size: clamp(18px, 2.2vw, 20px); }

.video { aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; border: var(--line); background: var(--plum); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.audio {
  border: var(--line); border-radius: var(--radius-card); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px; font-family: var(--font-sans);
}
.audio__label { font: 800 13px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.audio audio { width: 100%; }

/* Archive search */
.search { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.search__input {
  flex: 1 1 320px; max-width: 520px;
  font: 500 17px var(--font-sans); color: var(--plum);
  background: var(--cream); border: var(--line); border-radius: 99px; padding: 13px 22px;
}
.search__input::placeholder { color: rgba(43,36,64,.55); }
.search__count { margin: 0; font: 700 15px var(--font-sans); }
.search__empty { margin: 0; font: 500 18px var(--font-sans); }
.ep-card[hidden] { display: none; }

/* Home: be-a-guest band */
.guest-band {
  background: var(--sky);
  padding: clamp(36px, 6vw, 64px) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.guest-band > div { max-width: 640px; display: flex; flex-direction: column; gap: 10px; }
.guest-band__title { margin: 0; font: 800 clamp(28px, 4.5vw, 44px)/1 var(--font-sans); letter-spacing: -.04em; }
.guest-band__text { margin: 0; font: 500 clamp(17px, 2vw, 20px)/1.45 var(--font-sans); }
.guest-band .btn:hover { background: var(--orange); color: var(--cream); }

/* Be-a-guest form */
.form-wrap { max-width: 820px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 32px) 80px; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font: 800 15px var(--font-sans); }
.field small { font-weight: 500; }
.field input, .field textarea {
  font: 500 17px var(--font-sans); color: var(--plum);
  background: #fff; border: var(--line); border-radius: 16px; padding: 13px 16px;
}
.field textarea { resize: vertical; min-height: 140px; }
.form__submit { align-self: flex-start; border: 0; cursor: pointer; }
.form__submit:hover { background: var(--orange); color: var(--cream); }

/* Phones: the one-row strip would show a single card, so show four */
@media (max-width: 600px) {
  .ep-grid--row { grid-auto-rows: auto; row-gap: 28px; }
  .ep-grid--row > .ep-card:nth-child(n+5) { display: none; }
}

/* Size tile names to the tile, so long surnames never spill over the edge */
.ep-card__cover { container-type: inline-size; }
.ep-card__name { font-size: clamp(22px, 14cqi, 46px); overflow-wrap: anywhere; }
.post-hero__tile { container-type: inline-size; }
.post-hero__tile .ep-card__name { font-size: clamp(44px, 15cqi, 112px); }

/* Transistor embed player */
.embed-player { width: 100%; height: 180px; border: 0; border-radius: var(--radius-card); }
