/* Reset curto + tipografia base. Nenhuma tela escreve style proprio. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

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

/* CRITICO: sem isto o form cai pra Arial no Windows. */
button, input, select, textarea { font-family: inherit; }

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

a { color: var(--cor-primaria); text-decoration: none; }
a:hover { color: var(--cor-primaria-hover); text-decoration: underline; }

img, svg { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--cor-primaria);
  outline-offset: 2px;
}

.visualmente-oculto {
  position: absolute;
  left: -9999px;
}
