*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  color-scheme: light;
  background: var(--page);
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 1rem/1.7 var(--sans);
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

img, svg { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; }

h1, h2, h3 {
  margin-block: 0 .65em;
  font-family: var(--serif);
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 4.1vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
p { margin-block: 0 1em; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  color: white;
  background: var(--ink);
}

.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.dek {
  max-width: 66ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

@media (max-width: 47.49rem) {
  h1 { font-size: clamp(2.1rem, 10vw, 2.25rem); }
  body { line-height: 1.75; }
}

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

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
