/* ==========================================================================
   Yekan Bakh Persian Web Font System (یکان باخ)
   Modern, Soft, and Highly Legible Persian Typography
   ========================================================================== */

/* Thin (100) */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/yekan-bakh/YekanBakhFaNum-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/yekan-bakh/YekanBakhFaNum-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* Light (300) */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/yekan-bakh/YekanBakhFaNum-Light.woff2') format('woff2');
    font-weight: 200 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/yekan-bakh/YekanBakhFaNum-Light.woff2') format('woff2');
    font-weight: 200 300;
    font-style: normal;
    font-display: swap;
}

/* Regular (400) */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/yekan-bakh/YekanBakhFaNum-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/yekan-bakh/YekanBakhFaNum-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Medium / SemiBold (500, 600) */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/yekan-bakh/YekanBakhFaNum-SemiBold.woff2') format('woff2');
    font-weight: 500 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/yekan-bakh/YekanBakhFaNum-SemiBold.woff2') format('woff2');
    font-weight: 500 600;
    font-style: normal;
    font-display: swap;
}

/* Bold (700) */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/yekan-bakh/YekanBakhFaNum-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/yekan-bakh/YekanBakhFaNum-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ExtraBold / Heavy (800) */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/yekan-bakh/YekanBakhFaNum-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/yekan-bakh/YekanBakhFaNum-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Black (900) */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/yekan-bakh/YekanBakhFaNum-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/yekan-bakh/YekanBakhFaNum-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ExtraBlack (950) */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/yekan-bakh/YekanBakhFaNum-ExtraBlack.woff2') format('woff2');
    font-weight: 950;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/yekan-bakh/YekanBakhFaNum-ExtraBlack.woff2') format('woff2');
    font-weight: 950;
    font-style: normal;
    font-display: swap;
}

/* Global Font Family and Typography Smoothing Rules */
:root {
    --font-family-base: 'YekanBakh', 'Yekan Bakh', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    font-family: var(--font-family-base) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

button, input, select, textarea, optgroup {
    font-family: var(--font-family-base) !important;
}
