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

html {
  background: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 78% 8%, rgba(15, 92, 102, 0.18), transparent 34rem),
    var(--color-ink);
  color: var(--color-paper);
  font-size: var(--text-base);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  z-index: var(--z-grain);
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: overlay;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, figure, blockquote { margin-block: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--color-paper);
  color: var(--color-ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.eyebrow, .section-number, .meta, .label {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow, .section-number { color: var(--color-aqua); }
.muted { color: var(--color-muted); }
.accent { color: var(--color-orange); }

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