:root {
  color-scheme: light;
  --paper: #fbf8f1;
  --ink: #281d1a;
  --muted: #68574e;
  --line: #dbcec1;
  --red: #a83325;
  --body: "Avenir Next", Avenir, system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.5; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.wrap { width: min(100% - 3rem, 65rem); margin-inline: auto; }
.skip { position: absolute; inset: .7rem auto auto .7rem; padding: .75rem; transform: translateY(-200%); background: var(--paper); z-index: 1; }
.skip:focus { transform: none; }

.page-header { padding-block: 2.5rem .35rem; }
h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }

main { padding-bottom: 4.25rem; }

.season { margin-top: 2rem; scroll-margin-top: 1rem; }
h2 { margin: 0; color: var(--red); font: 600 .84rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .1em; border-bottom: 2px solid var(--ink); padding-bottom: .55rem; }
.episodes { margin: 0; padding: 0; list-style: none; }
.episode { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; align-items: baseline; gap: .8rem; padding: .89rem 0; border-bottom: 1px solid var(--line); }
.code { font: .82rem/1.5 var(--mono); color: var(--muted); }
.entry h3 { margin: 0; font: 400 clamp(1.22rem, 3vw, 1.53rem)/1.18 var(--serif); }
.entry p { margin: .28rem 0 0; font-size: .9rem; color: var(--muted); }
.listen { color: var(--red); font-size: .85rem; font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.listen:hover { color: var(--ink); }
.listen span { font-weight: 400; margin-left: .14em; }

@media (max-width: 560px) {
  .wrap { width: calc(100% - 2rem); }
  .episode { grid-template-columns: 3.6rem minmax(0, 1fr); gap: .4rem .6rem; }
  .listen { grid-column: 2; justify-self: start; padding-block: .15rem; }
  .code { font-size: .72rem; }
}
