/* =========================================
   RESET — reset.css
   ========================================= */

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

html {
  scroll-behavior:       smooth;
  -webkit-text-size-adjust: 100%;
  /* overflow-x:hidden on html is the most reliable Android fix.
     overflow-x:clip does NOT work on html — use hidden here. */
  overflow-x: hidden;
}

body {
  font-family:      var(--font-primary);
  background-color: var(--bg);
  color:            var(--text-primary);
  overflow-x:       hidden;
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* No position:relative here — conflicts with preloader fixed lock */
}

img,
video {
  display:   block;
  max-width: 100%;
}

a {
  color:           inherit;
  text-decoration: none;
}

button {
  cursor:     pointer;
  border:     none;
  background: transparent;
  font:       inherit;
}

ul,
ol {
  list-style: none;
}

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