/* --------------------------------------------------------
   Modern CSS Reset — 2025 edition
   Inspired by Andy Bell’s “Modern CSS Reset”, Josh Comeau’s
   refinements, and Normalize.css.  Public domain.
   -------------------------------------------------------- */

/* 1. Use a more intuitive box-model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
picture,
ul,
ol,
dl,
blockquote {
  margin: 0;
}

/* 3. Remove default padding from lists that have a class */
ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

/* 4. Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* 5. Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 6. Make images easier to work with */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* 8. Remove animations, transitions & smooth scroll for people that prefer not to see them */
@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;
  }
}

/* 9. Remove link underlines unless hovered or focused */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: inherit;
}

a:not([class]):where(:hover, :focus) {
  text-decoration: underline;
}

/* 10. Respect user’s system dark mode preference */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

/* 11. Create a root stacking context to avoid z-index mishaps */
:root {
  isolation: isolate;
}