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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
}

body.nav-open { overflow: hidden; }

body { overflow-x: clip; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  color: var(--c-night-blue);
  letter-spacing: 0;
}

h1 {
  max-width: 20ch;
  font-family: var(--font-title);
  font-size: clamp(2.65rem, 1.65rem + 3.1vw, 4.35rem);
  font-weight: 700;
  line-height: .96;
}

h2 {
  max-width: 17ch;
  font-family: var(--font-title);
  font-size: clamp(2rem, 1.35rem + 2.2vw, 3.3rem);
  font-weight: 700;
  line-height: 1;
}

h3 {
  font-family: var(--font-body);
  font-size: clamp(1.12rem, 1rem + .45vw, 1.38rem);
  font-weight: 700;
  line-height: 1.18;
}

.hero h1 { max-width: 19ch; }
.hero__grid h1 { font-size: clamp(2.5rem, 1.55rem + 2.35vw, 3.55rem); }

p { max-width: 68ch; }
ul { padding-left: 1.2rem; }

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 4px;
}

@media (prefers-color-scheme: dark) {
  h1, h2, h3 { color: var(--c-text); }
}

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