/* Archivo (SIL OFL 1.1, ver static/fonts/OFL-Archivo.txt): um arquivo variável, peso e largura. */
@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/archivo-latin-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1; overflow-x: clip; } /* brilhos decorativos nunca geram rolagem lateral */

h1, h2, h3 { font-weight: 800; font-stretch: var(--largura-titulo); letter-spacing: -0.03em; line-height: 1.04; margin: 0 0 var(--esp-3); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 7.4vw, 4.6rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(1.75rem, 4.4vw, 2.9rem); }
h3 { font-size: 1.12rem; font-weight: 700; font-stretch: 108%; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: var(--esp-2); }

p { margin: 0 0 var(--esp-3); }
a { color: var(--destaque-tinta); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
::selection { background: var(--destaque); color: var(--destaque-texto); }

.texto-suave { color: var(--texto-suave); }
.dados { font-family: var(--fonte-dados); }

/* Rótulo pequeno: só no painel (contexto de dados), nunca acima de título da vitrine. */
.rotulo {
  display: inline-block; margin-bottom: var(--esp-2);
  font-weight: 600; font-size: 0.85rem; line-height: 1.6; color: var(--destaque-tinta);
}

.caixa {
  position: relative; background: var(--painel);
  border: 1px solid var(--borda); border-radius: var(--raio); padding: var(--esp-4);
}

:focus-visible { outline: 2px solid var(--destaque); outline-offset: 3px; border-radius: 4px; }
a:hover { color: var(--texto); }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* o atributo hidden sempre vence o display de qualquer classe */
[hidden] { display: none !important; }
