/*
 * base.css — fonte, reset e elementos. Só tokens, nenhum valor à mão (D20).
 */

/* Outfit variável (OFL 1.1, assets/fonts/LICENSE-Outfit.txt; @fontsource-variable/outfit 5.1.0, só o latim), servida daqui:
   sem Google Fonts, funciona sem internet (D80). */
@font-face {
  font-family: "Outfit Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/outfit-variavel.woff2") format("woff2-variations"), url("../fonts/outfit-variavel.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html { -webkit-text-size-adjust: 100%; height: 100%; scroll-padding-top: calc(var(--altura-cabecalho) + var(--esp-3)); } /* o link para #cartão não fica embaixo do cabeçalho fixo */

body {
  margin: 0;
  min-height: 100%;
  background: var(--cor-fundo);
  color: var(--cor-texto);
  font-family: var(--fonte-texto);
  font-feature-settings: var(--fonte-recursos);
  font-size: var(--texto-md);
  line-height: var(--altura-linha);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-forte);
  line-height: var(--altura-linha-titulo);
  text-wrap: balance;
  color: var(--cor-texto);
}
h1 { font-size: var(--texto-2xl); font-weight: var(--peso-titulo); letter-spacing: var(--espaco-letras-titulo); }
h2 { font-size: var(--texto-xl); letter-spacing: var(--espaco-letras-secao); }
h3 { font-size: var(--texto-lg); }
h4 { font-size: var(--texto-md); }
@media (max-width: 767px) { h1 { font-size: var(--texto-2xl-celular); } }

p { margin: 0; }
p + p { margin-top: var(--esp-3); }

a { color: var(--cor-marca); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--cor-marca-forte); text-decoration: underline; }

ul, ol { margin: 0; padding-left: var(--esp-5); }
.lista-limpa { list-style: none; padding: 0; margin: 0; }

img, svg { max-width: 100%; display: inline-block; vertical-align: middle; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button { cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--cor-marca); }

table { border-collapse: collapse; width: 100%; }

code, kbd, pre { font-family: var(--fonte-mono); font-size: var(--texto-sm); }
code { overflow-wrap: anywhere; } /* endereço longo (http://…/entrar/google/volta) não empurra a tela no celular */
pre { overflow-x: auto; padding: var(--esp-3); background: var(--cor-superficie-2); border-radius: var(--raio-md); }

hr { border: 0; border-top: var(--borda-fina) solid var(--cor-borda); margin: var(--esp-5) 0; }

small, .texto-pequeno { font-size: var(--texto-sm); line-height: 1.3846; }
.texto-suave { color: var(--cor-texto-suave); }
.texto-fraco { color: var(--cor-texto-fraco); }
.texto-forte { font-weight: var(--peso-forte); }
.texto-mono { font-family: var(--fonte-mono); font-size: var(--texto-sm); }
.num { font-variant-numeric: tabular-nums; }
.espaco-abaixo { margin-bottom: var(--esp-4); }
/* Rótulo de grupo: frase normal, pequena e suave (o design system não usa caixa alta). */
.rotulo {
  font-size: var(--texto-xs);
  font-weight: var(--peso-medio);
  color: var(--cor-texto-suave);
}

/* Foco de teclado: anel verde de 2px com 2px de folga na cor da página, em tudo que recebe foco. */
:focus-visible { outline: var(--borda-grossa) solid transparent; outline-offset: 2px; box-shadow: var(--anel-foco); }

.visualmente-oculto {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

[hidden] { display: none !important; }

/* Pilha e fileira: espaçamento por gap, nunca por margens soltas */
.pilha { display: flex; flex-direction: column; gap: var(--esp-4); }
.pilha--justa { gap: var(--esp-2); }
.pilha--larga { gap: var(--esp-5); }
.fileira { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-3); }
.fileira--espacada { justify-content: space-between; }
.fileira--fim { justify-content: flex-end; }
.fileira--larga { gap: var(--esp-6); }
.cresce { flex: 1 1 auto; min-width: 0; }

/* Ícones Lucide (traço 2, 24×24): 16px no texto, 20px nos títulos e alertas */
.icone { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icone--grande { width: 1.25rem; height: 1.25rem; }
