/* base.css — reset + primitives */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; font-weight: 500; }
p, li { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--color-primary-highlight); color: var(--color-text); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--space-4); top: var(--space-2);
  transform: translateY(-160%);
  background: var(--color-primary); color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  z-index: 200; font-size: var(--text-sm); font-weight: 500;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }
