/*
 * Event landing-page font catalog.
 *
 * Loaded only on the event detail page (admin preview + public) via
 * a <link> tag in the page head. Each family is declared with the
 * minimum weights needed for headings, body, and emphasis (300 /
 * 400 / 700). `font-display: swap` shows fallback text instantly
 * while the family downloads, so there's no FOIT during the swap.
 *
 * @font-face declarations are LAZY — the browser only downloads the
 * weights actually applied via `font-family` on a rendered element.
 * That means an event using "tajawal" downloads just the Tajawal
 * files; the other nine families stay on disk.
 *
 * Adding a family: drop a folder under `/public/event-fonts/<slug>/`
 * with files named `<slug>-<weight>.<ext>`, append a block here, and
 * register it in `src/lib/event-fonts.ts`.
 */

/* ── Almarai (modern Arabic sans, popular for body) ───────────── */
@font-face { font-family: 'Almarai'; font-weight: 300; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/almarai/almarai-300.ttf') format('truetype'); }
@font-face { font-family: 'Almarai'; font-weight: 400; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/almarai/almarai-400.ttf') format('truetype'); }
@font-face { font-family: 'Almarai'; font-weight: 700; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/almarai/almarai-700.ttf') format('truetype'); }

/* ── Amiri (classical Arabic serif, traditional formal tone) ──── */
@font-face { font-family: 'Amiri'; font-weight: 400; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/amiri/amiri-400.ttf') format('truetype'); }
@font-face { font-family: 'Amiri'; font-weight: 700; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/amiri/amiri-700.ttf') format('truetype'); }

/* ── IBM Plex Sans Arabic (clean bilingual sans, tech-leaning) ── */
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 300; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/ibm-plex-arabic/ibm-plex-arabic-300.ttf') format('truetype'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 400; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/ibm-plex-arabic/ibm-plex-arabic-400.ttf') format('truetype'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 500; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/ibm-plex-arabic/ibm-plex-arabic-500.ttf') format('truetype'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 600; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/ibm-plex-arabic/ibm-plex-arabic-600.ttf') format('truetype'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 700; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/ibm-plex-arabic/ibm-plex-arabic-700.ttf') format('truetype'); }

/* ── Lalezar (display, poster-style; one weight) ──────────────── */
@font-face { font-family: 'Lalezar'; font-weight: 400; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/lalezar/lalezar-400.ttf') format('truetype'); }

/* ── Oi (decorative chunky display; one weight) ──────────────── */
@font-face { font-family: 'Oi'; font-weight: 400; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/oi/oi-400.ttf') format('truetype'); }

/* ── Ping AR + LT (the platform's existing brand font) ────────── */
@font-face { font-family: 'Ping AR + LT'; font-weight: 300; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/ping-ar/ping-ar-300.otf') format('opentype'); }
@font-face { font-family: 'Ping AR + LT'; font-weight: 400; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/ping-ar/ping-ar-400.otf') format('opentype'); }
@font-face { font-family: 'Ping AR + LT'; font-weight: 700; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/ping-ar/ping-ar-700.otf') format('opentype'); }

/* ── Rakkas (decorative Naskh-style display; one weight) ──────── */
@font-face { font-family: 'Rakkas'; font-weight: 400; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/rakkas/rakkas-400.ttf') format('truetype'); }

/* ── Readex Pro (modern Arabic sans, optical scaling) ─────────── */
@font-face { font-family: 'Readex Pro'; font-weight: 300; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/readex-pro/readex-pro-300.ttf') format('truetype'); }
@font-face { font-family: 'Readex Pro'; font-weight: 400; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/readex-pro/readex-pro-400.ttf') format('truetype'); }
@font-face { font-family: 'Readex Pro'; font-weight: 700; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/readex-pro/readex-pro-700.ttf') format('truetype'); }

/* ── Tajawal (popular modern Arabic sans) ─────────────────────── */
@font-face { font-family: 'Tajawal'; font-weight: 300; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/tajawal/tajawal-300.ttf') format('truetype'); }
@font-face { font-family: 'Tajawal'; font-weight: 400; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/tajawal/tajawal-400.ttf') format('truetype'); }
@font-face { font-family: 'Tajawal'; font-weight: 700; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/tajawal/tajawal-700.ttf') format('truetype'); }

/* ── TheYearofHandicrafts (custom display — also used by TED-KSU) */
@font-face { font-family: 'The Year of Handicrafts'; font-weight: 400; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/handicrafts/handicrafts-400.otf') format('opentype'); }
@font-face { font-family: 'The Year of Handicrafts'; font-weight: 700; font-style: normal; font-display: swap; src: url('https://awqafcommunity.org/event-fonts/handicrafts/handicrafts-700.otf') format('opentype'); }
