*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Skip-link */
.skip-link {
  position: absolute; top: -40px; left: 16px; z-index: 10000;
  background: var(--ink); color: var(--white);
  padding: 8px 14px; border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: 12px;
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 16px; outline: 2px solid var(--brand-teal); }

/* Focus-visible */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Selection */
::selection { background: var(--brand-teal); color: var(--ink); }
