/* Fonts are self-hosted (SIL Open Font License; see /fonts/LICENSE-*.txt). */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap; src: url("/fonts/oswald-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/lato-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/lato-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #0b0b0b;
  --panel: #161616;
  --line: #2a2a2a;
  --text: #ececec;
  --muted: #a8a8a8;
  --accent: #e85f00;
  --accent-2: #ff8a3d;
  --heading: Oswald, "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --body: Lato, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Pagefind search, themed to match */
  --pf-background: #161616;
  --pf-text: #ececec;
  --pf-text-secondary: #bdbdbd;
  --pf-text-muted: #a0a0a0;
  --pf-border: #333;
  --pf-border-focus: #e85f00;
  --pf-hover: #222;
  --pf-mark: #ff8a3d;
  --pf-outline-focus: #e85f00;
  --pf-skeleton: #222;
  --pf-skeleton-shine: #2d2d2d;
  --pf-font: Lato, "Segoe UI", Helvetica, Arial, sans-serif;
  --pf-modal-backdrop: rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1080px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #000; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

h1, h2, h3 { font-family: var(--heading); font-weight: 600; line-height: 1.15; letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 1rem 0 .5rem; }
h1 small, h2 small { font-size: .5em; color: var(--muted); font-weight: 400; letter-spacing: 0; }
h2 { font-size: 1.6rem; margin: 1.8rem 0 .6rem; }

/* header and footer */
.top { background: #000; border-bottom: 2px solid var(--accent); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 1rem; padding: .5rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font: 600 1.4rem var(--heading); letter-spacing: .06em; text-transform: uppercase; }
.brand img { border-radius: 6px; }
.brand:hover { text-decoration: none; color: var(--accent-2); }
.top nav { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-left: auto; font: 500 .95rem var(--heading); letter-spacing: .08em; text-transform: uppercase; }
.top nav a { color: #ddd; }
.top nav a:hover { color: var(--accent-2); text-decoration: none; }
.foot { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: .95rem; }
.foot p { margin: .35rem 0; }
.small { font-size: .85rem; color: var(--muted); }
.team { opacity: .6; margin-left: .75rem; }

/* home: the banner runs edge to edge; the title and buttons sit below it */
.hero-band { background: #000; border-bottom: 2px solid var(--accent); }
.hero-band img { display: block; width: 100%; height: auto; min-height: 150px; max-height: 520px; object-fit: cover; object-position: center; }
.hero-text { text-align: center; padding: 1.25rem 0 .25rem; }
.hero-text h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); text-transform: uppercase; letter-spacing: .06em; margin: .25rem 0; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46rem; margin: .25rem auto 1rem; }

/* search and tag filter above the list */
.controls { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1rem 0 .25rem; }
.controls pagefind-input { flex: 1 1 22rem; }
.controls pagefind-input:not(:defined), .controls pagefind-filter-dropdown:not(:defined), .summary:not(:defined) { display: none; }
.summary { display: block; margin: .25rem 0 0; }
.tagline { color: var(--muted); font-size: .85rem; }
#live-list[hidden], #static-list[hidden] { display: none; }
#live-list pagefind-results { display: block; color: var(--text); font: inherit; line-height: inherit; }
#live-list ul, #live-list ol { list-style: none; margin: 0; padding: 0; }
mark { background: var(--accent); color: #000; padding: 0 .15em; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.buttons { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1rem 0; }
.btn { background: var(--accent); color: #000; font: 600 .95rem var(--heading); letter-spacing: .08em; text-transform: uppercase; padding: .55rem 1.1rem; border-radius: 4px; }
.btn:hover { background: var(--accent-2); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent-2); border: 1px solid var(--accent); }
.section { border-bottom: 1px solid var(--line); padding-bottom: .4rem; }

/* lists */
.eps { list-style: none; margin: 0; padding: 0; }
.ep { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.ep img { border-radius: 6px; background: var(--panel); }
.ep h2 { margin: 0; font-size: 1.35rem; }
.ep h2 a { color: #fff; }
.ep h2 a:hover { color: var(--accent-2); }
.ep p { margin: .25rem 0; }
.meta { color: var(--muted); font-size: .9rem; }
.badge { background: var(--accent); color: #000; font: 600 .7rem var(--heading); letter-spacing: .1em; text-transform: uppercase; padding: .1rem .45rem; border-radius: 3px; vertical-align: middle; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: .05rem .7rem; font-size: .82rem; color: var(--muted); }
.tag:hover { border-color: var(--accent); color: var(--accent-2); text-decoration: none; }
.taglist { columns: 2 14rem; list-style: none; padding: 0; }
.taglist li { padding: .25rem 0; break-inside: avoid; }
.count { color: var(--muted); font-size: .85rem; margin-left: .3rem; }

.pager { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: center; margin: 1.5rem 0; }
.pager a, .pager .cur { min-width: 2.2rem; text-align: center; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 4px; }
.pager .cur { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager .gap { color: var(--muted); }

/* episode page */
.crumbs { margin: 1rem 0 0; font-size: .9rem; }
.ep-head { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; margin: .5rem 0 1rem; }
.ep-head img { border-radius: 8px; border: 1px solid var(--line); }
.ep-head h1 { margin-top: 0; }
audio { width: 100%; margin: .5rem 0; }
.notes { max-width: 46rem; }
.notes p, .notes li { overflow-wrap: anywhere; }
.more { margin-top: 2rem; color: var(--muted); }
.prevnext { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.prevnext a { max-width: 48%; }
.prevnext a[rel="next"] { text-align: right; margin-left: auto; }

.about { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: start; }

@media (max-width: 640px) {
  .top nav { margin-left: 0; gap: .8rem; }
  .ep { grid-template-columns: 64px 1fr; }
  .ep img { width: 64px; height: 64px; }
  .ep-head, .about { grid-template-columns: 1fr; }
  .ep-head img { width: 160px; height: 160px; }
  .about img { max-width: 160px; }
}
