/* Persian pages (/fa/...): every family falls back to a Persian face. Chrome does not
   fall through to a unicode-range face of the same family, so the fallback is set on
   the stack instead. More specific Persian rules on each page still win. */
@font-face{font-family:PeydaFA;src:url('/assets/fonts/PeydaWebVF.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:VazirmatnFA;src:url('/assets/fonts/Vazirmatn-VF.woff2') format('woff2');font-weight:100 900;font-display:swap}
html[lang="fa"] body,html[lang="fa"] body :where(:not(svg,svg *,.keep-latin,.keep-latin *)){font-family:Satoshi,VazirmatnFA,sans-serif!important}
html[lang="fa"] body :where(h1,h2,h3,h4,h5,h6,.fa-display):where(:not(.keep-latin,.keep-latin *)){font-family:ClashDisplay,PeydaFA,sans-serif!important}

/* Letter spacing pulls Persian letters apart; Persian has no capitals. */
html[lang="fa"] :lang(fa),html[lang="fa"] [dir="rtl"],html[lang="fa"] [dir="rtl"] *{letter-spacing:0!important;text-transform:none!important}
/* Monospace labels have no Persian glyphs either. */
html[lang="fa"] [dir="rtl"] :is(code,kbd,samp,pre){font-family:VazirmatnFA,monospace}
/* The blog, the stack and the project pages are English-only: no links to them from Persian pages. */
html[lang="fa"] .artech-site-footer__nav a:is([href="/blog/"],[href="/stack/"],[href="/portfolio/"]),
html[lang="fa"] .elementor-location-header li:has(a[href="/blog/"]),
html[lang="fa"] .elementor-location-header li:has(a[href="/stack/"]){display:none!important}
