/* Antarpat: a Marathi lagna-patrika. Haldi yellow, mango-leaf green and paithani purple on cream.
   gate (the cloth between the two names) -> nimantran -> muhurta + rangoli -> families -> karyakram -> venue -> reply.
   The open state is the default; html.shut (set before paint, removed by the gesture) is the closed one. */
:root {
  --haldi: #f2b705; --leaf: #3d7a3a; --jam: #6a1b6e; --cream: #fff7e0;
  --kumkum: #b3261e; --ink: #3a1040; --deep: #40103f; --zari: #c98f00; --paper: #fffdf4; --soft: #6b4a63;
  --fx-bg: #fff7e0; --fx-music-bg: #6a1b6e; --fx-music-ring: #f2b705; --fx-music-ink: #ffe9a6;
  --mr: "Gotu", "Tiro Devanagari Marathi", "Noto Sans Devanagari", serif;
  --disp: "Vesper Libre", "Gotu", Georgia, serif;
  --text: "Palanquin", "Noto Sans Devanagari", system-ui, sans-serif;
  /* paithani border: lotus and peacock butti between two zari bands */
  --paithani: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'><defs><pattern id='t' width='10' height='6' patternUnits='userSpaceOnUse'><path d='M0 0h10l-5 6z' fill='%23f2b705'/></pattern></defs><rect width='120' height='60' fill='%236a1b6e'/><path d='M0 0h120v6H0zM0 54h120v6H0z' fill='%23f2b705'/><path d='M0 2.5h120M0 57.5h120' stroke='%233d7a3a' stroke-width='1.6'/><rect y='6' width='120' height='6' fill='url(%23t)'/><rect y='6' width='120' height='6' fill='url(%23t)' transform='matrix(1 0 0 -1 0 60)'/><g transform='translate(30 35)'><path d='M0 4C-4-3-11-6-14-5C-13 1-7 4 0 4ZM0 4C4-3 11-6 14-5C13 1 7 4 0 4Z' fill='%23e2679a'/><path d='M0-14C5-8 5-1 0 4C-5-1-5-8 0-14Z' fill='%23f6a8c6'/><path d='M-14 5Q0 11 14 5L10 8Q0 11-10 8Z' fill='%2357a84f'/></g><g transform='translate(88 38)'><path d='M-2 0C-14-4-22-12-24-21C-13-18-6-10-2 0Z' fill='%2357a84f'/><path d='M-2 1C-16 1-26-3-31-9C-19-12-8-6-2 1Z' fill='%23f2b705'/><path d='M-2 2C-13 6-22 6-29 3C-20-2-10-2-2 2Z' fill='%2357a84f'/><circle cx='-19' cy='-15' r='1.7' fill='%23f2b705'/><circle cx='-24' cy='-7' r='1.7' fill='%236a1b6e'/><circle cx='-22' cy='3' r='1.6' fill='%23f2b705'/><ellipse cx='3' cy='1' rx='8' ry='5.4' fill='%23f2b705'/><path d='M8-1C12-6 10-11 12-15' stroke='%23f2b705' stroke-width='3.6' fill='none' stroke-linecap='round'/><circle cx='12.6' cy='-16.4' r='2.8' fill='%23f2b705'/><path d='M15-17.6l5 1.6-5 1.4z' fill='%23e2679a'/><path d='M11.6-19l-1.4-4.6M12.8-19.2v-5M14-19l1.6-4.4' stroke='%23f2b705' stroke-width='.9' stroke-linecap='round'/><circle cx='13.2' cy='-16.8' r='.8' fill='%236a1b6e'/><path d='M1 6v5M5 6v5' stroke='%23f2b705' stroke-width='1.2'/></g><g fill='%23f2b705'><circle cx='59' cy='30' r='2'/><circle cx='59' cy='22' r='1.1'/><circle cx='59' cy='38' r='1.1'/><circle cx='1' cy='30' r='1.6'/><circle cx='119' cy='30' r='1.6'/></g></svg>");
  /* toran: mango leaves on a string, a marigold at every knot */
  --toran: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 64'><path d='M0 6h60' stroke='%23c98f00' stroke-width='2'/><path d='M15 6C6 20 8 44 15 60C22 44 24 20 15 6Z' fill='%233d7a3a'/><path d='M15 10V54' stroke='%232a5c2a' stroke-width='1.2'/><path d='M45 6C39 17 40 34 45 46C50 34 51 17 45 6Z' fill='%234f9648'/><path d='M45 10V41' stroke='%232a5c2a' stroke-width='1.1'/><g fill='%23f39a0b'><circle cx='30' cy='10' r='8.5'/><circle cx='0' cy='10' r='8.5'/><circle cx='60' cy='10' r='8.5'/></g><g fill='%23f2b705'><circle cx='30' cy='10' r='5.6'/><circle cx='0' cy='10' r='5.6'/><circle cx='60' cy='10' r='5.6'/></g><g fill='%23d97a06'><circle cx='30' cy='10' r='2.2'/><circle cx='0' cy='10' r='2.2'/><circle cx='60' cy='10' r='2.2'/></g></svg>");
}

html { scroll-behavior: smooth; background: var(--deep); }
html.shut, html.shut body { overflow: hidden; }
body {
  font: 400 17px/1.6 var(--text); color: var(--ink);
  background: var(--deep) radial-gradient(circle, rgba(242, 183, 5, .16) 1.4px, transparent 2px) 0 0 / 26px 26px;
  -webkit-font-smoothing: antialiased;
}
[lang="mr"] { font-family: var(--mr); }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }

.page {
  position: relative; max-width: 480px; margin: 0 auto; overflow: clip;
  background: var(--cream) radial-gradient(circle, rgba(106, 27, 110, .09) 1.2px, transparent 1.7px) 0 0 / 22px 22px;
  box-shadow: 0 0 0 1px rgba(242, 183, 5, .5), 0 0 60px rgba(0, 0, 0, .45);
}
.toran { height: 60px; background: var(--toran) repeat-x center top / auto 100%; }
.paithani { height: 46px; background: var(--paithani) repeat-x center / auto 100%; }

/* ------------------------------------------------------------ gate */
.gate {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 20px calc(22px + env(safe-area-inset-bottom));
}
html.shut .gate { height: 100vh; height: 100svh; }
.gate > .toran { align-self: stretch; margin: 0 -20px; flex: none; }
.gate__shri { margin-top: 8px; font-size: 16px; color: var(--kumkum); letter-spacing: .02em; }
.gate__vivah { font-size: 30px; line-height: 1.35; color: var(--jam); }

.gate__stage { position: relative; width: 100%; margin: auto 0; display: flex; flex-direction: column; align-items: center; }
.names { display: contents; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.who { display: block; padding: 4px 0; order: 1; }
.who--b { order: 3; }
.who small { display: block; font: 400 15px/1.3 var(--mr); color: var(--kumkum); }
.who b {
  display: block; font: 500 clamp(27px, 8.3vw, 40px)/1.18 var(--disp); color: var(--jam);
  overflow-wrap: anywhere; text-wrap: balance; padding-top: .12em;
}
/* the band between the names: tall while the cloth hangs in it, short once it has dropped */
.band {
  position: relative; order: 2; display: grid; place-items: center; width: 100%;
  height: 128px; transition: height 1.1s cubic-bezier(.3, .9, .3, 1);
}
html.shut .band { height: clamp(160px, calc(100vh - 470px), 330px); height: clamp(160px, calc(100svh - 470px), 330px); }
.band__in { display: grid; justify-items: center; gap: 6px; transition: opacity .6s ease .2s, scale .9s cubic-bezier(.2, 1.4, .4, 1) .2s; }
.band__mantra { font: 400 19px/1.4 var(--mr); color: var(--kumkum); }
.band__amp {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: radial-gradient(circle, var(--paper) 56%, transparent 58%),
              repeating-conic-gradient(#f39a0b 0 12deg, var(--haldi) 12deg 24deg);
  box-shadow: 0 0 0 2px var(--leaf), 0 6px 16px -6px rgba(58, 16, 64, .5);
}
.band__amp i { font: italic 400 28px/1 var(--disp); color: var(--jam); padding-top: 6px; }
.gate[data-phase="idle"] .band__in { opacity: calc(.25 + var(--drop, 0) * .75); }
html.shut .gate[data-phase="idle"] .band__in { scale: .9; }

/* the cloth */
.cloth {
  position: absolute; z-index: 3; inset: -6px -20px 2px; width: calc(100% + 40px); height: calc(100% + 4px);
  display: none; place-items: center; align-content: center; gap: 14px;
  padding: 0; border: 0; background: none; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent;
  color: var(--kumkum); filter: drop-shadow(0 14px 14px rgba(58, 16, 64, .32));
  transform-origin: 50% 0; will-change: transform;
}
html.shut .cloth { display: grid; }
.cloth:active { cursor: grabbing; }
.cloth:focus-visible { outline: 3px solid var(--jam); outline-offset: -8px; border-radius: 6px; }
.cloth::before, .cloth::after {            /* the two knots it is held by */
  content: ""; position: absolute; top: -5px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd75a, var(--zari)); box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}
.cloth::before { left: 4px; }
.cloth::after { right: 4px; }
.cloth__silk { position: absolute; inset: 0; width: 100%; height: 100%; }
.cloth__mark { position: relative; display: block; width: clamp(70px, 24vw, 104px); }
.swastik { display: block; width: 100%; height: auto; }
.cloth__hint { position: relative; display: grid; justify-items: center; font: 400 18px/1.35 var(--mr); color: var(--jam); }
.cloth__hint small { font: 600 12.5px/1.5 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.cloth__to { font-size: 16px; color: var(--kumkum); margin-bottom: 2px; }
.cloth__chev {
  width: 14px; height: 14px; margin-top: 4px; border: solid var(--jam); border-width: 0 2.5px 2.5px 0;
  rotate: 45deg; animation: apNudge 1.5s ease-in-out infinite;
}
@keyframes apNudge { 0%, 100% { translate: 0 0; opacity: .5; } 50% { translate: 0 7px; opacity: 1; } }
.gate[data-phase="idle"] .cloth { animation: apSway 5s ease-in-out infinite; }
.cloth.held { animation: none !important; }
@keyframes apSway { 0%, 100% { transform: skewX(0deg); } 50% { transform: skewX(.7deg) translateY(2px); } }
.gate[data-phase="dropping"] .cloth { animation: none; pointer-events: none; }   /* script.js lets it fall */
.gate[data-phase="dropping"] .cloth__hint { opacity: 0; }

.gate__foot { display: grid; width: 100%; padding-top: 8px; }
.gate__foot > * { grid-area: 1 / 1; transition: opacity .8s ease, translate .9s cubic-bezier(.22, 1, .36, 1); }
.gate__wait { align-self: start; font-size: 16px; line-height: 1.5; color: var(--soft); font-style: italic; opacity: 0; visibility: hidden; }
.gate__after { display: grid; justify-items: center; gap: 2px; transition-delay: .5s; }
html.shut .gate__wait { opacity: 1; visibility: visible; }
html.shut .gate__after { opacity: 0; visibility: hidden; translate: 0 14px; transition: none; }
.gate__hi { font-size: 24px; line-height: 1.4; color: var(--kumkum); }
.gate__date { font: 600 17px/1.4 var(--text); color: var(--ink); }
.gate__venue { font-size: 16px; line-height: 1.4; color: var(--soft); }
.gate__cue {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; padding: 0 20px;
  border-radius: 999px; background: var(--jam); color: var(--cream); text-decoration: none;
  font: 600 13px/1 var(--text); letter-spacing: .12em; text-transform: uppercase;
}
.gate__cue span { font: 400 16px/1 var(--mr); letter-spacing: 0; color: var(--haldi); text-transform: none; }
.gate__skip {
  position: absolute; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 4; display: none;
  min-width: 64px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(106, 27, 110, .45); background: rgba(255, 253, 244, .9); color: var(--jam);
  font: 600 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase;
}
html.shut .gate__skip { display: block; }
html.shut .gate__foot { padding-bottom: 44px; }
.gate.instant *, .gate.instant { transition: none !important; }

/* akshata: grains of rice touched with kumkum and haldi */
.aks { position: fixed; z-index: 85; top: -16px; width: 5px; height: 12px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 .6px rgba(120, 70, 0, .35); }

/* ------------------------------------------------------------ sections */
.sec { position: relative; padding: 58px 22px 62px; text-align: center; scroll-margin-top: 0; }
.sec__en { font: 600 13px/1.4 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--leaf); }
.sec__mr { font: 400 30px/1.4 var(--mr); color: var(--jam); margin-top: 2px; }
.munda { display: block; width: min(240px, 70%); height: auto; margin: 10px auto 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--jam); color: var(--jam); background: transparent; text-decoration: none;
  font: 600 14px/1.1 var(--text); letter-spacing: .02em;
}
.btn--solid { background: var(--jam); color: var(--cream); }

/* nimantran */
.patrika { margin-top: 18px; font-size: 18px; line-height: 1.85; color: var(--ink); display: grid; gap: 8px; }
.patrika strong { font-weight: 400; color: var(--kumkum); }
.patrika__names { display: grid; gap: 0; margin: 6px 0; padding: 14px 10px; border-block: 1.5px solid rgba(201, 143, 0, .55); }
.patrika__names span { font-size: 21px; line-height: 1.5; color: var(--jam); overflow-wrap: anywhere; }
.patrika__names em { font-style: normal; font-size: 15px; color: var(--leaf); }
.patrika__en { margin-top: 20px; font-size: 16.5px; color: var(--soft); text-wrap: pretty; }
.patrika__msg {
  margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: var(--paper);
  border: 1px dashed var(--zari); font: italic 400 18px/1.6 var(--disp); color: var(--ink);
}

/* muhurta */
.sec--muhurta { background: linear-gradient(rgba(242, 183, 5, .16), rgba(242, 183, 5, 0) 60%); }
.tithi {
  width: min(280px, 100%); margin: 22px auto 0; padding: 0 16px 18px; border-radius: 16px 16px 12px 12px; overflow: hidden;
  background: var(--paper); border: 1.5px solid var(--zari); box-shadow: 0 16px 30px -18px rgba(58, 16, 64, .55);
}
.tithi__wd {
  margin: 0 -16px; padding: 9px 0 7px; background: var(--jam); color: var(--haldi);
  font: 600 14px/1.3 var(--text); letter-spacing: .24em; text-transform: uppercase;
}
.tithi__day { font: 500 92px/1 var(--disp); color: var(--kumkum); padding-top: 20px; }
.tithi__my { font: 500 22px/1.3 var(--disp); color: var(--jam); }
.tithi__mr { margin-top: 6px; font-size: 16px; color: var(--soft); }
.tithi__time { margin-top: 12px; padding-top: 12px; border-top: 1.5px dashed rgba(201, 143, 0, .7); display: grid; gap: 0; }
.tithi__time span { font-size: 17px; color: var(--leaf); }
.tithi__time b { font: 700 30px/1.25 var(--disp); color: var(--jam); padding-top: 4px; }

.count { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.count span {
  flex: 0 1 70px; padding: 10px 0 8px; border-radius: 10px; background: var(--jam); color: #f0d9ee;
  font: 600 11.5px/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase;
}
.count b { font: 500 27px/1.2 var(--disp); color: var(--haldi); letter-spacing: 0; padding-top: 4px; }
.count__done { margin-top: 24px; font: 500 20px/1.4 var(--disp); color: var(--kumkum); }

.rg { margin-top: 34px; }
.rg__btn {
  display: block; width: min(210px, 62%); margin: 0 auto; padding: 0; aspect-ratio: 1; border-radius: 50%; cursor: pointer;
  border: 0; background: radial-gradient(circle, #7b3a2c, #5d2a20 70%); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6.5px var(--zari), 0 14px 26px -12px rgba(58, 16, 64, .6);
}
.rg__btn:focus-visible { outline: 3px solid var(--jam); outline-offset: 9px; }
.rg__svg { display: block; width: 100%; height: 100%; }
.rg__dots circle { fill: #fffdf4; }
.rg__fill { opacity: 0; transition: opacity 1s ease 1.3s; }
.rg__lines path, .rg__lines circle { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease; }
.rg__lines :nth-child(n+2) { transition-delay: .35s; }
.rg__lines :nth-child(n+6) { transition-delay: .7s; }
.rg__lines :nth-child(n+10) { transition-delay: 1s; }
.rg.done .rg__lines path, .rg.done .rg__lines circle { stroke-dashoffset: 0; }
.rg.done .rg__fill { opacity: 1; }
.rg.done .rg__dots { opacity: .0; transition: opacity .6s ease 1.5s; }
.rg__hint, .rg__done { margin-top: 16px; font-size: 16px; color: var(--soft); }
.rg__done span { display: block; font-size: 19px; color: var(--kumkum); }
.rg__done small { font-size: 16px; }

/* families */
.kin { display: grid; gap: 4px; margin-top: 22px; }
.kin__card {
  position: relative; padding: 46px 16px 22px; border-radius: 14px; overflow: hidden;
  background: var(--paper); border: 1.5px solid rgba(201, 143, 0, .6); box-shadow: 0 16px 28px -20px rgba(58, 16, 64, .6);
}
.kin__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 30px; background: var(--paithani) repeat-x center / auto 100%; }
.kin__side { font: 600 13px/1.4 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--leaf); }
.kin__side span { font: 400 19px/1 var(--mr); letter-spacing: 0; color: var(--kumkum); margin-right: 6px; text-transform: none; }
.kin__name { font: 500 clamp(25px, 7.4vw, 32px)/1.2 var(--disp); color: var(--jam); margin-top: 8px; overflow-wrap: anywhere; }
.kin__name small { display: block; font: 400 15px/1.4 var(--mr); color: var(--kumkum); }
.kin__rel { margin-top: 12px; font: 600 12.5px/1.4 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.kin__parents, .kin__grand { font-size: 18px; line-height: 1.45; color: var(--ink); text-wrap: balance; }
.kin__mr { font-size: 15px; color: var(--leaf); margin-top: 2px; }
.kin__join { display: grid; place-items: center; height: 46px; margin: -8px 0; position: relative; z-index: 1; }
.nath { width: 70px; height: auto; filter: drop-shadow(0 3px 4px rgba(58, 16, 64, .3)); }
.sneh { margin-top: 38px; }
.sneh__mr { font: 400 23px/1.4 var(--mr); color: var(--jam); }
.sneh__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sneh__list li { padding: 12px 8px; border-radius: 10px; background: rgba(61, 122, 58, .1); border: 1px solid rgba(61, 122, 58, .3); display: grid; align-content: center; }
.sneh__list b { font: 500 17px/1.3 var(--disp); color: var(--ink); overflow-wrap: anywhere; padding-top: 3px; }
.sneh__list small { font-size: 14px; line-height: 1.35; color: var(--soft); }
.sneh__list li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* events */
.sec--events { background: linear-gradient(rgba(61, 122, 58, .12), rgba(61, 122, 58, 0) 40%); }
.events { display: grid; gap: 20px; margin-top: 24px; }
.ev {
  position: relative; padding: 26px 16px 20px; border-radius: 14px; background: var(--paper);
  border: 1.5px solid rgba(201, 143, 0, .6); box-shadow: 0 16px 28px -20px rgba(58, 16, 64, .6);
}
.ev--main { border: 2px solid var(--jam); padding-top: 38px; background: #fffaf0 linear-gradient(rgba(242, 183, 5, .22), rgba(242, 183, 5, 0) 45%); }
.ev__flag {
  position: absolute; top: -1px; left: 50%; translate: -50% 0; padding: 4px 18px 5px; border-radius: 0 0 12px 12px;
  background: var(--jam); color: var(--haldi); font-size: 15px; line-height: 1.4; white-space: nowrap;
}
.ev__lotus { display: block; width: 40px; height: auto; margin: 0 auto 4px; }
.ev__mr { font-size: 28px; line-height: 1.4; color: var(--jam); }
.ev__name { font: 500 19px/1.3 var(--disp); letter-spacing: .04em; color: var(--kumkum); }
.ev__when { margin-top: 12px; font: 600 17px/1.4 var(--text); }
.ev__time { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 12px; }
.ev__time b { font: 700 24px/1.3 var(--disp); color: var(--jam); padding-top: 3px; }
.ev--main .ev__time b { font-size: 32px; color: var(--kumkum); }
.ev__time span { font-size: 16px; color: var(--leaf); }
.ev__mrdate { font-size: 15px; color: var(--soft); }
.ev__sched { list-style: none; margin: 10px auto 0; padding: 0; max-width: 240px; }
.ev__sched li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dotted rgba(106, 27, 110, .35); font-size: 16px; }
.ev__sched b { font-weight: 600; color: var(--jam); }
.ev__where { margin-top: 12px; font-size: 16.5px; line-height: 1.45; }
.ev__where strong { font: 500 19px/1.35 var(--disp); color: var(--ink); }
.ev__note { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--soft); text-wrap: pretty; }
.ev__dress { margin-top: 8px; font-size: 16px; }
.ev__dress span { font: 600 12.5px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--leaf); margin-right: 6px; }
.ev__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.ev__links .btn { padding: 0 13px; font-size: 13.5px; }

/* venue */
.sthal {
  margin-top: 22px; padding: 0 18px 24px; border-radius: 80px 80px 14px 14px; overflow: hidden; background: var(--paper);
  border: 1.5px solid var(--zari); box-shadow: 0 16px 28px -20px rgba(58, 16, 64, .6);
}
.sthal__toran { height: 54px; margin: 0 -18px 16px; background: var(--toran) repeat-x center top / auto 100%; }
.sthal__name { font: 500 26px/1.25 var(--disp); color: var(--jam); overflow-wrap: anywhere; }
.sthal__addr { margin: 4px 0 16px; font-size: 17px; color: var(--soft); }

/* gallery + hashtag */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 3px solid var(--paper); box-shadow: 0 0 0 1.5px var(--zari); }
.gallery img:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.sec--tag { padding-top: 34px; padding-bottom: 54px; }
.hashtag { margin-top: 6px; font: 500 clamp(22px, 6.6vw, 30px)/1.3 var(--disp); color: var(--kumkum); overflow-wrap: anywhere; }

/* reply */
.sec--reply { background: var(--jam) radial-gradient(circle, rgba(242, 183, 5, .22) 1.3px, transparent 1.9px) 0 0 / 22px 22px; color: var(--cream); padding-bottom: 56px; }
.sec--reply .sec__en { color: var(--haldi); }
.sec--reply .sec__mr { color: var(--cream); font-size: 27px; }
.chuda { display: block; width: 150px; height: auto; margin: 0 auto 18px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.reply__line { margin-top: 12px; font-size: 17px; color: #f1dff0; text-wrap: pretty; }
.reply__btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin-top: 24px;
  min-height: 68px; padding: 10px 30px; border-radius: 16px; background: var(--haldi); color: var(--ink); text-decoration: none;
  font: 600 13.5px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 5px 0 #b98500, 0 16px 26px -10px rgba(0, 0, 0, .6);
}
.reply__btn span { font: 400 23px/1.3 var(--mr); letter-spacing: 0; text-transform: none; color: var(--jam); }
.reply__btn:active { translate: 0 3px; box-shadow: 0 2px 0 #b98500; }
.reply__aks {
  display: flex; flex-direction: column; align-items: center; margin: 26px auto 0; min-height: 48px; padding: 8px 20px;
  border-radius: 999px; border: 1.5px solid rgba(255, 247, 224, .6); background: transparent; color: var(--cream); cursor: pointer;
  font: 500 14px/1.3 var(--text);
}
.reply__aks span { font: 400 17px/1.3 var(--mr); color: var(--haldi); }
.reply__kids { margin-top: 26px; font-size: 18px; color: #ffe08a; }

/* footer */
.foot { background: var(--deep); color: #e9d3e6; text-align: center; padding: 0 20px calc(92px + env(safe-area-inset-bottom)); font-size: 15px; }
.foot .toran { margin: 0 -20px 14px; height: 50px; }
.foot__shri { font-size: 17px; color: var(--haldi); }
.foot__names { font: 500 30px/1.3 var(--disp); color: var(--cream); margin-top: 6px; overflow-wrap: anywhere; }
.foot__names span { color: var(--haldi); font-style: italic; }
.foot__date { letter-spacing: .12em; text-transform: uppercase; font-size: 13.5px; }
.foot__cal { margin-top: 14px; line-height: 2.2; }
.foot__cal a { padding: 10px 2px; }
.foot__music, .foot__credit { margin-top: 10px; font-size: 14px; color: #cdb2ca; }

/* ------------------------------------------------------------ link-preview card */
html.og .ogcard { flex-direction: column; background: var(--cream); font-family: var(--text); }
.og__border { flex: none; height: 84px; background: var(--paithani) repeat-x center / auto 100%; }
.og__panel {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative;
  padding: 40px 60px 0; background: var(--cream) radial-gradient(circle, rgba(106, 27, 110, .1) 2px, transparent 2.8px) 0 0 / 34px 34px;
}
.og__toran { position: absolute; inset: 0 0 auto; height: 74px; background: var(--toran) repeat-x center top / auto 100%; }
.og__shri { font: 400 40px/1.3 var(--mr); color: var(--kumkum); }
.og__names { font: 500 104px/1.12 var(--disp); color: var(--jam); padding-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .25em; }
.og__names span { color: var(--zari); font-style: italic; }
.og__date { font: 600 40px/1.3 var(--text); color: var(--ink); margin-top: 4px; }
.og__venue { font: 400 30px/1.3 var(--text); color: var(--soft); }

/* ------------------------------------------------------------ wider screens */
@media (min-width: 520px) {
  .page { margin-block: 0; }
  .who b { font-size: 40px; }
}
@media (max-height: 640px) {
  .gate__vivah { font-size: 25px; }
  .toran { height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rg__fill { transition: none; }
}
