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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.has-sticky-cta {
  padding-bottom: 0;
}

img,
svg {
  display: block;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

::selection {
  background: var(--color-accent);
  color: var(--color-text);
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.06;
}

h1 {
  margin-bottom: 1.15rem;
  font-size: clamp(2.65rem, 3.6vw, 4.05rem);
  font-weight: 900;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 2.7vw, 2.8rem);
  font-weight: 900;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
  font-weight: 900;
}

p {
  margin-bottom: 0.95rem;
}

small {
  font-size: 0.875rem;
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 72px;
  }

  body.has-sticky-cta {
    padding-bottom: 88px;
  }

  h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.15rem);
  }

  h2 {
    font-size: clamp(1.75rem, 9vw, 2.45rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
