@font-face {
  font-family: Nunito;
  src: url("/fonts/nunito-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url("/fonts/nunito-800-italic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fff8ec;
  --ink: #1f4d33;
  --park: #2e9e57;
  --sun: #ffc93c;
  --sky: #4fb3e8;
  --paper: #ffffff;
  --font-display: Nunito, "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
}

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

/* Author display rules must not override the hidden attribute. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.5;
  font-synthesis: none;
}

img {
  max-width: 100%;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 5;
  background: var(--sun);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  background: var(--cream);
  color: var(--ink);
  padding: 12px 0 4px;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 28px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--park);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mark {
  display: block;
  flex: none;
}

.when {
  margin: 0 0 0 auto;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  padding: 8px 14px;
  border-radius: 999px;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.eyebrow em {
  font-style: italic;
  font-weight: 800;
  color: var(--park);
}

h1,
h2,
h3,
.thanks-lead,
.close,
button[type="submit"] {
  font-family: var(--font-display);
  font-weight: 800;
  font-synthesis: none;
}

h1 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: clamp(2.7rem, 10vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 11ch;
}

.subhead {
  margin: 0;
  max-width: 38rem;
  color: var(--ink);
  font-size: 1.075rem;
  line-height: 1.5;
}

.card {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--park);
  border-radius: 24px;
  padding: 22px 18px 18px;
  box-shadow: 0 12px 28px rgb(31 77 51 / 8%);
}

.card h2,
.thanks-lead {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

form {
  position: relative;
  margin: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field > label,
legend {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0;
}

fieldset {
  border: 0;
  margin: 0 0 14px;
  padding: 0;
  min-inline-size: 0;
}

.choices {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.choice {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 2px solid var(--park);
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--paper);
  cursor: pointer;
  font-weight: 700;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.choice:has(input:checked) {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ink);
}

input[type="email"],
input[type="text"] {
  width: 100%;
  min-height: 52px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}

input::placeholder {
  color: var(--ink);
  opacity: 1;
}

input[aria-invalid="true"] {
  border-color: #8a3a2a;
}

.help {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 18px;
}

.check-row input {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.15rem;
  accent-color: var(--park);
  flex: none;
}

.check-row label {
  font-weight: 400;
  line-height: 1.4;
  padding-top: 1px;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

button[type="submit"] {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--park);
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: var(--ink);
}

button[type="submit"]:disabled {
  cursor: progress;
  opacity: 0.72;
}

.fine {
  margin: 10px 0 0;
  text-align: center;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.4;
}

.error {
  margin: 0 0 12px;
  color: #8a3a2a;
  font-weight: 700;
}

#thanks:focus {
  outline: none;
}

#town-note {
  margin: 0;
  color: var(--ink);
}

.season {
  padding: 8px 0 4px;
}

.season-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding-bottom: 8px;
}

.shot {
  flex: 0 0 86%;
  height: 210px;
  margin: 0;
  border: 2px solid var(--park);
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #e7f6ee;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how {
  padding: 28px 0 8px;
}

.how h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(2rem, 6vw, 2.9rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.tile {
  background: var(--paper);
  border: 2px solid var(--park);
  border-radius: 18px;
  padding: 16px 16px 18px;
}

.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sun);
  display: grid;
  place-items: center;
}

.tile-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.tile h3 {
  margin: 10px 0 6px;
  color: var(--ink);
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tile p {
  margin: 0;
}

.close {
  margin: 36px auto 8px;
  max-width: 16ch;
  padding-inline: 16px;
  text-align: center;
  color: var(--ink);
  font-size: clamp(2rem, 6vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

footer {
  border-top: 2px solid var(--park);
  margin-top: 28px;
  padding: 18px 16px 32px;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.95rem;
}

.hero-page {
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
}

.hero-page .flow {
  padding: 48px 0 64px;
}

.hero-page h1 {
  max-width: 12ch;
}

.hero-page .back {
  margin: 16px 0 0;
}

.hero-page .back a {
  color: var(--ink);
  font-weight: 700;
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

@media (min-width: 720px) {
  .card {
    padding: 28px 28px 22px;
  }

  .shot {
    height: 240px;
  }
}

@media (min-width: 880px) {
  .hero {
    padding-top: 22px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    column-gap: 40px;
    row-gap: 18px;
    align-items: start;
    padding-bottom: 40px;
  }

  .top {
    grid-column: 1 / -1;
  }

  .intro {
    padding-top: 8px;
  }

  .subhead {
    font-size: 1.15rem;
  }

  .season-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    gap: 16px;
  }

  .shot {
    flex: none;
    height: 230px;
  }

  .tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .how {
    padding-top: 36px;
  }
}

@media (forced-colors: active) {
  .hero,
  .hero-page {
    background: Canvas;
    color: CanvasText;
  }

  .card,
  .tile,
  .choice,
  .shot,
  .when {
    border: 1px solid ButtonText;
  }

  .choice:has(input:checked) {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }

  .eyebrow em,
  .logo,
  button[type="submit"] {
    color: CanvasText;
    background: Canvas;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
