/* ==========================================================================
   TOKENS — every color, font, and spacing value the site uses lives here.
   Change a value once and it updates everywhere it's used. This is the
   single most useful CSS habit to build: never hard-code a color twice.
   ========================================================================== */
:root {
  /* Paper: the page reads like a notebook page, echoing the original sketch */
  --paper: #efece2;
  --card: #fbf9f3;

  /* Ink: pencil-grey text, not flat black — softer on a warm background */
  --ink: #2b2b28;
  --ink-soft: #5a5850;

  /* Pasture green: the "herding" accent — links, headings, small marks */
  --pasture: #5c6b4f;
  --pasture-dark: #46523c;

  /* Lamplight ochre: warm highlight for the one or two things that should pop */
  --lamp: #c98a3b;

  --line: #d8d3c2;

  --font-display: "Fraunces", Georgia, serif;
  --font-hand: "Caveat", cursive;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 780px;
}

/* ==========================================================================
   RESET — browsers apply their own default spacing/sizing; this flattens
   those defaults so our own rules are the only ones in play.
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  position: relative; /* so the herding-path SVG can position against the whole page */
  overflow-x: hidden;
}

/* Respect people who've asked their OS to reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

a {
  color: var(--pasture-dark);
  text-decoration-color: var(--lamp);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--lamp);
}

/* Make sure keyboard users can always see what's focused */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
}

/* ==========================================================================
   SIGNATURE ELEMENT — the herding path. A single wavy line drawn once and
   stretched down the full height of the page behind the content, like a
   trail corralling the sections together.
   ========================================================================== */
.herding-path {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.herding-path path {
  fill: none;
  stroke: var(--pasture);
  stroke-width: 0.6;
  stroke-dasharray: 6 5;
  opacity: 0.35;
}

/* Every section sits above the path */
.hero,
.bios,
.episodes,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--pasture-dark);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 1.25rem auto 0;
}

.hero-art {
  margin: 3rem auto 0;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  background: var(--card);
  border: 1.5px dashed var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art-note {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   SHARED SECTION LABEL
   ========================================================================== */
.section-label {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--pasture-dark);
  text-align: center;
  margin-bottom: 2rem;
}

/* ==========================================================================
   BIOS
   ========================================================================== */
.bios {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 560px) {
  .bio-grid {
    grid-template-columns: 1fr;
  }
}

.bio-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.headshot {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pasture);
}

.bio-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.bio-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ==========================================================================
   EPISODES
   ========================================================================== */
.episodes {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.episode-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.episode-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  transition: border-color 0.15s ease;
}

.episode-card:hover {
  border-color: var(--pasture);
}

.episode-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  background: var(--pasture);
  color: var(--paper);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The real video embed is landscape (16:9), so it gets a wider box than
   the square .episode-thumb placeholder above */
.episode-video {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
}

.episode-video iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.episode-number {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--lamp);
}

.episode-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0.15rem 0 0.6rem;
}

.episode-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .episode-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .episode-video {
    width: 100%;
    align-self: center;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}