/* scottauld.org/podcasts: British racing green and white racing stripes. System fonts only. */
:root {
  --brg: #004225;
  --brg-deep: #00311b;
  --bg: #f6f4ee;
  --surface: #ffffff;
  --ink: #13231a;
  --muted: #46554c;
  --line: rgba(0, 66, 37, 0.16);
  --accent: #004225;
  --shadow: 0 1px 2px rgba(0, 40, 22, 0.06), 0 10px 28px rgba(0, 40, 22, 0.08);
  --shadow-lift: 0 4px 8px rgba(0, 40, 22, 0.10), 0 22px 44px rgba(0, 40, 22, 0.18);
  --radius: 18px;
  --head-bg: #004225;
  --head-ink: #ffffff;
  --head-muted: rgba(255, 255, 255, 0.82);
  --btn-bg: #004225;
  --btn-ink: #ffffff;
  --btn-bg-hover: #00311b;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #06160e;
  --surface: #0c2618;
  --ink: #eef2ec;
  --muted: #b6c4ba;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #9fd4b4;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.30);
  --shadow-lift: 0 4px 10px rgba(0, 0, 0, 0.40), 0 24px 48px rgba(0, 0, 0, 0.45);
  --head-bg: #031b0e;
  --btn-bg: #eef2ec;
  --btn-ink: #00311b;
  --btn-bg-hover: #ffffff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #f2c14e; outline-offset: 3px; border-radius: 6px; }
html:not([data-theme="dark"]) main :focus-visible,
html:not([data-theme="dark"]) .site-foot :focus-visible { outline-color: #004225; }
img, svg { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); color: var(--ink); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* Racing stripes: a wide white stripe and a narrow one, like a Le Mans livery */
.stripes {
  height: 22px;
  background-color: var(--brg);
  background-image: linear-gradient(to bottom,
    transparent 0, transparent 4px,
    #fff 4px, #fff 15px,
    transparent 15px, transparent 19px,
    #fff 19px, #fff 22px);
}
html[data-theme="dark"] .stripes { background-color: #031b0e; }

/* Green hero band */
.hero-band { background: var(--head-bg); color: var(--head-ink); }
.top-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 0 .4rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 650; color: var(--head-ink); text-decoration: none; }
.brand:hover { text-decoration: underline; }
.brand-mark { display: block; width: 28px; height: 28px; border-radius: 7px; flex: none; box-shadow: 0 0 0 1.5px rgba(255,255,255,.7); }
.hero { padding: 1.6rem 0 3rem; }
.kicker { margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: var(--head-muted); }
h1 { margin: 0 0 .7rem; font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; color: var(--head-ink); }
.lede { margin: 0; max-width: 40rem; font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--head-muted); }

/* Theme switch */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.10); }
.theme-switch button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--head-muted); cursor: pointer; padding: 0; }
.theme-switch button[aria-checked="true"] { background: #ffffff; color: #004225; }
.theme-switch button:focus-visible { outline: 3px solid #f2c14e; outline-offset: 2px; }
.theme-ico svg { width: 16px; height: 16px; display: block; }

/* Show cards */
.shows > li { display: flex; }
.shows > li > .show { flex: 1; width: 100%; }
.shows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin: 0; padding: 2.4rem 0 3rem; list-style: none; }
.show {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.show:hover, .show:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--accent); }
.show:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.show-stripes {
  height: 10px;
  background-image: linear-gradient(to bottom,
    var(--brg) 0, var(--brg) 1px,
    #fff 1px, #fff 5px,
    var(--brg) 5px, var(--brg) 7px,
    #fff 7px, #fff 9px,
    var(--brg) 9px, var(--brg) 10px);
}
html[data-theme="dark"] .show-stripes {
  background-image: linear-gradient(to bottom,
    #ffffff 0, #ffffff 4px,
    #0c2618 4px, #0c2618 7px,
    #ffffff 7px, #ffffff 9px,
    #0c2618 9px, #0c2618 10px);
}
.show-art { display: block; padding: 1.25rem 1.25rem .25rem; }
.show-art picture { display: block; }
.show-art img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.show-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.35rem 1.4rem; }
.show-body h2 { margin: 0 0 .55rem; font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 750; color: var(--ink); }
.show-body p { margin: 0 0 1.1rem; color: var(--muted); }
.show-go { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--accent); }
.show:hover .show-go span { transform: translateX(3px); }
.show-go span { transition: transform .22s ease; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.4rem 0; }
.foot-row p { margin: 0; color: var(--muted); font-size: .98rem; max-width: 52rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--btn-bg); border-radius: 999px; padding: .55rem 1.1rem; font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap; }
.how-btn { background: var(--btn-bg); color: var(--btn-ink); }
.how-btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }

dialog { width: min(640px, 100% - 2rem); max-height: 85vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.3rem; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(0, 20, 10, .55); }
dialog h2 { margin-top: 0; }
dialog h3 { margin: 1.3rem 0 .3rem; font-size: 1.05rem; }
dialog p { margin: .4rem 0; font-size: .98rem; }
.dialog-actions { display: flex; justify-content: flex-end; margin-top: 1.2rem; }
.btn-solid { background: var(--btn-bg); color: var(--btn-ink); }

@media (max-width: 900px) {
  .shows { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; margin-top: 0; padding-top: 1.6rem; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .show, .show-go span { transition: none; }
  .show:hover, .show:focus-visible { transform: none; }
}
