/**
 * @file        asan-fonts.css
 * @path        assets/css/asan-fonts.css
 * @role        Typography — Font-Face Declarations
 * @description Loads the Vazirmatn font family (Persian/Arabic optimized) in
 *              three weights: Regular (400), Medium (500), Bold (700). Uses
 *              woff2 format for optimal compression and browser support.
 *              font-display: swap ensures text remains visible during load.
 *              This file must be enqueued before any other Asan AI stylesheets.
 *
 * @author      Sirvan Alirezaei
 * @copyright   © Sirvan Alirezaei. All rights reserved.
 * @version     4.0.0
 * @since       2025-01
 * @status      Production-critical
 *
 * @font        Vazirmatn
 * @license     SIL Open Font License 1.1
 * @source      https://github.com/rastikerdar/vazirmatn
 */


/* ==========================================================================
   VAZIRMATN — Regular (400)
   ========================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0600-06FF,     /* Arabic */
    U+FB50-FDFF,     /* Arabic Presentation Forms-A */
    U+FE70-FEFF,     /* Arabic Presentation Forms-B */
    U+0020-007F,     /* Basic Latin */
    U+00A0-00FF,     /* Latin-1 Supplement */
    U+0660-0669,     /* Arabic-Indic Digits */
    U+06F0-06F9,     /* Extended Arabic-Indic Digits (Persian) */
    U+200C-200F,     /* Zero-width non-joiner/joiner, directional marks */
    U+2000-206F,     /* General Punctuation */
    U+2070-209F,     /* Superscripts and Subscripts */
    U+20A0-20CF,     /* Currency Symbols */
    U+2100-214F,     /* Letterlike Symbols */
    U+FEFF,          /* BOM */
    U+FFFD;          /* Replacement character */
}


/* ==========================================================================
   VAZIRMATN — Medium (500)
   ========================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0600-06FF,
    U+FB50-FDFF,
    U+FE70-FEFF,
    U+0020-007F,
    U+00A0-00FF,
    U+0660-0669,
    U+06F0-06F9,
    U+200C-200F,
    U+2000-206F,
    U+2070-209F,
    U+20A0-20CF,
    U+2100-214F,
    U+FEFF,
    U+FFFD;
}


/* ==========================================================================
   VAZIRMATN — Bold (700)
   ========================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0600-06FF,
    U+FB50-FDFF,
    U+FE70-FEFF,
    U+0020-007F,
    U+00A0-00FF,
    U+0660-0669,
    U+06F0-06F9,
    U+200C-200F,
    U+2000-206F,
    U+2070-209F,
    U+20A0-20CF,
    U+2100-214F,
    U+FEFF,
    U+FFFD;
}


/* ==========================================================================
   FONT PRELOAD HINTS (for use in PHP enqueue)
   ==========================================================================

   Add these to <head> via wp_head for critical rendering performance:

   <link rel="preload" href="assets/fonts/Vazirmatn-Regular.woff2"
         as="font" type="font/woff2" crossorigin>
   <link rel="preload" href="assets/fonts/Vazirmatn-Medium.woff2"
         as="font" type="font/woff2" crossorigin>

   Only preload Regular and Medium — Bold loads on demand.

   ========================================================================== */