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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-tc);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

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

img {
  object-fit: cover;
}

a {
  color: var(--primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-deep);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-tc);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text);
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 4000;
  background: var(--primary-dark);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

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

.eyebrow {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38rem;
}

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

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

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

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
  }

  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}
