/*
 * TaxClue App — font tokens
 *
 * This file defines the three font TOKENS. It does NOT fetch anything.
 *
 * The faces themselves are requested with a plain <link> in each page <head>,
 * exactly as app/billing/erp/includes/header.php has always done:
 *
 *   <link rel="preconnect" href="https://fonts.googleapis.com">
 *   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 *   <link href="https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,900&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
 *
 * It used to be an @import INSIDE this file, and that was the bug. An @import
 * cannot be discovered until the stylesheet holding it has itself downloaded,
 * so the chain ran HTML -> fonts.css -> Google's CSS -> the woff2 files, three
 * round trips deep, and the preconnect hints in the <head> had nothing to warm
 * up. Every page painted in the fallback first and re-laid-out when the real
 * faces landed — ~3s of it on a LOCAL server, measured on a screen capture of
 * GST Returns on 11 Sep 2026.
 *
 * Consumers that must carry the <link> — keep this list current, there is no
 * shared partial on purpose: app/, app/billing/ and app/ess/ are uploaded as
 * separate bundles, and a cross-tree require() would fatal whenever only one
 * of them is deployed.
 *   app/includes/header.php         app/login.php
 *   app/forgot-password.php         app/reset-password.php
 *   app/change-password.php         app/preferences.php
 *   app/ess/login.php               app/ess/inc/layout.php
 *   app/billing/includes/header.php (billing keeps its own twin of this file)
 *   app/billing/erp/includes/header.php
 *
 * Only the weights the CSS actually uses are requested (400/500/600/700 plus
 * DM Sans 800 for .btn-login and Fraunces 900 for .stat-val). Inter and Space
 * Grotesk used to sit in the URL as well; no rule in any stylesheet in this
 * tree references either, so they were pure download.
 */

/* ── Font variables ──
   Stacks are taken verbatim from app/billing/erp/assets/css/taxclue-erp.css
   (--kqF / --kqM / --font-head) so the ERP shell and the practice app fall
   back to the same faces while the webfonts are in flight.

   The old mono fallback listed 'Fira Code' and 'Cascadia Code' ahead of the
   system default, which is why the pre-swap flash rendered in Cascadia —
   slashed zero and all — on any machine with Windows Terminal installed. */
:root {
    --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
