/* ==========================================================================
   fonts.css — self-hosted Estedad (Persian). Replaces the render-blocking
   jsDelivr + Google Fonts requests. font-display:swap keeps text visible and
   the sized fallback below holds layout stable to minimise CLS.
   ========================================================================== */

/* ---- Arabic / Persian subset (primary glyphs) ---------------------------- */
@font-face {
  font-family: 'Estedad';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/estedad-arabic-400-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFF;
}
@font-face {
  font-family: 'Estedad';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/estedad-arabic-500-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFF;
}
@font-face {
  font-family: 'Estedad';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/estedad-arabic-700-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFF;
}
@font-face {
  font-family: 'Estedad';
  font-style: normal; font-weight: 800; font-display: swap;
  src: url(../fonts/estedad-arabic-800-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFF;
}

/* ---- Latin subset (digits, brand names, URLs) ---------------------------- */
@font-face {
  font-family: 'Estedad';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/estedad-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Estedad';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/estedad-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Estedad';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/estedad-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Estedad';
  font-style: normal; font-weight: 800; font-display: swap;
  src: url(../fonts/estedad-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---- Sized fallback: matches Estedad metrics so the swap doesn't shift the
   layout (anti-CLS). Applied via the 'Estedad Fallback' family in the stack. */
@font-face {
  font-family: 'Estedad Fallback';
  src: local('Tahoma'), local('Arial');
  size-adjust: 96%;
  ascent-override: 92%;
  descent-override: 28%;
  line-gap-override: 0%;
}
