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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

body {
  margin: 0;
  padding-top: var(--header-height);
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-ink);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--section-pad-inline);
}

.section__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.section__title {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--color-ink);
}

.section__title--center {
  text-align: center;
}

.section__subtitle {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-ink-light);
  margin-top: 2px;
}

.section__subtitle--center {
  text-align: center;
}

.text-accent {
  color: var(--color-accent);
}

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

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

/* Animations / Reveal */
[data-reveal] {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  body.js-enabled [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--duration-base) var(--ease-out),
      transform var(--duration-base) var(--ease-out);
  }

  body.js-enabled [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
