/* ===== SECTION 3 (3 in the theme numbering) : DETAIL INVITE — Shrimant Dagdusheth theme =====
   Canvas is a fixed box with the SAME ratio as the arch artwork (948:1659 = 1.75 x --W). The artwork covers it exactly.
   All text lives in ONE column (.invite__body) placed over the cream opening of the arch (measured from the artwork:
   cream spans x 18-82% and y 24-90% of the canvas, narrower at the top where the arch curves in). Items flow top -> bottom
   and are spread evenly, so longer names/lines wrap instead of overlapping. */
.invite{
  --paper:#f9e8cc; --grey:#8a6f5c; --ink:#4a3328; --maroon:#8c1d40; --gold:#b07a1e;
  position:relative;z-index:2;width:100%;height:calc(var(--W)*1.7769);
  overflow:hidden;background:var(--paper);font-family:var(--font-serif);text-align:center}
.invite__frame{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}

/* the text column, inside the cream opening */
.invite__body{position:absolute;left:21%;right:21%;top:26.6%;bottom:14.2%;
  display:flex;flex-direction:column;align-items:center;justify-content:space-between}
.invite__body > *{margin:0;font-weight:400;max-width:100%}
.invite .firm,.invite .soft{display:block}

/* Ganesha emblem + mantra */
.invite .invite__ganesha{width:calc(var(--W)*.105);height:auto}
.invite__mantra{--fs:calc(var(--W)*.0185);font-size:var(--fs);line-height:1.2;color:var(--maroon);letter-spacing:.04em;font-family:"Noto Sans Devanagari","Nirmala UI","Kohinoor Devanagari","Devanagari Sangam MN",var(--font-serif)}

/* "With the blessings of God…" */
.invite__blessing{font-size:calc(var(--W)*.0215);line-height:1.34;color:var(--grey);font-weight:550;letter-spacing:.015em}

/* Invite (script image, tinted maroon) */
.invite .invite__script{width:calc(var(--W)*.25);height:auto}

/* groom's family lines */
.invite__elders{font-size:calc(var(--W)*.0185);line-height:1.42;letter-spacing:.01em;padding:0 1%}
.invite .soft{color:var(--grey)} .invite .firm{color:var(--ink);font-weight:600}

/* Names */
.invite__name,.invite__amp{font-family:var(--font-display)}
.invite__name{display:flex;justify-content:center;font-size:calc(var(--W)*.112);line-height:1;color:var(--maroon);text-transform:uppercase;letter-spacing:.01em;font-weight:400}
.invite__name > span{display:inline-block;transform-origin:50% 50%;white-space:nowrap}
.invite__amp{font-size:calc(var(--W)*.04);line-height:1;color:var(--gold)}

/* bride's family lines */
.invite__bride{font-size:calc(var(--W)*.0195);line-height:1.4;padding:0 11%}   /* narrower: the lamp/leaf corners of the artwork reach into the cream down here */

.invite__events{font-size:calc(var(--W)*.0225);line-height:1.2;color:var(--maroon);font-weight:700;letter-spacing:.02em}

/* ---------- reveal (only when JS is on; content is visible without it) ---------- */
.js .invite:not(.is-in) [data-reveal],.js .invite:not(.is-in) .invite__script{opacity:0}
.js .invite:not(.is-in) [data-reveal]:not(.invite__ganesha){transform:translateY(.7em)}
.js .invite:not(.is-in) .invite__ganesha{transform:scale(.85)}
.js .invite:not(.is-in) .invite__script{clip-path:inset(0 100% 0 0)}
.invite.is-in [data-reveal]{transition:opacity 1s ease,transform 1s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--i)*.14s)}
.invite.is-in .invite__script{transition:clip-path 1.5s .55s cubic-bezier(.4,.1,.2,1),opacity .3s .55s;clip-path:inset(0 0 0 0)}
@media (prefers-reduced-motion:reduce){.js .invite:not(.is-in) [data-reveal],.js .invite:not(.is-in) .invite__script{opacity:1;transform:none;clip-path:none}}
