/* The selected Ivory Garden invitation, personalized for Zabir & Zuliana. */
@font-face {
  font-family: "Italianno";
  src: url("assets/fonts/italianno-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
body { --wedding-script: "Italianno", "Allura", cursive; }
.opening-sequence { height: 270svh; }
.opening-stage { --blessing: 0; }
.opening-veil { opacity: calc(var(--blessing) * .94); }
.opening-letter-content {
  position: absolute;
  z-index: 3;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 64px);
  max-width: 1420px;
  text-align: center;
  pointer-events: none;
}
.bismillah-calligraphy { display: block; width: 100%; height: auto; }
.brand-label { max-width: 220px; line-height: 1.5; }
.opening-names {
  position: relative;
  z-index: auto;
  inset: auto;
  transform: translateY(calc((1 - var(--names)) * 16px));
  width: 100%;
  max-width: none;
}
.opening-eyebrow { font-size: 8px; letter-spacing: 3.2px; margin-bottom: 24px; }
.opening-names h1 {
  font-family: var(--wedding-script);
  font-size: clamp(90px, 14vw, 210px);
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.08;
  gap: .17em;
}
.opening-names h1 > span { white-space: nowrap; }
.opening-names h1 > span:first-child { opacity: var(--name-first,0); transform: translate3d(0,calc((1 - var(--name-first,0)) * 12px),0); }
.opening-names h1 > i { opacity: var(--name-amp,0); transform: translate3d(0,calc((1 - var(--name-amp,0)) * 8px),0); }
.opening-names h1 > span:last-child { opacity: var(--name-second,0); transform: translate3d(0,calc((1 - var(--name-second,0)) * 12px),0); }
.opening-names .couple-verse { opacity: var(--name-verse,0); transform: translate3d(0,calc((1 - var(--name-verse,0)) * 9px),0); }
.opening-names .opening-name-rule,
.opening-names .opening-date,
.opening-names .opening-place { opacity: var(--name-details,0); transform: translate3d(0,calc((1 - var(--name-details,0)) * 8px),0); }
.opening-names .opening-name-rule { opacity: calc(var(--name-details,0) * .4); }
.opening-names h1 i { font-family: var(--wedding-script); font-size: .55em; line-height: 1.1; padding-right: .16em; }
.editorial-invitation .couple-names {
  font-family: var(--wedding-script);
  font-size: clamp(85px, 8vw, 120px)!important;
  letter-spacing: 0!important;
  line-height: 1.08!important;
  font-weight: 400;
  font-synthesis: none;
}
.editorial-invitation .couple-names > em { font-family: var(--wedding-script); font-style: normal; font-size: .46em!important; line-height: 1.1; margin: 4px 0!important; }
.opening-name-rule { margin-top: 28px; margin-bottom: 22px; }
.opening-date { font-size: 9px; letter-spacing: 3.4px; }
.opening-place { font-size: 24px; margin-top: 12px; }
.couple-verse { margin: 18px auto 0; font-family: var(--display); font-size: 23px; font-style: italic; line-height: 1.4; color: var(--ink); }
.couple-verse p { margin: 0; }
.couple-verse cite { display: block; margin-top: 5px; font-family: "DM Sans", Arial, sans-serif; font-size: 10px; font-weight: 400; font-style: normal; letter-spacing: .4px; line-height: 1.6; }
.opening-names .couple-verse { font-size: 22px; margin-top: 14px; }
.invitation-inner .invitation-intro { margin: 25px auto 0; max-width: 32ch; text-wrap: balance; }
.invitation-inner .couple-verse { margin-top: 22px; }
.invitation-inner .invitation-journey { font-style: italic; }
.invitation-inner .invitation-gratitude { font-size: 20px; line-height: 1.5; margin: 19px auto 0; max-width: 31ch; text-wrap: balance; }
.date-heading .date-intro { font-size: clamp(27px, 2.6vw, 37px); line-height: 1.3; letter-spacing: 0; margin: 22px 0 0; max-width: 21ch; text-wrap: balance; }

.music-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  font: 10px "DM Sans", Arial, sans-serif;
  letter-spacing: .3px;
  pointer-events: auto;
}
.intro-active .music-control { pointer-events: auto; }
.music-note-icon { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.2; fill: none; }
.music-control:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.music-equalizer { display: none; align-items: center; gap: 2px; height: 15px; }
.music-equalizer i { display: block; width: 2px; height: 11px; background: currentColor; animation: music-pulse 1.1s ease-in-out infinite alternate; }
.music-equalizer i:nth-child(2) { height: 15px; animation-delay: -.65s; }
.music-equalizer i:nth-child(3) { height: 8px; animation-delay: -.3s; }
.music-control[data-state="playing"] .music-equalizer { display: flex; }
.music-control[data-state="playing"] { background: var(--paper); }
@keyframes music-pulse { to { transform: scaleY(.35); } }

.invitation-portrait { width: min(560px, 100%); margin: 0 auto; }
.invitation-portrait .wedding-photo-wrap { width: 100%; max-width: none; margin: 0; }
.family-invitation { max-width: 1100px; margin: 105px auto 0; padding-top: 88px; border-top: 1px solid var(--line); text-align: center; }
.family-invitation > .eyebrow { margin: 0 auto 44px; }
.family-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 7%; align-items: start; }
.family-pair { padding: 0 8px; }
.family-pair + .family-pair { border-left: 1px solid var(--line); }
.family-role { font-size: 8px; line-height: 1.7; letter-spacing: 1.8px; color: var(--muted); margin: 0 0 23px; }
.family-pair h3 { font-family: var(--display); font-size: clamp(24px, 2.1vw, 30px); font-weight: 500; line-height: 1.3; margin: 0; text-wrap: balance; }
.family-ampersand { display: block; font-family: var(--script); font-size: 29px; line-height: 1; margin: 10px 0; color: var(--accent); }
.family-invitation-copy { max-width: 62ch; margin: 48px auto 0; font-family: var(--display); font-size: 23px; font-style: italic; line-height: 1.55; text-wrap: balance; }
.family-invitation-copy > span { display: block; }
.family-honorifics { margin: 3px 0; }
.family-couple-names { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 28px auto 0; font-family: var(--wedding-script); font-size: 54px; font-weight: 400; font-synthesis: none; line-height: 1.15; letter-spacing: 0; }
.family-couple-names > span { max-width: 100%; text-wrap: balance; }
.family-couple-names > i { font-size: .48em; font-style: normal; line-height: 1; color: var(--accent); }
.family-couple-photo { width: min(760px, 100%); margin: clamp(28px, 4vw, 44px) auto 0; }
.family-couple-photo img { display: block; width: 100%; height: auto; }
.programme { max-width: 1100px; margin: 90px auto 0; padding-top: 64px; border-top: 1px solid var(--line); display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.programme-heading .eyebrow { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; letter-spacing: .08em; }
.programme-timeline { list-style: none; padding: 0; margin: 0; }
.programme-timeline li { display: grid; grid-template-columns: 108px 30px 1fr; gap: 14px; align-items: center; position: relative; min-height: 88px; }
.programme-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 136.5px; top: calc(50% + 6px); width: 1px; height: calc(100% - 12px); background: var(--line); }
.programme-timeline time { font-family: var(--display); font-size: 30px; white-space: nowrap; }
.programme-timeline time span { display: block; margin-top: 3px; font: 9px "DM Sans", Arial, sans-serif; letter-spacing: 1px; color: var(--muted); }
.programme-dot { justify-self: center; width: 7px; height: 7px; border: 1px solid var(--accent); border-radius: 50%; background: var(--paper2); }
.programme-highlight .programme-dot { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent); }
.programme-timeline h3 { font-family: var(--display); font-size: 25px; font-weight: 400; line-height: 1.2; margin: 0; }
.programme-highlight h3 { font-style: italic; }
.concept-photo-note { text-align: center; padding: 0 24px 34px; margin: 0; font-size: 9px; color: var(--muted); line-height: 1.6; }
.site-footer { background: var(--paper); }
.wedding-photo.user-photo { height: auto; aspect-ratio: auto; object-fit: contain; filter: none; }
.emergency-contact { margin-top: 35px; padding-top: 27px; border-top: 1px solid var(--line); text-align: left; }
.emergency-contact > .eyebrow { letter-spacing: 1.8px; margin: 0 0 16px; color: var(--muted); }
.emergency-contact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 24px; }
.emergency-person h3 { font-family: var(--display); font-size: 31px; line-height: 1.1; margin: 0 0 7px; }
.contact-number { font-size: 13px; letter-spacing: 1px; text-decoration: none; }
.contact-number:hover { text-decoration: underline; text-underline-offset: 4px; }
.emergency-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.emergency-actions .button { padding: 12px 16px; font-size: 10px; }

/* Selected prayer design: 04 · Vellum & Petals. */
.prayer-section { padding: 96px 24px; overflow: hidden; scroll-margin-top: 80px; text-align: center; background: var(--paper); border-top: 1px solid var(--line); container-type: inline-size; container-name: wedding-prayer; }
.prayer-card {
  position: relative;
  isolation: isolate;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 46px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: radial-gradient(ellipse at 65% 10%, #fffdf8, #e4e7d8 75%);
  text-align: center;
}
.prayer-surface { position: relative; isolation: isolate; padding: 26px 40px; min-width: 0; }
.prayer-content { position: relative; z-index: 3; padding: 42px 46px; background: #fffff6e8; border: 1px solid #ffffffd9; box-shadow: 0 12px 38px #3c462313; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.prayer-bismillah { display: block; width: 280px; max-width: 82%; margin: 0 auto 27px; }
.prayer-copy { margin: 0 auto; color: #3d4533; font: italic 400 23px/1.55 var(--display); }
.prayer-copy p { margin: 0 0 18px; font: inherit; text-wrap: pretty; }
.prayer-copy .prayer-amin { margin: 23px 0 0; }
.prayer-flower { position: absolute; z-index: 1; height: auto; max-width: none; object-fit: contain; pointer-events: none; user-select: none; }
.prayer-flower-top { width: 320px; top: -70px; right: -80px; transform: rotate(-12deg); }
.prayer-flower-bottom { width: 260px; bottom: -60px; left: -60px; transform: rotate(15deg); }

@media (max-width: 700px) {
  .prayer-section { padding: 64px 16px; }
  .prayer-copy { font-size: 20px; }
}
@container wedding-prayer (max-width: 540px) {
  .prayer-card { padding: 22px 14px; }
  .prayer-surface { padding: 35px 11px 30px; }
  .prayer-content { padding: 34px 21px 32px; background: #fffff6f0; }
  .prayer-bismillah { width: 225px; max-width: 90%; margin-bottom: 25px; }
  .prayer-copy p { margin-bottom: 19px; }
  .prayer-copy .prayer-amin { margin: 23px 0 0; }
  .prayer-flower-top { width: 205px; top: -46px; right: -55px; }
  .prayer-flower-bottom { width: 170px; bottom: -35px; left: -50px; }
}

@media (orientation: portrait) {
  .opening-letter-content { top: 46%; width: calc(100% - 36px); }
  .opening-names { inset: auto; width: 100%; }
  .opening-names h1 { font-size: clamp(78px, 23vw, 142px); line-height: 1; gap: 0; }
  .opening-names h1 i { margin: 6px 0 8px; }
  .opening-eyebrow { margin-bottom: 18px; font-size: 7px; letter-spacing: 2.7px; }
  .opening-names .couple-verse { margin-top: 12px; font-size: 19px; }
  .opening-names .couple-verse cite { font-size: 9px; margin-top: 3px; }
  .opening-name-rule { margin-top: 19px; margin-bottom: 17px; }
  .opening-place { font-size: 22px; }
}

@media (max-width: 700px) {
  .emergency-contact { text-align: center; margin-top: 30px; }
  .emergency-contact-row { justify-content: center; gap: 20px; }
  .emergency-person { width: 100%; }
  .emergency-actions { justify-content: center; }
  .editorial-invitation .couple-names { font-size: clamp(92px, 28vw, 132px)!important; }
  .invitation-inner .invitation-intro { font-size: 20px; }
  .invitation-inner .invitation-intro br { display: none; }
  .invitation-inner .couple-verse { font-size: 22px; }
  .invitation-inner .invitation-gratitude { font-size: 18px; }
  .date-heading .date-intro { font-size: 27px; max-width: 24ch; margin: 18px auto 0; }
  .music-control { min-height: 42px; font-size: 9px; padding: 9px 11px; gap: 8px; }
  .family-invitation { margin-top: 65px; padding-top: 55px; }
  .family-invitation > .eyebrow { margin-bottom: 34px; }
  .family-pairs { grid-template-columns: 1fr; gap: 33px; }
  .family-pair { padding: 0; }
  .family-pair + .family-pair { border-left: 0; padding-top: 34px; border-top: 1px solid var(--line); }
  .family-role { font-size: 7px; letter-spacing: 1.5px; margin-bottom: 17px; }
  .family-pair h3 { font-size: 27px; line-height: 1.25; }
  .family-invitation-copy { margin-top: 38px; font-size: 20px; line-height: 1.55; }
  .family-couple-names { margin-top: 25px; font-size: 40px; gap: 4px; }
  .programme { grid-template-columns: 1fr; gap: 30px; margin-top: 56px; padding-top: 44px; }
  .programme-heading { text-align: center; }
  .programme-timeline li { grid-template-columns: 81px 22px 1fr; gap: 10px; min-height: 83px; }
  .programme-timeline li:not(:last-child)::after { left: 101.5px; }
  .programme-timeline time { font-size: 28px; }
  .programme-timeline h3 { font-size: 23px; }
  .programme-timeline time span { font-size: 8px; }
  .concept-photo-note { padding-bottom: 26px; font-size: 8px; }
}

@media (max-height: 650px) and (orientation: portrait) {
  .opening-letter-content { top: 45%; }
  .opening-names h1 { font-size: clamp(57px, 12svh, 78px); }
  .opening-names h1 i { margin: 6px 0 8px; }
  .opening-eyebrow { margin-bottom: 13px; font-size: 6px; }
  .opening-names .couple-verse { margin-top: 9px; font-size: 16px; }
  .opening-names .couple-verse cite { font-size: 8px; }
  .opening-name-rule { margin: 14px auto 12px; }
  .opening-date { font-size: 7px; }
  .opening-place { font-size: 19px; margin-top: 8px; }
}

@media (max-height: 540px) and (orientation: landscape) {
  .opening-letter-content { top: 46%; width: calc(100% - 36px); }
  .opening-eyebrow { margin-bottom: 10px; font-size: 6px; }
  .opening-names h1 { font-size: clamp(49px, 18svh, 84px); }
  .opening-names .couple-verse { margin-top: 7px; font-size: 16px; }
  .opening-names .couple-verse cite { font-size: 8px; margin-top: 2px; }
  .opening-name-rule { margin: 10px auto; }
  .opening-date { font-size: 7px; }
  .opening-place { font-size: 18px; margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .opening-names { transform: none; }
  .music-equalizer i { animation: none; }
}
