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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.65;
  letter-spacing: 0.005em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition), opacity var(--transition);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75em;
}

h1 {
  font-size: var(--step-monument);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

h2 {
  font-size: var(--step-head);
}

h3 {
  font-size: var(--step-lead);
}

p {
  margin: 0 0 1.1em;
  max-width: 68ch;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.45em;
}

strong {
  font-weight: 600;
}

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

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: var(--step-small);
}

.skip-link:focus {
  top: 0.75rem;
}

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