/* بخش پروژه: فونت‌های سایت — فارسی: Doran (ارقام فارسی) | انگلیسی: MILONER */

@font-face{font-family:'Doran';src:url('../fonts/DoranFaNum-Thin.woff2') format('woff2');font-weight:100;font-style:normal;font-display:swap;}
@font-face{font-family:'Doran';src:url('../fonts/DoranFaNum-Light.woff2') format('woff2');font-weight:300;font-style:normal;font-display:swap;}
@font-face{font-family:'Doran';src:url('../fonts/DoranFaNum-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Doran';src:url('../fonts/DoranFaNum-Medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:'Doran';src:url('../fonts/DoranFaNum-Bold.woff2') format('woff2');font-weight:600 700;font-style:normal;font-display:swap;}
@font-face{font-family:'Doran';src:url('../fonts/DoranFaNum-ExtraBold.woff2') format('woff2');font-weight:800 900;font-style:normal;font-display:swap;}

/* MILONER فقط یک وزن دارد؛ بازه‌ی وزن باعث می‌شود مرورگر آن را کج/ضخیم مصنوعی نکند */
@font-face{font-family:'Miloner';src:url('../fonts/MILONER-Medium.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap;}
/* در صفحات فارسی، فقط حروف لاتین با MILONER نمایش داده می‌شوند (ارقام و فارسی با Doran) */
@font-face{font-family:'Miloner Latin';src:url('../fonts/MILONER-Medium.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0041-005A,U+0061-007A;}

:root{
  --font-fa:'Miloner Latin','Doran',Tahoma,sans-serif;
  --font-en:'Miloner','Doran',Georgia,'Times New Roman',serif;
  --font-latin:'Miloner','Doran',Georgia,serif;
  --font-body:var(--font-fa);
}
html[lang="en"]{ --font-body:var(--font-en); }
html[lang="fa"]{ --font-body:var(--font-fa); }

body, button, input, select, textarea, h1, h2, h3, h4, h5, h6{ font-family:var(--font-body); }
html[lang="en"] body{ letter-spacing:.01em; }

/* وزن پایه‌ی متن: Doran Regular برای خواندن کمی نازک است؛ متن عادی با وزن Medium و تیترها/دکمه‌ها سنگین‌تر */
body{ font-weight:500; }
html[lang="fa"] p, html[lang="fa"] li, html[lang="fa"] label, html[lang="fa"] input, html[lang="fa"] textarea, html[lang="fa"] select, html[lang="fa"] td, html[lang="fa"] small{ font-weight:500; }
html[lang="fa"] b, html[lang="fa"] strong, html[lang="fa"] th{ font-weight:700; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3, html[lang="fa"] h4{ font-weight:700; }

/* سنگین‌تر کردن متن‌های غیر بولد: Doran Medium هنوز کمرنگ است و MILONER فقط یک وزن دارد؛
   یک حاشیه‌ی بسیار نازک هم‌رنگ متن، وزنی بین Medium و Bold می‌دهد. برای تنظیم: --text-heft */
:root{ --text-heft:.35px; }
body{ -webkit-text-stroke:var(--text-heft) currentColor; paint-order:stroke fill; }
html[lang="en"] body{ --text-heft:.3px; }
h1,h2,h3,h4,h5,h6,b,strong,th,button,.btn,.btn *,svg,svg *,.logo,.hamod-logo,.pcard-price,.price,.pcard-title,.brand{ -webkit-text-stroke:0; }
