/* ==========================================================================
   base.css — reset leve + tipografia + body
   ========================================================================== */

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* CRÍTICO — sem isso, form vai pra Arial (Windows) ou -apple-system (Mac).
   Regra Sistema_de_Estilos + Font_Inherit_em_Form. */
button, input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-titulo);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--texto);
  line-height: 1.2;
  margin: 0;
}

p { margin: 0 0 var(--sp-3); }

a {
  color: var(--accent-texto);   /* 4.69:1 em fundo branco (WCAG AA) */
  text-decoration: none;
  transition: color var(--transicao);
}
a:hover { color: var(--accent-escura); }

img { max-width: 100%; display: block; }

/* Foco visível padronizado (acessibilidade) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--raio-sm);
}
