:root {
  --teal: #3f87a2;
  --teal-dark: #2d6379;
  --green: #80c898;
  --slate: #304850;
  --bg: #ffffff;
  --text: #25343a;
  --muted: #5d6f77;
  --card: #f3f8f9;
  --border: #dbe6ea;
  --link: #2d6379;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101a1d;
    --text: #e3ecee;
    --muted: #9fb2b8;
    --card: #17262a;
    --border: #284047;
    --link: #8cc6dc;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--link);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--slate);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip:focus {
  left: 0;
}

.wrap {
  width: min(100% - 2rem, 62rem);
  margin-inline: auto;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-block: 0.5rem;
}

.brand img {
  display: block;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal-dark);
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a[aria-current="page"] {
  border-bottom-color: var(--green);
}

@media (prefers-color-scheme: dark) {
  nav a {
    color: var(--link);
  }
}

.hero {
  position: relative;
  min-height: 46rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #fff;
  overflow: hidden;
}

.hero picture {
  display: contents;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(16 26 29 / 72%) 0%,
    rgb(16 26 29 / 35%) 55%,
    rgb(16 26 29 / 5%) 100%
  );
}

.hero-text {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 46rem);
  margin: 3rem auto 0;
  text-align: center;
}

.hero a:not(.button) {
  color: #bfe3f1;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.lead {
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.page-head {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #fff;
  padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  line-height: 1.15;
}

.page-head .lead {
  margin: 0.5rem 0 0;
  opacity: 0.92;
}

.prose {
  max-width: 46rem;
  padding-bottom: 3rem;
}

.prose.serif {
  font-family: var(--serif);
}

.prose h2 {
  margin: 2rem 0 0.5rem;
  line-height: 1.25;
  color: var(--slate);
}

@media (prefers-color-scheme: dark) {
  .prose h2 {
    color: var(--text);
  }
}

.prose li {
  margin-bottom: 0.5rem;
}

.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.hero .actions {
  justify-content: center;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--teal);
  border-radius: 0.25rem;
  background: var(--teal);
  color: #fff;
}

.button:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button.ghost {
  background: transparent;
  color: var(--teal-dark);
}

.hero .button {
  background: #fff;
  border-color: #fff;
  color: var(--teal-dark);
}

.hero .button.ghost {
  background: transparent;
  color: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  padding-block: 3rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--slate);
}

@media (prefers-color-scheme: dark) {
  .card h2 {
    color: var(--text);
  }
}

.episode {
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  margin-top: 1.5rem;
}

.episode h2 {
  margin: 0;
  font-size: 1.25rem;
}

.episode-label {
  margin: 0;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.player iframe {
  border: 0;
  width: 100%;
}

.draft-banner {
  background: #fff4cc;
  color: #5a4600;
  border: 1px solid #e6c85c;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
}

code {
  font-size: 0.9em;
  background: var(--card);
  padding: 0.1em 0.35em;
  border-radius: 0.2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.5rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0.25rem 0;
}

@media (max-width: 700px) {
  .hero {
    min-height: 30rem;
  }

  .hero-text {
    margin-top: 2.5rem;
  }
}
