html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  min-height: 100vh;
  font-family: var(--font-family);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  color: var(--text-dark);
  background-color: var(--bg-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
  touch-action: none;
}

main {
  display: block;
}

iframe {
  border: 0;
}

::selection {
  background: rgba(27, 58, 138, 0.14);
  color: var(--text-dark);
}

:target {
  scroll-margin-top: var(--anchor-offset);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(27, 58, 138, 0.18);
  outline-offset: 3px;
}

a {
  transition:
    color var(--transition-base),
    opacity var(--transition-fast),
    border-color var(--transition-base),
    background-color var(--transition-base);
}

button,
input,
select,
textarea {
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base),
    box-shadow var(--transition-base),
    color var(--transition-base);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: inherit;
  font-weight: var(--fw-700);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-medium);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

strong,
b {
  font-weight: var(--fw-700);
}

small {
  font-size: var(--fs-12);
}

hr {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--border);
}

address {
  font-style: normal;
}

::placeholder {
  color: var(--text-gray);
  opacity: 1;
}

/* === Typography utilities / primitives === */

.heading-xl {
  font-size: var(--fs-heading-xl);
  font-weight: var(--fw-800);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.heading-lg {
  font-size: var(--fs-heading-lg);
  font-weight: var(--fw-700);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-medium);
}

.heading-md {
  font-size: var(--fs-heading-md);
  font-weight: var(--fw-700);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-medium);
}

.heading-sm {
  font-size: var(--fs-heading-sm);
  font-weight: var(--fw-600);
  line-height: 1.35;
}

.text-lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--text-gray);
}

.text-body {
  font-size: var(--fs-16);
  line-height: var(--lh-body);
}

.text-note {
  font-size: var(--fs-13);
  line-height: 1.5;
  color: var(--text-gray);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--fs-12);
  font-weight: var(--fw-600);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-gray);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}