/* Type scale for the main entry. Version previews use their original styles. */
:root {
  --hero-title-size: clamp(2.15rem, 1.35rem + 4.1vw, 4.75rem);
  --section-title-size: clamp(1.8rem, 1.35rem + 2.45vw, 3.8rem);
  --feature-title-size: clamp(2rem, 1.3rem + 3vw, 4.25rem);
  --subheading-size: clamp(1.2rem, 1.02rem + 1vw, 2rem);
  --reading-text-size: clamp(1rem, .94rem + .28vw, 1.15rem);
  --action-text-size: .875rem;
  --caption-size: .75rem;

  font-family: Manrope, "DM Sans", "Segoe UI", sans-serif;
}

html[lang="fa"] { font-family: Vazirmatn, Tahoma, sans-serif; }
html[lang="ar"] { font-family: "Noto Sans Arabic", Tahoma, sans-serif; }
html[lang="ur"] { font-family: "Noto Nastaliq Urdu", "Urdu Typesetting", "Noto Sans Arabic", serif; }

h1,
.hero h1,
html[lang="ru"] .hero h1 {
  font-size: var(--hero-title-size);
}

h2,
.section-title h2,
.heritage-copy h2,
.science-heading h2,
.work-ethic-intro h2 {
  font-size: var(--section-title-size);
}

:is(.story-copy, .pact-heading, .identity, .finale) h2,
html[lang="ru"] .identity h2 {
  font-size: var(--feature-title-size);
}

h1,
h2,
.heritage-copy h2,
.science-heading h2,
.work-ethic-intro h2 {
  line-height: 1.12;
  letter-spacing: -.045em;
  text-wrap: balance;
}

[dir="rtl"] :is(h1, h2, h3) {
  line-height: 1.4;
  letter-spacing: normal;
}

[lang="ur"] :is(h1, h2, h3) { line-height: 1.7; }

h3,
.place h3,
.pact-steps h3,
.science-caption h3 {
  font-size: var(--subheading-size);
  letter-spacing: -.025em;
}

.belief-side h3 {
  font-size: clamp(1.4rem, 1rem + 2.75vw, 2.55rem);
  overflow-wrap: anywhere;
}

.lead,
.hero-deck,
.story-body,
.science-heading .lead {
  font-size: var(--reading-text-size);
}

.hero-deck,
.story-body { line-height: 1.75; }

:is(.nav-links, .lang, .lang-select, .cta, .text-link, .product-tabs button) {
  font-size: var(--action-text-size);
  letter-spacing: .035em;
}

:is(.lang, .lang-select) { font-family: inherit; }
.brand { font-family: Manrope, "DM Sans", "Segoe UI", sans-serif; }
html[lang="ur"] .lang-select { font-size: 1rem; line-height: 1.55; }


:is(.intro-note, .eyebrow, .meta, .status, .tag, .chapter-no,
    .chapter-header .eyebrow, .hero-creed, .footer-bottom,
    .story-visual-note, .evidence-item small) {
  font-size: var(--caption-size);
  letter-spacing: .045em;
}

[dir="rtl"] :is(.nav-links, .meta, .eyebrow, .intro-note, .caption,
                .chapter-no, .status, .tag, .hero-creed, .evidence-item small) {
  font-family: inherit;
  letter-spacing: normal;
}

.evidence-item small { line-height: 1.55; }

.house-grid span {
  font-size: clamp(1rem, .86rem + 1.05vw, 1.6rem);
}

.house-grid span,
.evidence-item strong,
.evidence-item small,
.story-copy .text-link {
  overflow-wrap: anywhere;
}

.story-copy .text-link {
  min-inline-size: 0;
  gap: .75rem;
}

@media (min-width: 761px) and (max-width: 960px) {
  .nav-links {
    font-size: .8rem;
    letter-spacing: normal;
  }
}
