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

html {
  color-scheme: light;
  scroll-padding-top: var(--space-5);
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font: 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

h1, h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 4.1vw, 3.3rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h2 {
  font-size: 1.8rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

p + p {
  margin-top: var(--space-3);
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration: underline;
}

button, input, select {
  font: inherit;
  color: inherit;
}

button, summary {
  cursor: pointer;
}

button, .button, input, select {
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  background: transparent;
  padding: var(--space-2) var(--space-3);
}

button:hover, .button:hover {
  background: var(--color-surface);
}

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

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius);
}

figcaption, .muted {
  color: var(--color-muted);
}

figcaption {
  font-size: 0.75rem;
  margin-top: var(--space-2);
}

.measure {
  max-width: var(--text-width);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 5;
  background: var(--color-paper);
  padding: var(--space-3);
}

.skip-link:focus {
  top: var(--space-3);
}

/* Keep expanded wording available to assistive technology without layout space. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-size: 0.6875rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.lead {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-top: var(--space-4);
  width: 100%;
  max-width: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
  }
}
