/* We're In a Basement, the archive. Direction "Lights on" (WIAB-Q12, 2026-11-26) with her borrows from
   "Poster wall" (WIAB-Q13): big coral episode numbers, art beside the title, subjects and sources in a side
   column; cover art beside the intro, yellow play button and link underlines. Spacing on a 4px grid. */
/* The two fonts, served from this site (her WIAB-Q42: nothing talks to Google before a yes). Built from the google/fonts
   repo by projects/wiab/design/make_fonts.py, licences and sources beside them in /assets/fonts/. The same versions,
   weights and Latin range as the Google Fonts link they replace, so the text looks the same: the ← → arrows and
   emoji fall back to the system's fonts, as they did. Josefin Sans is the whole font (its licence keeps its name
   only on an unmodified copy), pinned to 600 here; Work Sans is cut to 400 to 600 and the Latin range. */
@font-face {
  font-family: "Josefin Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/josefin-sans-a9b47c6c.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/work-sans-d518bb96.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --bg: #141110; --ink: #f5f1ea; --muted: #b3aaa0; --line: rgba(245, 241, 234, .08);
  --acc: #f5c242;   /* string-light yellow: buttons, link underlines, current nav */
  --num: #f4523a;   /* the logo's coral: episode numbers only */
  --max: 1120px;
  --footer-gap: 80px;   /* space above the footer rule (the 404 dino stands on that rule) */
  --main-min: 80vh;     /* the page body's least height, every page (her note, 2026-11-29: "80vh to start") */
  --head: "Josefin Sans", system-ui, sans-serif;
  --body: "Work Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
/* The scrollbar's room is kept on every page, so nothing shifts sideways when a page grows past the window (her
   note, 2026-11-29: "The search page, on reload, changes width": results arriving brought the scrollbar in and
   moved the whole page 7 px left). On screens whose scrollbars float over the page this does nothing. */
html { background: var(--bg); scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--acc); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.2; margin: 0; }
strong, b { font-weight: 600; }
p { margin: 0 0 16px; }
.hidden { display: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
ul.plain { list-style: none; margin: 0; padding: 0; }

/* Header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.site-logo img { width: 200px; }
.site-header ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-header a { text-decoration: none; font-weight: 500; }
.site-header a[aria-current] { box-shadow: inset 0 -2px var(--acc); }
/* The main nav, her notes 2026-11-27: ALL CAPS ("Make the main nav Capitalized"), and "a blackish drop shadow
   of some kind behind the main nav so it's easier to read" over the string lights. The drop shadows are a
   stack of filters, so each one builds on the last and the shadow hugs the letters; a text-shadow stack can't
   get dark enough over a bright bulb (measured: 1.6:1 at best). */
.site-header nav > ul {
  filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000) drop-shadow(0 0 2px #000) drop-shadow(0 0 2px #000)
    drop-shadow(0 0 4px #000) drop-shadow(0 0 8px #000);
}
.site-header nav a { text-transform: uppercase; letter-spacing: .02em; }
.search-box { box-shadow: 0 0 0 2px #000, 0 0 8px 3px rgb(0 0 0 / .85); }
/* The page body is at least --main-min tall on every page, so the footer never rides up into view on a short page
   (her note, 2026-11-29: "I want the body of the page to be something like 80vh minimum (across all pages) so the
   privacy policy doesn't load above the fold like sometimes it does"). */
main { min-height: var(--main-min); }
/* Footer: her copyright line and the three policy links, one quiet line that wraps on phones (2026-11-26). */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px;
  color: var(--muted); font-size: 13px; padding: 40px 0; border-top: 1px solid var(--line); margin-top: var(--footer-gap);
}
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
/* No underline at rest, the yellow one on hover (her note, 2026-11-27); keyboard focus keeps the focus ring. */
.site-footer a { display: inline-block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--acc); }
/* Cookie settings looks like the links beside it (it opens the consent banner, so it's a button). */
.site-footer .consent-settings { padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.site-footer .consent-settings:hover {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 2px; text-underline-offset: 4px;
}

/* Cookie consent (her WIAB-Q42): a small panel at the foot of the screen, in the Listen panel's style but solid,
   since it sits over the page. Accept and Decline look the same: neither is pushed. Shown only while
   html.consent-ask is on (set in <head> before the first paint). No animation, so nothing slides in. */
.consent { display: none; }
.consent-ask .consent {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  position: fixed; z-index: 20; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; padding: 16px 20px;
  background: #1b1817;   /* the Listen panel's 3% ink over --bg, solid: a gradient leaves contrast checkers unable to judge */
  border: 1px solid rgba(245, 241, 234, .16); border-radius: 12px; box-shadow: 0 8px 32px rgb(0 0 0 / .6);
  font-size: 15px; line-height: 1.5;
}
.consent p { flex: 1 1 320px; margin: 0; }
.consent-actions { display: flex; gap: 12px; }
.consent-actions button {
  flex: 1 0 auto; min-width: 112px; min-height: 44px; padding: 8px 20px; border: 1px solid var(--ink); border-radius: 8px;
  background: none; color: var(--ink); font: 500 15px/1.2 var(--body); cursor: pointer;
}
.consent-actions button:hover { background: rgba(245, 241, 234, .1); }
/* Room under the page while it's up, so the footer can scroll clear of it (consent.js measures it). */
.consent-ask body { padding-bottom: calc(var(--consent-h, 0px) + 32px); }
@media (max-width: 720px) {
  .consent-ask .consent { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .consent-actions { flex: 1 1 100%; }
}
@media print { .consent-ask .consent { display: none; } }

/* Home: cover art beside the intro */
.hero { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: center; padding: 32px 0; }
.hero img { border-radius: 8px; }
.hero h2 { font-size: 32px; margin-bottom: 16px; }
.hero p { font-size: 18px; max-width: 34em; }
.find { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }

/* The episode index: number, art, title, date */
.year { font-size: 28px; margin: 64px 0 8px; }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 72px 128px 1fr auto; gap: 24px; align-items: center; padding: 16px 0; text-decoration: none; }
.index .num { font: 600 32px/1 var(--head); color: var(--num); font-variant-numeric: tabular-nums; text-align: right; }
.index .num.word { font-size: 16px; }
.index img { aspect-ratio: 16 / 9; object-fit: cover; width: 128px; border-radius: 4px; }
.index .t { font: 600 20px/1.3 var(--head); }
.index a:hover .t { text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 4px; }
.index .d { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.more-link { margin: 32px 0 0; font-weight: 500; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 40px; color: var(--muted); }
.pager > :last-child { justify-self: end; }
.archive h1 { font-size: 40px; margin-top: 32px; }

/* Episode page: art beside the title, player right under it */
/* Header C (WIAB-Q14): number, wide title and date, the player beside them; the art full width under it. */
.ep-top { padding: 32px 0 40px; border-bottom: 1px solid var(--line); }
.ep-title { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(280px, 380px); column-gap: 32px; align-items: center; }
.ep-title .num { grid-row: 1 / 3; display: block; font: 600 88px/1 var(--head); color: var(--num); font-variant-numeric: tabular-nums; }
.ep-title .num.word { font-size: 40px; }
.ep-title h1 { font-size: 44px; margin: 0; }
.ep-title .d { grid-column: 2; color: var(--muted); margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.ep-title .player { grid-column: 3; grid-row: 1 / 3; }
.ep-top .art { margin-top: 32px; }
.ep-top .art img { width: 100%; border-radius: 8px; }
.player audio { width: 100%; }
.player .len { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.ep-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; padding: 48px 0 0; overflow-wrap: break-word; }
.ep-body.solo { grid-template-columns: minmax(0, 1fr); }
.ep-body.solo .main-col { max-width: 760px; }
.ep-body section + section { margin-top: 48px; }
.ep-body h2 { font-size: 24px; margin-bottom: 16px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photos figure { margin: 0; }
.photos img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 6px; }
.photos figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.side .subjects li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.side .sources { padding-left: 20px; margin: 0; }
.side .sources li { margin-bottom: 8px; }
.side .listen { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ep-more video { width: 100%; border-radius: 8px; }
.ep-more iframe, .ep-extra iframe, .page-body iframe { max-width: 100%; }
.ep-more iframe:is([src*="youtube.com/embed"], [src*="youtube-nocookie.com/embed"], [src*="player.vimeo.com"], [src*="embed.ted.com"]),
.page-body iframe:is([src*="youtube.com/embed"], [src*="youtube-nocookie.com/embed"], [src*="player.vimeo.com"], [src*="embed.ted.com"]) {
  width: 100%; height: auto; aspect-ratio: 16 / 9; }
.comment { border-top: 1px solid var(--line); padding: 16px 0; }
.comment-meta { color: var(--muted); font-size: 14px; }

/* Plain pages (Listen, Episode Corrections, 38 Limited Edition) */
.page-body { max-width: 760px; margin: 0 auto; padding: 32px 0 0; }
.page-body h1 { font-size: 40px; margin-bottom: 24px; }
.page-body h2 { font-size: 28px; margin: 32px 0 16px; }
.page-body .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin: 24px 0; }
.page-body .wp-block-column { flex: 1 1 160px; }
.page-body .wp-block-column img { width: 100%; height: 112px; object-fit: contain; background: var(--ink); padding: 16px; border-radius: 8px; }
.page-body { overflow-wrap: break-word; }
.not-found { padding: 64px 0; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-logo img { width: 140px; }
  .site-header ul { gap: 16px; }
  .hero, .ep-body, .ep-body.solo { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ep-title { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .ep-title .num, .ep-title .d, .ep-title .player { grid-column: 1; grid-row: auto; }
  .ep-title .player { margin-top: 16px; }
  .index a { grid-template-columns: 44px 96px 1fr; gap: 12px; }
  .index img { width: 96px; }
  .index .num { font-size: 22px; }
  .index .num.word { font-size: 13px; }
  .index .t { font-size: 17px; }
  .index .d { grid-column: 3; margin-top: -8px; font-size: 14px; }
  .ep-title .num { font-size: 56px; }
  .ep-title h1 { font-size: 28px; }
  .photos { grid-template-columns: repeat(2, 1fr); }
  .archive h1, .page-body h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.player iframe.spotify { display: block; border: 0; border-radius: 12px; width: 100%; height: 152px; }

/* Easter eggs (string lights, dino): assets/eggs.css, linked only in EGGS=1 builds. */

/* Previous / next episode (her ask 03:51): a slim row above the title, larger links at the bottom */
.ep-pager-top { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; font-size: 15px; }
.ep-pager-top a { text-decoration: none; color: var(--muted); }
.ep-pager-top a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--acc); }
.ep-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.ep-nav a { display: block; max-width: none; text-decoration: none; padding: 16px 0; }
.ep-nav .ep-next { grid-column: 2; text-align: right; }
.ep-nav .lbl { display: block; color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.ep-nav .t { display: block; font: 600 22px/1.3 var(--head); }
.ep-nav .n { color: var(--num); font-variant-numeric: tabular-nums; margin-right: 8px; }
.ep-nav a:hover .t { text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 4px; }

/* Transcript dropdown (her ask 03:51; content arrives with WIAB-11) */
.transcript { margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.transcript summary { cursor: pointer; padding: 16px 0; font: 600 24px/1.2 var(--head); list-style-position: inside; }
.transcript summary:hover { color: var(--acc); }
.transcript-body { padding: 0 0 24px; max-height: 60vh; overflow-y: auto; }
.muted { color: var(--muted); }
@media (max-width: 720px) {
  .ep-nav { grid-template-columns: 1fr; gap: 8px; }
  .ep-nav .ep-next { grid-column: 1; text-align: left; }
  .ep-nav .t { font-size: 18px; }
}

/* Skeleton loading (her ask 2026-11-29 01:33: "some content loads before others. Can we set up skeleton style
   loading?"). Leader-owned block. Art, photos and the Spotify players hold their space with a soft block until they
   paint; site.js marks each image .is-loaded (load or error) so a transparent image never keeps the tint. Search
   puts .skel-row placeholders in its list while Pagefind loads (search.js). The pulse runs only when motion is OK
   and scripting is on, so a page without JavaScript never pulses forever behind its images. */
:root { --skel: rgba(245, 241, 234, .06); --skel-hi: rgba(245, 241, 234, .11); }
.index img, .hero img, .ep-top .art img, .photos img, .player iframe.spotify, .listen-main iframe.spotify { background-color: var(--skel); }
.index img.is-loaded, .hero img.is-loaded, .ep-top .art img.is-loaded, .photos img.is-loaded { background-color: transparent; }
.skel { display: block; border-radius: 4px; background-color: var(--skel); }
.skel-row { display: grid; grid-template-columns: 72px 128px 1fr auto; gap: 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.skel-num { width: 40px; height: 28px; }
.skel-img { width: 128px; aspect-ratio: 16 / 9; }
.skel-line { width: 70%; height: 18px; }
.skel-date { width: 96px; height: 14px; }
@media (max-width: 720px) {
  .skel-row { grid-template-columns: 44px 96px 1fr; gap: 12px; }
  .skel-num { width: 28px; }
  .skel-img { width: 96px; }
  .skel-date { display: none; }
}
@keyframes skel-pulse { 50% { background-color: var(--skel-hi); } }
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .skel,
  .index img:not(.is-loaded), .hero img:not(.is-loaded), .ep-top .art img:not(.is-loaded), .photos img:not(.is-loaded),
  .player iframe.spotify:not(.is-loaded), .listen-main iframe.spotify:not(.is-loaded) { animation: skel-pulse 1.6s ease-in-out infinite; }
}

/* /listen/: Where to Listen as logo tiles (her ask 2026-11-29 01:36: "add logos to the where to listen section").
   Each app's white mark (src/static/img/platforms/, Simple Icons, CC0) beside its name. Leader-owned block. */
.platform-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.platform-tiles a { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 14px 20px; border: 1px solid var(--line);
                    border-radius: 10px; background: rgba(245, 241, 234, .03); text-decoration: none; font-weight: 600; font-size: 18px; }
.platform-tiles a:hover { border-color: var(--acc); background: rgba(245, 241, 234, .06); }
.platform-tiles img { width: 32px; height: 32px; flex: none; }

/* Pages (privacy, terms, listen, accessibility): the same breathing room above a heading that follows text as on
   episode pages (her ask 2026-11-29 03:33). Leader-owned block. */
.page-body :is(h2, h3):not(:first-child) { margin-top: 48px; }
.page-body h3:not(:first-child) { margin-top: 36px; }
.page-body :is(h2, h3) + :is(h2, h3):not(:first-child) { margin-top: 12px; }
