/* Fit for Radio / PNW Podcast — shared stylesheet
   Two brand registers on one system:
   - default (home + /fit-for-radio + /merch): dark, electric-cyan, broadcast-tech
   - [data-theme="pnw"] (/pnw-podcast): warm parchment, forest + sunset accents
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,500;1,9..144,600&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg: #0a0c10;
  --bg-raised: #12171c;
  --bg-raised-2: #1a2129;
  --line: #23303a;
  --text: #f4f7f8;
  --text-muted: #9fb0b8;
  --accent: #00d6ff;
  --accent-dim: #0aa8cc;
  --accent-warm: #ff8a3d;
  --accent-text: #04222b;
  --accent-ink: var(--accent);
  --error: #ff6b6b;

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;

  --container: 1120px;
  --radius: 4px;
}

[data-theme="pnw"] {
  --bg: #f6f1e6;
  --bg-raised: #ffffff;
  --bg-raised-2: #ece3d0;
  --line: #ddd0b2;
  --text: #22301f;
  --text-muted: #5a6650;
  --accent: #d9701a;
  --accent-dim: #b85c11;
  --accent-warm: #1f4959;
  --accent-text: #ffffff;
  --accent-ink: #a3510f;
  --error: #b3261e;
  --forest: #2f4f34;
  --font-display: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  margin: 0 0 .4em;
  letter-spacing: 0.01em;
}
[data-theme="pnw"] h1, [data-theme="pnw"] h2, [data-theme="pnw"] h3, [data-theme="pnw"] h4 {
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
}
h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); text-transform: uppercase; }
[data-theme="pnw"] h1 { text-transform: none; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; }
[data-theme="pnw"] h2 { text-transform: none; }
h3 { font-size: 1.6rem; }
[data-theme="pnw"] h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; color: var(--text-muted); max-width: 62ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1em;
}
[data-theme="pnw"] .eyebrow, [data-theme="pnw"] .credibility-line {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--accent);
  display: inline-block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
section.tight { padding: 56px 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 32px; width: auto; }
.brand img[src*="pnw-logo"] { height: 42px; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 2px;
  color: var(--text-muted);
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-raised-2);
}
.main-nav a.btn-accent { color: var(--accent-text); margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
}
.btn:hover { border-color: var(--accent-ink); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  border-radius: 0;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-accent:hover { background: var(--accent-dim); border-color: var(--accent-dim); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.credibility-line {
  display: flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2em;
}
.credibility-line::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

/* ---------- Show cards (homepage) ---------- */
.show-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.show-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  background: var(--bg-raised);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.show-card.pnw {
  background: linear-gradient(180deg, #f6f1e6, #ece3d0);
  color: #22301f;
  border-color: #ddd0b2;
}
.show-card.pnw p { color: #5a6650; }
.show-card.pnw .btn {
  color: #22301f;
  border-color: #ddd0b2;
}
.show-card.pnw .btn:hover { color: #a3510f; border-color: #a3510f; }
.show-card .tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.show-card.pnw .tag { color: #a3510f; }
.show-card img.logo-thumb { height: 46px; width: auto; align-self: flex-start; object-fit: contain; margin-bottom: 4px; }

/* ---------- Social / follow grid ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.social-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-raised);
}
.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent-ink);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }
.social-card h3 { margin-bottom: .5em; }
.social-card a { display: block; color: var(--text-muted); font-size: .92rem; padding: 3px 0; }
.social-card a:hover { color: var(--accent-ink); }

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid > p { grid-column: 1 / -1; }
.episodes-stale-note {
  font-size: .85rem;
  color: var(--text-muted);
  font-style: italic;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-raised);
}
.card .num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.6rem;
  color: var(--accent);
  opacity: .5;
  margin-bottom: .2em;
}
.episode-card { display: block; }
.episode-card .tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: .3em 0 .5em;
}
.episode-card .episode-date {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .6em;
}
.episode-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 16px;
}

/* ---------- Inline episode player ---------- */
.player {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.player-toggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent-ink);
  background: transparent;
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.player-toggle svg { width: 13px; height: 13px; fill: currentColor; }
.player-toggle .icon-play { margin-left: 2px; }
.player.is-playing .player-toggle {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.player-scrub {
  flex: 1;
  padding: 10px 0;
  cursor: pointer;
}
.player-track {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.player-progress {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
}
.player-time {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: .72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 82px;
  text-align: right;
}
.episode-card h3 a:hover { text-decoration: underline; }

/* ---------- Platform links ---------- */
.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.platform-row a {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.platform-row a:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.newsletter .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.signup-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.signup-form input[type="email"], .signup-form input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 15px 18px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
}
.signup-form input:focus { outline: 2px solid var(--accent-ink); }
.form-note { font-size: .82rem; margin-top: .8em; }
.form-status { font-size: .88rem; margin-top: .8em; display: none; }
.form-status.visible { display: block; }
.form-status.error { color: var(--error); }

/* ---------- Waitlist (merch) ---------- */
.waitlist-box {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  background: var(--bg-raised);
}

/* ---------- Signature motif: waveform band (FFR) ---------- */
.waveform-band {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px;
}
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
  max-width: var(--container);
  margin: 0 auto;
}
.waveform span { flex: 1 1 0; min-width: 2px; border-radius: 1px; background: var(--accent); }
.waveform span:nth-child(6n+3), .waveform span:nth-child(6n+5) { background: var(--accent-warm); opacity: .85; }
.waveform span:nth-child(1) { height: 35%; } .waveform span:nth-child(2) { height: 60%; }
.waveform span:nth-child(3) { height: 25%; } .waveform span:nth-child(4) { height: 80%; }
.waveform span:nth-child(5) { height: 45%; } .waveform span:nth-child(6) { height: 100%; }
.waveform span:nth-child(7) { height: 55%; } .waveform span:nth-child(8) { height: 30%; }
.waveform span:nth-child(9) { height: 70%; } .waveform span:nth-child(10) { height: 40%; }
.waveform span:nth-child(11) { height: 90%; } .waveform span:nth-child(12) { height: 50%; }
.waveform span:nth-child(13) { height: 65%; } .waveform span:nth-child(14) { height: 28%; }
.waveform span:nth-child(15) { height: 75%; } .waveform span:nth-child(16) { height: 42%; }
.waveform span:nth-child(17) { height: 58%; } .waveform span:nth-child(18) { height: 33%; }
.waveform span:nth-child(19) { height: 85%; } .waveform span:nth-child(20) { height: 48%; }
.waveform span:nth-child(21) { height: 62%; } .waveform span:nth-child(22) { height: 22%; }
.waveform span:nth-child(23) { height: 72%; } .waveform span:nth-child(24) { height: 38%; }

/* ---------- Signature motif: ridge line (PNW) ---------- */
.ridge-band { background: var(--bg); line-height: 0; overflow: hidden; }
.ridge-divider { display: block; width: 100%; height: 64px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1em;
}
.footer-col a, .footer-col p { display: block; margin-bottom: .6em; color: var(--text-muted); font-size: .92rem; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; }

@media (max-width: 860px) {
  .hero .container, .newsletter .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .show-grid, .card-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    gap: 2px;
  }
  .main-nav.open a { padding: 14px 6px; }
  .main-nav.open a.btn-accent { margin-left: 0; margin-top: 10px; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  section { padding: 64px 0; }
}
