@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-stretch: 100% 125%;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }

/* The header is fixed, so a fragment jump would otherwise land with the
   section's first line underneath it. This is the native path's half of
   the offset; the smooth path measures the bar at click time instead. */
section[id] { scroll-margin-top: var(--nav-h); }

body {
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ditra);
  outline-offset: 2px;
  border-radius: 2px;
}

.u-band {
  background: var(--ground);
  color: var(--on-ground);
  transition: background-color 0.6s linear, color 0.6s linear;
}

.u-shell { width: min(100% - 2rem, 84rem); margin-inline: auto; }

.u-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-ground-dim);
}

.u-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 0.75rem 1rem;
  z-index: 999;
}
.u-skip:focus { left: 0; }

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

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