/* base.css
 * Reset, tipografia e utilitarios. Depois de tokens.css, antes de layout.css.
 */

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

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

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 600; }

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

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

/* Foco visivel e guardrail de acessibilidade: nunca remover outline sem
   substituir por indicacao equivalente (Escada_Preguica_de_Codigo:36). */
:focus-visible {
  outline: 2px solid var(--cor-primaria);
  outline-offset: 2px;
  border-radius: var(--raio-sm);
}

/* Icones Phosphor: tamanho e cor por classe, nunca style inline
   (Icones_Phosphor:102-111 e regra 4). */
.icon    { font-size: 1.1rem; line-height: 1; display: inline-flex; vertical-align: middle; }
.icon-sm { font-size: .9rem; }
.icon-md { font-size: 1.25rem; }
.icon-lg { font-size: 1.75rem; }
.icon-xl { font-size: 2.5rem; }

.icon-primaria { color: var(--cor-primaria); }
.icon-sucesso  { color: var(--verde); }
.icon-perigo   { color: var(--vermelho); }
.icon-fraco    { color: var(--texto-fraco); }

/* Utilitarios */
.oculto { display: none !important; }
.so-leitor {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.texto-fraco { color: var(--texto-fraco); }
.texto-suave { color: var(--texto-suave); }
.nowrap { white-space: nowrap; }

.elipse {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
