/* English site only (loaded by _Layout when the page is not Persian): a lighter look, like sayphafiller.ca.
   Body text is Outfit Light; headings are Hermes Light, in the case they are typed in and with tight letter
   spacing, instead of bold, uppercase and spaced out. Small labels (sm-title-block, title-block, h6) stay as
   they are, except the product and article names in cards (post-title). */

:root {
  --font-weight-body: 300;
  --font-weight-heading: 300;
}

html[dir="ltr"] :is(h1, h2, h3, h4, h5, h6.title-lg, .title, .title-lg, .big-text):not(.sm-title-block, .title-block),
html[dir="ltr"] .post-title {
  font-weight: 300;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* Links and spans inside a heading follow it (some set their own weight, spacing or uppercase). */
html[dir="ltr"] :is(h1, h2, h3, h4, h5, h6.title-lg, .title, .title-lg, .big-text):not(.sm-title-block, .title-block) :is(a, span),
html[dir="ltr"] .post-title :is(a, span) {
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

/* The large titles of the about and blog pages were packed tightly for a condensed, all-caps font; mixed-case
   Hermes needs room for its descenders (g, p, y). */
html[dir="ltr"] :is(.about-hero__title, .about-display, .about-purpose__heading, .archive-hero__title, .archive-display) {
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* Blog page: its heading sizes were chosen for the condensed Antonio; Hermes is about 1.5 times wider, so the
   same sizes looked far too big. */
html[dir="ltr"] .archive-hero__title {
  font-size: clamp(56px, 6.5vw, 96px);
}

html[dir="ltr"] .archive-display {
  font-size: clamp(40px, 4.4vw, 64px);
}

html[dir="ltr"] .featured-article__content h2 {
  font-size: clamp(30px, 2.8vw, 42px);
}

html[dir="ltr"] .article-card h3 {
  font-size: clamp(20px, 1.5vw, 24px);
}

html[dir="ltr"] .most-read-item h3 {
  font-size: clamp(22px, 2.2vw, 32px);
}

@media only screen and (max-width: 991px) {
  html[dir="ltr"] .archive-hero__title {
    font-size: clamp(48px, 8vw, 72px);
  }
}

@media only screen and (max-width: 767px) {
  html[dir="ltr"] .archive-hero__title {
    font-size: clamp(38px, 10vw, 48px);
  }

  html[dir="ltr"] .archive-display {
    font-size: clamp(32px, 8.5vw, 40px);
  }

  html[dir="ltr"] .featured-article__content h2 {
    font-size: clamp(26px, 7vw, 32px);
  }

  html[dir="ltr"] .article-card h3,
  html[dir="ltr"] .most-read-item h3 {
    font-size: clamp(20px, 6vw, 26px);
  }
}
