/* ==========================================================================
   CARBONIX — typefaces
   --------------------------------------------------------------------------
   Persian: IRANYekanWeb, self-hosted from /assets/fonts/.

   Three real weights are shipped — Regular (400), Medium (500), Bold (700) —
   and each @font-face claims a RANGE rather than a single value, so a request
   for 300 or 600 or 800 resolves to the nearest real file instead of being
   faked by the browser. font-synthesis is switched off site-wide for the same
   reason: a synthesised bold on a Persian face smears the joins.

   The files are .woff rather than .woff2 only because the woff2 encoder was
   not installable in the build environment. Converting them is optional and
   saves roughly 20% — see assets/fonts/README.md.

   Arabic falls back to Cairo, Latin to Bricolage Grotesque / Inter; both are
   open-licence and are resolved local() → self-hosted → Google Fonts.
   ========================================================================== */

/* ---------- IRANYekanWeb — Persian ---------- */
@font-face {
  font-family: 'IRANYekan';
  font-style: normal; font-weight: 100 450; font-display: swap;
  src: url('../fonts/IRANYekanWeb-Regular.woff') format('woff');
}
@font-face {
  font-family: 'IRANYekan';
  font-style: normal; font-weight: 451 620; font-display: swap;
  src: url('../fonts/IRANYekanWeb-Medium.woff') format('woff');
}
@font-face {
  font-family: 'IRANYekan';
  font-style: normal; font-weight: 621 900; font-display: swap;
  src: url('../fonts/IRANYekanWeb-Bold.woff') format('woff');
}

/* ---------- Vazirmatn — open-licence Persian fallback ---------- */
@font-face {
  font-family: 'Vazirmatn Local';
  font-style: normal; font-weight: 300; font-display: swap;
  src: local('Vazirmatn Light'), local('Vazirmatn-Light'), local('Vazir Light');
}
@font-face {
  font-family: 'Vazirmatn Local';
  font-style: normal; font-weight: 400; font-display: swap;
  src: local('Vazirmatn Regular'), local('Vazirmatn-Regular'), local('Vazirmatn'),
       local('Vazir Regular'), local('Vazir');
}
@font-face {
  font-family: 'Vazirmatn Local';
  font-style: normal; font-weight: 500; font-display: swap;
  src: local('Vazirmatn Medium'), local('Vazirmatn-Medium'), local('Vazir Medium');
}
@font-face {
  font-family: 'Vazirmatn Local';
  font-style: normal; font-weight: 600; font-display: swap;
  src: local('Vazirmatn SemiBold'), local('Vazirmatn-SemiBold');
}
@font-face {
  font-family: 'Vazirmatn Local';
  font-style: normal; font-weight: 700; font-display: swap;
  src: local('Vazirmatn Bold'), local('Vazirmatn-Bold'), local('Vazir Bold');
}
@font-face {
  font-family: 'Vazirmatn Local';
  font-style: normal; font-weight: 800; font-display: swap;
  src: local('Vazirmatn ExtraBold'), local('Vazirmatn-ExtraBold');
}

/* ---------- Cairo — Arabic ---------- */
@font-face {
  font-family: 'Cairo Local';
  font-style: normal; font-weight: 400; font-display: swap;
  src: local('Cairo Regular'), local('Cairo-Regular'), local('Cairo');
}
@font-face {
  font-family: 'Cairo Local';
  font-style: normal; font-weight: 600; font-display: swap;
  src: local('Cairo SemiBold'), local('Cairo-SemiBold');
}
@font-face {
  font-family: 'Cairo Local';
  font-style: normal; font-weight: 700; font-display: swap;
  src: local('Cairo Bold'), local('Cairo-Bold');
}

/* ---------- Latin ---------- */
@font-face {
  font-family: 'Bricolage Local';
  font-style: normal; font-weight: 300 800; font-display: swap;
  src: local('Bricolage Grotesque');
}
@font-face {
  font-family: 'Inter Local';
  font-style: normal; font-weight: 300 700; font-display: swap;
  src: local('Inter');
}
