*,
*::before,
*::after {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 100%;
  line-height: 1.6;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  min-block-size: 100vh;
  background: var(--surface);
}

body::after {
  content: '';
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  pointer-events: none;
  background: var(--surface);
  opacity: 0;
  transition: opacity 140ms ease-out;
}

body.page-leaving::after {
  pointer-events: auto;
  opacity: 1;
}

img,
svg,
canvas {
  display: block;
  max-inline-size: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button,
input,
select,
textarea {
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: var(--forest);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.25rem;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  text-wrap: balance;
}

h1 {
  max-inline-size: 18ch;
  font-size: var(--step-4);
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--step-3);
  letter-spacing: -0.03em;
}

h3 {
  font-size: var(--step-2);
  letter-spacing: -0.02em;
}

p {
  max-inline-size: var(--measure);
  font-size: var(--step-0);
}

main,
.container {
  padding-inline: max(var(--space-4), calc((100% - var(--content-width)) / 2));
}

main {
  min-block-size: calc(100vh - 12rem);
  padding-block: var(--space-7);
}

main:focus {
  outline: none;
}

.page-intro {
  max-inline-size: 52rem;
  padding-block: var(--space-5) var(--space-7);
}

.eyebrow {
  margin-block-end: var(--space-3);
  color: var(--forest);
  font-size: var(--step--1);
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  color: var(--text-muted);
  font-size: var(--step-1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  body::after {
    transition: none;
  }
}
