/* Sehra (سہرا): a nikah invitation in emerald, gold, ivory and deep rose.
   Gate (a sehra of jasmine and rose strings; --part 0..1 draws it apart) -> hero under a mihrab arch
   -> the invitation -> the date (light the fanoos) -> families -> functions -> duas. No figures anywhere. */

:root {
  --emerald: #0e4d3c;
  --emerald-2: #0a3d30;
  --night: #062a22;
  --gold: #d9b65a;
  --gold-2: #f1dc9c;
  --gold-ink: #7d5f16;          /* gold that reads on ivory */
  --ivory: #f7f1e3;
  --ivory-2: #efe5cd;
  --rose: #8a1c3a;
  --rose-2: #6a122b;
  --ink: #1c2f29;
  --ink-soft: #4d5f58;

  --f-body: "Amiri", Georgia, "Times New Roman", serif;
  --f-label: "El Messiri", "Trebuchet MS", sans-serif;
  --f-name: "Gilda Display", "Amiri", Georgia, serif;
  --f-ar: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;
  --f-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Amiri", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* girih: the eight-point star and cross, as a tile */
  --girih-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23d9b65a' stroke-width='1.1'%3E%3Cpath d='M80 40L68.3 51.7V68.3H51.7L40 80L28.3 68.3H11.7V51.7L0 40L11.7 28.3V11.7H28.3L40 0L51.7 11.7H68.3V28.3Z'/%3E%3Cpath d='M58 40L52.700 45.300V52.700H45.300L40 58L34.700 52.700H27.300V45.300L22 40L27.300 34.700V27.300H34.700L40 22L45.300 27.300H52.700V34.700Z'/%3E%3Cpath d='M0 0L11.700 11.700M80 0L68.300 11.700M0 80L11.700 68.300M80 80L68.300 68.300'/%3E%3C/g%3E%3C/svg%3E");
  --girih-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%237d5f16' stroke-width='1.1'%3E%3Cpath d='M80 40L68.3 51.7V68.3H51.7L40 80L28.3 68.3H11.7V51.7L0 40L11.7 28.3V11.7H28.3L40 0L51.7 11.7H68.3V28.3Z'/%3E%3Cpath d='M58 40L52.700 45.300V52.700H45.300L40 58L34.700 52.700H27.300V45.300L22 40L27.300 34.700V27.300H34.700L40 22L45.300 27.300H52.700V34.700Z'/%3E%3Cpath d='M0 0L11.700 11.700M80 0L68.300 11.700M0 80L11.700 68.300M80 80L68.300 68.300'/%3E%3C/g%3E%3C/svg%3E");
  --star8: polygon(100% 50%, 85.4% 64.6%, 85.4% 85.4%, 64.6% 85.4%, 50% 100%, 35.4% 85.4%, 14.6% 85.4%, 14.6% 64.6%, 0 50%, 14.6% 35.4%, 14.6% 14.6%, 35.4% 14.6%, 50% 0, 64.6% 14.6%, 85.4% 14.6%, 85.4% 35.4%);

  --fx-music-bg: #0a3d30;
  --fx-music-ring: #d9b65a;
  --fx-music-ink: #f1dc9c;
  --fx-bg: #f7f1e3;
}

html { scroll-behavior: smooth; }
html.shut { overflow: hidden; }
body {
  background: var(--night);
  color: var(--ink);
  font: 400 18px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
.defs { position: absolute; }
html.og body > svg.defs { display: block !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* shared pieces */
.fanoos { --glass: #174f40; --flame: transparent; overflow: visible; }
.fanoos__glass { fill: var(--glass); transition: fill .9s ease; }
.fanoos__flame { fill: var(--flame); transition: fill .9s ease; }
.hilal { color: var(--gold); }
.khatam { color: var(--gold); }
.archcap { display: block; width: 100%; height: var(--cap, 84px); margin-bottom: -1px; }
.archcap__fill { fill: var(--ivory); }
.archcap__line { fill: none; stroke: var(--gold); stroke-width: 1.5; }

.rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px auto; width: min(220px, 80%); }
.rule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.rule i:last-child { transform: scaleX(-1); }
.rule .khatam { width: 18px; height: 18px; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--gold-ink); border-radius: 999px; color: var(--emerald);
  font: 600 13.5px/1.2 var(--f-label); letter-spacing: .06em; text-decoration: none; text-transform: uppercase;
  transition: background .25s, color .25s, transform .25s;
}
.btn:hover { background: rgba(217, 182, 90, .22); }
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--emerald); border-color: var(--emerald); color: var(--gold-2); }
.btn--solid:hover { background: var(--emerald-2); }

/* =================================================================== GATE + HERO */

.gate {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(40, 140, 105, .5), transparent 70%),
    radial-gradient(70% 40% at 50% 100%, rgba(138, 28, 58, .28), transparent 75%),
    linear-gradient(180deg, #0b4234, var(--night));
}
.gate::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--girih-gold) center top / 80px 80px; opacity: .13;
  -webkit-mask-image: radial-gradient(100% 75% at 50% 45%, transparent 30%, #000 100%); mask-image: radial-gradient(100% 75% at 50% 45%, transparent 30%, #000 100%);
}
.hero {
  position: relative; width: 100%; max-width: 460px; padding: 30px 26px 54px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero__lamps { position: absolute; left: 0; right: 0; top: 0; height: 0; }
.hero__lamps .fanoos { position: absolute; top: -8px; width: 34px; height: auto; transform-origin: 50% 0; animation: sway 5.5s ease-in-out infinite alternate; }
.fanoos--l { left: 30px; }
.fanoos--r { right: 30px; animation-delay: -2.7s !important; }
.hero__lamps .fanoos::before { content: ""; }
.gate.open .hero__lamps .fanoos { --glass: #ffd98a; --flame: #fff6d8; filter: drop-shadow(0 0 14px rgba(255, 205, 110, .75)); transition: filter 1.2s ease .5s; }
.gate.open .fanoos--r .fanoos__glass, .gate.open .fanoos--r .fanoos__flame { transition-delay: .35s; }
.hero__hilal {
  width: 58px; height: 58px; margin-bottom: 4px; rotate: -18deg;
  filter: drop-shadow(0 0 0 rgba(241, 220, 156, 0)); opacity: .55; scale: .86;
  transition: filter 1.4s ease .3s, opacity 1.2s ease .2s, scale 1.4s var(--ease) .2s;
}
.gate.open .hero__hilal { filter: drop-shadow(0 0 16px rgba(241, 220, 156, .7)); opacity: 1; scale: 1; }

.mihrab { --cap: clamp(70px, 22vw, 96px); position: relative; width: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.mihrab__body {
  position: relative; padding: 0 20px 26px; background: var(--ivory);
  border-radius: 0 0 6px 6px;
}
.mihrab__body::before {            /* the gold line continues down the sides and across the foot */
  content: ""; position: absolute; left: 3%; right: 3%; top: 0; bottom: 9px;
  border: solid var(--gold); border-width: 0 1.5px 1.5px; border-radius: 0 0 3px 3px; pointer-events: none;
}
.bism { margin-top: -22px; position: relative; font: 700 clamp(25px, 7.6vw, 32px)/1.7 var(--f-ar); color: var(--emerald); }
.bism__en { font: 500 11.5px/1.4 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.hero__lead { font-style: italic; font-size: 17px; color: var(--ink-soft); }
.hero__names { margin: 8px 0 2px; font: 400 clamp(27px, 8vw, 36px)/1.14 var(--f-name); color: var(--rose); text-wrap: balance; }
.hero__names span { display: block; }
.hero__names .hero__amp { margin: 2px 0; font: italic 400 22px/1.2 var(--f-body); color: var(--gold-ink); }
.hero__ur { margin-top: 2px; font: 400 21px/2.1 var(--f-ur); color: var(--emerald); }
.hero__date { margin-top: 8px; font: 600 14px/1.45 var(--f-label); letter-spacing: .09em; text-transform: uppercase; color: var(--emerald); }
.hero__venue { text-wrap: balance; font-size: 16.5px; color: var(--ink-soft); }
.hero__insha { margin-top: 6px; font: italic 400 18px/1.3 var(--f-body); color: var(--gold-ink); }
.hero__down { position: absolute; left: 50%; bottom: 2px; width: 44px; height: 44px; translate: -50% 0; display: grid; place-items: center; }
.hero__down span { width: 12px; height: 12px; border: solid var(--gold); border-width: 0 2px 2px 0; rotate: 45deg; animation: nudge 1.8s ease-in-out infinite; }
html.shut .hero__down { visibility: hidden; }

/* ---- the sehra ---- */
.sehra { --part: 0; --sw: 0; position: absolute; left: 0; right: 0; top: 0; height: 100svh; z-index: 5; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.sehra.is-dragging { cursor: grabbing; }
html:not(.js) .sehra { display: none; }
.sehra__veil {
  position: absolute; inset: 0; opacity: calc(1 - var(--part) * 1.2);
  background:
    var(--girih-gold) center top / 80px 80px,
    radial-gradient(90% 60% at 50% 30%, #0f5441, #072e25 85%);
  background-blend-mode: soft-light, normal;
}
.sehra__col { position: absolute; top: 0; bottom: 0; left: 50%; width: min(100%, 460px); translate: -50% 0; container-type: inline-size; }
.sehra__rail {
  position: absolute; left: -8px; right: -8px; top: 0; height: 15px; border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #8f6c1f, #f1dc9c 40%, #d9b65a 60%, #9a7626);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}
.sehra__rail::after {           /* a scalloped gota fringe under the rail */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px;
  background: radial-gradient(circle at 50% 0, var(--gold) 0 6.5px, transparent 7.5px) 0 0 / 18px 9px repeat-x;
}
.str {
  position: absolute; top: 6px; left: calc(var(--x) * 1cqw); width: 36px; height: var(--len); margin-left: -18px;
  transform-origin: 50% 0;
  translate: calc(var(--dx) * var(--part) * 1cqw) 0;
  rotate: calc(var(--sw) * var(--t));
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35));
}
.str svg { display: block; width: 36px; height: 100%; transform-origin: 50% 0; animation: sway 4.6s ease-in-out var(--d, 0s) infinite alternate; }
.str::after {                   /* the drop at the end of each string */
  content: ""; position: absolute; left: 50%; top: calc(100% - 3px); width: 12px; height: 20px; translate: -50% 0;
  background: radial-gradient(circle at 40% 35%, #fbeebd, var(--gold) 55%, #8f6c1f);
  border-radius: 50% 50% 50% 50% / 35% 35% 65% 65%;
}
.gate.open .str svg { animation-duration: 7s; }

.plaque {
  position: absolute; left: 50%; top: 47%; width: min(292px, calc(100% - 44px)); translate: -50% -50%;
  padding: 16px 16px 16px; text-align: center; color: var(--ivory);
  background: linear-gradient(180deg, #0a3d30, #062a22);
  border: 1.5px solid var(--gold); border-radius: 120px 120px 14px 14px;
  box-shadow: 0 0 0 5px rgba(6, 42, 34, .9), 0 0 0 6px rgba(217, 182, 90, .55), 0 22px 44px rgba(0, 0, 0, .55);
  opacity: calc(1 - var(--part) * 3.2);
}
.plaque__to { font: italic 400 17px/1.3 var(--f-body); color: var(--gold-2); margin-top: 16px; }
.plaque__to + .plaque__ur { margin-top: 0; }
.plaque__ur { margin-top: 12px; padding-bottom: 12px; font: 600 26px/1.9 var(--f-ur); color: var(--gold); }
.plaque__names { font: 400 clamp(25px, 7.4vw, 30px)/1.2 var(--f-name); text-wrap: balance; }
.plaque__date { margin-top: 5px; font: 500 12.5px/1.4 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.parter {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 132px; height: 60px; margin: 14px auto 8px; padding: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 35%, #fbeebd, var(--gold) 60%, #a37f2c); border: 0; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .35);
  animation: breathe 2.6s ease-in-out infinite;
}
.parter__star { width: 30px; height: 30px; color: var(--rose); }
.parter__arrow { width: 11px; height: 11px; border: solid var(--emerald); border-width: 0 0 2.5px 2.5px; rotate: 45deg; animation: pullL 1.6s ease-in-out infinite; }
.parter__arrow--r { rotate: -135deg; animation-name: pullR; }
.plaque__hint { font: 500 13px/1.4 var(--f-label); letter-spacing: .05em; color: var(--gold-2); }
.gate__skip {
  position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); translate: -50% 0;
  min-width: 88px; min-height: 44px; padding: 8px 20px; cursor: pointer;
  background: #062a22; border: 1px solid rgba(217, 182, 90, .8); border-radius: 999px; box-shadow: 0 6px 16px rgba(0, 0, 0, .5);
  font: 500 13px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2);
  opacity: calc(1 - var(--part) * 3.2);
}
.gate:not([data-phase="idle"]) :is(.plaque, .gate__skip) { pointer-events: none; }
.gate.open .sehra { pointer-events: none; cursor: auto; }
.gate.open :is(.sehra__veil, .plaque, .gate__skip) { visibility: hidden; }
.gate.open .sehra__rail { opacity: .0; transition: opacity .8s ease; }
.gate.open .str { transition: opacity 1s ease; opacity: .96; }
.gate.instant * { transition: none !important; }

/* =================================================================== SECTIONS */

.sec { position: relative; padding: 72px 22px 78px; text-align: center; overflow: hidden; }
.sec > * { position: relative; max-width: 460px; margin-left: auto; margin-right: auto; }
.sec__ur { padding-bottom: 6px; font: 400 22px/2.1 var(--f-ur); color: var(--gold-ink); }
.sec__title { font: 400 clamp(31px, 9vw, 42px)/1.15 var(--f-name); color: var(--emerald); margin-bottom: 26px; }
.sec__title::after { content: ""; display: block; width: 46px; height: 2px; margin: 14px auto 0; background: var(--gold); }

/* ---- the invitation ---- */
.sec--invite { background: var(--ivory); }
.sec--invite::before, .sec--families::before, .sec--gallery::before {
  content: ""; position: absolute; inset: 0; background: var(--girih-ink) center top / 80px 80px; opacity: .09;
}
.letter { padding: 28px 20px 26px; background: #fffaf0; border: 1px solid rgba(125, 95, 22, .5); outline: 1px solid rgba(125, 95, 22, .28); outline-offset: -7px; border-radius: 4px; box-shadow: 0 16px 34px -22px rgba(28, 47, 41, .55); }
.letter__open, .letter__ask { font-style: italic; color: var(--ink-soft); }
.letter__hosts { margin-top: 10px; font: 600 17px/1.45 var(--f-label); color: var(--emerald); text-wrap: balance; }
.letter__and, .letter__with { margin: 4px 0 -4px; font-style: italic; color: var(--gold-ink); }
.letter__ask { margin: 16px 0 12px; }
.letter__name { font: 400 clamp(26px, 7.6vw, 32px)/1.2 var(--f-name); color: var(--rose); text-wrap: balance; }
.letter__rel { font-size: 16.5px; line-height: 1.45; color: var(--ink-soft); text-wrap: balance; }
.letter__with { margin: 8px 0 6px; font-size: 20px; }
.letter__when { font: 500 16px/1.6 var(--f-label); color: var(--emerald); text-wrap: balance; }
.letter__msg { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(125, 95, 22, .35); font-style: italic; white-space: pre-line; }
.ayah { margin-top: 34px; margin-bottom: 0; padding: 0 6px; }
.ayah p { font: italic 400 19px/1.65 var(--f-body); color: var(--ink); text-wrap: pretty; }
.ayah cite { display: block; margin-top: 10px; font: 600 12.5px/1.4 var(--f-label); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--gold-ink); }

/* ---- the date ---- */
.sec--date { background: radial-gradient(80% 50% at 50% 26%, #14614b, var(--emerald-2) 70%, var(--night)); color: var(--ivory); padding-top: 64px; }
.sec--date::before, .sec--events::before { content: ""; position: absolute; inset: 0; background: var(--girih-gold) center top / 80px 80px; opacity: .1; }
.sec--date::after {             /* the pool of light when the fanoos is lit */
  content: ""; position: absolute; left: 50%; top: 150px; width: 560px; height: 560px; translate: -50% 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 214, 130, .34), rgba(255, 214, 130, .1) 45%, transparent 68%);
  opacity: 0; transition: opacity 1.4s ease;
}
.sec--date.lit::after { opacity: 1; }
.sec--date .sec__ur, .sec--events .sec__ur { color: var(--gold); }
.sec--date .sec__title, .sec--events .sec__title { color: var(--ivory); }
.sec--date .sec__title { margin-bottom: 0; }
.lamp { z-index: 1; display: flex; flex-direction: column; align-items: center; }
.lamp::before { content: ""; width: 1.5px; height: 34px; background: var(--gold); }
.lamp__btn { display: block; width: 104px; padding: 0; background: none; border: 0; cursor: pointer; }
.lamp__btn .fanoos { display: block; width: 100%; height: auto; transform-origin: 50% 0; animation: sway 4.8s ease-in-out infinite alternate; transition: filter 1.2s ease; }
.lit .lamp__btn .fanoos { --glass: #ffd98a; --flame: #fffbe8; filter: drop-shadow(0 0 26px rgba(255, 208, 115, .85)); }
.lamp__hint { margin-top: 6px; font: 500 13px/1.4 var(--f-label); letter-spacing: .08em; color: var(--gold-2); transition: opacity .6s; }
.lit .lamp__hint { opacity: 0; }
.daycard { z-index: 1; display: flex; flex-direction: column; align-items: center; margin-top: 4px; transition: opacity 1.2s ease, filter 1.2s ease; }
html.js .sec--date:not(.lit) .daycard { opacity: .62; }
.daycard__wd, .daycard__my, .daycard__time { font: 600 14.5px/1.5 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.daycard__day { font: 400 clamp(92px, 30vw, 128px)/1 var(--f-name); color: var(--ivory); text-shadow: 0 0 0 transparent; transition: text-shadow 1.4s ease; }
.lit .daycard__day { text-shadow: 0 0 34px rgba(255, 214, 130, .6); }
.daycard__time { margin-top: 6px; padding: 4px 16px; border: 1px solid rgba(217, 182, 90, .7); border-radius: 999px; letter-spacing: .14em; }
.count { z-index: 1; display: flex; justify-content: center; gap: clamp(4px, 1.6vw, 10px); margin-top: 28px; }
.count span {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; isolation: isolate;
  width: clamp(74px, 21.5vw, 92px); aspect-ratio: 1; clip-path: var(--star8); background: var(--gold);
  font: 500 10.5px/1.2 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2);
}
.count span::before { content: ""; position: absolute; inset: 2.5px; z-index: -1; clip-path: var(--star8); background: var(--emerald-2); }
.count b { font: 400 clamp(23px, 6.6vw, 28px)/1.1 var(--f-name); letter-spacing: 0; color: var(--ivory); }
.count__done { margin-top: 24px; font: italic 400 21px/1.4 var(--f-body); color: var(--gold-2); }
.date__note { margin-top: 14px; font-style: italic; color: var(--gold-2); }

/* ---- the families ---- */
.sec--families { background: var(--ivory-2); }
.families { display: grid; gap: 30px; }
.niche { --cap: 74px; filter: drop-shadow(0 16px 22px rgba(28, 47, 41, .22)); }
.niche .archcap__fill { fill: #fffaf0; }
.niche__body { position: relative; padding: 0 22px 26px; background: #fffaf0; border-radius: 0 0 5px 5px; }
.niche__body::before { content: ""; position: absolute; left: 3%; right: 3%; top: 0; bottom: 9px; border: solid var(--gold); border-width: 0 1.5px 1.5px; pointer-events: none; }
.niche__ur { margin-top: -26px; padding-bottom: 6px; position: relative; font: 600 23px/2 var(--f-ur); color: var(--gold-ink); }
.niche__side { font: 600 12px/1.4 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.niche__name { margin: 6px 0 10px; font: 400 clamp(27px, 7.8vw, 33px)/1.18 var(--f-name); color: var(--rose); text-wrap: balance; }
.niche__rel { margin-top: 6px; font-style: italic; font-size: 16.5px; color: var(--ink-soft); }
.niche__parents { font: 600 16.5px/1.45 var(--f-label); color: var(--emerald); text-wrap: balance; }
.kin { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(125, 95, 22, .35); display: grid; gap: 8px; }
.kin li { display: flex; flex-direction: column; line-height: 1.3; }
.kin span { font-size: 18px; color: var(--ink); }
.kin small { font: 500 11.5px/1.5 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.families__line { margin-top: 30px; font-style: italic; color: var(--ink-soft); text-wrap: pretty; }

/* ---- the functions ---- */
.sec--events { background: linear-gradient(180deg, var(--emerald-2), var(--night)); padding-bottom: 84px; }
.events { display: grid; gap: 62px; margin-top: 54px; }
.ev { --cap: 70px; position: relative; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .4)); }
.ev__lamp { position: absolute; left: 50%; top: -44px; z-index: 2; width: 38px; height: auto; translate: -50% 0; transition: filter 1.2s ease .6s; }
.ev.in .ev__lamp, html:not(.js) .ev__lamp { --glass: #ffd98a; --flame: #fffbe8; filter: drop-shadow(0 0 14px rgba(255, 208, 115, .8)); }
.ev.in .ev__lamp :is(.fanoos__glass, .fanoos__flame) { transition-delay: .6s; }
.ev__body { position: relative; padding: 0 20px 26px; background: var(--ivory); border-radius: 0 0 5px 5px; }
.ev__body::before { content: ""; position: absolute; left: 3%; right: 3%; top: 0; bottom: 9px; border: solid var(--gold); border-width: 0 1.5px 1.5px; pointer-events: none; }
.ev__body > * { position: relative; }
.ev__ur { margin-top: -8px; padding-bottom: 8px; font: 600 25px/2 var(--f-ur); color: var(--gold-ink); }
.ev__name { font: 400 clamp(29px, 8.4vw, 36px)/1.15 var(--f-name); color: var(--rose); text-wrap: balance; }
.ev--main .ev__name::after { content: "✦"; display: block; margin-top: 4px; font-size: 13px; color: var(--gold-ink); }
.ev__when { margin-top: 8px; font: 600 14px/1.5 var(--f-label); letter-spacing: .07em; text-transform: uppercase; color: var(--emerald); text-wrap: balance; }
.ev__sched { margin: 10px auto 0; max-width: 220px; }
.ev__sched li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dotted rgba(125, 95, 22, .5); font-size: 16.5px; }
.ev__sched b { font: 600 13.5px/1.9 var(--f-label); color: var(--emerald); }
.ev__note { margin-top: 10px; font-style: italic; color: var(--ink-soft); text-wrap: pretty; }
.ev__dress { margin-top: 8px; font-size: 16.5px; }
.ev__dress b { font: 600 12px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-right: 4px; }
.ev__venue { margin-top: 12px; font-size: 16.5px; line-height: 1.4; color: var(--ink-soft); }
.ev__venue b { font: 600 17px/1.4 var(--f-label); color: var(--ink); }
.ev__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.ev__links .btn { padding: 8px 13px; font-size: 12.5px; }
.venue { margin-top: 48px; padding: 26px 18px 28px; color: var(--ivory); border: 1px solid rgba(217, 182, 90, .55); border-radius: 6px; background: rgba(6, 42, 34, .55); }
.venue__star { width: 30px; height: 30px; }
.venue__label { margin-top: 6px; font: 600 12px/1.4 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.venue__name { margin-top: 4px; font: 400 27px/1.2 var(--f-name); text-wrap: balance; }
.venue__addr { margin: 2px 0 16px; color: #d6dfd6; }
.venue .btn--solid { background: var(--gold); border-color: var(--gold); color: var(--night); }

/* ---- gallery ---- */
.sec--gallery { background: var(--ivory); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 4px 4px; border: 1.5px solid var(--gold); padding: 4px; background: #fffaf0; }
.gallery img:only-child { grid-column: 1 / -1; }

/* ---- reply ---- */
.sec--reply { background: radial-gradient(90% 60% at 50% 100%, #a52a4d, var(--rose) 55%, var(--rose-2)); color: var(--ivory); padding-top: 176px; padding-bottom: 60px; }
.reply__strings { position: absolute !important; top: 0; left: 50%; width: min(100%, 460px); height: 170px; translate: -50% 0; margin: 0 !important; container-type: inline-size; }
.str--deco { top: -4px; translate: none; rotate: none; }
.str--deco svg { animation-duration: 6s; }
.sec--reply .sec__ur { color: var(--gold-2); }
.sec--reply .sec__title { color: var(--ivory); }
.reply__text { font-size: 19px; text-wrap: pretty; }
.btn--wa { margin-top: 24px; min-height: 54px; padding: 12px 30px; background: var(--ivory); border-color: var(--gold); color: var(--rose-2); font-size: 15px; box-shadow: 0 0 0 4px rgba(247, 241, 227, .16), 0 14px 26px -10px rgba(0, 0, 0, .6); }
.btn--wa:hover { background: #fff; }
.reply__tag { margin-top: 22px; font: 600 16px/1.4 var(--f-label); letter-spacing: .08em; color: var(--gold-2); overflow-wrap: anywhere; }
.reply__close { margin-top: 26px; font: italic 400 24px/1.3 var(--f-body); color: var(--gold-2); }
.reply__hilal { display: block; width: 40px; height: 40px; margin-top: 12px; rotate: -18deg; color: var(--gold-2); }

.foot { padding: 26px 20px calc(30px + env(safe-area-inset-bottom)); text-align: center; background: var(--night); color: #b9c8bf; font-size: 15px; }
.foot__names { font: 500 13px/1.5 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.foot p + p { margin-top: 4px; }
.foot a { color: var(--gold-2); }

/* =================================================================== DESKTOP */
@media (min-width: 760px) {
  .hero { max-width: 500px; }
  .mihrab { --cap: 104px; }
  .sehra__col { width: 500px; }
  .sec { padding: 96px 32px 104px; }
  .sec > * { max-width: 560px; }
  .sec--reply { padding-top: 196px; }
  .families, .events { max-width: 880px !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
  .events { column-gap: 26px; }
  .gallery { max-width: 760px !important; grid-template-columns: repeat(3, 1fr); }
}

/* =================================================================== OG CARD */
html.og .ogcard {
  align-items: center; justify-content: center;
  background: radial-gradient(70% 80% at 50% 20%, #14614b, var(--emerald-2) 60%, var(--night));
  font-family: var(--f-body);
}
html.og .ogcard::before { content: ""; position: absolute; inset: 0; background: var(--girih-gold) center / 80px 80px; opacity: .16; }
.og__strings { position: absolute; inset: 0; container-type: inline-size; }
.og__strings .str svg { animation: none; }
.og__arch { --cap: 150px; position: relative; width: 860px; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .5)); }
.og__body { position: relative; margin-top: -1px; padding: 0 40px 34px; text-align: center; background: var(--ivory); }
.og__body::before { content: ""; position: absolute; left: 3%; right: 3%; top: 0; bottom: 12px; border: solid var(--gold); border-width: 0 2px 2px; }
.og__hilal { width: 70px; height: 70px; margin-top: -76px; position: relative; rotate: -18deg; color: var(--gold-ink); }
.og__lead { font: 600 24px/1.3 var(--f-label); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); }
.og__names { margin: 4px 0 6px; font: 400 104px/1.08 var(--f-name); color: var(--rose); white-space: nowrap; }
.og__names span { font: italic 400 64px/1 var(--f-body); color: var(--gold-ink); }
.og__date { font: 700 40px/1.3 var(--f-label); letter-spacing: .06em; color: var(--emerald); }
.og__venue { font-size: 28px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@keyframes sway { from { rotate: -1.1deg; } to { rotate: 1.1deg; } }
@keyframes nudge { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 4px; } }
@keyframes breathe { 0%, 100% { box-shadow: 0 6px 16px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .35), 0 0 0 0 rgba(217, 182, 90, .5); } 50% { box-shadow: 0 6px 16px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .35), 0 0 0 12px rgba(217, 182, 90, 0); } }
@keyframes pullL { 0%, 100% { translate: 0 0; } 50% { translate: -5px 0; } }
@keyframes pullR { 0%, 100% { translate: 0 0; } 50% { translate: 5px 0; } }
