@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;
  }
}

/* Public layout dimensions, shared by the live pages and card previews. */
:root {
  --control-height: 56px;
  --action-height: 48px;
}
main.landing-preview { --section-gap: 80px; }
main.landing-preview > section + section[class],
main.landing-preview > section + footer[class] { margin-block-start: 80px; }

.landing-preview .plan-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 473px;
  height: auto;
}
.plan-card .plan-card__description { height: auto; min-height: 3rem; }
.plan-card .plan-card__price { margin-block-start: auto; padding-block-start: 10px; box-sizing: content-box; }
.plan-card .plan-card__features li { height: auto; min-height: 21px; white-space: normal; }
.plan-card .plan-card__features span { min-width: 0; }
@media (max-width: 767px) {
  .landing-preview .plan-card { padding-block: 32px 18px; }
  .plan-card .plan-card__features { gap: 5px; }
  .plan-card .plan-card__divider { margin-block-start: 12px; }
  .plan-card .plan-card__request { margin-block-start: 10px; }
}

article.live-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 572px;
  height: auto;
}
article.live-card > .live-card__image {
  flex: 1 0 120px;
  min-height: 120px;
  height: 120px;
  object-fit: cover;
  width: 100%;
}
article.live-card > :not(.live-card__image) { flex-shrink: 0; }
article.live-card .live-card__schedule { box-sizing: border-box; }
@media (max-width: 767px) {
  article.live-card .live-card__schedule { padding-block: 12px; }
}

body :is(.plan-card__request, .request-form__actions button, a.request-support,
  .contact-message__submit, .memorial-post__button, .memorial-post__more button,
  .blog-read__button, .guide-contents__request),
.blog-featured .blog-read__button,
.contact-page .contact-hero__actions > :is(a, button),
.live-card .live-card__actions > :is(a, button),
:is(.contact-page,.memorial-post-page,.blog-page,.blog-guide,.request-page) .mobile-carousel-controls button {
  box-sizing: border-box;
  min-height: var(--action-height);
  height: var(--action-height);
  padding-block: 0;
}
:is(.contact-page,.memorial-post-page,.blog-page,.blog-guide,.request-page) .mobile-carousel-controls button {
  width: var(--action-height);
}
.contact-page .contact-faq__toggle, .request-select-menu .request-select-menu__option {
  min-height: var(--action-height);
  height: auto;
  padding-block: 6px;
}
.request-page .request-control:not(.request-control--multiline),
.contact-page .contact-field:not(.contact-field--message),
.memorial-post-page .memorial-post__field:not(.memorial-post__field--message),
:is(.blog-page,.blog-guide) input:where([type=text],[type=search],[type=email],[type=tel],:not([type])) {
  box-sizing: border-box;
  min-height: var(--control-height);
  height: var(--control-height);
}
.contact-field input, .memorial-post__field input { padding-block: 0; }
form.memorial-index-search {
  box-sizing: border-box;
  height: var(--control-height);
  min-height: var(--control-height);
  padding: 0 4px;
  border: 0;
  box-shadow: inset 0 0 0 1px #343434;
}
form.memorial-index-search input {
  box-sizing: border-box;
  height: var(--control-height);
  border-radius: 6px;
}
form.memorial-index-search button {
  position: relative;
  box-sizing: border-box;
  width: var(--action-height);
  height: var(--action-height);
  padding: 0;
  font-size: 0;
}
form.memorial-index-search button::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url('./memorial-search.svg') center / contain no-repeat;
  mask: url('./memorial-search.svg') center / contain no-repeat;
}

/* Persian reading text and headings use relative type and unitless leading. */
:is(.landing-preview,.request-page,.live-page,.contact-page,.memorial-index-page,.memorial-post-page,.blog-page) :is(h1,h2,h3,h4), .studio-story :is(h1,h2,h3) {
  line-height: 1.5;
  text-wrap: balance;
  overflow-wrap: break-word;
}
body .guide-body :is(p,li), body .memorial-post__story p,
.studio-story :is(p,li,blockquote), studio-insert p {
  font-size: 1rem;
  line-height: 2;
  overflow-wrap: break-word;
}
@media (max-width: 767px) {
  body :is(.plan-card h3,.live-card h2,.blog-card h3) { font-size: 1.25rem; }
  body :is(.request-control,.contact-field,.memorial-post__field) :is(input,select,textarea),
  form.memorial-index-search input { font-size: 1rem; }
}
