:root{color-scheme:light;--wine:#541323;--dark:#260a13;--gold:#b98947;--pale:#f3d69b;--cream:#fff8ec;--ink:#391e23;--muted:#72565a}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:Georgia,serif}button,input,select{font:inherit}a{color:inherit}button{cursor:pointer}[hidden]{display:none!important}:focus-visible{outline:3px solid #d98938;outline-offset:5px}.cover{min-height:100svh;display:grid;place-items:center;padding:36px 24px;color:var(--pale);text-align:center;background:radial-gradient(ellipse at 50% 42%,#702137 0%,#3c0d1d 49%,#200810 95%);position:relative;isolation:isolate}.cover:before,.cover:after{content:"";position:absolute;inset:14px;border:1px solid #cfa86b55;pointer-events:none;z-index:-1}.cover:after{inset:20px;border-color:#cfa86b26}.cover-inner{width:min(100%,590px);transition:opacity .48s,transform .48s}.eyebrow,.prompt,.top,.sample,.form-note,figcaption{font-family:system-ui,sans-serif}.eyebrow{font-size:.72rem;letter-spacing:.23em;font-weight:700}.hindi{font-size:clamp(2.1rem,5vw,3.2rem);margin:12px 0 34px;color:#ffe8ba}.envelope{display:block;position:relative;width:100%;aspect-ratio:1.64;border:0;padding:0;isolation:isolate;perspective:1000px;background:linear-gradient(145deg,#9b3447,#551326 70%);box-shadow:0 28px 62px #12030aca,0 0 0 1px #dcb67775;border-radius:5px}.envelope>span{position:absolute}.letter{inset:7% 7% 5%;background:#fff3d8;color:var(--wine);font-size:clamp(1.2rem,4vw,2.3rem);padding:6%;border:5px double var(--gold);transition:transform .58s .34s}.pocket{inset:0;border-radius:5px;background:linear-gradient(31deg,transparent 49.6%,#ddab6d70 50%,transparent 50.5%),linear-gradient(-31deg,transparent 49.6%,#ddab6d70 50%,transparent 50.5%),linear-gradient(145deg,#8b2437,#5d1526);clip-path:polygon(0 19%,50% 68%,100% 19%,100% 100%,0 100%)}.flap{inset:0 0 30%;transform-origin:top;clip-path:polygon(0 0,100% 0,100% 9%,51% 97%,50% 98%,49% 97%,0 9%);background:linear-gradient(144deg,#f1c480 0%,#a46b3c 100%);transition:transform .65s cubic-bezier(.4,0,.2,1);backface-visibility:hidden}.flap:after{content:"";position:absolute;inset:0 0 2px;clip-path:inherit;background:repeating-linear-gradient(120deg,#fff1 0 1px,transparent 1px 5px),linear-gradient(160deg,#a8394d,#68192d 80%)}.zari{inset:12px;border:3px double #e9bb797d;pointer-events:none;border-radius:2px}.zari:after{content:"";position:absolute;inset:4px;border:1px dotted #f4cb8988}.seal{display:grid;place-items:center;top:66%;left:50%;width:clamp(57px,14vw,98px);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle at 34% 27%,#ffde9a,#bd813c 65%,#87501e);box-shadow:0 5px 10px #2b081ac7,inset 0 0 0 2px #ffd88b,inset 0 0 0 5px #89562269;transition:opacity .25s,scale .25s}.seal svg{width:82%;fill:none;stroke:#6c3718;stroke-width:1.5}.envelope:hover .seal{scale:1.05}.prompt{margin:32px 0 22px;font-size:.92rem;color:#ffe7bf}.ornament{color:var(--gold);letter-spacing:.16em}.opening .flap{transform:rotateX(178deg)}.opening .seal{opacity:0}.opening .letter{transform:translateY(-45%)}.leaving .cover-inner{opacity:0;transform:translateY(-20px)}.top{display:flex;justify-content:space-between;align-items:center;padding:18px clamp(20px,6vw,88px);color:var(--pale);background:var(--dark);font-size:.72rem;letter-spacing:.18em}.top a{text-underline-offset:5px}.hero{display:grid;grid-template-columns:1fr 1fr;gap:clamp(18px,6vw,90px);align-items:center;max-width:1180px;margin:auto;padding:clamp(42px,8vw,110px) clamp(24px,7vw,90px);text-align:center}.hero .eyebrow,.events .eyebrow{color:#895322}h1,h2,h3,p,figure{margin:0}h1,h2,h3{font-weight:400;color:var(--wine)}h1{font-size:clamp(4rem,9vw,8rem);line-height:.87;letter-spacing:-.06em;margin:20px 0}h1 em{font-weight:400;font-size:.48em;color:#9a602b;vertical-align:middle}.greeting{color:#79501d;font-size:1.14rem;line-height:1.6;margin:18px 0}.date{margin:0 0 22px}.cta{display:inline-block;border:1px solid var(--wine);background:var(--wine);color:#fff5de;text-decoration:none;padding:13px 20px;font-family:system-ui,sans-serif;font-size:.85rem;border-radius:2px}.cta:hover{background:#76263b}.arch{position:relative;display:grid;place-items:center;aspect-ratio: .81;max-width:420px;margin:auto;background:radial-gradient(ellipse at 50% 32%,#873543,#4b1426 76%);color:#edc785;border-radius:49% 49% 4px 4px / 39% 39% 4px 4px;border:7px double #c99450;box-shadow:0 12px 30px #69352233}.portrait{width:90%;margin-top:-8%}.arch span{position:absolute;bottom:8%;font:700 .65rem system-ui;letter-spacing:.24em}figcaption{font-size:.75rem;color:var(--muted);margin-top:12px}.events{background:#f6e9d4;padding:56px clamp(24px,6vw,90px);text-align:center;border-block:1px solid #d4af78}h2{font-size:clamp(2.6rem,6vw,4.5rem);line-height:1.05;margin:10px 0 24px}.event-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:1100px;margin:auto}.event-grid article{padding:28px 12px;border:1px solid #c49d68;background:#fff8eb}.number{color:#9e5922;font-style:italic}.event-grid h3{font-size:clamp(1.4rem,3vw,2.1rem);margin:12px 0}.event-grid p{line-height:1.45;margin-top:8px}.venue{font-weight:bold;color:#844524}.sample{margin-top:20px;color:var(--muted);font-size:.78rem}footer{text-align:center;background:var(--dark);color:var(--pale);padding:26px;line-height:1.7}footer small{color:#e7cda6}@media(max-width:670px){.hero,.event-grid{grid-template-columns:1fr}.hero{gap:38px}.arch{max-width:300px}.event-grid{max-width:440px}.zari{inset:7px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

/* Printed invitation card and portrait arch. */
.hero {
  margin: clamp(18px, 4vw, 60px) auto;
  max-width: min(1180px, calc(100% - 28px));
  background: radial-gradient(ellipse at center, #fffaf0 40%, #f6e3bf);
  border: 6px double #b58143;
  outline: 1px solid #c4975e;
  outline-offset: 4px;
}
.hero-copy { min-width: 0; }
.invocation { color: #80501d; font-size: clamp(.95rem, 2vw, 1.2rem); }
.hindi-card { color: var(--wine); font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0 12px; }
.hero h1 { font-size: clamp(1.95rem, 4.6vw, 4.2rem); line-height: 1.08; letter-spacing: -.035em; }
.hero h1 > span, .hero h1 em { display: block; }
.hero h1 em { font-size: .48em; margin: 7px 0 9px; }
.blessing { line-height: 1.5; margin: 0 0 20px; }
.couple-portrait .arch { aspect-ratio: auto; overflow: hidden; border-radius: 48% 48% 4px 4px / 26% 26% 4px 4px; }
.couple-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 9; object-fit: cover; object-position: top; }
@media (max-width: 670px) {
  .hero { padding-inline: 12px; }
  .couple-portrait { width: min(100%, 300px); margin: auto; }
}

/* The envelope and each invitation leaf share an inset double gold rule. */
.cover-inner { transition-duration: .55s; }
.flap { transition-duration: .45s; }
.letter {
  transition: transform .44s .23s;
  background: radial-gradient(ellipse at center, #782a3e, #401021);
  color: var(--pale);
}
.seal { transition-duration: .2s; }
#invite { background: #260a13; padding: 16px 14px 0; }
.top { justify-content: center; }
.card-page {
  position: relative;
  isolation: isolate;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 7vw, 82px);
  border: 0;
  outline: none;
  background: radial-gradient(ellipse at 50% 42%, #702137, #3c0d1d 66%, #260a13);
  color: var(--pale);
}
.card-page::before, .card-page::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid #cfa86b55;
  pointer-events: none;
}
.card-page::after { inset: 20px; border-color: #cfa86b26; }
.card-page h1, .card-page h2, .card-page .hindi-card { color: #ffe8ba; }
.card-page h1 em, .card-page .invocation, .card-page .greeting,
.card-page .eyebrow, .card-page .sample, .card-page figcaption { color: var(--pale); }
.card-page .cta { border-color: #d2a66a; }
.event-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(20px, 5vw, 62px);
  text-align: center;
  min-height: 68svh;
}
.event-copy > p { margin-top: 10px; line-height: 1.55; }
.event-copy .venue { color: #ffe8ba; }
.event-art { width: 110px; height: 100px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; color: var(--event-gold); }
.theme-haldi { --event-gold: #ffc361; }
.theme-shaadi { --event-gold: #f2acaa; }
.theme-reception { --event-gold: #f4daa0; }
.event-photo {
  display: grid;
  place-items: center;
  min-height: 285px;
  padding: 20px;
  border: 5px double var(--event-gold);
  border-radius: 50% 50% 2px 2px / 35% 35% 2px 2px;
  background: radial-gradient(ellipse at center, #ffffff14, #1d050e60);
}
.event-photo span { font-size: 3rem; color: var(--event-gold); }
.page-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-nav a { padding: 9px 12px; border: 1px solid #cfa86b75; text-decoration: none; font: .8rem system-ui, sans-serif; }
.page-nav a[aria-current="page"], .page-nav a:hover { background: var(--pale); color: var(--dark); }
@media (max-width: 670px) {
  .card-page { padding: 42px 28px; }
  .event-page { grid-template-columns: 1fr; }
  .event-photo { min-height: 210px; }
}

/* Open the cover over the same invitation guests will scroll through. */
.sealed { overflow: hidden; }
.cover {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: clip;
  transition: opacity .55s ease;
}
.cover.leaving { opacity: 0; }
.cover.leaving .cover-inner { transform: translateY(30px); }
.card-page + .card-page { margin-top: clamp(20px, 5vw, 64px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
#invitation.emerging { z-index: 6; transform-origin: top center; }

.seal.seal--monogram { background: none; box-shadow: none; }
.seal--monogram img { display: block; width: 100%; height: auto; filter: drop-shadow(0 5px 8px #2b081ac7); }

.envelope-turn { perspective: 1000px; }
.envelope[hidden] { display: none; }
.envelope-front { color: var(--pale); }
.envelope-front .sender {
  position: static;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(3px, 1vw, 8px);
  padding: clamp(16px, 4vw, 28px);
  min-height: 100%;
  font-family: "Snell Roundhand", "Segoe Script", "Apple Chancery", "URW Chancery L", cursive;
  font-style: italic;
}
.ganesh-outline {
  width: clamp(32px, 9vw, 70px);
  fill: none;
  stroke: #f3d69b;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.envelope-title { font-size: clamp(1.4rem, 5.4vw, 2.8rem); }
.envelope-address {
  display: grid;
  gap: 2px;
  font-size: clamp(.88rem, 3.3vw, 1.45rem);
  overflow-wrap: anywhere;
  max-width: 100%;
}
.envelope-address[hidden] { display: none; }

@font-face {
  font-family: "Envelope Calligraphy";
  src: url("Z003-MediumItalic.otf") format("opentype");
  font-display: swap;
  font-style: italic;
}
.cover-inner:has(.envelope-front:not([hidden])) > :is(.eyebrow, .hindi) {
  display: none;
}
.envelope-front {
  aspect-ratio: auto;
  min-height: clamp(230px, 58vw, 345px);
  background: radial-gradient(ellipse at 50% 18%, #802b40, #501326 72%, #370d1c);
}
.envelope-front .sender {
  gap: clamp(8px, 2vw, 16px);
  padding: clamp(24px, 5vw, 36px);
  font-family: "Envelope Calligraphy", "Apple Chancery", cursive;
}
.envelope-front .ganesh-outline { width: clamp(38px, 10vw, 65px); }
.envelope-title {
  font-size: clamp(1.85rem, 7vw, 3.65rem);
  line-height: 1;
  color: #ffe9b9;
}
.envelope-title::after {
  content: "";
  display: block;
  margin: .22em auto 0;
  width: 65%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e8bf79, transparent);
}
.envelope-address {
  font-size: clamp(1.18rem, 4.4vw, 1.85rem);
  line-height: 1.05;
  gap: .15em;
}
.envelope-address > span { color: #fff0cd; }

html[lang="hi"] .copy-en, html[lang="en"] .copy-hi { display: none; }
.language-switch {
  position: fixed;
  inset: 10px 12px auto auto;
  z-index: 10;
  display: flex;
  padding: 3px;
  background: var(--dark);
  border: 1px solid var(--gold);
  border-radius: 5px;
}
.language-switch button {
  cursor: pointer;
  border: 0;
  border-radius: 3px;
  padding: 6px 10px;
  background: transparent;
  color: var(--pale);
  font: .8rem system-ui, sans-serif;
}
.language-switch button[aria-pressed="true"] { background: var(--pale); color: var(--dark); }
.envelope-front .sender {
  gap: clamp(6px, 2vw, 14px);
  padding-block: clamp(22px, 5vw, 35px);
}
.cover-name-band {
  padding: .36em .72em;
  border-block: 1px solid var(--gold);
  background: #260a134d;
  font-size: clamp(1.08rem, 4vw, 1.75rem);
  line-height: 1.3;
}
.cover-name-band i { padding-inline: .24em; }
html[lang="hi"] .envelope-front .sender { font-family: system-ui, sans-serif; font-style: normal; }
html[lang="hi"] .envelope-title { font-weight: 700; }
html[lang="hi"] .cover-name-band i { font-style: normal; }

.envelope-front .corner-mandala {
  width: clamp(62px, 17vw, 110px);
  aspect-ratio: 1;
  background: url("corner-mandala.svg") center / contain no-repeat;
  opacity: .7;
  pointer-events: none;
}
.corner-mandala-top { top: 0; left: 0; transform: translate(-27%, -27%); }
.corner-mandala-bottom { right: 0; bottom: 0; transform: translate(27%, 27%); }
.envelope-front { overflow: hidden; }
html[lang="hi"] :is(.envelope-title, .hindi-card) {
  font-family: "Kohinoor Devanagari", "Noto Serif Devanagari", "Aparajita", "Nirmala UI", serif;
  font-weight: 700;
  line-height: 1.35;
  color: #ffe9b9;
  text-shadow: 0 2px 0 #3c1020, 0 0 16px #e9bc7338;
}
.hero h1 .family-line {
  display: block;
  margin: .35em 0 .65em;
  color: var(--pale);
  font-size: clamp(.85rem, 2.5vw, 1.05rem);
  font-weight: normal;
  line-height: 1.45;
}

.envelope-front .corner-mandala {
  width: clamp(100px, 25vw, 175px);
}
.card-page {
  background-image:
    url("corner-mandala.svg"),
    url("corner-mandala.svg"),
    radial-gradient(ellipse at 50% 42%, #702137, #3c0d1d 66%, #260a13);
  background-position: left -42px top -42px, right -42px bottom -42px, center;
  background-size: clamp(112px, 19vw, 168px) auto, clamp(112px, 19vw, 168px) auto, cover;
  background-repeat: no-repeat;
}
.invitation-host {
  color: var(--pale);
  font-size: .95rem;
  line-height: 1.5;
  margin: 1.2rem 0;
}

html[lang="en"] .hero h1 .family-line,
html[lang="en"] .hero .invitation-host {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.95rem, 2.5vw, 1.08rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
  text-transform: none;
}

/* A soft brocade repeat fills the field behind the gold corner ornaments. */
.envelope-front {
  background-image: url("wedding-brocade.svg"), radial-gradient(ellipse at 50% 18%, #802b40, #501326 72%, #370d1c);
  background-size: 144px 144px, cover;
}
.card-page {
  background-image:
    url("corner-mandala.svg"),
    url("corner-mandala.svg"),
    url("wedding-brocade.svg"),
    radial-gradient(ellipse at 50% 42%, #702137, #3c0d1d 66%, #260a13);
  background-position: left -42px top -42px, right -42px bottom -42px, center, center;
  background-size: clamp(112px, 19vw, 168px) auto, clamp(112px, 19vw, 168px) auto, 144px 144px, cover;
  background-repeat: no-repeat, no-repeat, repeat, no-repeat;
}
@media (max-width: 670px) {
  .envelope-front { background-size: 108px 108px, cover; }
  .card-page { background-size: 112px auto, 112px auto, 108px 108px, cover; }
  .event-page { min-height: auto; gap: 18px; }
}

html[lang="en"] .envelope-title,
html[lang="en"] .cover-name-band,
html[lang="en"] .hero .hindi-card,
html[lang="en"] .hero h1 > .copy-en {
  font-family: "Envelope Calligraphy", "Apple Chancery", cursive;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}

.schedule-page { grid-template-columns: minmax(0, 1fr); min-height: auto; }
.schedule-page .event-copy { width: min(100%, 580px); margin-inline: auto; }
.schedule-date { color: var(--event-gold); }
.schedule-times { list-style: none; margin: 20px auto; padding: 0; }
.schedule-times li {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25em 1em;
  padding: 10px 4px;
  border-bottom: 1px solid #cfa86b55;
}
.schedule-times strong { color: #ffe8ba; }
footer { line-height: 1.6; }

.schedule-page:has(.schedule-photo) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.schedule-photo {
  margin: 0;
  overflow: hidden;
  border: 4px double var(--event-gold);
  border-radius: 14px;
  background: var(--dark);
}
.schedule-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
@media (max-width: 670px) {
  .schedule-page:has(.schedule-photo) { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .schedule-photo img { animation: event-photo-motion 12s ease-in-out infinite alternate; }
}
@keyframes event-photo-motion {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}

.schedule-photo { position: relative; }
.photo-petals { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .photo-petals {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .photo-petals i {
    position: absolute;
    top: -10%;
    left: 12%;
    width: 9px;
    height: 13px;
    border-radius: 80% 20% 70% 30%;
    background: #ffd1b5;
    animation: wedding-petal-fall 7s linear infinite;
  }
  .photo-petals i:nth-child(2) { left: 49%; animation-delay: -3s; }
  .photo-petals i:nth-child(3) { left: 79%; animation-delay: -5s; }
}
@keyframes wedding-petal-fall {
  0% { top: -10%; transform: translateX(0) rotate(0); opacity: 0; }
  16%, 76% { opacity: .8; }
  100% { top: 105%; transform: translateX(28px) rotate(240deg); opacity: 0; }
}

/* Keep the invitation and schedule in the same card format. */
#invite {
  --card-min-height: 41rem;
}
.hero,
.schedule-page {
  min-block-size: var(--card-min-height);
  grid-template-rows: 1fr auto;
  gap: clamp(14px, 3vw, 32px);
  padding-block: clamp(30px, 4vw, 48px);
}
.hero {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero .invocation { font-size: clamp(.775rem, 1.2vw, .825rem); line-height: 1.35; }
.hero .hindi-card {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  margin: 4px 0 5px;
}
.hero .greeting,
.hero .blessing,
html[lang] .hero .invitation-host {
  font-size: clamp(.78rem, 1.2vw, .84rem);
  line-height: 1.38;
  margin: 8px 0 0;
}
.hero h1 {
  font-size: clamp(1.27rem, 2.65vw, 1.95rem);
  margin: 9px 0;
}
.hero h1 em { margin: 3px 0; }
.hero h1 .family-line,
html[lang="en"] .hero h1 .family-line {
  font-size: clamp(.75rem, 1.15vw, .81rem);
  line-height: 1.4;
  letter-spacing: normal;
  margin: 3px 0 5px;
}
.hero-portrait-block {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.hero .couple-portrait { width: min(100%, 260px); }
html[lang] .hero .invitation-host { margin: 0; }

.schedule-page h2 {
  font-size: clamp(1.9rem, 3.75vw, 3.25rem);
  margin: 6px 0 16px;
}
.schedule-page .event-art { width: 84px; height: 77px; }
.schedule-page .schedule-times { margin-block: 12px; }
.schedule-page .schedule-times li { padding-block: 7px; }

@media (max-width: 670px) {
  #invite { --card-min-height: 46.5rem; }
  .hero,
  .schedule-page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
  }
  .hero {
    gap: 10px;
    padding: 28px 22px;
  }
  .hero .couple-portrait { width: min(100%, 145px); }
  .hero .couple-portrait .arch { border-width: 5px; }
}

/* Gold-foil stationery treatment for the front of the envelope. */
.envelope-front {
  background:
    radial-gradient(ellipse at center, #842e4555 0%, transparent 64%),
    url("wedding-brocade.svg") center / clamp(95px, 25vw, 144px),
    radial-gradient(ellipse at 45% 32%, #702039, #420f21 70%, #2d0916);
  box-shadow: 0 26px 60px #12030abf, inset 0 0 28px #250612a0, 0 0 0 1px #ad754c;
}
.envelope-front .zari {
  inset: clamp(7px, 2vw, 13px);
  border: 3px double #dfaf70cc;
}
.envelope-front .zari::after {
  inset: 5px;
  border-color: #efc98f65;
}
.envelope-front .corner-mandala {
  width: clamp(112px, 28vw, 190px);
  opacity: .78;
}
.envelope-front .corner-mandala-top { transform: translate(-34%, -34%); }
.envelope-front .corner-mandala-bottom { transform: translate(34%, 34%); }
.envelope-front .sender {
  position: relative;
  padding: clamp(28px, 6vw, 39px) clamp(24px, 6vw, 42px);
  gap: clamp(5px, 1.4vw, 10px);
}
.ganesh-medallion {
  display: grid;
  place-items: center;
  width: clamp(58px, 15vw, 84px);
  aspect-ratio: 1;
  border: 3px double #eac68da6;
  border-radius: 50%;
  background: radial-gradient(circle, #a4515340, #3d0f22 76%);
  box-shadow: 0 0 0 3px #eac68d23, 0 5px 15px #260a135c;
  margin-bottom: 4px;
}
.envelope-front .ganesh-outline { width: 73%; }
.envelope-front .envelope-title {
  color: #ffe6b2;
  text-shadow: 0 2px 3px #300914;
}
.envelope-front .envelope-title::after { content: none; }
.envelope-divider {
  display: grid;
  place-items: center;
  width: min(70%, 185px);
  height: 12px;
  background: linear-gradient(90deg, transparent, #e8bf799c 44%, transparent 44% 56%, #e8bf799c 56%, transparent) center / 100% 1px no-repeat;
}
.envelope-divider::before {
  content: "";
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  border: 1px solid #f6d597;
  background: #bf8c4d;
}
.envelope-front .cover-name-band {
  max-width: 100%;
  padding: 0 .25em;
  border: 0;
  background: none;
  color: #f7dcab;
  text-wrap: balance;
}
.envelope-front .envelope-address {
  width: fit-content;
  padding: .3em 1em;
  margin-top: 4px;
  border: 1px solid #e2b47d59;
  border-radius: 2px;
  background: #2d09165c;
}

/* Both faces use the same dimensions so the envelope keeps its shape as it turns. */
.cover {
  padding-inline: clamp(18px, 5vw, 32px);
}
.cover-inner {
  width: min(100%, 680px, max(245px, 74svh));
}
.cover-inner > :is(.eyebrow, .hindi) { display: none; }
.cover-inner .prompt { margin: 16px 0 10px; }
.envelope-turn .envelope {
  aspect-ratio: 1.14;
  min-height: 0;
}
.envelope-front {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at center, #75253b 4%, #58172e80 52%, transparent 80%),
    url("wedding-brocade.svg") center / clamp(86px, 23vw, 144px),
    linear-gradient(145deg, #681d36, #320a1a 73%);
}
.envelope-front::before {
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: 3px;
  background: url("corner-mandala.svg") center / 65% auto no-repeat;
  opacity: .13;
  pointer-events: none;
}
.envelope-front .zari {
  inset: clamp(9px, 2.7vw, 22px);
  border-color: #e6be80cf;
}
.envelope-front .zari::after { inset: 6px; }
.envelope-front .corner-mandala {
  width: min(44%, 245px);
  opacity: .82;
}
.envelope-front .sender {
  width: 100%;
  min-height: 0;
  padding: clamp(22px, 5vw, 42px);
  gap: clamp(6px, 1.6vw, 13px);
}
.envelope-front .envelope-title {
  font-size: clamp(1.55rem, min(7vw, 7svh), 3.7rem);
  text-wrap: balance;
}
.envelope-front .cover-name-band {
  font-size: clamp(1.02rem, min(4.5vw, 4.2svh), 1.85rem);
}
.envelope-front .envelope-address {
  max-width: 90%;
  font-size: clamp(.95rem, min(4vw, 3.6svh), 1.5rem);
  border: 0;
  border-top: 1px solid #e2b47d6e;
  background: none;
}
.ganesh-medallion {
  width: clamp(50px, min(17vw, 12svh), 100px);
  border-color: #efd297c7;
  box-shadow: 0 0 0 4px #eac68d32, 0 0 0 5px #eac68d65, 0 8px 20px #260a1370;
}
.envelope-turn .pocket {
  background:
    linear-gradient(41deg, transparent 49.6%, #ddab6d70 50%, transparent 50.5%),
    linear-gradient(-41deg, transparent 49.6%, #ddab6d70 50%, transparent 50.5%),
    linear-gradient(145deg, #8b2437, #5d1526);
}

.schedule-page .event-medallion {
  display: inline-grid;
  place-items: center;
  position: relative;
  inline-size: clamp(64px, 11vw, 84px);
  aspect-ratio: 1;
  color: var(--event-gold);
  border: 3px double color-mix(in srgb, currentColor 85%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, #a4525555, #370c21 78%);
  box-shadow: 0 0 0 3px #dfaa6733, 0 6px 14px #25051066;
}
.event-medallion::before,
.event-medallion::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.event-medallion::before { left: -13px; }
.event-medallion::after { right: -13px; }
.schedule-page .event-medallion .event-art {
  width: 92%;
  height: auto;
  stroke-width: 2.5;
}
.event-icon-fill { fill: color-mix(in srgb, currentColor 22%, transparent); }

@media (max-width: 420px) {
  .envelope-front .sender {
    padding: 18px 23px;
    gap: 5px;
  }
  .envelope-front .envelope-address {
    padding: .22em .35em 0;
    margin-top: 1px;
    font-size: .875rem;
  }
}

/* Plain backdrop, paper edges, and a pocket that covers the emerging card. */
.cover {
  padding: 52px clamp(14px, 4vw, 36px) 24px;
  background: #fbf7f0;
  color: var(--wine);
}
.cover::before,
.cover::after { content: none; }
.cover-inner {
  width: min(100%, 600px, max(216px, 80svh));
}
.cover.leaving .cover-inner { transform: none; opacity: 1; }
.envelope-turn .envelope {
  aspect-ratio: 1.18;
  border-radius: 3px;
  box-shadow: 0 14px 28px #4d252735, 0 1px 4px #4d25273d, 0 0 0 1px #541323a8;
  touch-action: manipulation;
}
.envelope-turn .envelope-front {
  background: radial-gradient(ellipse at 42% 26%, #75283c, #531427 65%, #400f20);
}
.envelope-front::before { content: none; }
.envelope-front .zari {
  border-width: 3px;
  inset: clamp(8px, 2.5vw, 17px);
}
.envelope-front .corner-mandala {
  opacity: .56;
  width: min(36%, 178px);
}
.envelope-front .sender {
  padding: clamp(17px, 4vw, 32px) clamp(22px, 5vw, 46px);
  gap: clamp(4px, 1.2vw, 10px);
}
.envelope-front .ganesh-medallion {
  border-radius: 49% 49% 44% 44% / 47% 47% 30% 30%;
  background: radial-gradient(ellipse at 50% 26%, #843447, #471228 84%);
  border-color: #e5b773;
  width: clamp(62px, min(22vw, 16svh), 124px);
  box-shadow: 0 0 0 3px #eac68d35, inset 0 0 14px #35101d;
}
.ganesh-emblem {
  width: 90%;
  height: auto;
  display: block;
}
.cover-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75em;
  min-height: 46px;
  margin-top: clamp(15px, 4vw, 24px);
  padding: 8px 18px;
  border: 1px solid #813c40;
  border-radius: 5px;
  background: var(--wine);
  color: #fff0d2;
  font: 600 .9rem system-ui, sans-serif;
  touch-action: manipulation;
}
.cover-action:hover { background: #732237; }
.cover-action-arrow { font-size: 1.18em; }
.opening .cover-action { visibility: hidden; }
.envelope-turn .envelope-back {
  background: linear-gradient(145deg, #954359, #622137 68%, #501326);
}
.envelope-back .flap-lining {
  inset: 0 0 33%;
  z-index: 0;
  transform-origin: top center;
  transform: rotateX(180deg);
  clip-path: polygon(0 0, 100% 0, 52% 98%, 48% 98%);
  background: linear-gradient(166deg, #743447, #9d5866 80%);
  opacity: 0;
  transition: opacity .18s .12s;
}
.envelope-back .letter-slot {
  z-index: 1;
  left: 6%;
  right: 6%;
  top: 9%;
  height: var(--letter-height, 0px);
  clip-path: inset(0 0 max(0px, calc(var(--letter-height, 0px) - var(--letter-room, 0px))) 0);
}
.letter-copy {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: none;
  margin: 0;
  box-shadow: 0 4px 18px #27051175;
  transform-origin: top left;
}
.envelope-back .pocket {
  z-index: 2;
  inset: 0;
  clip-path: none;
  background:
    linear-gradient(to bottom, #f1ce8b75 0 1px, transparent 1px),
    linear-gradient(140deg, #8d344b, #501326);
  border-radius: inherit;
  transition: clip-path .24s ease;
}
.opening .envelope-back .pocket {
  clip-path: polygon(0 0, 12% 11%, 50% 38%, 88% 11%, 100% 0, 100% 100%, 0 100%);
}
.envelope-back .flap {
  z-index: 3;
  inset: 0 0 27%;
  clip-path: polygon(0 0, 100% 0, 100% 5%, 53% 91%, 50% 93%, 47% 91%, 0 5%);
  transition-duration: .27s;
}
.envelope-back .flap::after {
  background: linear-gradient(150deg, #98475b, #651b32 82%);
}
.opening .envelope-back .flap-lining { opacity: 1; }
.envelope-back .zari { z-index: 4; }
.envelope-back .seal { z-index: 5; }
.opening .envelope-back { background: none; box-shadow: none; }
.opening .envelope-back .zari { opacity: 0; transition: opacity .2s; }

@media (max-width: 670px) {
  .cover {
    padding-top: max(48px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .hero,
  .schedule-page { min-block-size: auto; }
  .hero .page-nav a,
  .schedule-page .page-nav a { display: grid; place-items: center; min-height: 44px; }
  .hero .greeting,
  .hero .blessing,
  html[lang] .hero .invitation-host,
  html[lang] .hero h1 .family-line { font-size: .875rem; }
}

#invitation.awaiting-letter { visibility: hidden; }
.letter-in-flight { position: fixed; z-index: 2; }
.envelope-back .pocket::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(39deg, transparent 49.6%, #e6a97150 50%, transparent 50.4%),
    linear-gradient(-39deg, transparent 49.6%, #e6a97150 50%, transparent 50.4%);
  opacity: .52;
}

.cover-invocation {
  color: #ffe7b2;
  font: 600 clamp(.68rem, 2.2vw, .88rem)/1.42 system-ui, sans-serif;
  transform: translateY(-5px);
}
.envelope-front .ganesh-medallion {
  width: clamp(58px, min(19vw, 13svh), 108px);
}
.hero h1 .credentials {
  display: block;
  margin-top: 3px;
  max-width: 100%;
  color: var(--pale);
  font: 400 clamp(.75rem, 1.3vw, .95rem)/1.3 Georgia, serif;
  letter-spacing: normal;
}
@media (max-width: 420px) {
  .envelope-front .sender { padding-block: 12px; gap: 4px; }
  .cover-invocation { line-height: 1.34; }
}

.envelope-front .ganesh-emblem--gold {
  width: clamp(62px, min(21vw, 15svh), 116px);
  filter: drop-shadow(0 2px 2px #23061280);
}

.family-signoff {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  width: 100%;
  padding-top: 6px;
  --signoff-heading-size: 1rem;
}
.family-signoff-group {
  padding-top: 8px;
  border-top: 1px solid #d6ab6954;
  font-size: calc(.875rem * var(--signoff-scale, 1));
  line-height: 1.45;
}
.family-signoff-group h2 {
  margin: 0 0 4px;
  color: #f5c477;
  font-size: calc(var(--signoff-heading-size) * var(--signoff-heading-scale, 1));
  line-height: 1.35;
}
.family-signoff-group h2 > span::before,
.family-signoff-group h2 > span::after {
  content: "···" / "";
}
.family-signoff-group h2 > span::before { margin-inline-end: .18em; }
.family-signoff-group h2 > span::after { margin-inline-start: .18em; }
.family-signoff-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.family-signoff-group li + li { margin-top: 2px; }
.family-signoff[data-fit] :is(h2, li) > span { white-space: nowrap; }
@media (max-width: 480px) {
  .family-signoff { column-gap: 10px; --signoff-heading-size: .9375rem; }
}

.family-welcoming { grid-column: 1 / -1; }
.music-toggle {
  position: fixed;
  bottom: max(14px, env(safe-area-inset-bottom));
  right: 14px;
  z-index: 10;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--gold);
  border-radius: 24px;
  background: var(--dark);
  color: var(--pale);
  font: 500 .875rem system-ui, sans-serif;
  box-shadow: 0 3px 12px #260a1333;
}
.music-toggle[aria-pressed="true"] { border-color: var(--pale); }
footer { padding-bottom: 76px; }

.venue-map { margin: .65rem 0 0; text-align: center; }
.venue-map a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .4rem 1.1rem; border: 1px solid currentColor; border-radius: 999px; color: inherit; font-size: .9rem; text-decoration: none; }
.venue-map a:hover { background: #b98b3b18; }
.venue-map a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.venue-map a { gap: .45rem; }
.location-icon { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; }

/* Center the icon and localized label as one unit. */
.venue-map { display: flex; justify-content: center; align-items: center; }
.venue-map a { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; line-height: 1.2; text-align: center; }
.venue-map a > span { margin: 0; padding: 0; line-height: 1.2; }
.venue-map .location-icon { display: block; align-self: center; }

.family-right-column { grid-column: 2; display: grid; align-content: start; gap: 10px; min-width: 0; }
.family-right-column .family-welcoming { grid-column: auto; }

@font-face {
 font-family: "Yatra One"; src: url("YatraOne-Regular.ttf") format("truetype");
 font-style: normal; font-weight: 400; font-display: swap;
}
html[lang="hi"] .envelope-front .envelope-title,
html[lang="hi"] .envelope-front .cover-name-band,
html[lang="hi"] .hero .hindi-card,
html[lang="hi"] .hero h1 > .copy-hi {
 font-family: "Yatra One", "Kohinoor Devanagari", serif;
 font-style: normal; font-weight: 400; letter-spacing: normal; line-height: 1.4;
}
.family-signoff, .family-right-column, .family-signoff-group,
.family-signoff-group ul, .family-signoff-group li, .family-signoff-group h2 { min-width: 0; max-width: 100%; }
.family-signoff-group li, .family-signoff-group h2 { width: 100%; }
.family-signoff-group li { font-size: clamp(.75rem, 1.3vw, .875rem); }
.family-signoff-group :is(h2, li) > span { display: inline-block; }
html[lang="hi"] .family-signoff-group .copy-en,
html[lang="en"] .family-signoff-group .copy-hi { display: none; }
.family-right-column { width: 100%; }

/* Addressed stationery: blessings at top, recipient in the middle, couple below. */
.envelope-turn .envelope-front { container-type: inline-size; }
.envelope-front .sender {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  padding: 6% 8% 7%; gap: clamp(3px, 1cqw, 7px);
}
.envelope-front .cover-invocation {
  transform: none; flex: 0 0 auto;
  font-size: clamp(.6rem, 2.2cqw, .85rem); line-height: 1.35;
}
.envelope-front .ganesh-emblem--gold {
  flex: 0 0 auto; width: clamp(40px, 14cqw, 82px); height: auto;
  margin-block: 0;
}
.envelope-front .envelope-title {
  flex: 0 0 auto; font-size: clamp(1.4rem, 7cqw, 3rem); line-height: 1.3;
}
.envelope-front .envelope-divider { flex: 0 0 6px; height: 6px; }
.envelope-front .envelope-address {
  flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 88%; max-width: 100%; min-height: 0; margin: 0;
  padding: 0; border: 0; background: none; gap: clamp(4px, 1.5cqw, 10px);
  font-size: clamp(.75rem, 3.4cqw, 1.35rem); line-height: 1.3;
}
#recipient-label { font: 400 clamp(.65rem, 2.6cqw, 1rem)/1.4 Georgia, serif; }
#guest-names {
  display: block; width: 100%; min-height: 1.5em; padding: 0 .2em .18em;
  border-bottom: 1px solid #edca8f9c; overflow-wrap: anywhere;
}
.envelope-front .cover-name-band {
  flex: 0 0 auto; margin: 0; padding: 0; border: 0;
  font-size: clamp(1rem, 4.8cqw, 1.9rem); line-height: 1.35;
}

.envelope-front .envelope-address { align-items: stretch; text-align: left; gap: clamp(3px, 1cqw, 7px); }
#recipient-label { display: block; width: 100%; }
.recipient-name-line { display: flex; align-items: baseline; gap: .5em; width: 100%; min-width: 0; }
#recipient-honorific { flex: 0 0 auto; font: 400 clamp(.6rem, 2.5cqw, 1rem)/1.5 Georgia, serif; }
#guest-names { flex: 1 1 auto; min-width: 0; width: auto; font-size: clamp(.7rem, 3cqw, 1.2rem); }

.envelope-front .envelope-address { width: 72%; max-width: 360px; margin-inline: auto; align-self: center; }
@media (max-width: 420px) { .envelope-front .envelope-address { width: 82%; } }

.envelope-front .envelope-address { width: 54%; max-width: 270px; transform: translateY(-.75rem); }
.envelope-back .seal--monogram { width: clamp(74px, 20vw, 136px); }
@media (max-width: 420px) { .envelope-front .envelope-address { width: 61.5%; transform: translateY(-.4rem); } }

.envelope-front .envelope-address {
  flex: 0 1 auto; width: fit-content; min-width: 45%; max-width: 62%;
  align-items: center; align-self: center;
  margin: auto; padding: clamp(7px, 1.8cqw, 14px) clamp(9px, 2.5cqw, 20px);
  border: 1px solid #e6bd75; border-radius: 3px;
  box-shadow: inset 0 0 0 3px #e6bd7518;
  text-align: center; transform: translateY(-.4rem);
}
#recipient-label { text-align: left; }
.recipient-name-line { justify-content: center; padding-inline-start: .8em; }
#guest-names { text-align: center; min-width: 3.5em; }
.envelope-wedding-date {
  flex: 0 0 auto; color: var(--pale); letter-spacing: .12em;
  font: 400 clamp(.65rem, 2.4cqw, .95rem)/1.4 Georgia, serif;
}
@media (max-width: 420px) {
  .envelope-front .envelope-address { min-width: 52%; max-width: 78%; transform: translateY(-.2rem); }
}

/* Keep every family line readable and allow natural wrapping. */
.family-signoff { --signoff-scale: 1; --signoff-heading-scale: 1; align-items: start; }
.family-signoff-group li { font-size: .875rem; line-height: 1.6; }
.family-signoff-group h2 { font-size: 1rem; line-height: 1.4; }
.family-signoff-group :is(h2, li) > span,
.family-signoff[data-fit] :is(h2, li) > span {
  white-space: normal; max-width: 100%; overflow-wrap: normal;
}
.family-signoff-group ul { text-wrap: pretty; }
.family-right-column { align-content: start; }
.family-children { grid-column: 1 / -1; text-align: center; }
.family-children ul { margin-top: 6px; }
@font-face {
  font-family: "Cormorant Garamond";
  src: url("CormorantGaramond-Italic.ttf") format("truetype");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
html[lang="en"] .family-signoff-group h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem; font-weight: 600; font-style: italic; letter-spacing: .01em;
  color: #f5d092;
}
html[lang="en"] .hero h1 > .copy-en {
  font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.18;
}
html[lang="en"] .hero h1 .family-line {
  font-size: .7rem; line-height: 1.45; margin: 4px 0 8px;
}
.closing-card {
  min-block-size: 0; max-width: 1180px; margin: 20px auto 0;
  padding: 38px 30px 74px; text-align: center; line-height: 1.8;
  background-image: url("corner-mandala.svg"), url("corner-mandala.svg"), url("wedding-brocade.svg"), radial-gradient(ellipse at 50% 42%, #702137, #3c0d1d 66%, #260a13);
  background-position: left -24px top -24px, right -24px bottom -24px, center, center;
  background-size: 112px auto, 112px auto, 144px 144px, cover;
  background-repeat: no-repeat, no-repeat, repeat, no-repeat;
}
@media(max-width: 480px) {
  .family-signoff { gap: 16px 12px; }
  html[lang="en"] .family-signoff-group h2 { font-size: 1.2rem; }
}

.family-couples li > span { white-space: nowrap; }
.hero h1 > .copy-hi, .hero h1 > .copy-en, .cover-name-band > span { white-space: nowrap; }

.family-signoff-group h2 > span { white-space: nowrap; max-width: none; }
.family-signoff-group h2 { min-width: 0; }

/* Single-line event titles and lineage text scale to the available width. */
.schedule-page h2 > span { display: inline-block; white-space: nowrap; max-width: none; }
.hero h1 .family-line { width: 100%; min-width: 0; }
.hero .family-line > span { display: block; width: max-content; max-width: none; white-space: nowrap; margin-inline: auto; }
html[lang="hi"] .hero .family-line > .copy-en,
html[lang="en"] .hero .family-line > .copy-hi { display: none; }
html[lang="en"] .family-signoff-group h2 > span::before,
html[lang="en"] .family-signoff-group h2 > span::after {
  content: "···" / ""; font-style: normal;
}
html[lang="en"] .family-signoff-group h2 > span::before { margin-inline-end: .18em; }
html[lang="en"] .family-signoff-group h2 > span::after { margin-inline-start: .18em; }

html[lang="hi"] .hero h1 > .copy-hi,
html[lang="en"] .hero h1 > .copy-en { line-height: 1.12; }
.hero h1 .credentials { margin-top: 0; line-height: 1.15; }

.closing-signoff {
  position: relative; width: min(100%, 30rem); margin: 0 auto;
  padding: 24px clamp(18px, 5vw, 38px);
  border: 3px double #d4ad6a; border-radius: 4px;
  box-shadow: 0 0 0 5px #d4ad6a0d, inset 0 0 25px #d4ad6a09;
  background: linear-gradient(#e1bc7933,#e1bc7933) left 8px top 8px / 28px 1px no-repeat,
    linear-gradient(#e1bc7933,#e1bc7933) right 8px bottom 8px / 28px 1px no-repeat;
}
.closing-signoff::before, .closing-signoff::after {
  content: "◆" / ""; position: absolute; left: 50%; transform: translateX(-50%);
  color: #dfba79; background: var(--dark); padding: 0 8px;
  font: 400 11px/1 Georgia, serif;
}
.closing-signoff::before { top: -7px; }
.closing-signoff::after { bottom: -7px; }

/* Elegant, locally hosted English text; retain the calligraphic display styles. */
@font-face {
  font-family: "Lora";
  src: url("Lora-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
html[lang="en"] body,
html[lang="en"] .hero h1 .family-line,
html[lang="en"] .hero h1 .credentials,
html[lang="en"] .hero .invitation-host,
html[lang="en"] #recipient-label,
html[lang="en"] #recipient-honorific,
html[lang="en"] .envelope-wedding-date,
html[lang="en"] .cover-invocation,
html[lang="en"] .cover-action,
html[lang="en"] .music-toggle,
html[lang="en"] .language-switch button,
html[lang="en"] .prompt,
html[lang="en"] .eyebrow,
html[lang="en"] .top,
html[lang="en"] .cta {
  font-family: "Lora", Georgia, serif;
}

/* "Chuliya Nimantran" circular seal, top-right of the envelope front. */
.envelope-front .envelope-stamp {
  top: 6.5%; right: 5.5%; z-index: 2;
  width: clamp(54px, 17cqw, 104px); aspect-ratio: 1;
  display: grid; place-items: center; padding: 0; height: auto;
  border: max(2px, .5cqw) double #f3c983; border-radius: 50%;
  background: radial-gradient(circle, #f3c9830d 55%, #f3c98326 100%);
  box-shadow: 0 0 0 max(1px, .2cqw) #f3c98333;
  color: #f8d595; text-align: center;
  font: 400 clamp(.5rem, 2.25cqw, .92rem)/1.12 "Yatra One", "Kohinoor Devanagari", serif;
  text-shadow: 0 1px 0 #2a0a1499;
  transform: rotate(-12deg); opacity: .93; pointer-events: none;
}
.envelope-front .envelope-stamp::before {
  content: ""; position: absolute; inset: 9%;
  border: 1px dashed #f3c98399; border-radius: 50%;
}
.envelope-front .envelope-stamp::after {
  content: "✦" / ""; position: absolute; bottom: 3%; left: 50%; transform: translateX(-50%);
  font-size: .62em; color: #f3c983cc;
}
html[lang="en"] .envelope-front .envelope-stamp {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-style: italic;
  font-size: clamp(.5rem, 2.3cqw, .95rem); letter-spacing: .02em;
}

/* Contact numbers in the closing "Sadar" block. */
.closing-signoff .signoff-phone {
  display: inline-block; margin-bottom: .35em;
  color: #e7cda6; font: 400 .82em/1.5 "Lora", Georgia, serif; letter-spacing: .04em;
  text-decoration: none; border-bottom: 1px dotted #d4ad6a88;
}
.closing-signoff .signoff-phone::before { content: "☏ " / ""; color: #dfba79; }
.closing-signoff .signoff-phone:hover { color: #f5d092; border-bottom-style: solid; }

/* Larger "Sadar / With Warm Regards" title with dot ornaments, matching the family headings. */
.closing-signoff .signoff-title {
  display: block; margin: 0 0 .45em;
  color: #f5c477; font-size: 1.45em; line-height: 1.3;
}
html[lang="hi"] .closing-signoff .signoff-title { font-family: "Yatra One", "Kohinoor Devanagari", serif; }
html[lang="en"] .closing-signoff .signoff-title {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-style: italic; color: #f5d092;
}
.closing-signoff .signoff-title::before { content: "···" / ""; margin-inline-end: .18em; font-style: normal; }
.closing-signoff .signoff-title::after { content: "···" / ""; margin-inline-start: .18em; font-style: normal; }

/* "Close envelope" button at the end of the invitation. */
.close-envelope {
  display: inline-flex; align-items: center; gap: .55em;
  margin: 22px auto 0; min-height: 44px; padding: 10px 20px;
  border: 1px solid #d4ad6a; border-radius: 999px;
  background: #d4ad6a14; color: #f5d092;
  font: 400 .95rem/1.2 "Lora", Georgia, serif; letter-spacing: .03em;
}
html[lang="hi"] .close-envelope { font-family: system-ui, sans-serif; }
.close-envelope:hover { background: #d4ad6a2b; }
.close-envelope svg { width: 1.35em; height: 1.35em; flex: none; }

/* Keep frame lines from running through the corner mandalas: each frame gets a
   circular cut-out (with a small gap) around the top-left and bottom-right mandala. */
.envelope-turn .envelope-front {
  --mandala-size: min(36cqw, 178px);
  --frame-inset: clamp(8px, 2.5vw, 17px);
}
.envelope-front .corner-mandala { width: var(--mandala-size); }
.envelope-front .zari {
  inset: var(--frame-inset);
  /* Mandala is shifted 34% out of the corner, so its centre sits 16% of its size in. */
  --cut-c: calc(var(--mandala-size) * .16 - var(--frame-inset));
  --cut-r: calc(var(--mandala-size) * .5 + 6px);
}
.card-page {
  --mandala-size: clamp(112px, 19vw, 168px);
  background-size: var(--mandala-size) auto, var(--mandala-size) auto, 144px 144px, cover;
}
@media (max-width: 670px) {
  .card-page { --mandala-size: 112px; background-size: 112px auto, 112px auto, 108px 108px, cover; }
}
.card-page::before { --cut-c: calc(var(--mandala-size) / 2 - 42px - 14px); }
.card-page::after { --cut-c: calc(var(--mandala-size) / 2 - 42px - 20px); }
.card-page::before, .card-page::after { --cut-r: calc(var(--mandala-size) * .5 + 6px); }
.envelope-front .zari, .card-page::before, .card-page::after {
  -webkit-mask:
    radial-gradient(circle at var(--cut-c) var(--cut-c), transparent var(--cut-r), #000 calc(var(--cut-r) + .5px)),
    radial-gradient(circle at calc(100% - var(--cut-c)) calc(100% - var(--cut-c)), transparent var(--cut-r), #000 calc(var(--cut-r) + .5px));
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle at var(--cut-c) var(--cut-c), transparent var(--cut-r), #000 calc(var(--cut-r) + .5px)),
    radial-gradient(circle at calc(100% - var(--cut-c)) calc(100% - var(--cut-c)), transparent var(--cut-r), #000 calc(var(--cut-r) + .5px));
  mask-composite: intersect;
}

/* Phones: the event picture sits below the text, so shrink it and lift it clear
   of the bottom-right corner mandala. */
@media (max-width: 670px) {
  .schedule-page .schedule-photo {
    width: 95%; justify-self: center;
    margin-bottom: 54px;
  }
}

/* Match the envelope's corner mandalas to the full-strength gold used on the cards. */
.envelope-front .corner-mandala { opacity: 1; }

/* Card frame lines use the same gold as the envelope's zari border. */
.card-page::before { border-color: #e6be80cf; }
.card-page::after { border-color: #efc98f65; }
