/* ============================================================
   TIA BETE BOLOS — Reset CSS
   Normalização consistente entre navegadores
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

p {
  line-height: var(--leading-relaxed);
}

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

/* Listas */
ul, ol {
  list-style: none;
}

/* Mídia */
img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Formulários */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tabelas */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Acessibilidade: foco visível para navegação por teclado */
:focus-visible {
  outline: 2px solid var(--color-bordo);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Seleção de texto */
::selection {
  background-color: var(--color-rosa);
  color: var(--color-bordo-dark);
}

/* Scrollbar customizada (Webkit) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-creme-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-rosa);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-bordo-light);
}

/* Reduz animações para quem prefere */
@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;
  }
}
