/* ─────────────────────────────────────────
   BASE  —  reset + element defaults
───────────────────────────────────────── */

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

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .25s, color .25s;
}

a    { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input  { font-family: inherit; }
ul     { list-style: none; }

/* Hide scrollbar track but keep scrollability */
::-webkit-scrollbar { width: 0; }

/* Skip-to-content link (keyboard / screen reader only) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  padding: 8px 14px;
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  transition: top .1s;
}
.skip-link:focus { top: 8px; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
