/* ================================
   Kalameh Font Family
   ================================ */

@font-face {
    font-family: "Kalameh";
    src: url("../fonts/Kalameh-Thin.woff2") format("woff2"),
         url("../fonts/Kalameh-Thin.woff") format("woff");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Kalameh";
    src: url("../fonts/Kalameh-ExtraLight.woff2") format("woff2"),
         url("../fonts/Kalameh-ExtraLight.woff") format("woff");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Kalameh";
    src: url("../fonts/Kalameh-Light.woff2") format("woff2"),
         url("../fonts/Kalameh-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

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

@font-face {
    font-family: "Kalameh";
    src: url("../fonts/Kalameh-SemiBold.woff2") format("woff2"),
         url("../fonts/Kalameh-SemiBold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

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

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

@font-face {
    font-family: "Kalameh";
    src: url("../fonts/Kalameh-Black.woff2") format("woff2"),
         url("../fonts/Kalameh-Black.woff") format("woff");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


/* ================================
   Tajawal Font Family
   ================================ */

@font-face {
    font-family: "Tajawal";
    src: url("../fonts/Tajawal-ExtraLight.woff") format("woff");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Tajawal";
    src: url("../fonts/Tajawal-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

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

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

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

@font-face {
    font-family: "Tajawal";
    src: url("../fonts/Tajawal-Black.woff") format("woff");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


/* ================================
   Global Typography Defaults
   ================================ */

:root {
    --font-fa: "Kalameh", "Tajawal", sans-serif;
    --font-ar: "Tajawal", "Kalameh", sans-serif;
    --font-en: "Tajawal", "Kalameh", sans-serif;
}

html {
    font-family: var(--font-fa);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-fa);
    font-weight: 400;
    line-height: 1.8;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* If you set lang on <html> */
html[lang="fa"] body {
    font-family: var(--font-fa);
}

html[lang="ar"] body {
    font-family: var(--font-fa);
}

html[lang="en"] body {
    font-family: var(--font-fa);
}
