/* Base: reset leve, tipografia, foco visível e acessibilidade. [dono: agente de design] */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--fonte); font-size: var(--texto); line-height: var(--altura-linha);
  color: var(--cor-texto); background: var(--cor-fundo);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "kern";
}
a { color: var(--cor-destaque); text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--fonte-titulo); font-weight: var(--peso-semi); letter-spacing: var(--espaco-letra-titulo); line-height: 1.2; }
h1 { font-size: var(--texto-gg); font-weight: var(--peso-negrito); }
h2 { font-size: var(--texto-g); }
h3 { font-size: var(--texto-m); letter-spacing: -.01em; }
h4 { font-size: var(--texto); }
small { font-size: var(--texto-p); }
b, strong { font-weight: var(--peso-semi); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { -webkit-appearance: none; appearance: none; }
img, video, canvas { display: block; max-width: 100%; }
svg.icone { display: inline-block; flex: none; vertical-align: -0.22em; }
table { border-spacing: 0; }
hr { border: 0; }
[hidden] { display: none !important; }

/* Foco só para teclado (mouse/toque não mostra o anel). */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cor-destaque); outline-offset: 2px; }

::selection { background: var(--cor-destaque-suave); }
::placeholder { color: var(--cor-texto-3); opacity: 1; }

/* Números alinhados em tabelas e métricas. */
.num, .metrica-valor, .tabela td.num, time { font-variant-numeric: tabular-nums; }

/* Texto só para leitor de tela. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Rolagem discreta no computador. */
@media (hover: hover) and (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: var(--cor-preenchimento-forte) transparent; }
}

/* Quem pediu menos movimento no aparelho não vê animação. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
