/* test4 3.5: first page without the photo frame, and the invitation text in nastaliq. */

/* --- First page «بدون عکس»: names and date over the card's background --- */
.hero.hero--names { justify-content: center; }
.hero.hero--names::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 78% 46% at 50% 47%, rgba(22, 14, 18, .5), rgba(22, 14, 18, .22) 64%, transparent 100%),
    linear-gradient(180deg, rgba(22, 14, 18, .18), rgba(22, 14, 18, .1) 45%, rgba(22, 14, 18, .26));
}
.hero.hero--names .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(calc(100% - 1.5rem), 640px);
  margin: 0 auto !important;
  color: #fffaf1;
}
.hero--names .hero-ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 .7rem; }
.hero--names .hero-ornament i { display: block; width: clamp(56px, 17vw, 104px); height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 246, 228, .9)); }
.hero--names .hero-ornament i:last-child { transform: scaleX(-1); }
.hero--names .hero-ornament b { color: #e3c68f; font-size: 11px; line-height: 1; font-weight: 400; text-shadow: 0 0 10px rgba(227, 198, 143, .8); }
.hero.hero--names .hero-content .hero-kicker {
  display: block;
  margin: 0 0 .35rem !important;
  color: #fff6e6 !important;
  font-size: clamp(.74rem, 2.7vw, .92rem) !important;
  letter-spacing: .34em !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}
/* The names stand one under the other, the «&» (or «و») in gold between them. */
.hero.hero--names .hero-content h1 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: 100%;
  margin: 0 !important;
  padding: .05em 0 .1em !important;
  color: #fffaf3 !important;
  white-space: normal !important;
  text-shadow: 0 3px 22px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .35) !important;
}
.hero.hero--names .hero-content h1 span { display: block; justify-self: auto !important; margin: 0 !important; max-width: 100%; overflow-wrap: anywhere; color: inherit !important; }
.hero.hero--names .hero-content h1 b { display: block; margin: -.12em 0 -.08em !important; color: #d9b977 !important; text-shadow: 0 2px 14px rgba(0, 0, 0, .45) !important; }
.hero.hero--names .hero-content h1.names-en { font-size: clamp(64px, 18.5vw, 118px) !important; line-height: 1.12 !important; }
.hero.hero--names .hero-content h1.names-en b { font-size: .66em !important; }
.hero.hero--names .hero-content h1.names-fa { font-size: clamp(3.2rem, 16vw, 6.2rem) !important; line-height: 1.6 !important; padding: .3em 0 .3em !important; }
.hero.hero--names .hero-content h1.names-fa b { font-size: .5em !important; line-height: 1.2 !important; margin: -.1em 0 !important; }
.hero.hero--names .hero-content h1.names-fa.names-font-nastaliq { font-size: clamp(3.3rem, 16.5vw, 6.4rem) !important; line-height: 1.65 !important; }
/* Long names (8+ Persian letters, 11+ English) get a smaller size so they stay on one line each. */
.hero.hero--names .hero-content h1.names-fa.names-long { font-size: clamp(2.5rem, 12.5vw, 5rem) !important; }
.hero.hero--names .hero-content h1.names-en.names-long { font-size: clamp(50px, 14.5vw, 96px) !important; }
.hero.hero--names .hero-date { margin-top: 1.1rem; color: #fff6e6 !important; font-size: clamp(.95rem, 3.8vw, 1.15rem) !important; letter-spacing: .34em !important; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.hero.hero--names .hero-date .date-caption { color: #f1dfbd !important; letter-spacing: .08em; }
.hero.hero--names .opening-quote { color: #fff2dc !important; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); margin-bottom: 1.2rem; }
.hero.hero--names .personal-welcome { margin-bottom: 1.1rem; }
@media (min-width: 700px) {
  .hero.hero--names .hero-content h1.names-en { font-size: clamp(90px, 11vw, 130px) !important; }
}

/* --- Invitation text in nastaliq (panel: «فونت متن دعوت») --- */
#invitationText .message-card.font-nastaliq :is(.message-top-text, h2, .families-name, .families-name span, .invitation-copy, .message-content > strong) {
  font-family: "Mina Miremad", var(--fa, "Vazirmatn"), serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}
#invitationText .message-card.font-nastaliq .message-top-text { font-size: clamp(1.9rem, 8.2vw, 2.7rem) !important; line-height: 1.9 !important; margin-bottom: 4px !important; }
#invitationText .message-card.font-nastaliq h2 { font-size: clamp(27px, 7.4vw, 38px) !important; line-height: 1.95 !important; }
#invitationText .message-card.font-nastaliq .families-name { font-size: 21px !important; line-height: 2.1 !important; }
#invitationText .message-card.font-nastaliq .family-pair { font-size: calc(var(--family-size, 16px) * 1.3) !important; }
#invitationText .message-card.font-nastaliq .invitation-copy { font-size: clamp(20px, 5.5vw, 24px) !important; line-height: 2.25 !important; }
#invitationText .message-card.font-nastaliq .message-content > strong { font-size: clamp(19px, 5vw, 22px) !important; line-height: 2.1 !important; }
#invitationText .message-card.font-nastaliq:not(.is-simple) .message-top-text { font-size: clamp(1.4rem, 6vw, 1.9rem) !important; }
#invitationText .message-card.font-nastaliq:not(.is-simple) .invitation-copy { font-size: clamp(18px, 4.8vw, 21px) !important; }
