/* =====================================================================
   FONTS — Gleidson Andrade (GLE-63 · performance de fontes / Core Web Vitals)
   Self-hosted variable fonts, latin subset, woff2. Substitui o request
   render-blocking a fonts.googleapis.com + fonts.gstatic.com.

   Por que self-host:
   - Elimina 2 conexões de terceiros (DNS+TCP+TLS) no caminho crítico.
   - Remove CSS render-blocking externo → melhora FCP/LCP.
   - Controle total de font-display e preload.
   - Sem exposição de IP do visitante ao Google (LGPD/GDPR).

   Um arquivo por família cobre TODO o eixo de peso (fontes variáveis):
     inter-var.woff2         48 KB   pesos 400–700  (corpo)
     sora-var.woff2          25 KB   pesos 400–800  (display)
     jetbrainsmono-var.woff2 31 KB   pesos 400–500  (dados/mono)
   Total ~104 KB (latin). Fonte: Google Fonts, subset latin (cobre
   U+0000–00FF incl. acentos PT-BR + U+2000–206F pontuação: — “ ” … ).

   Produção (SSG): sirva /fonts/*.woff2 no mesmo domínio, com
   Cache-Control: public, max-age=31536000, immutable. Ajuste os
   caminhos src() abaixo se a pasta mudar.
   ===================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;      /* eixo variável */
  font-display: swap;
  src: url("inter-var.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("sora-var.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("jetbrainsmono-var.woff2") format("woff2");
}

/* ---------------------------------------------------------------------
   Fallback com métricas casadas (zero-CLS).
   "Inter Fallback" = Arial local() reajustado para ocupar exatamente o
   mesmo espaço do Inter. Enquanto o Inter (swap) carrega, o texto usa
   este fallback; ao trocar, NÃO há layout shift. Deve vir DEPOIS de
   "Inter" no --font-body (senão o Arial seria usado no lugar do webfont).
   Overrides: fontaine/Next.js (Inter × Arial).
   --------------------------------------------------------------------- */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0.00%;
  size-adjust: 107.12%;
}
