/* ==========================================================================
   reset.css — Small modern reset
   Opinionated defaults only; no heavy normalize. Loaded before tokens/base.
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

/* Media defaults to block + responsive so nothing overflows its column.     */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Inherit fonts on form controls — no surprise platform styling.            */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Avoid overflow from long words / URLs.                                    */
p,
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}

/* Remove list semantics styling where we opt classes in.                    */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* Respect reduced motion globally — JS adds further guards.                 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
