/* ==========================================================================
   EatPal typefaces
   --------------------------------------------------------------------------
   The font files have been on the server for a long time, but the stylesheet
   that declared them was never linked from the layout, so every page has
   been rendering in the browser's default face. Declaring them here, and
   linking this file from the head, is what gives headings and restaurant
   names their weight.

   Estedad is a variable family, so one file covers the whole weight range.
   IRANYekanX ships as separate weight files and carries the UI text.
   ========================================================================== */

@font-face {
    font-family: Estedad;
    src: url("/fonts/Estedad-FD.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: IRANYekanX;
    src: url("/Webfonts/woff/IRANYekanX-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: IRANYekanX;
    src: url("/Webfonts/woff/IRANYekanX-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: IRANYekanX;
    src: url("/Webfonts/woff/IRANYekanX-DemiBold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: IRANYekanX;
    src: url("/Webfonts/woff/IRANYekanX-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: IRANYekanX;
    src: url("/Webfonts/woff/IRANYekanX-ExtraBold.woff") format("woff");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: IRANSansX;
    src: url("/fonts/IRANSansWeb(FaNum)_Medium.woff2") format("woff2"),
         url("/fonts/IRANSansWeb(FaNum)_Medium.woff") format("woff");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* Persian body text needs a taller line than Latin to stay readable, and
   the FaNum variants give Persian digits without any per-string conversion. */
body {
    font-family: IRANYekanX, IRANSansX, Tahoma, sans-serif;
}
