*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

::selection {
  background: var(--brand-light);
  color: var(--brand);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
}

.skip:focus {
  left: 1rem;
}

/* Tags / eyebrows */
.tagline {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.tagline--muted {
  color: var(--text-muted);
  font-weight: 500;
}

/* Headings */
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.section-head--center .lead {
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
