/* ============================================================
 * farpa DS · typography families · v1.1.0
 * ------------------------------------------------------------
 * Display: Fraunces (serif moderna · expressiva)
 * Sans:    IBM Plex Sans (técnica · neutra · multi-script)
 * Mono:    IBM Plex Mono (código · diff · log)
 * Grotesk: Space Grotesk Variable (wordmark · self-hosted · ADR pendente)
 *
 * Fraunces + Plex Sans + Plex Mono via Google Fonts (legado · revisar Onda 3).
 * Space Grotesk self-hosted (decisão Founder 2026-05-10 · gate S→B item 5)
 * para evitar leak GDPR · zero DNS lookup externo · edge-first.
 * Fallbacks system-ui-first para primeira-renderização rápida (FCP) sem flicker.
 * ============================================================ */

@import url('./fonts.css');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --font-display: 'Fraunces',
                  'Iowan Old Style',
                  'Apple Garamond',
                  Baskerville,
                  'Times New Roman',
                  'Droid Serif',
                  Times,
                  serif;

  --font-sans:    'IBM Plex Sans',
                  -apple-system,
                  BlinkMacSystemFont,
                  'Segoe UI',
                  Roboto,
                  'Helvetica Neue',
                  Arial,
                  sans-serif;

  --font-mono:    'IBM Plex Mono',
                  ui-monospace,
                  'SF Mono',
                  Menlo,
                  Consolas,
                  'Liberation Mono',
                  monospace;

  /* Wordmark family · uso restrito ao .farpa-nav__brand-text e similares.
   * Decisão Founder ratificada 2026-05-10: wordmark = Space Grotesk weight 900
   * com `.ai` weight 300. Não usar em body text. */
  --font-grotesk: 'Space Grotesk Variable',
                  'Space Grotesk',
                  -apple-system,
                  BlinkMacSystemFont,
                  'Segoe UI',
                  system-ui,
                  sans-serif;
}

/* Default body font · sans para UI · respira melhor */
body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Headings · display por padrão · expressivo */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-feature-settings: 'opsz' auto;
}

h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
}

code, kbd, pre, samp {
  font-family: var(--font-mono);
}
