/**
 * RESET CSS MODERNO & ACESSÍVEL
 * Casamento Geovana & Lourenço
 */

/* 1. Box sizing universal */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. Suavização de fontes e rolagem */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  font-size: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* 3. Corpo e altura mínima */
body {
  min-height: 100svh;
  line-height: var(--leading-normal);
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}

/* 4. Mídias responsivas */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 5. Herança em formulários e botões */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

/* 6. Listas e âncoras */
ul, ol {
  list-style: none;
}

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

/* 7. Desativação de animações para preferências de acessibilidade */
@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;
  }
}
