/* Google Fonts — Arabic voice system, one companion per Latin voice.
   (@import must precede all other rules per CSS spec.) */
@import url('https://fonts.googleapis.com/css2?family=Lalezar&family=Playpen+Sans+Arabic:wght@200;300;400;500;600;700;800&family=Oi&family=Cascadia+Code:wght@400;700&display=swap');

/* ============================================================
   Silver Thumb Games — Webfonts
   Brand spec → loaded family:
   • Dusk display    Rushen               (single weight)
   • Surge display   Rushen               (single weight)
   • Warp display    Patuk Grent          (accent/glitch replacement)
   • Text & UI       JUST Sans            (ExLight–ExBold)
   • Mono / labels   HFGipbay Bold        (only the Bold cut is used)
   • Arabic — one companion per Latin voice (Google Fonts):
       Dusk & Surge   Lalezar              (single weight)
       Text & UI      Playpen Sans Arabic  (ExLight–ExBold)
       Warp           Oi                   (single weight)
       Mono           Cascadia Code
     Numerals always render in the Latin companion, even inside Arabic
     copy — see the STDigits-* unicode-range slices below.
   ============================================================ */

/* ---- Rushen (Dusk display, Surge display) ---- */
@font-face {
  font-family: 'Rushen';
  src: url('fonts/Rushen-Curvy.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

/* ---- JUST Sans (Text & UI) ---- */
@font-face {
  font-family: 'JUST Sans';
  src: url('fonts/JUST-Sans-ExLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('fonts/JUST-Sans-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('fonts/JUST-Sans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('fonts/JUST-Sans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('fonts/JUST-Sans-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('fonts/JUST-Sans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('fonts/JUST-Sans-ExBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

/* ---- Patuk Grent (Warp display) ---- */
@font-face {
  font-family: 'Patuk Grent';
  src: url('fonts/Patuk-Grent-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

/* ---- HFGipbay (Mono) — Bold cut only; serves every requested weight ---- */
@font-face {
  font-family: 'HFGipbay';
  src: url('fonts/HFGipbay-Bold.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
}

/* ---- Digit override: numerals (0–9) always render in the Latin companion
   face, even inside Arabic copy. Each block below reuses the SAME font file
   as its Latin voice, restricted via unicode-range to the digit codepoints,
   and is placed first in the matching --font-arabic-* stack in typography.css
   — so the browser composites digits from the Latin face and letters from
   the Arabic face within one run of text, automatically. ---- */
@font-face {
  font-family: 'STDigits-Rushen';
  src: url('fonts/Rushen-Curvy.otf') format('opentype');
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: 'STDigits-PatukGrent';
  src: url('fonts/Patuk-Grent-Regular.otf') format('opentype');
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: 'STDigits-JustSans';
  src: url('fonts/JUST-Sans-ExLight.otf') format('opentype');
  font-weight: 200;
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: 'STDigits-JustSans';
  src: url('fonts/JUST-Sans-Light.otf') format('opentype');
  font-weight: 300;
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: 'STDigits-JustSans';
  src: url('fonts/JUST-Sans-Regular.otf') format('opentype');
  font-weight: 400;
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: 'STDigits-JustSans';
  src: url('fonts/JUST-Sans-Medium.otf') format('opentype');
  font-weight: 500;
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: 'STDigits-JustSans';
  src: url('fonts/JUST-Sans-SemiBold.otf') format('opentype');
  font-weight: 600;
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: 'STDigits-JustSans';
  src: url('fonts/JUST-Sans-Bold.otf') format('opentype');
  font-weight: 700;
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: 'STDigits-JustSans';
  src: url('fonts/JUST-Sans-ExBold.otf') format('opentype');
  font-weight: 800;
  unicode-range: U+0030-0039;
}
