/* The Brain and the Bot — site styles
   Two voices: Fraunces (the brain: organic, serif) and IBM Plex Sans (the bot: precise).
   The split title is the one bold move; everything else stays quiet. */

:root {
  --bg: #f3f5f7;
  --ink: #16202e;
  --muted: #5b6573;
  --rule: #d5dbe2;
  --brain: #7d3c5e;   /* plum  */
  --bot: #1f7a8c;     /* teal  */
  --link: #1f7a8c;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121820;
    --ink: #e8ecf1;
    --muted: #9aa5b3;
    --rule: #2a3340;
    --brain: #d78fb6;
    --bot: #6fc3d2;
    --link: #6fc3d2;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,
.listen-link:focus-visible {
  outline: 3px solid var(--bot);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1fr minmax(0, 1.6fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
}

.hero-art {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(22, 32, 46, 0.12), 0 12px 32px -12px rgba(22, 32, 46, 0.28);
}

.title {
  margin: 0 0 1rem;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  font-weight: 500;
  display: flex;
  flex-direction: column;
}

.title-brain {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 144;
  color: var(--brain);
}

.title-bot {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--bot);
}

.tagline {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--muted);
}

.listen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.listen-link {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}

.listen-link:hover {
  background: var(--ink);
  color: var(--bg);
}

.listen-rss {
  border-color: var(--rule);
  color: var(--muted);
}

/* ---------- Main content ---------- */

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 var(--gutter) 3rem;
}

main section {
  max-width: var(--measure);
  padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.2;
}

main p { margin: 0 0 1rem; }
main p:last-child { margin-bottom: 0; }

/* Episode list */

.episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.episode {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.episode:last-child { border-bottom: 0; }

.episode-title {
  color: var(--ink);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
}

.episode-title:hover { color: var(--bot); text-decoration: underline; }

.episode-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.episode-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */

footer {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}

footer p { margin: 0; max-width: var(--measure); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .listen-link { transition: none; }
}
