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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 20rem;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--color-text);
  background: var(--color-page);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3 {
  color: var(--color-brand-strong);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  margin-bottom: var(--space-md);
  font-size: clamp(3.25rem, 7vw, var(--text-4xl));
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: var(--space-md);
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: var(--space-xs);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  letter-spacing: -0.02em;
}

h1 em,
h2 em {
  color: var(--color-accent);
  font-weight: 400;
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: inherit;
}

button,
input,
textarea {
  color: inherit;
}

button {
  cursor: pointer;
}

:where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

::selection {
  color: var(--white);
  background: var(--color-brand);
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--color-brand);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.section {
  padding-block: clamp(4.5rem, 9vw, var(--space-3xl));
}

.section__inner,
.hero__inner,
.trust-strip__inner,
.site-footer__inner,
.site-footer__copy {
  width: min(calc(100% - 2 * var(--gutter)), var(--container));
  margin-inline: auto;
}

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

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