/* Fontes auto-hospedadas (SIL OFL 1.1 — ver OFL-*.txt). Subsets latin + latin-ext (PT/EN/IT). */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('space-grotesk-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('space-grotesk-latin.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; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('space-mono-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('space-mono-400-latin.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; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('space-mono-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('space-mono-700-latin.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; }

/* ---------- LAPA Grotesk (fonte proprietária do Estúdio LAPA, v2.400) — SÓ para a marca (wordmark), nunca para texto ---------- */
/* display unicase, eixo wght 300–900. block: a marca nunca aparece numa fonte errada (18 KB, pré-carregada). Métricas fixas = mesma caixa em qualquer navegador. */
@font-face { font-family: 'LAPA Grotesk'; font-style: normal; font-weight: 300 900; font-display: block; src: url('lapa-grotesk/LAPAGrotesk-VF.woff2?v=2.400') format('woff2'); ascent-override: 98%; descent-override: 26%; line-gap-override: 0%; }

/* Wordmark vivo: <span class="lapa-mark" aria-hidden="true"><span class="logo-la">La</span><span class="logo-pa">Pa</span></span>
   dentro de um <a aria-label="LAPA — início">. Cor = currentColor. Tamanho = --mark-h (altura da marca; 24px no nav, igual ao PNG).
   Pesos: La 400 · Pa 600 (calibrado por sobreposição com assets/lapa-logo-hd.png, IoU ~0,91). */
.lapa-mark {
  --mark-h: 24px; --la: 400; --pa: 600;
  font-family: 'LAPA Grotesk', 'Space Grotesk', system-ui, sans-serif;
  font-size: calc(var(--mark-h) / 0.715); font-weight: 700; font-style: normal; line-height: 1;
  letter-spacing: 0; text-transform: none; font-kerning: normal; font-feature-settings: normal;
  display: inline-flex; align-items: center; justify-content: flex-start; white-space: nowrap;
  width: 1.56em; margin-inline: -0.037em;   /* largura fixa (a marca respira sem empurrar o layout); margem negativa tira o respiro lateral da fonte: a tinta ocupa ~50px como o PNG */
  height: 1em; color: inherit; user-select: none; -webkit-user-select: none;
  font-synthesis: none; -webkit-font-smoothing: antialiased; text-decoration: none;
}
a:has(> .lapa-mark) { text-decoration: none; }
.lapa-mark > span { display: inline-block; transition: font-variation-settings 300ms cubic-bezier(0.16, 1, 0.3, 1); }
.lapa-mark .logo-la { font-variation-settings: 'wght' var(--la); }
.lapa-mark .logo-pa { font-variation-settings: 'wght' var(--pa); }
/* acomodação ao carregar: do fino ao peso final, uma vez (≤ 600 ms) */
.lapa-mark.is-settle .logo-la { animation: lapa-settle-la 560ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.lapa-mark.is-settle .logo-pa { animation: lapa-settle-pa 560ms cubic-bezier(0.16, 1, 0.3, 1) 40ms backwards; }
@keyframes lapa-settle-la { from { font-variation-settings: 'wght' 300; } to { font-variation-settings: 'wght' var(--la); } }
@keyframes lapa-settle-pa { from { font-variation-settings: 'wght' 300; } to { font-variation-settings: 'wght' var(--pa); } }
/* hover/foco (só ponteiro fino): La e Pa trocam de peso com suavidade (300 ms) */
@media (hover: hover) and (pointer: fine) {
  a:is(:hover, :focus-visible) > .lapa-mark { --la: 540; --pa: 470; }
}
@media (prefers-reduced-motion: reduce) {
  .lapa-mark > span { transition: none !important; animation: none !important; }
  a:is(:hover, :focus-visible) > .lapa-mark { --la: 400; --pa: 600; }
}
