/* Estedad by Amin Abedi and the Estedad Project Authors. License: fonts/Estedad-OFL.txt. */
@font-face {
  font-family: Estedad;
  src: url("./fonts/estedad-fa.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0020, U+00A0, U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF,
                 U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}

html[lang="fa"] {
  --fa-type: Estedad, Vazirmatn, Tahoma, sans-serif;
  font-family: var(--fa-type);
}

body {
  font-family: var(--fa-type);
  font-weight: 410;
  line-height: 1.9;
}

/* The original presentation templates give these elements their own font stacks. */
html[lang="fa"] :is(
  .mast-type strong, .wordmark strong, .footer-brand, .credit-brand, .language-menu,
  .toolbar .brand, .brand-text, .eyebrow, .hero-line, .visual-caption,
  .path-detail .small, .step-num, .footer-bottom
) {
  font-family: var(--fa-type);
  letter-spacing: normal;
}

.language-menu a[lang]:not([lang="fa"]),
.mast-type small[lang="en"], .wordmark small[lang="en"], .journal-brand small[lang="en"] {
  font-family: Vazirmatn, system-ui, sans-serif;
}

:is(h1, h2, h3), .site-header .brand-text small { letter-spacing: normal; }
.mast-type strong, .wordmark strong, .journal-brand strong,
.footer-brand, .credit-brand, .journal-footer-brand {
  font-weight: 710;
  line-height: 1.5;
}
.mast-type strong { font-size: clamp(1.125rem, 2vw, 1.625rem); }
.wordmark strong { font-size: clamp(1.125rem, 2vw, 1.7rem); }
.language-menu { font-size: 1rem; line-height: 1.65; }
.journal-top-nav, .main-nav, .mast-nav { font-weight: 540; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 1rem; }

.opening-story h1 span { font-weight: 540; line-height: 1.6; }
.opening-story h1 em { font-weight: 800; line-height: 1.3; }
.opening-story p {
  font-size: clamp(1.0625rem, 1rem + .28vw, 1.25rem);
  font-weight: 430;
  line-height: 1.95;
}
.chapter-intro p, .service-answer p, .journey-list p, .faq-list p {
  font-size: clamp(1rem, .96rem + .18vw, 1.1rem);
  line-height: 1.98;
}
.teaser-stories h3 { font-weight: 665; line-height: 1.7; }
.hero h1, .section-title { letter-spacing: normal; }

.journal-mast h1, .compact-mast h1 { font-weight: 750; line-height: 1.4; }
.archive-bar h2, .article-sources h2, .more-articles h2 { font-weight: 700; line-height: 1.55; }
.news-card h3 { font-weight: 690; line-height: 1.65; text-wrap: pretty; }
.lead-card h3 { font-weight: 740; line-height: 1.52; }
.news-card p { font-size: clamp(1rem, .96rem + .19vw, 1.1rem); line-height: 1.93; }
.article-hero h1 { font-weight: 750; line-height: 1.55; text-wrap: balance; }
.article-deck {
  max-inline-size: 41rem;
  font-size: clamp(1.125rem, 1rem + .48vw, 1.375rem);
  font-weight: 450;
  line-height: 1.92;
}
.article-body p {
  max-inline-size: 40rem;
  margin-block-end: 1.15em;
  font-size: clamp(1.09375rem, 1rem + .32vw, 1.21875rem);
  line-height: 2;
}
.story-count, .article-dates, .card-date, .more-articles time,
.card-taxonomy a, .guide-label, .teaser-stories time, .breadcrumbs {
  font-size: .9rem;
  line-height: 1.75;
}
.topic-navigation a { font-size: .96rem; line-height: 1.65; }
.more-articles div a { font-weight: 640; line-height: 1.8; }

@media (max-width: 640px) {
  .mast-type strong, .wordmark strong { font-size: clamp(1rem, 4.35vw, 1.35rem); }
  .article-hero h1 { font-size: clamp(1.8rem, 6.6vw, 2.5rem); }
  .topic-navigation a { font-size: .925rem; }
}
