/* Brand: the logo's white letters with a solid orange extrusion, on warm black. */
:root {
  color-scheme: dark;
  --bg: #17110c;
  --card: #211912;
  --card-hi: #2a2017;
  --line: #3a2d21;
  --line-hi: #8a7560; /* ≥3:1 on card/bg: radio rings and button borders (WCAG 1.4.11) */
  --text: #fffaf2;
  --muted: #c7b8a5;
  --orange: #e8700a;
  --orange-hi: #ff8a2a;
  --orange-deep: #984800;
  --cream: #f8f0e0;
  --radius: 10px;
  --font: "Rubik", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --extrude: -1px 1px 0 var(--orange), -2px 2px 0 var(--orange), -3px 3px 0 var(--orange), -4px 4px 0 var(--orange-deep);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  font-size: calc(100% * var(--a11y-scale, 1)); /* text size from the accessibility menu */
  scroll-padding-bottom: 160px; /* keeps focused controls clear of the sticky vote bar */
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  border-top: 6px solid var(--orange);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

[hidden] { display: none !important; }

a { color: var(--orange-hi); }

/* ---------- hero ---------- */
.hero {
  max-width: 640px;
  margin: 0 auto;
  padding: 26px 16px 6px;
  text-align: center;
}
.logo {
  display: block;
  width: min(460px, 92%);
  height: auto;
  margin: 0 auto 20px;
}
.sticker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  background: var(--orange);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 700;
  transform: rotate(-1.5deg);
  box-shadow: -4px 4px 0 var(--orange-deep);
}
h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 7.4vw, 2.75rem);
  line-height: 1.1;
  font-weight: 900;
  text-shadow: var(--extrude);
  text-wrap: balance;
}
.lead {
  margin: 0 auto 4px;
  max-width: 28em;
  color: var(--muted);
  font-size: 1.0625rem;
  text-wrap: pretty;
}
.hosts {
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: 1rem;
}
.hosts a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.hosts a:hover { color: var(--orange-hi); }
.hosts a:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 3px; }

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 22px 16px 0;
}

/* ---------- songs ---------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.songs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.song {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  padding-inline-end: 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 2px solid var(--line);
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s, background-color 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.song:hover { border-color: var(--line-hi); }
.song input { position: absolute; opacity: 0; pointer-events: none; }
.song:has(input:focus-visible) { outline: 3px solid var(--orange-hi); outline-offset: 3px; }
.song:has(input:checked) {
  background: var(--card-hi);
  border-color: var(--text);
  box-shadow: -5px 5px 0 var(--orange);
  transform: translate(3px, -3px);
}

.thumb {
  position: relative;
  width: 116px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #2b2118;
  flex-shrink: 0;
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.num {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 900;
  line-height: 26px;
  text-align: center;
  border-end-end-radius: 6px;
}

.song-text { min-width: 0; }
.title {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
}
.artists {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.35;
}
.watch {
  display: inline-block;
  margin-top: 5px;
  color: var(--orange-hi);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.watch:hover { text-decoration: underline; text-underline-offset: 3px; }
.watch:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 2px; }

.check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line-hi);
  display: grid;
  place-items: center;
  transition: background-color 0.12s, border-color 0.12s;
}
.check { color: var(--bg); }
.check svg { width: 14px; height: 14px; opacity: 0; }
.song:has(input:checked) .check { background: var(--orange); border-color: var(--orange); }
.song:has(input:checked) .check svg { opacity: 1; }

.cta-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 16px -16px 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
}

/* Primary button: white face, orange extrusion, like the logo letters */
.cta, .btn-primary {
  border: 0;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-family: var(--font);
  font-weight: 900;
  cursor: pointer;
  box-shadow: -5px 5px 0 var(--orange);
  transition: transform 0.08s, box-shadow 0.08s, background-color 0.12s;
}
.cta:active:not(:disabled), .btn-primary:active {
  transform: translate(-3px, 3px);
  box-shadow: -2px 2px 0 var(--orange);
}
.cta {
  width: 100%;
  min-height: 56px;
  padding: 12px 20px;
  font-size: 1.1875rem;
  line-height: 1.2;
}
.cta:focus-visible, .btn:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 4px; }
.cta:disabled {
  background: var(--card-hi);
  color: var(--muted);
  font-weight: 500;
  box-shadow: none;
  cursor: default;
}
.cta.busy { cursor: progress; opacity: 0.85; }

.vote-privacy {
  margin: 8px auto 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
}
.vote-privacy a { color: var(--orange-hi); white-space: nowrap; }
.vote-privacy a:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 2px; }

/* ---------- results ---------- */
.thanks {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 2px solid var(--orange);
}
.thanks:empty { display: none; }
.stamp {
  flex-shrink: 0;
  padding: 6px 12px;
  background: var(--orange);
  color: var(--bg);
  font-size: 1.125rem;
  font-weight: 900;
  white-space: nowrap;
  transform: rotate(-3deg);
  box-shadow: -3px 3px 0 var(--orange-deep);
}
.thanks p { margin: 0; color: var(--cream); }

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 14px;
}
.results-head h2 {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 900;
  text-shadow: -1px 1px 0 var(--orange), -2px 2px 0 var(--orange), -3px 3px 0 var(--orange-deep);
}
.meta { margin: 0; color: var(--muted); font-size: 0.875rem; }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bar {
  display: grid;
  grid-template-columns: 30px 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 2px solid transparent;
}
.bar.mine { border-color: var(--text); }
.rank {
  font-size: 1.375rem;
  font-weight: 900;
  text-align: center;
  color: var(--muted);
}
.bar.leader .rank { color: var(--orange-hi); }
.bar .thumb { width: 58px; border-radius: 5px; }
.bar-body { min-width: 0; }
.bar-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bar-title {
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pct { font-weight: 900; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.bar-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.bar-sub .artists-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag {
  flex-shrink: 0;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
}
.track {
  height: 10px;
  margin-top: 7px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.fill {
  height: 100%;
  width: 0;
  background: var(--orange);
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bar.leader .fill { background: var(--orange-hi); }

.share {
  margin-top: 28px;
  padding: 20px 16px;
  border-radius: var(--radius);
  border: 2px dashed var(--line-hi);
  text-align: center;
}
.share p { margin: 0 0 14px; font-weight: 500; }
.share-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--line-hi);
  background: transparent;
  color: var(--text);
  font: 700 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--text); }
/* .btn comes after .btn-primary, so the primary colors are restated here */
.btn.btn-primary { border: 0; font-weight: 900; background: var(--text); color: var(--bg); }
.btn.btn-primary:hover { background: #fff; color: var(--bg); }

/* ---------- misc ---------- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 0;
  color: var(--muted);
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--orange);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 2px solid #c94a3a;
  background: #2a1512;
  color: #ffd6cf;
  text-align: center;
}

footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 34px 16px calc(30px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}
footer p { margin: 3px 0; }

/* ---------- podcast links ---------- */
.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--line-hi);
  color: var(--text);
  transition: color 0.12s, border-color 0.12s;
}
.socials svg { width: 20px; height: 20px; fill: currentColor; }

.listen-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 900;
  text-shadow: -1px 1px 0 var(--orange), -2px 2px 0 var(--orange-deep);
}
.listen-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}
.listen-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--line-hi);
  background: var(--card);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.12s;
}
.listen-links svg { width: 18px; height: 18px; fill: var(--brand); flex-shrink: 0; }

.socials a:hover, .socials a:focus-visible { color: var(--brand); border-color: var(--brand); }
.listen-links a:hover, .listen-links a:focus-visible { border-color: var(--brand); }
.socials a:focus-visible, .listen-links a:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 3px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(100px + env(safe-area-inset-bottom));
  z-index: 20;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  box-shadow: -4px 4px 0 var(--orange);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 380px) {
  .thumb { width: 94px; }
  .song { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; outline: 3px solid var(--orange-hi); outline-offset: 2px; }
main:focus { outline: none; }

.section-label {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 900;
}

/* ---------- countdown popup ---------- */
.countdown {
  width: min(420px, calc(100vw - 32px));
  padding: 60px 18px 18px; /* room for the close button above the sticker */
  border: 2px solid var(--text);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  text-align: center;
  box-shadow: -6px 6px 0 var(--orange);
}
.countdown::backdrop { background: rgba(10, 6, 3, 0.75); }
.countdown .sticker { margin: 0 0 12px; }
.countdown h2 {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 900;
  text-shadow: -1px 1px 0 var(--orange), -2px 2px 0 var(--orange), -3px 3px 0 var(--orange-deep);
}
.cd-timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 12px;
}
.cd-timer div {
  padding: 10px 2px 8px;
  border-radius: 8px;
  border: 2px solid var(--line-hi);
  background: var(--bg);
}
.cd-timer b {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cd-timer span { color: var(--muted); font-size: 0.8125rem; }
.cd-when { margin: 0 0 16px; color: var(--cream); font-weight: 700; }
.cd-close {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--line-hi);
  background: transparent;
  color: var(--text);
  font: 700 1rem/1 var(--font);
  cursor: pointer;
}
.cd-close:hover { border-color: var(--text); }
.cd-close:focus-visible, .countdown .cta:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 3px; }
@media (max-width: 360px) { .cd-timer b { font-size: 1.625rem; } }

/* ---------- changing a vote ---------- */
.change-vote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: -10px 0 22px;
}
.change-vote span { color: var(--muted); font-size: 0.875rem; }
.change-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--orange);
  background: var(--card);
}
.change-banner p { margin: 0; font-weight: 700; color: var(--cream); }
.change-banner:focus { outline: 3px solid var(--orange-hi); outline-offset: 2px; }
.msg-btn { min-height: 40px; padding: 6px 14px; font-size: 0.875rem; }
.confirm { padding-top: 26px; }
.confirm .cc-text { margin: 14px 0 20px; color: var(--cream); font-size: 1.0625rem; }
.confirm-actions { display: grid; gap: 10px; }
.confirm-actions .btn { width: 100%; }

/* the same countdown on the results page */
.cd-inline {
  margin: -10px 0 26px;
  padding: 14px 14px 10px;
  border-radius: var(--radius);
  border: 2px solid var(--line-hi);
  background: var(--card);
  text-align: center;
}
.cd-inline-title { margin: 0; font-weight: 900; font-size: 1.0625rem; }
.cd-timer--sm { margin: 10px 0 8px; gap: 6px; }
.cd-timer--sm div { padding: 6px 2px 4px; }
.cd-timer--sm b { font-size: 1.5rem; }
.cd-inline .cd-when { margin: 0; font-size: 0.9375rem; }

.notice {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 2px solid var(--orange);
  background: var(--card);
  color: var(--cream);
  font-weight: 700;
}
.notice:focus { outline: 3px solid var(--orange-hi); outline-offset: 2px; }

/* ---------- home: content below the poll ---------- */
.content {
  margin-top: 48px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.content h2, .prose h2 {
  margin: 30px 0 10px;
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: -1px 1px 0 var(--orange), -2px 2px 0 var(--orange-deep);
}
.content p, .prose p, .prose li { color: var(--cream); }
.content p { margin: 0 0 12px; }
.content a, .prose a { color: var(--orange-hi); text-underline-offset: 3px; }

.song-links { margin: 0; padding-inline-start: 1.6em; display: grid; gap: 6px; color: var(--muted); }
.song-links li::marker { color: var(--orange-hi); font-weight: 900; }
.song-links a { font-weight: 700; }

.faq { display: grid; gap: 8px; }
.faq details {
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--card);
}
.faq summary {
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style-position: inside;
}
.faq summary:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 2px; border-radius: var(--radius); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { margin: 0; padding: 12px 16px 14px; }

/* ---------- inner pages ---------- */
.topbar { max-width: 760px; margin: 0 auto; padding: 22px 16px 0; }
.topbar-logo { display: inline-block; }
.topbar-logo img { display: block; width: min(230px, 62vw); height: auto; }
.topbar-logo:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 4px; }

main.page { max-width: 760px; padding-top: 10px; }
main.page h1 { margin-top: 6px; }
main.page > .sticker { margin-top: 6px; }
main.page > .lead { margin: 0 0 18px; text-align: start; }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}
.breadcrumbs li + li::before { content: "‹"; margin-inline: 8px; color: var(--line-hi); }
.breadcrumbs a { color: var(--muted); text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: var(--text); }

.prose { max-width: 680px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin-bottom: 6px; }
.prose kbd {
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line-hi);
  background: var(--card);
  font: 700 0.875em var(--font);
}
.updated { margin-top: 28px; color: var(--muted) !important; font-size: 0.875rem; }

.video { margin: 6px 0 18px; }
.yt-facade, .yt-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: #000;
}
.yt-facade { position: relative; padding: 0; overflow: hidden; cursor: pointer; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-facade .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 54px;
  border-radius: 14px;
  background: var(--orange);
  box-shadow: -4px 4px 0 var(--orange-deep);
}
.yt-facade .play::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--bg);
  transform: translateX(3px);
}
.yt-facade:hover .play { background: var(--orange-hi); }
.yt-facade:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 3px; }

.cta-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  margin: 0 0 8px;
}
.cta-link:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 4px; }

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 30px;
}
.pager a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--line-hi);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.pager a:hover { border-color: var(--text); }
.pager a:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 2px; }
.pager span { display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 500; }
.pager a[rel="next"] { text-align: end; }

.episodes { padding-inline-start: 0 !important; list-style: none; display: grid; gap: 8px; }
.episodes a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 2px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.episodes a:hover { border-color: var(--line-hi); }
.episodes a:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 2px; }
.ep-num { display: block; color: var(--orange-hi); font-size: 0.8125rem; font-weight: 900; }
.episodes li { margin: 0; }
.episodes a.ep {
  display: grid;
  grid-template-columns: 168px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px;
}
.ep img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: #2b2118;
}
.ep-text { min-width: 0; }
.ep-title { display: block; font-weight: 700; line-height: 1.35; }
.ep-date { display: block; margin-top: 3px; color: var(--muted); font-size: 0.8125rem; }
@media (max-width: 480px) {
  .episodes a.ep { grid-template-columns: 116px 1fr; gap: 10px; }
  .ep-title { font-size: 0.9375rem; }
}
.listen-links--start { justify-content: flex-start; }

/* ---------- footer navigation ---------- */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin: 0 0 16px;
}
.footer-nav a {
  display: inline-block;
  padding: 6px 2px;
  color: var(--text);
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-color: var(--line-hi);
  text-underline-offset: 4px;
}
.footer-nav a:hover { text-decoration-color: var(--orange); }
.footer-nav a:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 2px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; max-width: 560px; margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.opt, .req { color: var(--muted); font-weight: 400; font-size: 0.875rem; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 2px solid var(--line-hi);
  background: var(--card);
  color: var(--text);
  font: 400 1rem/1.5 var(--font);
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--orange-hi);
  outline-offset: 2px;
}
.field [aria-invalid="true"] { border-color: #ff8f80; }
.hint { margin: 0; color: var(--muted) !important; font-size: 0.875rem; }
.field-error { margin: 0; color: #ffb4a8 !important; font-weight: 700; font-size: 0.9375rem; }
.form-status:empty { display: none; }
.form-status { margin: 0; font-weight: 700; }
.form .btn-primary { justify-self: start; min-width: 140px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- accessibility menu ---------- */
.a11y-fab {
  position: fixed;
  inset-inline-end: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: var(--bg);
  cursor: pointer;
  box-shadow: -3px 3px 0 var(--orange-deep);
}
.a11y-fab svg { width: 30px; height: 30px; fill: currentColor; }
.a11y-fab:hover { background: var(--orange-hi); }
.a11y-fab:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.has-cta .a11y-fab { bottom: calc(146px + env(safe-area-inset-bottom)); }

.a11y-panel {
  position: fixed;
  inset-inline-end: 14px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 41;
  width: min(340px, calc(100vw - 28px));
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  padding: 14px;
  border-radius: var(--radius);
  border: 2px solid var(--line-hi);
  background: var(--card);
  color: var(--text);
  box-shadow: -5px 5px 0 var(--orange);
}
.has-cta .a11y-panel { bottom: calc(208px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 238px); }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.a11y-head h2 { margin: 0; font-size: 1.125rem; font-weight: 900; }
.a11y-head h2:focus { outline: none; }
.a11y-close, .a11y-size button, .a11y-grid button, .a11y-reset {
  min-height: 44px;
  border-radius: 8px;
  border: 2px solid var(--line-hi);
  background: transparent;
  color: var(--text);
  font: 700 0.9375rem/1.2 var(--font);
  cursor: pointer;
}
.a11y-close { width: 44px; font-size: 1.125rem; }
.a11y-size {
  display: grid;
  grid-template-columns: 1fr 52px 64px 52px;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.a11y-size span { font-weight: 700; }
.a11y-size button { font-size: 1.0625rem; }
.a11y-size button:disabled { opacity: 0.4; cursor: default; }
.a11y-level { text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.a11y-grid button { padding: 8px; }
.a11y-grid button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--bg); }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.a11y-reset { padding: 8px 14px; }
.a11y-foot a { color: var(--orange-hi); font-weight: 700; }
.a11y-root button:hover:not(:disabled) { border-color: var(--text); }
.a11y-root button:focus-visible, .a11y-foot a:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 2px; }

/* ---------- accessibility menu: display modes ---------- */
html.a11y-contrast {
  --bg: #000;
  --card: #000;
  --card-hi: #000;
  --line: #fff;
  --line-hi: #fff;
  --text: #fff;
  --muted: #fff;
  --cream: #fff;
  --orange: #ffe500;
  --orange-hi: #ffe500;
  --orange-deep: #ffe500;
}
html.a11y-contrast a { color: #ffe500; }

html.a11y-light {
  color-scheme: light;
  --bg: #ffffff;
  --card: #f6f3ef;
  --card-hi: #ece6df;
  --line: #c9bfb3;
  --line-hi: #6b5d4f;
  --text: #17110c;
  --muted: #4a4038;
  --cream: #17110c;
  --orange: #b34700;
  --orange-hi: #9a3d00;
  --orange-deep: #6e2c00;
}
/* the logo has white lettering: keep it on a dark plate in light mode */
html.a11y-light .logo,
html.a11y-light .topbar-logo img { background: #17110c; padding: 10px 14px; border-radius: 12px; }

html.a11y-gray :is(header, main, footer, .topbar) { filter: grayscale(1); }

html.a11y-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  outline: 2px dashed currentColor;
  outline-offset: 2px;
}

html.a11y-font { --font: Arial, "Helvetica Neue", "Segoe UI", sans-serif; }

html.a11y-spacing body :is(p, li, label, span, a, h1, h2, h3, summary, button, legend, td, th) {
  line-height: 1.8 !important;
  letter-spacing: 0.12em !important;
  word-spacing: 0.16em !important;
}
html.a11y-spacing body p { margin-bottom: 2em; }

html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 4l32 18-14 3-7 13z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto !important;
}

html.a11y-focus *:focus, html.a11y-focus *:focus-visible {
  outline: 4px solid #ffe500 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 8px #000 !important;
}
