/* ============================================================================
   LuxeChain - font faces
   Self-hosted on purpose: the page must never depend on Google Fonts
   reaching the phone. (admin/invoice.html still pulls Google Fonts for a
   print-only document; everything else is local.)

   TYPE SYSTEM NOTE - this is the important part.
   The brief asks for San Francisco (SF Pro). SF Pro is a *system* font: it
   ships inside macOS and iOS and cannot be redistributed, so it cannot be
   served from this box and will not exist on Android or Windows. It is used
   through `-apple-system` / `BlinkMacSystemFont` instead, which is exactly
   how Apple's own web properties do it.

   That means on Rahul's Android phone and the car screen - the devices he
   actually tests on - the browser would otherwise fall through the stack to
   generic `sans-serif` (Roboto). Roboto is noticeably narrower and more
   condensed than SF, so the "Apple look" would evaporate on the two screens
   that matter most.

   Inter fixes that: it is an open-source font designed against the same
   neo-grotesque metrics as SF Pro, self-hosted here at 344 KB with a true
   variable weight axis (100–900), so it is visually near-identical to SF and
   identical on every platform. The resulting stack is:

       SF Pro (Apple devices, via -apple-system)
         -> Inter (everyone else, self-hosted here)

   Both are 400/500/600 in the same optical register, so line lengths and
   table columns do not jump between platforms.
   ============================================================================ */

/* Inter Variable - the cross-platform SF stand-in.
   One file, full weight range, so 500-weight buttons and 600-weight headings
   cost nothing extra. font-display:swap means no invisible-text flash. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-var-latin.woff2") format("woff2-variations"),
       url("/static/fonts/inter-var-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;
}

/* JetBrains Mono - unchanged. Monospace is a deliberate second voice for
   model IDs, API keys, token counts and code. Apple's own developer tooling
   takes the same approach (SF Mono alongside SF Pro); a proportional font for
   a copyable API key is actively worse. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/static/fonts/jbm-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: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/static/fonts/jbm-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Plus Jakarta Sans is retired as the primary face but kept declared for one
   release: any cached HTML that still asks for it degrades to Inter-family
   metrics rather than a bare serif. Safe to delete once caches expire. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/pjs-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;
}
