@font-face {
  font-family: "Estedad Variable";
  src: url("/fonts/estedad-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn Variable";
  src: url("/fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EFF,U+1EE00-1EEFF;
}

@font-face {
  font-family: "Vazirmatn Variable";
  src: url("/fonts/vazirmatn-latin-ext-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Vazirmatn Variable";
  src: url("/fonts/vazirmatn-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --heading-face: "Estedad Variable";
  --body-face: "Vazirmatn Variable";
  --persian-fallback: Tahoma, "Geeza Pro", "Segoe UI", Arial, sans-serif;
  --heading-scale: 1;
  --article-size: 1.125rem;
  --headline-weight: 800;
  --heading-weight: 700;
  --article-weight: 400;
  --article-leading: 2;
  font-family: var(--body-face), var(--persian-fallback);
}

/* Keep administrative forms and headings on the reading face. The shared public chrome keeps the display face. */
body:not(.editorial-page) :is(h1,h2,h3),
body.editorial-page .article-content :is(h1,h2,h3),
:is(.wordmark,.brand-copy strong,.nav-item>a,.submenu a,.site-footer h2,.button,.text-link,.ticker-inner strong),
.typography-sample-heading {
  font-family: var(--heading-face), "Vazirmatn Variable", var(--persian-fallback);
}

.wordmark { letter-spacing: normal; }
body.editorial-page :is(main,.button,.text-link) { font-family: var(--body-face), var(--persian-fallback); }
.nav-item>a { font-size: clamp(.9375rem,1.22vw,1rem); font-weight: 600; }
.submenu a, .button, .text-link { font-size: .9375rem; font-weight: 600; }

.featured-main h2 { font-size: calc(clamp(2.25rem,3.4vw,2.75rem) * var(--heading-scale)); }
:is(.article-content h1, .typography-sample-heading) { font-size: calc(clamp(2rem,3.2vw,2.5rem) * var(--heading-scale)); }
.featured-main h2, .article-content h1, .typography-sample-heading {
  font-weight: var(--headline-weight);
  line-height: 1.46;
  text-wrap: balance;
}
.section-heading h2 {
  font-size: calc(clamp(1.5rem,2vw,1.75rem) * var(--heading-scale));
  font-weight: var(--heading-weight);
  line-height: 1.47;
}
.featured:not(.featured-main) h3, .card h3, .rights-sample h3 {
  font-size: calc(clamp(1.125rem,1.5vw,1.3125rem) * var(--heading-scale));
  font-weight: var(--heading-weight);
  line-height: 1.52;
  text-wrap: balance;
}
.card p, .featured p, .page-intro p, .lede { font-size: clamp(.9375rem,1.25vw,1rem); line-height: 1.8; }
.card-meta, .featured-meta, .byline, .article-figure figcaption, .gallery-grid figcaption, .footer-bottom { font-size: clamp(.75rem,1.02vw,.875rem); }
.article-content .prose, .typography-sample-body {
  font-size: var(--article-size);
  font-weight: var(--article-weight);
  line-height: var(--article-leading);
  overflow-wrap: anywhere;
}
.article-content .prose h2 {
  font-family: var(--heading-face), "Vazirmatn Variable", var(--persian-fallback);
  font-size: calc(clamp(1.25rem,2vw,1.5rem) * var(--heading-scale));
  font-weight: var(--heading-weight);
  line-height: 1.55;
}
.article-content .prose p { margin-block: .85em 1em; }
.editorial-page :is(input,textarea,select) { line-height: 1.75; }
.editorial-page textarea { unicode-bidi: plaintext; text-align: start; }
.typography-sample { font-family: var(--body-face), var(--persian-fallback); }
.typography-sample-body { margin-block: .5em; }

@media(max-width:760px) {
  .featured-main h2 { font-size: calc(clamp(1.625rem,5vw,1.875rem) * var(--heading-scale)); }
  :is(.article-content h1, .typography-sample-heading) { font-size: calc(clamp(1.5625rem,5vw,1.875rem) * var(--heading-scale)); }
  .section-heading h2 { font-size: calc(clamp(1.25rem,3.5vw,1.4375rem) * var(--heading-scale)); }
  .featured:not(.featured-main) h3, .card h3, .rights-sample h3 { font-size: calc(clamp(1rem,3vw,1.125rem) * var(--heading-scale)); }
  .article-content .prose, .typography-sample-body { font-size: max(1rem,calc(var(--article-size) - .0625rem)); line-height: calc(var(--article-leading) - .05); }
}
