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

* { margin: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-reading);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Rotated decorations (plate, stickers) may lean past the edge on phones; never scroll sideways. */
main { overflow-x: clip; }

img, svg, picture { display: block; max-width: 100%; }
.icon { flex: none; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-title);
  line-height: var(--lh-title);
  letter-spacing: var(--tracking-title);
}

a { color: inherit; }

ul[class], ol[class] { list-style: none; padding: 0; }

code, pre, .mono { font-family: var(--font-mono); }

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

mark { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: .75rem 1rem;
  background: var(--surface);
  border: var(--border-thin) solid var(--ink);
  border-radius: var(--radius-btn);
  font-weight: 700;
}

.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The field a person never sees and a bot fills. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Motion answers an action. With reduced motion, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}
