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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--color-text);
  background: var(--gradient-page-light);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

[data-theme="dark"] body {
  background: var(--gradient-page-dark);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

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

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

.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;
}

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

.section {
  padding-block: var(--section-y-mobile);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--section-y);
  }
}

.section--tight {
  padding-block: calc(var(--section-y-mobile) * 0.65);
}

@media (min-width: 768px) {
  .section--tight {
    padding-block: calc(var(--section-y) * 0.65);
  }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

h1,
.h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h2,
.h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h3,
.h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  margin: 0 0 8px;
}

.subhead {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  color: var(--color-text-muted);
  max-width: 38rem;
  margin: 0 0 24px;
}

.lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 40rem;
}

.lead + .lead {
  margin-top: 1rem;
}

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

.text-center .subhead,
.text-center .lead {
  margin-inline: auto;
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stack-md {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.flex-row--center {
  justify-content: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}
