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

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

body {
  min-width: 20rem;
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

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

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

h1,
h2,
h3 {
  color: var(--color-navy);
  font-family: var(--font-display);
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin-bottom: var(--space-3);
  font-size: var(--text-display);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h2 {
  max-width: 19ch;
  margin-bottom: var(--space-2);
  font-size: var(--text-xl);
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h3 {
  margin-bottom: var(--space-1);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

p {
  max-width: 68ch;
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

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

.section--tight {
  padding-block: clamp(3.5rem, 6vw, 5rem);
}

.section-intro {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-intro p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: var(--space-2);
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.kicker::before {
  width: 1.75rem;
  height: 2px;
  background: var(--color-blue);
  content: "";
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--motion-fast) var(--ease-out);
}

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

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

@media (max-width: 47.99rem) {
  body {
    font-size: var(--text-base);
  }

  .container {
    width: min(100% - 2rem, var(--container));
  }
}

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

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