/* =========================================================================
   Modern CSS reset. Based on Josh Comeau + Andy Bell patterns, stripped to
   what we actually need. No normalize.css — we own every rule here.
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  line-height: var(--lh-body);
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  color: var(--color-ink-900);
  background: var(--color-ink-000);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: var(--color-brand-500);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-heading);
  font-weight: var(--fw-semibold);
  text-wrap: balance;
}

p { text-wrap: pretty; max-width: var(--content-max); }

hr {
  border: 0;
  border-top: 1px solid var(--color-ink-300);
  margin: var(--space-6) 0;
}

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Skip link — WCAG 2.4.1 */
.skip-link {
  position: absolute;
  top: -100px; left: var(--space-4);
  background: var(--color-brand-900);
  color: var(--color-ink-000);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--space-3); }
