.season[data-astro-cid-ikooipj4] {
  position: relative;
  view-timeline-name: --season;
}

@supports (animation-timeline: view()) {
  .season[data-astro-cid-ikooipj4] .chapter-backdrop {
    animation-name: backdrop-hold !important;
    animation-range: entry 60% exit 40% !important;
  }
}

.season-stage[data-astro-cid-ikooipj4] {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  margin-inline: auto;
  padding-block: 1.5rem;
}

.months[data-astro-cid-ikooipj4] {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  margin: 0 0 1.5rem;
  padding: .5rem .75rem;
  border-radius: var(--radius-pill);
  width: fit-content;
  max-width: 100%;
}

.month-list[data-astro-cid-ikooipj4] {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.month[data-astro-cid-ikooipj4], .month-link[data-astro-cid-ikooipj4] {
  padding: .35rem .75rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--gm-ink-soft);
}

.month-link[data-astro-cid-ikooipj4] {
  margin-left: .25rem;
  padding-left: 1rem;
  border-left: 1px solid #352f2724;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  color: var(--gm-ink);
  text-decoration: none;
  transition: background-color var(--dur-ui) var(--ease),
      color var(--dur-ui) var(--ease);
}

.month-link[data-astro-cid-ikooipj4]:hover {
  background: hsl(var(--gm-paper-hsl) / .9);
  color: var(--gm-green-deep);
}

.steps[data-astro-cid-ikooipj4] {
  display: grid;
  gap: 2rem;
}

.season-step[data-astro-cid-ikooipj4] {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 1.5rem clamp(2rem, 4vw, 5rem);
  align-items: center;
}

.season-copy[data-astro-cid-ikooipj4] h2[data-astro-cid-ikooipj4] {
  margin-top: .4rem;
  font-size: var(--text-display-2);
  max-width: 14ch;
}

.season-copy[data-astro-cid-ikooipj4] h2[data-astro-cid-ikooipj4] .step[data-astro-cid-ikooipj4] {
  display: block;
  margin-bottom: .4rem;
}

.season-copy[data-astro-cid-ikooipj4] .lede[data-astro-cid-ikooipj4] {
  margin-top: 1rem;
  font-size: clamp(1.05rem, .95rem + .45vw, 1.45rem);
  max-width: 30rem;
}

.season-detail[data-astro-cid-ikooipj4] {
  margin: 0;
  display: flex;
  justify-content: center;
}

.season-detail[data-astro-cid-ikooipj4] .detail {
  --detail-max-h: min(70svh, 800px);
}

#step-3[data-astro-cid-ikooipj4] .season-detail[data-astro-cid-ikooipj4] .detail {
  --detail-max-h: min(50svh, 540px);
}

.closing-line[data-astro-cid-ikooipj4] {
  font-style: italic;
  font-weight: 500;
  font-size: var(--text-display-2);
}

.lede[data-astro-cid-ikooipj4] {
  margin-top: 1rem;
}

.needs[data-astro-cid-ikooipj4] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
  margin: 1.75rem 0 0;
  padding: 1.5rem 0 0;
  list-style: none;
  border-top: 1px solid #352f271a;
  text-align: left;
}

.needs[data-astro-cid-ikooipj4] h3[data-astro-cid-ikooipj4] {
  margin: 0;
  font-size: clamp(1.1rem, 1rem + .35vw, 1.35rem);
}

.needs[data-astro-cid-ikooipj4] p[data-astro-cid-ikooipj4] {
  margin: .5rem 0 0;
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--gm-ink-soft);
  text-wrap: pretty;
}

.actions[data-astro-cid-ikooipj4] {
  margin-top: 1.5rem;
}

@media (width <= 900px) {
  .season-step[data-astro-cid-ikooipj4] {
    grid-template-columns: 1fr;
  }

  .needs[data-astro-cid-ikooipj4] {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }
}

@media ((width <= 900px) or (hover: none) or (pointer: coarse)) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .season-step[data-astro-cid-ikooipj4] {
      animation: linear both reveal-rise;
      animation-timeline: view();
      animation-range: entry entry 40%;
    }
  }
}

@media (width >= 901px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .season[data-astro-cid-ikooipj4] {
      height: calc(var(--n) * 90svh + 100svh);
    }

    .season-stage[data-astro-cid-ikooipj4] {
      position: sticky;
      top: 0;
      height: 100svh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding-block: calc(var(--header-h) + 1.5rem) 1.5rem;
    }

    .months[data-astro-cid-ikooipj4] {
      display: flex;
      margin: 0 auto 1.25rem;
      flex-wrap: nowrap;
    }

    .month[data-astro-cid-ikooipj4] {
      animation: linear both month-on;
      animation-timeline: --season;
      animation-range: contain var(--start) contain var(--end);
    }

    .steps[data-astro-cid-ikooipj4] {
      position: relative;
      flex: 1;
      min-height: 0;
    }

    .season-step[data-astro-cid-ikooipj4] {
      position: absolute;
      inset: 0;
      opacity: 0;
      pointer-events: none;
      animation: linear both season-mid;
      animation-timeline: --season;
      animation-range: contain var(--start) contain var(--end);
    }

    .season-step[data-astro-cid-ikooipj4].first {
      animation-name: season-first;
      animation-range: entry 0% contain var(--end);
    }

    .season-step[data-astro-cid-ikooipj4].last {
      animation-name: season-last;
      animation-range: contain var(--start) exit 100%;
    }

    .season-detail[data-astro-cid-ikooipj4] .detail {
      --detail-max-h: min(62svh, 760px);
    }
  }
}

@keyframes season-first {
  0%, 78% {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  100% {
    opacity: 0;
    transform: translateY(-18px);
    pointer-events: none;
  }
}

@keyframes season-mid {
  0% {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
  }

  18% {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  82% {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  100% {
    opacity: 0;
    transform: translateY(-18px);
    pointer-events: none;
  }
}

@keyframes season-last {
  0% {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
  }

  18%, 100% {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

@keyframes month-on {
  0%, 100% {
    color: var(--gm-ink-soft);
    background: none;
  }

  10%, 90% {
    color: var(--gm-cream);
    background: var(--gm-green);
  }
}
