/* ==========================================================================
   BASE — reset, document defaults, small utilities.
   No layout or component styling here.
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote, dl, dd { margin: 0; }

ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

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

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

/* Inline SVG icons: size comes from the parent (1em by default) */
.icon { width: 1em; height: 1em; flex: none; }

/* Keyboard focus (never remove outlines without a replacement) */
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ---- Utilities ---------------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 10px; top: -60px;
  z-index: 10000;
  padding: 12px 18px;
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: top .2s;
}
.skip-link:focus { top: 10px; }

/* Anchor targets sit below nothing sticky — no offset needed. */

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