/* Line of Resilience: deep purple ground, orange accent (Ricardo), lavender second line (Alton), one light band for the episode list.
   Display: Big Shoulders Display. Body: Instrument Sans. Data: JetBrains Mono. */
:root {
  --ink: #1C0F33;
  --ink-2: #2A1848;
  --ink-line: #3B2760;
  --ink-edge: #5A4682;
  --text: #F6F1FB;
  --text-2: #D8CEE6;
  --muted: #B5A7CB;
  --accent: #FF7A1A;
  --lav: #B99BE6;
  --accent-soft: #FF9A4D;
  --paper: #F4EFFA;
  --paper-ink: #24123F;
  --paper-ink-2: #4A3A63;
  --paper-muted: #5E4E78;
  --paper-line: #D3C7E3;
  --accent-ink: #B34700;

  --f-display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-body: 'Instrument Sans', 'Helvetica Neue', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

  --gutter: clamp(16px, 5vw, 72px);
  --section: clamp(64px, 8vw, 112px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.has-player { padding-bottom: 96px; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); text-transform: uppercase; text-wrap: balance; margin: 0; }
p { margin: 0; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-soft); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--text); }
.btn-dark:hover { background: var(--ink-2); color: var(--text); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: rgba(36, 18, 63, 0.08); }

/* Nav */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--ink-line); max-width: none; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--text); }
.brand img { height: 30px; width: auto; }
.footer-logo { height: 22px; width: auto; }
.lav { color: var(--lav); }
.brand:hover { color: var(--text); }
.nav nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav nav a:not(.btn) { color: var(--text-2); text-decoration: none; }
.nav nav a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; padding-top: clamp(48px, 8vw, 104px); }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-weight: 900; font-size: clamp(76px, 11vw, 168px); line-height: 0.86; letter-spacing: -0.01em; }
.lede { max-width: 34em; font-size: 20px; line-height: 1.55; color: var(--text-2); }
.listen { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid var(--ink-edge); border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.pill:hover { border-color: var(--accent); color: var(--text); }

.latest { flex: 1 1 380px; min-width: 0; max-width: 540px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.latest-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.latest-body { display: flex; gap: 18px; align-items: center; }
.latest-art { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--ink-line); flex: none; }
.latest h2 { font-weight: 800; font-size: clamp(28px, 3vw, 36px); line-height: 1; min-width: 0; }
.latest-desc { font-size: 16px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.latest-player { display: flex; align-items: center; gap: 16px; }
.play-big { flex: none; width: 60px; height: 60px; border-radius: 50%; border: none; background: var(--accent); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.play-big:hover { background: var(--accent-soft); }
.play-big svg, .ctl-main svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.i-pause { display: none; }
.is-playing .i-play { display: none; }
.is-playing .i-pause { display: block; }
.wave { flex: 1; min-width: 0; height: 48px; display: flex; align-items: center; gap: 3px; overflow: hidden; }
.wave span { flex: 1 0 3px; max-width: 4px; border-radius: 2px; background: var(--ink-edge); transition: background 0.2s; }
.wave span.on { background: var(--accent); }

.the-line { display: flex; align-items: center; gap: 16px; margin-top: clamp(56px, 8vw, 96px); }
.the-line .rule { flex: 1; height: 3px; background: var(--accent); border-radius: 2px; box-shadow: 0 8px 0 var(--lav); margin-bottom: 8px; }
.the-line .rule.short { flex: none; width: 48px; }
.the-line .mono { white-space: nowrap; }
@media (max-width: 520px) { .the-line .mono { white-space: normal; text-align: center; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 48px; }
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--f-display); font-weight: 900; font-size: clamp(48px, 6vw, 88px); line-height: 0.9; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* Topics */
.topics { padding-block: var(--section); display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head h2, .hosts > h2 { font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 0.95; max-width: 12em; }
.section-head > p { max-width: 30em; color: var(--text-2); }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: 16px; overflow: hidden; }
.topic { background: var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.topic p { color: var(--text-2); font-size: 16px; }

/* Episodes */
.episodes { background: var(--paper); color: var(--paper-ink); }
.episodes-inner { padding-block: var(--section); display: flex; flex-direction: column; gap: 24px; }
.episodes .section-head { align-items: center; }
.search { position: relative; flex: 0 1 420px; min-width: 0; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--paper-muted); }
.search input { width: 100%; height: 52px; padding: 0 20px 0 48px; border-radius: 999px; border: 2px solid var(--paper-ink); background: #FFFFFF; color: var(--paper-ink); font: 16px var(--f-body); color-scheme: light; }
.search input::placeholder { color: var(--paper-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--paper-line); background: transparent; color: var(--paper-ink); font: 500 14px var(--f-body); cursor: pointer; }
.chip:hover { border-color: var(--paper-ink); }
.chip.is-on { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--paper); }
.episodes :focus-visible { outline-color: var(--accent-ink); }
.ep-count { color: var(--paper-muted); }
.ep-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--paper-ink); }
.ep { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--paper-line); }
.ep-art { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; background: var(--paper-line); }
.ep-text { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ep-meta { color: var(--paper-muted); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.ep-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.05; text-transform: uppercase; }
.ep-desc { font-size: 15px; color: var(--paper-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 72ch; }
.ep-notes { font-size: 14px; font-weight: 600; color: var(--accent-ink); width: fit-content; }
.ep-notes:hover { color: var(--paper-ink); }
.ep-play { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--paper-ink); background: transparent; color: var(--paper-ink); display: grid; place-items: center; cursor: pointer; }
.ep-play:hover, .ep-play.is-playing { background: var(--paper-ink); color: var(--paper); }
.ep-play svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.ep-empty { padding: 32px 0; color: var(--paper-ink-2); }
@media (max-width: 600px) {
  .ep { grid-template-columns: 64px minmax(0, 1fr); }
  .ep-art { width: 64px; height: 64px; }
  .ep-play { grid-column: 2; justify-self: start; width: 44px; height: 44px; }
}
.more-row { display: flex; justify-content: center; }

/* Hosts */
.hosts { padding-block: var(--section); display: flex; flex-direction: column; gap: 40px; }
.host-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; }
.host { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.host img { width: 180px; height: 230px; object-fit: cover; object-position: center 20%; border-radius: 14px; background: var(--ink-2); flex: none; }
.host > div { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.host h3 { font-weight: 800; font-size: 40px; line-height: 1; }
.host p { color: var(--text-2); font-size: 16px; max-width: 36em; }
.start-here { display: flex; flex-direction: column; gap: 6px; padding: 28px; border: 1px solid var(--ink-line); border-radius: 16px; text-decoration: none; color: var(--text); max-width: 640px; }
.start-here:hover { border-color: var(--accent); color: var(--text); }
.start-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; text-transform: uppercase; }

.host .role { color: var(--text); font-weight: 600; font-size: 15px; }
.both { font-size: 16px; }
.both strong { color: var(--text); }

/* Story timeline: the two brand lines run down the left edge */
.story { display: flex; flex-direction: column; gap: 32px; padding-top: 24px; }
.story h2 { font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 0.95; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 36px; position: relative; display: grid; gap: 36px; max-width: 760px; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; }
.timeline::before { left: 0; background: var(--accent); }
.timeline::after { left: 9px; background: var(--lav); }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.timeline li::before { content: ""; position: absolute; left: -38px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--accent); box-sizing: border-box; }
.timeline h3 { font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; }
.timeline p { color: var(--text-2); font-size: 16px; max-width: 60ch; }

/* Supplements */
.fuel { border-top: 1px solid var(--ink-line); }
.fuel-inner { padding-block: var(--section); display: flex; flex-direction: column; gap: 40px; }
.fuel-head { display: flex; flex-direction: column; gap: 10px; }
.fuel-head h2 { font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 0.95; }
.fuel-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(240px, calc((100% - 40px) / 3))), 1fr)); gap: 20px; }
.product a { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 22px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 18px; color: var(--text); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.product a:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .product a, .product a:hover { transition: none; transform: none; } }
.product-img { display: grid; place-items: center; aspect-ratio: 4 / 3; max-width: 100%; background: var(--paper); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.product-img img { width: 72%; height: 88%; object-fit: contain; }
.product-tag { color: var(--lav); }
.product-name { font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; }
.product-desc { color: var(--text-2); font-size: 15px; }
.fuel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.fuel-note { font-size: 14px; }

/* Follow */
.follow-wrap { padding-bottom: var(--section); }
.follow { background: var(--accent); color: var(--ink); border-radius: 24px; padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.follow > div:first-child { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.follow h2 { font-weight: 900; font-size: clamp(40px, 5vw, 64px); line-height: 0.95; }
.follow p { max-width: 30em; }
.follow-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer { border-top: 1px solid var(--ink-line); padding-block: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; max-width: none; }

/* Sticky player */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink-2); border-top: 1px solid var(--ink-edge); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 16px; box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35); }
.player-art { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; background: var(--ink-line); }
.player-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.player-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar { display: flex; align-items: center; gap: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.player-bar .mono { letter-spacing: 0; font-size: 12px; }
.player-bar input { flex: 1; min-width: 0; accent-color: var(--accent); }
.player-ctrls { display: flex; align-items: center; gap: 4px; }
.ctl { width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.ctl:hover { background: var(--ink-line); }
.ctl svg { width: 22px; height: 22px; }
.ctl-main { background: var(--accent); color: var(--ink); }
.ctl-main:hover { background: var(--accent-soft); }
.ctl-speed { font-size: 13px; letter-spacing: 0; width: auto; padding: 0 10px; border-radius: 999px; }
@media (max-width: 640px) {
  .player { flex-wrap: wrap; gap: 8px 12px; }
  .player-main { flex-basis: calc(100% - 60px); }
  .player-ctrls { width: 100%; justify-content: space-between; }
}
