@font-face {
  font-family: 'IRANSansX';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/IRANSansX-DemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'IRANSansX';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IRANSansX-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'IRANSansX';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IRANSansX-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IRANSansXFaNum';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/IRANSansXFaNum-Black.woff2') format('woff2');
}
@font-face {
  font-family: 'IRANSansXFaNum';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/IRANSansXFaNum-ExtraBold.woff2') format('woff2');
}
@font-face {
  font-family: 'IRANSansXFaNum';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IRANSansXFaNum-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'IRANSansXFaNum';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IRANSansXFaNum-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Yekan Bakh';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/YekanBakh-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Yekan Bakh';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/YekanBakh-ExtraBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Yekan Bakh';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/YekanBakh-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Yekan Bakh';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/YekanBakh-SemiBold.woff2') format('woff2');
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: IRANSansX, Tahoma, sans-serif; }

/* These three photographs share the candle composition and the same source ratio. */
.contact-hero__crop img, .live-hero__crop img, .memorial-post__backdrop img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.site-header__logo img, .site-footer__logo img {
  height: auto;
}

@media (max-width: 1279px) {
  .memorial-archive .archive-card__media {
    height: auto;
    aspect-ratio: 320 / 219;
  }
  .memorial-post__portrait { max-width: 100%; height: auto; }
  .blog-card__copy, .blog-featured__copy, .guide-section, .memorial-post__panel {
    min-inline-size: 0;
  }
}
@media (max-width: 767px) {
  .site-header__brand-copy strong { white-space: nowrap; }
  .site-header__brand-copy > span { max-width: 100%; text-wrap: pretty; }
  .blog-hero h1, .request-hero h1, .memorial-post__hero h1 {
    font-size: clamp(18px, 5.6vw, 28px);
    line-height: 1.55;
    text-wrap: balance;
  }
  .blog-guide .blog-featured h1, .guide-section h2,
  .memorial-post__panel h2, .contact-message__form h2 {
    font-size: clamp(21px, 5.9vw, 28px);
    line-height: 1.55;
    text-wrap: balance;
  }
  .memorial-about h2, .memorial-plans h2, .memorial-archive h2,
  .memorial-services h2, .memorial-news h2, .live-guide h2, .contact-faq h2 {
    font-size: min(calc(36px * var(--section-title-scale, 1)), clamp(23px, 6.6vw, 32px));
    line-height: 1.55;
    text-wrap: balance;
  }
  .blog-card h3, .service-card h3, .live-card h2 { text-wrap: balance; }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .blog-hero h1, .request-hero h1 {
    font-size: min(48px, 5.6vw);
    line-height: 1.55;
  }
}
