html {
  background: var(--color-ink);
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  font-size: 100%;
}

/* Match the final prototype's large-screen artboard scaling. The design grows
 * as a single system (type, spacing, nav and containers) instead of leaving
 * the 1440px composition stranded in the middle of wide desktop screens. */
@media (min-width: 1440px) {
  html { font-size: clamp(16px, min(1.1111vw, 1.975vh), 44px); }
}

body {
  margin: 0;
  background: var(--color-ink);
  color: var(--color-chalk);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

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

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

::selection {
  background: var(--color-amber);
  color: var(--color-ink);
}

[hidden][hidden] {
  display: none !important;
}

html.is-scroll-locked {
  overflow: hidden;
}

html.is-scroll-locked body {
  padding-right: var(--scrollbar-w, 0px);
}

.site-main:focus {
  outline: none;
}

.text-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-display);
  line-height: var(--lh-tight);
}

.text-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-display);
  line-height: var(--lh-tight);
}

.text-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-display);
  line-height: 1.08;
}

.text-h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}

.text-h4 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}

.text-h5 {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
  line-height: 1.35;
}

.text-body-lg {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
}

.text-body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.text-small {
  font-size: var(--fs-small);
  line-height: 1.55;
}

.text-micro {
  font-size: var(--fs-micro);
  line-height: 1.5;
}

.font-display {
  font-family: var(--font-display);
}

.c-eyebrow {
  min-height: 1.5em;
  color: var(--color-chalk);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.u-amber {
  color: var(--color-amber);
}

.u-turquoise {
  color: var(--color-turquoise);
}

.u-ketchup {
  color: var(--color-ketchup);
}

.u-measure {
  max-width: 62ch;
}

.u-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.u-svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.js [data-reveal].is-pending {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(22px);
}

.js [data-reveal] {
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out),
    filter var(--dur-reveal) var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .js [data-reveal].is-pending {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
