/* base.css: reset, tipografia e fundo. Fonte da verdade: Sistema_de_Estilos.md.
 * Nenhuma cor literal aqui: sempre variavel de tokens.css. */

*, *::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(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Critico: sem isto, form vai pra Arial/-apple-system. Ver Font_Inherit_em_Form. */
button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

p {
  margin: 0;
}

/* Icones Phosphor: alinhamento vertical consistente em qualquer contexto inline */
.ph, .ph-bold {
  line-height: 1;
  display: inline-flex;
  vertical-align: middle;
}

/* Mobile: input com font-size < 16px faz iOS dar zoom no foco (Responsividade_Sempre) */
@media (max-width: 520px) {
  input, select, textarea {
    font-size: 16px;
  }
}
