/* Modern CSS Reset (accessibility-friendly) */

/* 1) Consistent box model */
*, *::before, *::after { box-sizing: border-box; }

/* 2) Remove default margin */
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }

/* 3) Better defaults */
html:focus-within { scroll-behavior: smooth; }
body { min-height: 100vh; text-rendering: optimizeLegibility; }

/* 4) Lists with role list (common in nav) */
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

/* 5) Images/media */
img, picture, video, canvas, svg { display: block; max-width: 100%; }

/* 6) Inherit fonts for form controls */
input, button, textarea, select { font: inherit; }

/* 7) Links */
a { color: inherit; text-decoration-skip-ink: auto; }

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