/* Reset minimo + tipografia da casa. */

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

/* Fix: o attribute hidden do HTML nao esconde quando o CSS define display:flex/grid.
   Reforca globalmente pra qualquer elemento com hidden ficar oculto de verdade. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

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

/* CRITICO: sem isso, form cai pra Arial/-apple-system. */
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;
}

p { margin: 0; }

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

::selection {
  background: var(--accent-soft);
  color: var(--text);
}
