@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color: #232323;
  background: #fff;
  font-family: "Inter Tight", sans-serif;
  font-synthesis: none;
  --green: #9fe870;
  --green-ink: #264d0c;
  --mist: #edefeb;
  --rail: min(100% - 3rem, 82rem);
}

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

body {
  margin: 0;
  font-size: clamp(1.125rem, 1rem + 0.35vw, 1.4rem);
  line-height: 1.4;
}

a { color: inherit; text-underline-offset: 0.23em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
[id] { scroll-margin-top: 1.5rem; }

.shell { width: var(--rail); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 3;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-170%);
  color: var(--green-ink);
  background: #fff;
  border-radius: 0.5rem;
}

.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 1; }
.homepage .site-header { position: absolute; inset: 0 0 auto; }

.header-inner {
  min-height: 5.625rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  padding-inline: clamp(0rem, 3vw, 2.25rem);
}

.wordmark {
  justify-self: start;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.45rem);
  font-weight: 700;
  text-decoration: none;
}

.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 3vw, 2.5rem); }
.main-nav a { padding-block: 0.4rem; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { text-decoration: underline; }

.pill {
  display: inline-block;
  padding: 0.8rem 1.35rem;
  border-radius: 100vw;
  color: var(--green-ink);
  background: var(--green);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.pill:hover { background: #bcef9c; }
.header-cta { justify-self: end; }

.hero {
  display: grid;
  min-height: max(39rem, 100svh);
  padding: 7.5rem 0 5rem;
  place-items: center;
  background-color: #f1e7da;
  background-image: linear-gradient(rgb(255 248 238 / 15%), rgb(255 248 238 / 15%)), url("/.netlify/images?url=/img/shoreline.jpg&w=1584&fm=webp");
  background-size: cover;
  background-position: center;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.65rem, 1.1rem + 4.65vw, 5rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.hero p { max-width: 44rem; margin: 1.5rem auto 0; text-wrap: pretty; }
.hero-call { margin-top: 1.5rem; }

.features { width: min(var(--rail), 74rem); padding-block: 4rem 1.75rem; }

.feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(2rem, 5.2vw, 5rem);
  padding-block: 2rem;
}

.feature-copy { padding-inline: clamp(0rem, 1.8vw, 2rem); }
.feature-reversed .feature-copy { grid-column: 2; grid-row: 1; }
.feature-reversed img { grid-column: 1; grid-row: 1; }

.feature img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2rem;
  background: var(--mist);
}

.feature h2, .checklist h2 {
  font-size: clamp(2.2rem, 1.15rem + 3.3vw, 4rem);
  letter-spacing: -0.025em;
  line-height: 1.09;
}

.feature p { margin-top: 1.25rem; }

.checklist {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: var(--mist);
  text-align: center;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  max-width: 62rem;
  margin: 3rem auto 0;
}

.tip { padding-inline: 1rem; }
.tip svg { display: block; width: 2rem; margin: 0 auto 0.9rem; color: var(--green-ink); }
.tip h3 { margin-bottom: 0.5rem; font-size: 1.15em; }
.tip p { text-wrap: pretty; }

.closing { max-width: 65rem; padding-block: clamp(3.25rem, 6vw, 5rem); text-align: center; }
.closing h2 { font-size: clamp(1.75rem, 1.25rem + 1.2vw, 2.25rem); line-height: 1.15; }
.closing p { margin: 1rem auto 1.5rem; max-width: 38rem; }

.site-footer {
  padding: 2rem 1.25rem;
  color: #fff;
  background: #232323;
  text-align: center;
}

.site-footer nav { display: grid; justify-content: center; gap: 0.45rem; }
.site-footer a { color: var(--green); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { text-decoration: underline; }
.site-footer p { margin-top: 0.45rem; }

.legal-page .site-header { border-bottom: 1px solid #e5e7e0; background: #f8f9f6; }

.legal-content {
  width: min(var(--rail), 50rem);
  margin-inline: auto;
  padding-block: clamp(2.75rem, 6vw, 5rem);
  font-size: 1.125rem;
  line-height: 1.65;
}

.back-link { color: var(--green-ink); font-size: 1rem; }
.legal-content h1 { margin-top: 1rem; font-size: clamp(2.65rem, 1.5rem + 4vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.05; }
.effective { margin: 0.75rem 0 1.75rem; color: #51594d; font-size: 0.95rem; }
.legal-content section { margin-top: 2rem; }
.legal-content h2 { margin-bottom: 0.4rem; font-size: 1.45rem; line-height: 1.25; }
.legal-content a:hover { color: var(--green-ink); }

@media (max-width: 56rem) {
  .features { width: min(var(--rail), 43rem); padding-top: 2rem; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .feature-copy { padding-inline: 0; }
  .feature-reversed .feature-copy, .feature-reversed img { grid-column: auto; grid-row: auto; }
  .hero {
    background-image: linear-gradient(rgb(255 248 238 / 24%), rgb(255 248 238 / 24%)), url("/.netlify/images?url=/img/shoreline.jpg&w=1200&fm=webp");
    background-position: 47% center;
  }
}

@media (max-width: 40rem) {
  :root { --rail: calc(100% - 2.5rem); }

  .header-inner { min-height: 4.5rem; grid-template-columns: 1fr auto; gap: 0.75rem; }
  .main-nav { gap: 1rem; font-size: 1rem; }
  .header-cta { display: none; }
  .hero { min-height: max(34rem, 91svh); }
  .hero p br { display: none; }
  .feature img { border-radius: 1.5rem; }
  .checklist-grid { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pill { transition: none; }
}
