/* ============================================================
   Modern CSS Reset
   A leaner, more thoughtful version of the old `* { margin: 0 }`
   approach. Smooths out browser inconsistencies without
   nuking useful defaults.
   ============================================================ */

/* Use border-box sizing everywhere — pads and borders count
   toward the declared width/height. Saves you from constant
   "why is this 4px too wide" headaches. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Strip default margins. We'll add space back deliberately. */
body,
h1, h2, h3, h4, h5, h6,
p,
figure,
blockquote,
dl, dd {
  margin: 0;
}

/* Make body sensible by default. */
body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings inherit a tighter line-height — display text
   shouldn't be as airy as body copy. */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  text-wrap: balance;
}

/* Media should never overflow its container. */
img,
picture,
video,
canvas,
svg,
iframe {
  display: block;
  max-width: 100%;
}

/* Form elements should inherit fonts — browsers love
   to serve up their own. */
input,
button,
textarea,
select {
  font: inherit;
}

/* Avoid orphaned single words on long lines. */
p {
  text-wrap: pretty;
}

/* Respect 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;
  }
}
