﻿@supports (font-variation-settings: normal) {
    @font-face {
        font-family: 'IRANYekanX';
        src: url('./variable/IRANYekanXVF.woff2') format('woff2-variations'), url('./variable/IRANYekanXVF.woff2') format('woff2'), url('./variable/IRANYekanXVF.woff') format('woff'), url('./variable/IRANYekanXVF.ttf') format('truetype');
        font-weight: 100 900; /* full range */
        font-display: swap;
    }
}

/* Static fonts (fallback for browsers without variable font support) */
@supports not (font-variation-settings: normal) {
    @font-face {
        font-family: 'IRANYekanX';
        src: url('./woff2/IRANYekanX-Regular.woff2') format('woff2'), url('./woff/IRANYekanX-Regular.woff') format('woff');
        font-weight: 400;
        font-display: swap;
    }

    @font-face {
        font-family: 'IRANYekanX';
        src: url('./woff2/IRANYekanX-Bold.woff2') format('woff2'), url('./woff/IRANYekanX-Bold.woff') format('woff');
        font-weight: 700;
        font-display: swap;
    }

    @font-face {
        font-family: 'IRANYekanX';
        src: url('./woff2/IRANYekanX-Light.woff2') format('woff2'), url('./woff/IRANYekanX-Light.woff') format('woff');
        font-weight: 300;
        font-display: swap;
    }
    /* You can add more weights if you need */
}
