/*!
 * css/_reset.css
 * Modern minimal reset · WCAG-aware · 2026-05
 */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Honor user's reduced motion preference */
}

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

body {
  min-height: 100vh;
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button { background: none; border: 0; cursor: pointer; }

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

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

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

table { border-collapse: collapse; }

/* Improved focus visibility · keyboard accessibility · WCAG 2.1 AA */
:focus-visible {
  outline: 2px solid var(--c-signal-d);
  outline-offset: 2px;
  /* Box-shadow gives a contrasting halo for visibility on both light and dark bg */
  box-shadow: 0 0 0 4px rgba(0, 136, 80, .25);
}

/* Hide content visually but keep it for screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
