/* AZRA Typography v46 — Inter (Latin) + Vazirmatn (Persian) with per-paragraph script tuning */
:root{
  --az-text:'Inter','Vazirmatn','Segoe UI',Tahoma,system-ui,sans-serif;
  --az-fa:'Vazirmatn','Inter','Segoe UI',Tahoma,system-ui,sans-serif;
  --font-body:var(--az-text);--font-display:var(--az-text);--font-fa:var(--az-fa);
}
html,body{font-family:var(--az-text);font-optical-sizing:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
::selection{background:rgba(255,214,10,.35);color:#fff}
/* never track Persian: letter-spacing breaks Arabic-script joining */
html[lang=fa] *,[data-s=fa],[data-s=fa] *{letter-spacing:0!important;text-transform:none}
/* ---- post body ---- */
.md{font-size:16px;line-height:1.75;letter-spacing:-.006em;font-weight:400;text-wrap:pretty;font-kerning:normal}
.md p{margin:0 0 .85em}
.md b,.md strong{font-weight:700}
.md h1,.md h2,.md h3,.md h4,.post h2,.post h1{font-family:var(--az-text);font-weight:800;letter-spacing:-.024em;line-height:1.25;text-wrap:balance}
.md h2{font-size:1.4em}.md h3{font-size:1.2em}
.md blockquote{line-height:1.8}
.md code,.md pre,.md kbd,.cp-ed code,.cp-ed pre{font-family:var(--font-mono,'JetBrains Mono',monospace)!important;letter-spacing:0!important;font-variant-ligatures:common-ligatures;direction:ltr;text-align:left;unicode-bidi:plaintext}
.md pre{line-height:1.6;font-size:13.5px}
.md.compact{font-size:15px;line-height:1.65}
/* ---- Persian blocks ---- */
[data-s=fa]{font-family:var(--az-fa);font-weight:400;line-height:2;word-spacing:.05em;hyphens:none}
p[data-s=fa],li[data-s=fa],blockquote[data-s=fa]{font-size:1.045em}
.md h1[data-s=fa],.md h2[data-s=fa],.md h3[data-s=fa],.md h4[data-s=fa],.post h1[data-s=fa],.post h2[data-s=fa]{font-weight:800;line-height:1.7;letter-spacing:0}
.md.compact [data-s=fa]{line-height:1.9}
[data-s=fa] b,[data-s=fa] strong{font-weight:700}
/* ---- English blocks ---- */
[data-s=en]{font-family:var(--az-text)}
.md p[data-s=en],.md li[data-s=en]{line-height:1.7}
/* ---- meta / numbers ---- */
.post-head .who b{font-weight:700;letter-spacing:-.01em}
.post-head .u,.post-head .u a{font-size:13px;font-weight:500}
.post .actionbar,.post [data-act],.post .stat,.cnt{font-variant-numeric:tabular-nums}
html[lang=fa] .post-head .who b{letter-spacing:0}
/* ---- composer ---- */
.cp-ed{font-family:var(--az-text);line-height:1.8;letter-spacing:-.006em}
.cp-ed [data-s=fa]{font-family:var(--az-fa);line-height:2;letter-spacing:0}
.cp-root #cTitle{font-family:var(--az-text);letter-spacing:-.02em}
html[lang=fa] .cp-root #cTitle{letter-spacing:0;line-height:1.6}
