/* ==========================================================
   HEALTH BRANDS MEDIA — structure & components
   Theme-agnostic. All colour/type comes from theme.css tokens.
   ========================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 780px; }
section { padding-block: clamp(64px, 9vw, 128px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.surface-2 { background: var(--bg-2); }
.surface-3 { background: var(--bg-3); }
.surface-invert { background: var(--bg-invert); color: var(--fg-invert); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); }
h2 { font-size: clamp(1.95rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1.1em; max-width: 68ch; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--fg-muted); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--fg-muted); }
.big-num { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2.6rem,5vw,4rem); line-height: 1; letter-spacing: var(--display-tracking); color: var(--accent); }

.eyebrow {
  font-family: var(--eyebrow-family);
  font-weight: var(--eyebrow-weight);
  font-size: .72rem;
  letter-spacing: var(--eyebrow-spacing);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .82em 1.5em; border-radius: var(--radius-pill);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand svg { height: 40px; width: auto; display: block; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--fg-muted);
  padding: 4px 0; border-bottom: 2px solid transparent; transition: color .16s, border-color .16s;
}
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
.header-cta { flex: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--fg); border-radius: var(--radius); padding: 9px 11px; cursor: pointer; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; margin: 0; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(72px, 11vw, 150px) clamp(56px, 8vw, 110px); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    linear-gradient(transparent 0 calc(100% - var(--hero-grid)), var(--line) 0),
    linear-gradient(90deg, transparent 0 calc(100% - var(--hero-grid)), var(--line) 0);
  background-size: 92px 92px;
  mask-image: radial-gradient(120% 90% at 78% 15%, #000 0%, transparent 72%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }

/* Animated level meter — the mark's bars as live audio */
.meter { display: flex; align-items: flex-end; gap: 7px; height: 56px; margin-bottom: 30px; }
.meter i {
  display: block; width: 11px; border-radius: var(--radius-pill);
  background: var(--accent); animation: lvl 1.5s ease-in-out infinite;
}
.meter i:nth-child(2) { background: var(--accent); animation-delay: .18s; }
.meter i:nth-child(3) { background: var(--accent-2); animation-delay: .38s; }
.meter i:nth-child(4) { background: var(--accent-2); animation-delay: .56s; }
@keyframes lvl { 0%,100% { height: 22%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .meter i { height: 60%; } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-strong); }
a.card { text-decoration: none; display: block; }
a.card:hover { transform: translateY(-3px); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .kicker { font-family: var(--eyebrow-family); font-size: .7rem; letter-spacing: var(--eyebrow-spacing); text-transform: uppercase; color: var(--accent-2); font-weight: var(--eyebrow-weight); }

/* Numbered pillar */
.pillar { border-top: 2px solid var(--accent); padding-top: 22px; }
.pillar .n { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); display: block; margin-bottom: 14px; }

/* Show card with artwork slot.
   NOTE: `a.card` (0-1-1) outranks `.show` (0-1-0), so these rules are written
   as `a.card.show` to win on specificity regardless of source order. */
a.card.show { display: grid; gap: 18px; align-content: start; }
.show .art {
  aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-3); display: grid; place-items: center; border: 1px solid var(--line);
}
.show .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show h3 { margin-bottom: .35em; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 34px 26px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats .label { font-size: .8rem; color: var(--fg-muted); margin: 8px 0 0; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats > div:nth-child(2n) { border-right: 0; } .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Episode / event list rows */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: center;
  padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background .18s ease, padding-inline .18s ease;
}
.row:hover { background: var(--bg-2); padding-inline: 14px 14px; }
.row .idx { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }
.row .t { font-weight: 600; font-size: 1.05rem; margin: 0 0 4px; line-height: 1.3; }
.row .s { font-size: .88rem; color: var(--fg-muted); margin: 0; }
.row .meta { font-size: .82rem; color: var(--fg-muted); white-space: nowrap; font-family: var(--font-mono); }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; gap: 6px; } .row .meta { text-align: left; } }

/* Quote */
.quote { border-left: 3px solid var(--accent); padding-left: 28px; }
.quote p { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.35rem,2.6vw,2rem); line-height: 1.25; letter-spacing: var(--display-tracking); }
.quote cite { font-style: normal; font-size: .9rem; color: var(--fg-muted); }

/* Logo strip */
.strip { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; }
.strip span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--fg-muted); letter-spacing: -.01em; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .84rem; font-weight: 600; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 13px 14px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field .hint { font-size: .78rem; color: var(--fg-muted); }
.form-note { font-size: .82rem; color: var(--fg-muted); }
.g-2.form-pair { gap: 18px; }
@media (max-width: 620px) { .g-2.form-pair { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
details.faq { border-bottom: 1px solid var(--line); padding: 20px 0; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; flex: none; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 14px 0 0; color: var(--fg-muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer svg { height: 54px; width: auto; }
.site-footer h4 { font-family: var(--eyebrow-family); font-size: .72rem; letter-spacing: var(--eyebrow-spacing); text-transform: uppercase; color: var(--fg-muted); font-weight: var(--eyebrow-weight); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; font-size: .92rem; color: var(--fg-muted); }
.site-footer a:hover { color: var(--accent); }
.colophon { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--fg-muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--accent); color: var(--accent-fg); padding: 10px 16px; z-index: 200; border-radius: var(--radius); }

/* ---------- Lockups built in HTML (so the wordmark uses the page font) ---------- */
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.lockup .mark { height: 32px; width: auto; flex: none; display: block; }
.lockup .word {
  display: flex; align-items: baseline; gap: 9px;
  font-family: 'Archivo', system-ui, sans-serif; line-height: 1;
  font-size: 19px; letter-spacing: -.02em; white-space: nowrap;
}
.lockup .word b  { font-weight: 900; }
.lockup .word em { font-weight: 300; font-style: normal; }
.lockup .word .div { width: 1px; align-self: stretch; background: var(--line-strong); margin-inline: 3px; }
.lockup .word .media {
  font-weight: 600; font-size: 12px; letter-spacing: .22em; color: var(--accent); align-self: center;
}
@media (max-width: 420px) { .lockup .word { font-size: 16px; } .lockup .mark { height: 27px; } }

/* Stacked lockup — footer */
.lockup-stack { display: inline-grid; grid-template-columns: auto auto; gap: 14px; align-items: start; text-decoration: none; color: var(--fg); }
.lockup-stack .mark { height: 62px; width: auto; }
.lockup-stack .word { font-family: 'Archivo', system-ui, sans-serif; line-height: .88; letter-spacing: -.03em; }
.lockup-stack .word b  { display: block; font-weight: 900; font-size: 30px; }
.lockup-stack .word em { display: block; font-weight: 300; font-style: normal; font-size: 30px; }
.lockup-stack .word .media { display: block; margin-top: 7px; padding-top: 7px; border-top: 2px solid var(--accent); font-weight: 600; font-size: 12px; letter-spacing: .34em; color: var(--accent); }

/* Host / lane line on detailed show cards */
.show .host { display: block; font-size: .82rem; color: var(--fg-muted); font-family: var(--font-mono); margin: -.2em 0 .7em; }
