/* ============================================================
   Round — Modern reset
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* Lenis drives smooth scroll in JS; keep native auto as the no-JS/reduced-motion fallback */
}

body {
  min-height: 100svh;
  /* Bloqueia o zoom por duplo toque. O Safari iOS ignora user-scalable=no na
     meta viewport, e touch-action e o unico caminho que ele respeita. */
  touch-action: pan-x pan-y;
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, p {
  overflow-wrap: break-word;
}

#root, #__next {
  isolation: isolate;
}

/* ---- Reduced motion: global kill-switch --------------------------------
   Broad safety net. Marquee / parallax scrub also have explicit JS
   branches (utils.js prefersReducedMotion) because they have functional
   side effects a shorter duration alone can't undo. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

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