/* ============================================
   reset.css — Modern CSS Reset
   Based on Andy Bell's Modern CSS Reset
   + additional opinionated defaults
   ============================================ */

/* 1. Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin and padding */
* {
  margin: 0;
  padding: 0;
}

/* 3. Root & body defaults */
html {
  /* Prevent font size inflation on mobile */
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  /* Smooth scrolling */
  scroll-behavior: smooth;
}

body {
  /* Improve text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Sensible line height */
  line-height: 1.5;
  /* Prevent horizontal overflow */
  overflow-x: hidden;
  /* Full min height */
  min-height: 100vh;
}

/* 4. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 5. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* 6. Avoid text overflow */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 7. Remove list styles on ul, ol elements with a list role */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* 8. Remove default link styles */
a {
  text-decoration: none;
  color: inherit;
}

/* 9. Button reset */
button {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  line-height: inherit;
}

/* 10. Table reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 11. Remove default fieldset styles */
fieldset {
  border: none;
}

/* 12. Accessible hidden utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 13. Improved focus styles (remove :focus, keep :focus-visible) */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* 14. Ensure SVGs don't have forced dimensions */
svg {
  fill: currentColor;
}

/* 15. Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
