/* base.css - reset + tipografia (Sistema_de_Estilos) */

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

html, body { margin: 0; padding: 0; }

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

/* CRITICO: sem isso, form vai pra Arial (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(--text);
  line-height: 1.2;
  margin: 0 0 var(--sp-3);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.icon { font-size: 1.1rem; line-height: 1; display: inline-flex; vertical-align: middle; }
.icon-sm { font-size: 0.9rem; }
.icon-md { font-size: 1.25rem; }
.icon-lg { font-size: 1.75rem; }
.icon-xl { font-size: 2.5rem; }
.icon-accent { color: var(--accent); }
.icon-muted { color: var(--text-fraco); }

/* Flash messages */
.flashes { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 12px 16px; border-radius: var(--raio-sm); font-size: var(--fs-sm); font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sombra);
  border-left: 4px solid var(--accent);
}
.flash.error   { border-left-color: var(--danger); }
.flash.warning { border-left-color: var(--warning); }
.flash.success { border-left-color: var(--success); }

/* texto so pra leitor de tela (ex.: "abre em outra aba" nos links externos do menu) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
