/* =========================================================================
   Base — reset leve + estilos de elementos. Importa depois de tokens.css.
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: var(--lh-tight); font-weight: var(--fw-bold); }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }

p, li { max-width: var(--measure); }

a { color: var(--brand-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-primary-hover); }

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

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

/* Foco visível — nunca remover sem substituir */
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* Utilitário: conteúdo só para leitores de tela */
.u-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Container padrão */
.l-container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }

/* Respeitar preferência de 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; }
}
