/* Layout: a single-column radio-station archive; content column max 72rem, fixed "on air" player bar at the bottom.
   WBBQ five-color stripe is the one bold motif; everything else stays quiet. */
:root {
  --paper: #eef0f5;
  --card: #ffffff;
  --ink: #141c33;
  --muted: #566079;
  --rule: #d3d8e4;
  --accent: #c8202b;      /* WBBQ red */
  --accent-ink: #ffffff;
  --amber: #b87900;       /* VU-meter amber, text-safe on light */
  --warn-bg: #fff3d6;
  --warn-ink: #7a4b00;
  --s1: #c8202b; --s2: #ea6a1f; --s3: #f2a900; --s4: #2e9e5b; --s5: #1f6fb8;
  --shadow: 0 1px 2px rgba(20, 28, 51, .08), 0 6px 18px rgba(20, 28, 51, .06);
  --bar-bg: #141c33; --bar-fg: #eef0f5;
  --f-display: "Alfa Slab One", "Rockwell", "Roboto Slab", Georgia, serif;
  --f-body: "Libre Franklin", "Franklin Gothic Book", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-marker: "Permanent Marker", "Comic Sans MS", cursive;
  --player-h: 4.75rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1322; --card: #151d31; --ink: #eceff6; --muted: #9ba4bb; --rule: #27314b;
    --accent: #ff5a5f; --accent-ink: #1a0b0c; --amber: #ffc53d; --warn-bg: #3a2c0c; --warn-ink: #ffd88a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
    --bar-bg: #060a14; --bar-fg: #eceff6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1322; --card: #151d31; --ink: #eceff6; --muted: #9ba4bb; --rule: #27314b;
  --accent: #ff5a5f; --accent-ink: #1a0b0c; --amber: #ffc53d; --warn-bg: #3a2c0c; --warn-ink: #ffd88a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
  --bar-bg: #060a14; --bar-fg: #eceff6;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--f-body);
  padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--s5); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; margin: 0; }
h1, h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: .005em; }
.wrap { max-width: 72rem; margin: 0 auto; padding-inline: 1rem; }
.stripe { display: grid; grid-template-columns: repeat(5, 1fr); height: 6px; }
.stripe i:nth-child(1){background:var(--s1)} .stripe i:nth-child(2){background:var(--s2)}
.stripe i:nth-child(3){background:var(--s3)} .stripe i:nth-child(4){background:var(--s4)}
.stripe i:nth-child(5){background:var(--s5)}
.eyebrow { font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand b { font: 400 1.25rem/1 var(--f-display); }
.brand span { font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
nav.main { display: flex; gap: .2rem; flex-wrap: wrap; }
nav.main a { text-decoration: none; padding: .35rem .6rem; border-radius: 999px; font-weight: 500; font-size: .92rem; }
nav.main a[aria-current="page"] { background: var(--ink); color: var(--paper); }
nav.main a:hover:not([aria-current="page"]) { background: var(--rule); }
.theme-btn { border: 1px solid var(--rule); background: var(--card); border-radius: 999px; padding: .3rem .65rem; cursor: pointer; font-size: .85rem; }

main { padding-block: 2rem 3rem; }
main:focus { outline: none; }
.clip { scroll-margin-top: 7rem; }
section + section { margin-top: 3rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; border: 0; border-radius: 999px; padding: .7rem 1.2rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; border: 1.5px solid var(--ink); }
.btn:hover { filter: brightness(1.06); }
.btn svg { width: 1rem; height: 1rem; }
.play-dot { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.play-dot svg { width: 1rem; height: 1rem; }
.play-dot.is-playing { background: var(--ink); color: var(--paper); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); }
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.hero p.lede { font-size: 1.15rem; max-width: 34rem; margin: 1.1rem 0 1.5rem; }
.hero .ctas { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero figure { margin: 0; position: relative; }
.hero figure img { border-radius: 6px; box-shadow: var(--shadow); }
.hero figcaption { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.dial { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font: 500 .8rem/1.3 var(--f-mono); color: var(--muted); }
.dial b { color: var(--ink); font-weight: 500; }

/* Marconi band */
.marconi { background: var(--ink); color: var(--paper); border-radius: 8px; padding: 1.75rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; }
.marconi img { width: 7rem; border-radius: 3px; }
.marconi h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.marconi p { margin: .5rem 0 0; max-width: 40rem; opacity: .85; }
.marconi .btn-ghost { border-color: var(--paper); color: var(--paper); }

/* Section heads */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.sec-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.sec-head p { margin: .35rem 0 0; color: var(--muted); max-width: 44rem; }

/* Clip list */
.clips { display: grid; gap: .6rem; }
.clip { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; }
.clip-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .75rem .9rem; }
.clip-title { font-weight: 650; font-size: 1.02rem; line-height: 1.3; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.clip-title:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.clip-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.clip-meta .mono { font-size: .78rem; }
.clip-side { text-align: right; font: 500 .8rem/1.2 var(--f-mono); color: var(--muted); white-space: nowrap; }
.chip { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .02em; padding: .12rem .5rem; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); }
.chip.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.clip-detail { border-top: 1px solid var(--rule); padding: 1rem 1rem 1.1rem; display: grid; gap: 1rem; }
.clip-detail p { margin: 0; max-width: 65ch; }
.clip-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.small-btn { border: 1px solid var(--rule); background: transparent; border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; cursor: pointer; }
.small-btn:hover { border-color: var(--ink); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .25rem 1rem; font-size: .9rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.chapters { display: flex; flex-wrap: wrap; gap: .4rem; }
.chapters button { border: 1px solid var(--rule); background: var(--paper); border-radius: 6px; padding: .3rem .6rem; font-size: .85rem; cursor: pointer; text-align: left; }
.chapters button .mono { color: var(--accent); margin-right: .4rem; }
.transcript { max-height: 22rem; overflow: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); padding: .5rem; }
.transcript button { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .5rem; width: 100%; text-align: left; border: 0; background: transparent; padding: .3rem .4rem; border-radius: 4px; cursor: pointer; font-size: .92rem; line-height: 1.5; }
.transcript button:hover { background: var(--card); }
.transcript button.now { background: var(--warn-bg); }
.transcript .mono { color: var(--muted); font-size: .78rem; padding-top: .15rem; }
.note { font-size: .8rem; color: var(--muted); }

/* Filters */
.filters { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.search { width: 100%; padding: .75rem 1rem; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--card); font-size: 1rem; }
.search:focus { border-color: var(--ink); outline: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.filter-row .label { font: 500 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: .25rem; }
.fchip { border: 1px solid var(--rule); background: var(--card); border-radius: 999px; padding: .28rem .7rem; font-size: .85rem; cursor: pointer; }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.count { font-size: .85rem; color: var(--muted); }
select.sort { border: 1px solid var(--rule); background: var(--card); border-radius: 999px; padding: .28rem .7rem; font-size: .85rem; }

/* Cast */
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.cast-card { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 1.1rem; display: grid; gap: .6rem; align-content: start; }
.cast-card h3 { font: 400 1.3rem/1.15 var(--f-display); }
.cast-card p { margin: 0; font-size: .95rem; }
.cast-card .era { font: 500 .75rem/1 var(--f-mono); color: var(--muted); }
.cast-card .links { display: flex; flex-wrap: wrap; gap: .35rem; }

/* Soundboard (NAB carts) */
.carts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); gap: .75rem; }
.cart { position: relative; border: 0; cursor: pointer; text-align: left; padding: .55rem .6rem .7rem; border-radius: 6px 6px 3px 3px; min-height: 6.4rem; display: grid; grid-template-rows: auto 1fr; gap: .35rem;
  background: linear-gradient(var(--card), var(--card)) padding-box; box-shadow: var(--shadow); border-top: 10px solid var(--cart, var(--s3)); }
.cart .num { font: 500 .72rem/1 var(--f-mono); color: var(--muted); display: flex; justify-content: space-between; }
.cart .lbl { font: 400 1rem/1.2 var(--f-marker); color: var(--ink); overflow-wrap: anywhere; }
.cart .lbl .sub { display: block; font: 500 .72rem/1.3 var(--f-body); color: var(--muted); margin-top: .25rem; }
.cart.is-playing { outline: 3px solid var(--accent); }
.cart:hover { transform: translateY(-1px); }

/* Photos */
.gallery { columns: 3 16rem; column-gap: 1rem; }
.gallery figure { break-inside: avoid; margin: 0 0 1rem; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.gallery button { border: 0; padding: 0; background: none; cursor: zoom-in; width: 100%; display: block; }
.gallery figcaption { padding: .6rem .8rem .75rem; font-size: .88rem; }
.gallery figcaption .q { display: block; color: var(--amber); font-size: .8rem; margin-top: .25rem; font-weight: 600; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8, 11, 20, .92); display: grid; place-items: center; padding: 1rem; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 4px; }
.lightbox p { color: #eceff6; text-align: center; max-width: 50rem; margin: .75rem auto 0; }
.lightbox button { position: absolute; top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1rem; background: #eceff6; color: #141c33; border: 0; border-radius: 999px; padding: .4rem .9rem; cursor: pointer; font-weight: 600; }

/* Story / timeline */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 2.5rem; }
.prose p { max-width: 65ch; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--rule); }
.timeline .when { font: 500 .85rem/1.4 var(--f-mono); color: var(--accent); }
.timeline .src { display: block; font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.stack { display: grid; gap: 1rem; align-content: start; }
.stack figure { margin: 0; }
.stack figcaption { font-size: .8rem; color: var(--muted); margin-top: .35rem; }

/* Memories */
.mem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; align-items: start; }
form.mem { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 1.25rem; display: grid; gap: .85rem; }
form.mem label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
form.mem input, form.mem textarea { border: 1.5px solid var(--rule); border-radius: 6px; padding: .6rem .7rem; background: var(--paper); font-weight: 400; }
form.mem textarea { min-height: 8rem; resize: vertical; }
form.mem .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.hp { position: absolute; left: -9999px; }
.status { font-size: .9rem; min-height: 1.4em; }
.memories { display: grid; gap: .9rem; }
.memory { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 1rem 1.1rem; }
.memory blockquote { margin: 0; font-size: 1.02rem; white-space: pre-wrap; }
.memory .who { margin-top: .5rem; font-size: .85rem; color: var(--muted); }
.empty { border: 1.5px dashed var(--rule); border-radius: 8px; padding: 1.25rem; color: var(--muted); }

/* Podcast */
.pod { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.25rem; align-items: center; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 1.1rem; }
.pod img { border-radius: 6px; }
.copyline { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .6rem; }
.copyline code { font-family: var(--f-mono); font-size: .85rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: .3rem .5rem; overflow-wrap: anywhere; }

/* Warning banner */
.advisory { display: flex; gap: .75rem; background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: .75rem 1rem; font-size: .9rem; margin-bottom: 1.25rem; }

/* Footer */
footer.site-foot { border-top: 1px solid var(--rule); padding-block: 1.5rem 2rem; font-size: .85rem; color: var(--muted); }
footer.site-foot .wrap { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }

/* Player */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bar-bg); color: var(--bar-fg); border-top: 1px solid var(--rule);
  padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom, 0px)); }
.player .inner { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; min-height: calc(var(--player-h) - 1.1rem); }
.player .ctrls { display: flex; gap: .35rem; align-items: center; }
.player button { background: none; border: 0; color: inherit; cursor: pointer; padding: .35rem; border-radius: 50%; display: grid; place-items: center; }
.player button svg { width: 1.15rem; height: 1.15rem; }
.player .big { background: var(--accent); color: var(--accent-ink); width: 2.6rem; height: 2.6rem; }
.player .now { min-width: 0; display: grid; gap: .2rem; }
.player .now .t { font-weight: 650; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .now .onair { font: 500 .66rem/1 var(--f-mono); letter-spacing: .12em; color: var(--s3); margin-right: .5rem; }
.player .bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem; align-items: center; font: 500 .72rem/1 var(--f-mono); opacity: .85; }
.player input[type=range] { width: 100%; accent-color: var(--s3); }
.player .vu { display: flex; gap: 2px; align-items: end; height: 1.4rem; }
.player .vu i { width: 4px; background: var(--s4); height: 20%; border-radius: 1px; transition: height .12s; }
.player .vu i:nth-child(n+5) { background: var(--s3); } .player .vu i:nth-child(n+7) { background: var(--s1); }

@media (max-width: 52rem) {
  .site-head .wrap { gap: .4rem .75rem; }
  nav.main { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -.25rem; }
  nav.main a { white-space: nowrap; }
  .theme-btn { font-size: .78rem; padding: .25rem .55rem; }
  .clip { scroll-margin-top: 8rem; }
  .hero, .story, .mem-grid { grid-template-columns: minmax(0, 1fr); }
  .marconi { grid-template-columns: minmax(0, 1fr); }
  .marconi img { width: 5rem; }
}
@media (max-width: 34rem) {
  .clip-row { grid-template-columns: auto minmax(0, 1fr); }
  .clip-side { grid-column: 2; text-align: left; }
  .player .vu { display: none; }
  form.mem .row2 { grid-template-columns: 1fr; }
  .pod { grid-template-columns: 5rem minmax(0, 1fr); }
  .timeline li { grid-template-columns: 5.5rem minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .cart:hover { transform: none; } }
