/* Article typography: matches the homepage and book pages (Lora for reading, Inter for UI).
   Loaded on /blog/, /about/ and /methodology/ by tools/site/rollout_chrome.py. Older article
   templates set their own fonts, so these rules are scoped to #main (the <main> every content
   page now has) to outrank them without editing each template. */

/* Reading text in Lora, as on the book pages */
#main :is(p, li, blockquote, dd, figcaption, td, th, summary):not([class*="arabic"], [lang="ar"], [dir="rtl"], [class*="arabic"] *, [lang="ar"] *) {
  font-family: 'Lora', 'Amiri', Georgia, 'Times New Roman', serif;
}

/* Running paragraphs and list items: a reading size for long articles (the store pages use 21px) */
#main :is(p, li):not([class]):not(.cta-box *, .mcx-book *, .related *, table *, [class*="arabic"] *, [lang="ar"] *, nav *) {
  font-size: 1.125rem;
  line-height: 1.72;
}

/* Headings: semibold, as on the store pages (family stays Lora / Lora Display). Some templates put
   the page title in a header before <main>, so this reaches the whole body. */
:is(#main, body) :is(h1, h2, h3, h4) { font-weight: 600; }

/* Labels, tags, dates, buttons and citations stay in Inter */
#main :is([class*="label"], [class*="tag"], [class*="meta"], [class*="breadcrumb"], [class*="btn"],
          [class*="eyebrow"], [class*="byline"], [class*="fine"], [class*="date"], [class*="__link"],
          [class*="badge"], [class*="pill"], [class*="__source"], [class*="number"], [class*="count"],
          [class*="updated"], .author-byline *, .scripture__source, .quick-answer__label, .quick > b:first-child) {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Arabic script in Amiri everywhere on content pages (several templates had set it in Georgia,
   which has no Arabic letters, so browsers fell back to a system font). */
#main :is([class*="arabic"], [lang="ar"], [dir="rtl"]) {
  font-family: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', serif;
  line-height: 1.9;
}
