/**
 * RASEEKH self-hosted brand fonts.
 *
 * Confirmed by the client as the official brand typefaces ("دي الخطوط
 * المعتمدة — عربي وانجلش"): Tajawal for Arabic, Calibri for English.
 *
 * Tajawal (SIL Open Font License) is embedded here directly and served as
 * a live @font-face on the public site — its license permits that without
 * restriction.
 *
 * Calibri is a Microsoft-owned commercial font. Its .ttf files are kept in
 * this theme (assets/fonts/calibri-original/) for document/image exports
 * only — never redistributed to site visitors as a live @font-face,
 * because that would need a separate Microsoft/Monotype web-font license
 * that has not been confirmed for this project. For the LIVE website's
 * English typeface this file instead uses Carlito: an SIL-OFL, open-
 * licensed font built to be metrically identical to Calibri (same glyph
 * widths/line-height, so English text renders pixel-for-pixel the same
 * layout as real Calibri would) - a safe substitute until/unless a real
 * Calibri web-font license is confirmed, at which point this file's
 * `font-family: 'Calibri'` blocks below can point at
 * assets/fonts/calibri-original/ instead with no other changes needed.
 *
 * See the project's "brand-fonts-decision" note for the full writeup of
 * this decision.
 */

/* FONTS-PERF-001 (2026-09-28): client reported the site feels heavy.
 * Every face below now lists a WOFF2 file first (Brotli-compressed web
 * format, supported by every current browser) with the original TTF kept
 * as a fallback. Tajawal: same glyphs/code points/Arabic shaping as the
 * TTF, ~56KB -> ~19KB per weight. Carlito (English): subset to Latin +
 * the punctuation/symbols the site's own text uses (checked against all
 * site copy, 0 characters dropped), ~630-800KB -> ~27KB per weight.
 * Anything outside that subset falls back to Tajawal, like before. */

/* ---------- Tajawal (Arabic) - self-hosted, OFL, live @font-face ---------- */

@font-face {
  font-family: 'Tajawal';
  src: url('tajawal/Tajawal-ExtraLight.woff2') format('woff2'), url('tajawal/Tajawal-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('tajawal/Tajawal-Light.woff2') format('woff2'), url('tajawal/Tajawal-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('tajawal/Tajawal-Regular.woff2') format('woff2'), url('tajawal/Tajawal-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('tajawal/Tajawal-Medium.woff2') format('woff2'), url('tajawal/Tajawal-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('tajawal/Tajawal-Bold.woff2') format('woff2'), url('tajawal/Tajawal-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('tajawal/Tajawal-ExtraBold.woff2') format('woff2'), url('tajawal/Tajawal-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('tajawal/Tajawal-Black.woff2') format('woff2'), url('tajawal/Tajawal-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Calibri (English, brand-approved) ----------
 * Live site: served via Carlito (open-licensed, metric-compatible).
 * Real Calibri stays in assets/fonts/calibri-original/ for
 * document/image-export use only - see the note above.
 */

@font-face {
  font-family: 'Calibri';
  src: url('carlito/Carlito-Regular.woff2') format('woff2'), url('carlito/Carlito-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Calibri';
  src: url('carlito/Carlito-Italic.woff2') format('woff2'), url('carlito/Carlito-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Calibri';
  src: url('carlito/Carlito-Bold.woff2') format('woff2'), url('carlito/Carlito-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Calibri';
  src: url('carlito/Carlito-BoldItalic.woff2') format('woff2'), url('carlito/Carlito-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
