/* ============================================================
   RESET CSS — Base moderna e previsível
   Inspirado em Andy Bell + Josh Comeau
   ============================================================ */

/* Box-sizing consistente em tudo */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Zera margens padrão */
* {
  margin: 0;
}

/* Permite rolagem suave por âncoras */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Corpo: ocupa a tela toda, renderização de fonte suavizada */
body {
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Mídia se comporta como bloco e nunca estoura o container */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Elementos de formulário herdam a tipografia */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Quebra palavras longas para não estourar o layout */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Títulos com peso/altura de linha equilibrados */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.1;
  text-wrap: balance;
}

/* Links sem sublinhado por padrão (estilizados no tema) */
a {
  color: inherit;
  text-decoration: none;
}

/* Listas sem marcadores por padrão */
ul,
ol {
  list-style: none;
  padding: 0;
}

/* Cria um contexto de empilhamento isolado no root */
#root,
#__next {
  isolation: isolate;
}

/* Respeita quem prefere menos movimento */
@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;
  }
}
