/* ============================================================================
   fonts.css — self-hosted Alice + Work Sans for the admin console.

   MASJID-ONLY. console.css deliberately ships no @import, so each host
   supplies its own faces: the marketing site links Google Fonts (tokens.css
   already does), and this console bundles them. Same reasoning as
   www/fonts/inter.woff2 and www/vendor/leaflet — a masjid committee member's
   browser should not have to reach a third party to render a page that
   handles congregant data.

   It also dodges a caching interaction specific to this repo: firebase.json
   sets `Cache-Control: no-cache, max-age=0` on *.@(js|css|html) but NOT on
   .woff2, so these files get Hosting's normal cache while the stylesheet that
   references them stays fresh. A Google Fonts chain would put a cross-origin
   DNS + TLS + CSS-then-font round trip in front of a stylesheet that is never
   cached — the worst combination for first paint.

   Both faces are SIL Open Font License 1.1, which permits redistribution.
   Files came from the same fonts.gstatic.com URLs the site's tokens.css
   resolves to, latin and latin-ext subsets only (124KB in total). Work Sans
   is the VARIABLE font, so one file covers weights 300-700.

   Subsetting further would need a build step, which this repo does not have.
   ========================================================================= */

/* ---- Alice — headings only (the Serif-Heads-Only rule) ------------------ */
@font-face{
  font-family:'Alice';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('../fonts/alice-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;
}
@font-face{
  font-family:'Alice';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('../fonts/alice-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;
}

/* ---- Work Sans — every functional string, and the timetable's digits -----
   Carries real tabular figures: with font-variant-numeric:tabular-nums,
   "5.11" and "8.48" measure identically, which is what keeps a 31-row
   timetable from jittering column to column. Verified, not assumed. */
@font-face{
  font-family:'Work Sans';
  font-style:normal;
  font-weight:300 700;
  font-display:swap;
  src:url('../fonts/work-sans-var-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;
}
@font-face{
  font-family:'Work Sans';
  font-style:normal;
  font-weight:300 700;
  font-display:swap;
  src:url('../fonts/work-sans-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;
}
