/* ==========================================================================
   Reset / base elements
   ========================================================================== */

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

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

body {
  font-family: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
picture { display: contents; } /* wrapper is layout-transparent; the inner <img> keeps its own sizing */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }

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

/* Visible keyboard focus across all interactive elements */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link — off-screen until focused */
.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--blue); color: #fff; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 16px; }
@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}
