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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--aqua) 55%, transparent);
  outline-offset: 4px;
}

::selection {
  background: var(--sage);
  color: var(--forest-strong);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  border-radius: var(--radius-small);
  background: var(--forest-strong);
  color: var(--white);
  transform: translateY(-180%);
  transition: transform .18s ease;
}

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

.shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-8);
}

.section-heading {
  max-width: 44rem;
  margin-bottom: var(--space-7);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  color: var(--forest);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--aqua);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -.045em;
}

h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(3.25rem, 9vw, 6.5rem);
  line-height: .98;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 6vw, 4.5rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: .55rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.button {
  min-height: 3.2rem;
  padding: .8rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 1px solid transparent;
  border-radius: .9rem;
  cursor: pointer;
  font-family: var(--font-rounded);
  font-weight: 700;
  line-height: 1;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(30, 82, 68, .16);
}

.button-primary:hover {
  background: var(--forest-strong);
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--forest-strong);
}

.text-link {
  color: var(--forest);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--forest) 30%, transparent);
  text-underline-offset: .22em;
}

.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .65s ease, transform .65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 48rem) {
  .shell {
    width: min(calc(100% - 3rem), var(--max-width));
  }

  .section {
    padding-block: var(--space-9);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
