/* ─────────────────────────────────────────────────────────────────────────
   Self-hosted typefaces.
   Loaded by the public site, the monitor app, the CMS and the printed
   reports. One file, so a font change happens in one place.

   WHY SELF-HOSTED, NOT THE GOOGLE FONTS API:
   Loading from fonts.googleapis.com transmits every visitor's IP address to
   Google before they have consented to anything. In January 2022 the
   Regional Court of Munich (LG Munchen I, 3 O 17493/20) held that this
   breaches the GDPR. Serving the files ourselves removes the transfer
   entirely - no request leaves the visitor's browser for a third party, so
   there is nothing to disclose and nothing to consent to.

   WHY THE ORIGINAL .ttf FILES AND NOT SUBSET .woff2:
   These are the complete, byte-for-byte unmodified files as released by
   their authors (from github.com/google/fonts). That matters legally.
   Under the SIL Open Font License FAQ 2.6, "removing any parts of the font
   when delivering a webfont to a browser, including unused glyphs and smart
   font code, is considered modification" - and a Modified Version may not
   keep a Reserved Font Name. Three of these families carry one: Orbitron
   ("Orbitron"), Share Tech Mono ("Share") and IBM Plex Sans Hebrew
   ("Plex"). Subsetting them would have meant renaming them.

   Shipping the originals sidesteps that question completely: nothing is
   modified, so every family keeps its own name and the licence position is
   unambiguous. The cost is size, and it is small - the three families the
   product actually loads by default come to about 200KB, roughly 100KB over
   the compression that fonts/.htaccess turns on.

   The OFL text and the per-family copyright notices ship in licenses/, as
   redistribution requires. See licenses/Fonts-Copyright-Notices.txt.

   Paths below are relative to THIS file, so they resolve correctly whether
   the product sits at a domain root or in a subdirectory.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Display / headings. Variable, 400-900. ── */
@font-face {
  font-family: 'Orbitron';
  src: url('../fonts/Orbitron-VF.ttf') format('truetype-variations'),
       url('../fonts/Orbitron-VF.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* ── Body text, Hebrew + Latin. Variable, 100-900. ── */
@font-face {
  font-family: 'Heebo';
  src: url('../fonts/Heebo-VF.ttf') format('truetype-variations'),
       url('../fonts/Heebo-VF.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Monospace: figures, IDs, timestamps. Single weight. ── */
@font-face {
  font-family: 'Share Tech Mono';
  src: url('../fonts/ShareTechMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── The remaining families are CMS typography options. A browser only
      downloads a font it is actually asked to render, so declaring them
      here costs nothing until an operator selects one. ── */

@font-face {
  font-family: 'Assistant';
  src: url('../fonts/Assistant-VF.ttf') format('truetype-variations'),
       url('../fonts/Assistant-VF.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rubik';
  src: url('../fonts/Rubik-VF.ttf') format('truetype-variations'),
       url('../fonts/Rubik-VF.ttf') format('truetype');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Hebrew';
  src: url('../fonts/NotoSansHebrew-VF.ttf') format('truetype-variations'),
       url('../fonts/NotoSansHebrew-VF.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Sans Hebrew has no variable release; three static weights cover
   the 400 / 600 / 700 the typography editor offers. */
@font-face {
  font-family: 'IBM Plex Sans Hebrew';
  src: url('../fonts/IBMPlexSansHebrew-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Hebrew';
  src: url('../fonts/IBMPlexSansHebrew-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Hebrew';
  src: url('../fonts/IBMPlexSansHebrew-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Secular One';
  src: url('../fonts/SecularOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suez One';
  src: url('../fonts/SuezOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
