/* Hemeshwar weds Vasudha — Stories by OneMark
   Built around the family's own illustrations: deep teal (from the peacock arch), warm cream, gold, kumkum and lotus pink. */
/* self-hosted fonts (SIL Open Font License): EB Garamond, Marcellus, Noto Serif Telugu. Only the Latin and Telugu subsets this page needs. */
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/ebgaramond-italic-latin.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201D, U+2026; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/ebgaramond-latin.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201D, U+2026; }
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/marcellus-latin.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201D, U+2026; }
@font-face { font-family: "Noto Serif Telugu"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/notoseriftelugu-telugu.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0B83, U+0C00-0C7F, U+1CD5-1CD6, U+1CD8, U+1CDA, U+1CF2, U+200C-200D, U+25CC; }
:root {
  --teal: #003b39;
  --teal-d: #02282a;
  --cream: #fbf1d3;
  --paper: #f9efdb; /* sampled from the edge of the banana plants */
  --cream-2: #f3e3b6;
  --gold: #d9a441;
  --gold-l: #f2d27a;
  --kumkum: #8a1c1c;
  --kumkum-d: #5e1010;
  --lotus: #b0245f;
  --ink: #2a1c14;
  --muted: #6b5747;
  --display: "Marcellus", Georgia, serif;
  --serif: "EB Garamond", Georgia, serif;
  --te: "Noto Serif Telugu", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--serif); overflow-x: clip; }
h1, h2, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.wrap { position: relative; z-index: 1; width: min(760px, 100% - 40px); margin-inline: auto; }
.eyebrow, .num, .venue-label, .count-label, .pancha-t, .done-tag, .inv { font-family: var(--display); letter-spacing: .24em; text-transform: uppercase; }
.deco { position: absolute; pointer-events: none; user-select: none; }

/* ---------- hero: names sit inside the peacock arch ---------- */
.hero { position: relative; background: var(--teal); color: var(--cream); text-align: center; height: 100svh; min-height: 520px; overflow: hidden; transition: opacity .7s ease; }
.hero.is-leaving { opacity: 0; pointer-events: none; }
.hero[hidden] { display: none; }
html.locked, html.locked body { overflow: hidden; height: 100%; }
.js .hero { position: fixed; inset: 0; height: auto; min-height: 0; z-index: 100; }
.stage { position: absolute; top: 50%; left: 50%; width: max(100vw, 50dvh); aspect-ratio: 1 / 2; transform: translate(-50%, -50%); container-type: inline-size; }
@media (min-aspect-ratio: 3/4) { .stage { width: 50dvh; } .stage-img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); } }
.stage-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage-in { position: absolute; left: 21%; right: 21%; top: 25.5%; bottom: 33.5%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); }
.ganesha { width: 17cqw; margin-bottom: 1.4cqw; }
.srirastu { font: 700 3.1cqw/1.5 var(--te); color: var(--kumkum); }
.names { margin-top: 2.4cqw; font-family: var(--display); font-weight: 400; color: var(--kumkum-d); }
.nm { display: block; font-size: 10.4cqw; line-height: 1.05; letter-spacing: .01em; }
.and { display: block; margin: .4cqw 0; font: italic 400 4.6cqw/1.2 var(--serif); color: var(--lotus); }
.names-te { margin-top: 2cqw; font: 700 3.3cqw/1.5 var(--te); color: var(--ink); }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 18px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(251,241,211,0), rgba(251,241,211,.92) 42%); }
@media (min-aspect-ratio: 3/4) { .hero-foot { left: 50%; right: auto; width: 50dvh; transform: translateX(-50%); } }
.when { font: 400 .7rem/1.6 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--kumkum-d); }
.open-btn { margin-top: 10px; appearance: none; cursor: pointer; font: 400 .78rem/1 var(--display); letter-spacing: .22em; text-transform: uppercase; padding: 16px 26px; color: var(--gold-l); background: var(--teal); border: 1px solid var(--teal); box-shadow: 0 10px 18px -10px rgba(0,59,57,.7); transition: background .2s, color .2s; }
.open-btn:hover { background: var(--teal-d); }
.open-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
/* countdown appears under the marriage time once it is revealed */
.count { margin: 20px auto 30px; max-width: 380px; padding: 16px 0 14px; border-block: 1px solid rgba(217,164,65,.6); }
.count-label { font-size: .64rem; line-height: 1.6; color: var(--lotus); }
.tiles { margin-top: 10px; display: flex; justify-content: center; }
.tiles div { flex: 1; padding: 0 4px; }
.tiles div + div { border-left: 1px solid rgba(217,164,65,.55); }
.tiles b { display: block; font: 400 clamp(1.7rem, 8vw, 2.3rem)/1.1 var(--display); font-variant-numeric: tabular-nums; color: var(--teal); }
.tiles small { display: block; font: 400 .62rem var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.count-note { margin-top: 10px; font: italic 400 1.35rem/1.4 var(--serif); color: var(--kumkum-d); }
.tiles[hidden], .count-note[hidden] { display: none; }
.rise { opacity: 0; transform: translateY(12px); animation: rise .9s ease var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- families ---------- */
.invite .wrap { width: min(900px, 100% - 40px); }
.invite { position: relative; padding: 48px 0 240px; text-align: center; background: var(--paper); overflow: hidden; }
.ganesha-top { width: 150px; margin: 0 auto 22px; filter: drop-shadow(0 10px 14px rgba(120,50,60,.25)); }
.eyebrow { font-size: .68rem; color: var(--lotus); }
/* corner props: hanging lamps at the top, banana plants standing in the bottom corners */
.lamps { top: 0; width: 62px; z-index: 0; }
.lamps-l { left: 3%; } .lamps-r { right: 3%; transform: scaleX(-1); }
.plant { bottom: 0; height: 190px; width: auto; z-index: 0; }
.plant-l { left: 0; } .plant-r { right: 0; }
.vase { bottom: 0; left: 50%; width: 190px; transform: translateX(-50%); z-index: 0; }
.toran { top: 0; width: 38px; z-index: 0; } .toran-l { left: 8%; } .toran-r { right: 9%; width: 28px; }
.closing { position: relative; }
.rec-foot { margin-top: 44px; display: flex; justify-content: center; align-items: flex-end; gap: 20px; }
.rec-foot img { height: 96px; width: auto; } .rec-foot img:nth-child(2) { height: 108px; } .flipx { transform: scaleX(-1); }
@media (min-width: 820px) { .lamps { width: 96px; } .plant { height: 380px; } .vase { width: 260px; } .invite { padding-top: 60px; padding-bottom: 300px; } .ganesha-top { width: 190px; } .toran { width: 54px; } .toran-r { width: 40px; } .rec-foot img { height: 130px; } .rec-foot img:nth-child(2) { height: 146px; } }
.solicit { margin: 16px auto 0; max-width: 28em; font: italic 400 1.35rem/1.55 var(--serif); color: var(--muted); }
.pair { margin-top: 38px; display: grid; gap: 22px; }
.hon { display: inline-block; margin-right: .25em; font: italic 400 .5em/1 var(--serif); letter-spacing: .02em; color: var(--kumkum); vertical-align: .35em; }
.pair h2 { margin: 6px 0 8px; font: 400 clamp(1.9rem, 8vw, 2.5rem)/1.15 var(--display); color: var(--kumkum-d); }
.of { color: var(--muted); }
.of b { font-weight: 600; color: var(--ink); }
.place { margin-top: 8px; font-size: 1rem; font-style: italic; color: var(--teal); }
.with { font: italic 400 1.6rem/1 var(--serif); color: var(--lotus); }
@media (min-width: 760px) {
  .pair { grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: start; }
  .with { padding-top: 38px; }
}

/* ---------- events ---------- */
.event { position: relative; padding: 76px 0 84px; background: var(--paper); overflow: hidden; border-top: 1px solid rgba(217,164,65,.55); }
.event.alt { padding-bottom: 120px; }
.kal { top: 46px; left: 4%; width: 54px; }
.parrot { top: 52px; right: 5%; width: 56px; z-index: 0; }
@media (min-width: 820px) { .kal { top: 60px; left: 12%; width: 90px; } .parrot { top: 64px; right: 13%; width: 84px; } }
.ev-head { text-align: center; }
.num { font-size: .68rem; color: var(--lotus); }
.ev-head h2 { margin-top: 8px; font: 400 clamp(2.3rem, 9vw, 3.4rem)/1.1 var(--display); color: var(--kumkum-d); }
.te { margin-top: 4px; font: 700 1.05rem/1.6 var(--te); color: var(--kumkum); }
.done-tag { margin-top: 12px; display: inline-block; padding: 6px 14px; border: 1px solid var(--kumkum); font-size: .6rem; color: var(--kumkum); }
.done-tag[hidden] { display: none; }
.kalyanam { margin: 26px auto 0; max-width: 640px; }
.kalyanam img { width: 100%; filter: drop-shadow(0 8px 12px rgba(60,30,10,.2)); }
.ev-main { margin-top: 28px; text-align: center; width: 100%; }

/* banana-and-lamp base under the marriage card */
.framed { position: relative; margin-top: 10px; padding: 0 clamp(6%, 11vw, 12%) 24%; background: url("assets/img/frame.webp") center bottom / 100% auto no-repeat; }

.rec-grid { margin-top: 20px; display: grid; gap: 10px; justify-items: center; }
.couple img { width: min(150px, 40vw); margin: 0 auto; filter: drop-shadow(0 10px 14px rgba(60,30,10,.28)); }
@media (min-width: 820px) {
  .rec-grid { grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
  .rec-grid .ev-main { margin-top: 0; }
  .couple img { width: 200px; }
  .side-img { height: 110px; }
}

/* scratch card: gold foil over a printed ticket */
.scratch-pair { display: flex; justify-content: center; gap: 12px; }
.scratch { position: relative; flex: 0 1 150px; min-width: 0; aspect-ratio: 1.3 / 1; margin: 0; overflow: hidden; background: var(--cream); border: 2px solid var(--gold); border-radius: 3px; touch-action: pan-y; box-shadow: 0 10px 18px -10px rgba(2,40,42,.55); }
.scratch-reveal { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px; background: linear-gradient(rgba(255,250,240,.82), rgba(251,241,211,.9)), url("assets/img/paper.webp") center / cover; outline: 1px solid var(--gold); outline-offset: -4px; }
.sr-label { font: 400 .5rem/1 var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--lotus); }
.sr-big { margin-top: 4px; font: 400 clamp(1.2rem, 5.4vw, 1.7rem)/1.05 var(--display); color: var(--kumkum-d); white-space: nowrap; }
.sr-big small { font-size: .42em; letter-spacing: .1em; color: var(--kumkum); }
.sr-sub { margin-top: 3px; font: italic 400 .8rem/1.2 var(--serif); color: var(--muted); }
.scratch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.scratch:focus-visible { outline: 3px solid var(--lotus); outline-offset: 5px; }
.scratch.is-revealed .scratch-canvas { pointer-events: none; }
html:not(.js) .scratch-canvas { display: none; }
.text-btn { background: none; border: 0; padding: 12px 6px; cursor: pointer; font: italic 400 .88rem var(--serif); text-decoration: underline; text-underline-offset: 4px; color: var(--muted); }
.scratch-again { display: block; margin: 8px auto 0; }
.scratch-again[hidden] { display: none; }
.after-reveal { display: none; margin-top: 28px; }
.after-reveal.is-shown, html:not(.js) .after-reveal { display: block; }
.burst-petal { position: fixed; z-index: 70; width: 11px; height: 16px; border-radius: 60% 60% 60% 60% / 80% 80% 30% 30%; pointer-events: none; }

.when-full { margin-top: 8px; font: 400 1.25rem/1.35 var(--display); color: var(--kumkum-d); }
.days { margin: 10px 0 14px; font: italic 400 1.2rem var(--serif); color: var(--lotus); }
.venue-label { font-size: .64rem; color: var(--gold); }
.venue-name { margin-top: 6px; font: 400 1.6rem/1.25 var(--display); color: var(--teal); }
.venue-addr { color: var(--muted); }
.pancha { margin: 20px auto 0; padding-top: 14px; max-width: 28em; border-top: 1px solid rgba(217,164,65,.7); font-size: 1rem; }
.pancha-t { font-size: .62rem; color: var(--lotus); margin-bottom: 4px; }
.btns { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn { appearance: none; cursor: pointer; font: 400 .72rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; padding: 15px 20px; text-decoration: none; border: 1px solid var(--teal); display: inline-block; transition: background .2s, color .2s; }
.btn:focus-visible { outline: 3px solid var(--lotus); outline-offset: 3px; }
.btn.solid { background: var(--teal); color: var(--cream); }
.btn.solid:hover { background: var(--teal-d); }
.btn.line { background: transparent; color: var(--teal); }
.btn.line:hover { background: var(--teal); color: var(--cream); }

/* ---------- closing ---------- */
.closing { background: radial-gradient(70% 50% at 50% 12%, #0b5a55 0%, transparent 75%), var(--teal); color: var(--cream); text-align: center; padding: 72px 0 66px; }
.namam img { width: min(300px, 72vw); margin: 0 auto 22px; filter: drop-shadow(0 14px 22px rgba(0,0,0,.45)); }
.inv { font-size: .68rem; line-height: 1.7; color: var(--gold-l); }
.quote { margin-top: 16px; font: italic 400 clamp(1.5rem, 5.6vw, 2.1rem)/1.45 var(--serif); }
.hosts { margin-top: 28px; font: 400 1.25rem/1.4 var(--display); letter-spacing: .05em; color: var(--gold-l); }
.hosts-sub { margin-top: 4px; font-style: italic; color: #cfe0d6; }
.btn.wa { background: var(--gold-l); color: var(--teal-d); border-color: var(--gold-l); }
.btn.ghost { background: transparent; color: var(--cream); border-color: rgba(251,241,211,.55); }
.footer { background: var(--teal-d); color: rgba(251,241,211,.7); text-align: center; padding: 30px 20px calc(30px + env(safe-area-inset-bottom)); font-size: .9rem; }
.footer img { margin: 10px auto; }
.footer a { color: inherit; }

/* ---------- misc ---------- */
.fabs { position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab, .music { appearance: none; cursor: pointer; border: 1px solid var(--gold); background: rgba(0,59,57,.94); color: var(--gold-l); box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); display: inline-flex; align-items: center; justify-content: center; }
.fab { width: 44px; height: 44px; border-radius: 50%; }
.fab[hidden] { display: none; }
.fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.music { height: 44px; padding: 0 16px 0 12px; gap: 8px; border-radius: 999px; font: 400 .66rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.music svg { width: 18px; height: 18px; fill: currentColor; }
.music .i-pause { display: none; }
.music[aria-pressed="true"] .i-play { display: none; }
.music[aria-pressed="true"] .i-pause { display: block; }
html.locked .fabs { bottom: auto; top: calc(12px + env(safe-area-inset-top)); }
.fab:hover, .music:hover { background: var(--teal-d); }
.fab:focus-visible, .music:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .js .reveal { animation: none; transition: none; opacity: 1; transform: none; }
  .bars i { animation: none !important; }
}

/* let the browser skip layout/paint of sections that are far off-screen (content stays in the page for crawlers) */
.event, .closing { content-visibility: auto; contain-intrinsic-size: auto 900px; }
