/* ==========================================================================
   Base: reset leve, tipografia, foco visivel, movimento reduzido (T-031, T-043)
   Escala tipografica contida: corpo 14px, h1 22px, h2 16px, h3 14px.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: hsl(var(--fundo));
  color: hsl(var(--texto));
  font-family: var(--f-sans);
  font-size: .875rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0 0 .375rem; font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
h1 { font-size: 1.375rem; }
h2 { font-size: 1rem; }
h3 { font-size: .875rem; }
p { margin: 0 0 .75rem; }
a { color: hsl(var(--primaria)); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, .mono { font-family: var(--f-mono); font-size: .875em; }
small, .suave { color: hsl(var(--texto-suave)); }
small { font-size: .8125rem; }

/* rotulo de secao como no site da ENPRO: traco curto + texto pequeno em maiusculas */
.eyebrow { display: flex; align-items: center; gap: .5rem; margin: 0 0 .375rem; font-family: var(--f-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--texto-suave)); }
.eyebrow::before { content: ""; width: 1rem; height: 1px; background: var(--cta); flex: none; }

/* !important: regras como ".campo input { width: 100% }" ganhavam em especificidade e o input oculto alargava a pagina (T-043) */
.oculto-visual { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0); white-space: nowrap; border: 0 !important; }
[hidden] { display: none !important; }

:focus-visible { outline: none; box-shadow: var(--anel-foco); border-radius: var(--raio-p); }

::selection { background: hsl(var(--primaria) / .35); }

/* barras de rolagem discretas */
* { scrollbar-width: thin; scrollbar-color: hsl(var(--borda-forte)) transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
