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

html {
  color-scheme: light;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--color-gray-800);
  background: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  color: var(--color-primary-950);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 3px;
}

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

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  background: var(--color-primary-950);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform var(--transition);
}

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

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading p {
  max-width: 65ch;
  margin-bottom: 0;
  color: var(--color-gray-600);
}

[data-reveal] {
  transform: translateY(12px);
  transition: transform 420ms ease;
}

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

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

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

@media (prefers-contrast: more) {
  :root {
    --color-gray-600: #263342;
    --shadow-sm: 0 0 0 1px var(--color-gray-800);
    --shadow-md: 0 0 0 2px var(--color-gray-800);
  }
}
