/* ═════════ Reception update: languages, venue QR + RSVP, blessings wall, lite mode ═════════ */

:root {
  --serif: "Cormorant Garamond", "Tiro Bangla", "Tiro Devanagari Hindi", "Times New Roman", serif;
  --script: "Great Vibes", "Tiro Bangla", "Tiro Devanagari Hindi", cursive;
  --bn: "Tiro Bangla", "Tiro Devanagari Hindi", serif;
}

/* Hindi & Bengali: no wide uppercase tracking, slightly larger small text, calmer script lines */
html[lang="hi"] .tiny-caps, html[lang="bn"] .tiny-caps,
html[lang="hi"] .hero-date, html[lang="bn"] .hero-date,
html[lang="hi"] .scroll-cue, html[lang="bn"] .scroll-cue {
  text-transform: none; letter-spacing: .04em; font-family: var(--bn); font-size: 16px; font-weight: 700;
}
html[lang="hi"] .gate-hint, html[lang="bn"] .gate-hint { text-transform: none; letter-spacing: .04em; font-family: var(--bn); font-size: 17px; font-weight: 700; }
html[lang="hi"] .script:not(.latin), html[lang="bn"] .script:not(.latin) { font-family: var(--bn); font-style: italic; line-height: 1.35; }
html[lang="hi"] .fv-cap .script, html[lang="bn"] .fv-cap .script { font-size: clamp(38px, 9vw, 76px); }
html[lang="hi"] .ct-text h2, html[lang="bn"] .ct-text h2 { font-size: clamp(44px, 10vw, 90px); }
html[lang="hi"] .kline.k2, html[lang="bn"] .kline.k2 { font-size: clamp(50px, 12vw, 170px); }
html[lang="hi"] .kline, html[lang="bn"] .kline { font-size: clamp(48px, 12vw, 170px); line-height: 1.25; }
html[lang="hi"] .journey-text, html[lang="bn"] .journey-text { font-family: var(--bn); font-size: clamp(24px, 4.6vw, 48px); line-height: 1.5; }
html[lang="hi"] .title, html[lang="bn"] .title { font-family: var(--bn); line-height: 1.3; }
html[lang="hi"] .finale-line, html[lang="bn"] .finale-line { font-family: var(--bn); line-height: 1.45; }
html[lang="hi"] .caption, html[lang="bn"] .caption { font-family: var(--bn); line-height: 1.4; }
html[lang="hi"] .md-center .script, html[lang="bn"] .md-center .script { font-size: clamp(30px, 6vw, 54px); }
html[lang="hi"] .gal-card p, html[lang="bn"] .gal-card p { font-size: 22px; }
html[lang="hi"] .polaroid::after, html[lang="bn"] .polaroid::after { font-family: var(--bn); font-size: 18px; }
.hero-names, .letter-names, .finale-names, .person h3 { font-family: "Great Vibes", cursive; }

/* film backdrop: blur comes from drawing it tiny and scaling up — no costly CSS blur filter */
#filmBg { filter: none; transform: scale(1.12); opacity: .5; }

/* polaroid caption follows the language */
.polaroid::after { content: attr(data-cap); }

/* ───────── language pickers ───────── */
.lang-pick, .lang-float { display: flex; gap: 6px; }
.lang-pick { position: relative; z-index: 2; }
.lang-pick button, .lang-float button {
  font-family: var(--bn); font-size: 14px; line-height: 1; padding: 9px 14px; border-radius: 999px;
  color: var(--champagne); border: 1px solid rgba(233, 207, 143, .45); background: rgba(28, 6, 13, .35);
  transition: background .3s, color .3s;
}
.lang-pick button[lang="en"], .lang-float button[lang="en"] { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; }
.lang-pick button.on, .lang-float button.on { background: var(--gold-2); color: var(--wine-950); border-color: var(--gold-2); }
.lang-pick button:focus-visible, .lang-float button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.lang-float {
  position: fixed; z-index: 45; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  padding: 4px; border-radius: 999px; background: rgba(42, 11, 20, .82); border: 1px solid rgba(233, 207, 143, .35);
}
.lang-float button { padding: 7px 10px; font-size: 12px; border: 0; background: transparent; }
.lang-float button[lang="en"] { font-size: 11px; }
body.is-locked .lang-float { display: none; }

/* ───────── invitation signature ───────── */
.journey-sign { text-align: center; margin-top: 26px; font-style: italic; color: var(--wine-700); font-size: 20px; }
.journey-sign .script { font-family: "Great Vibes", cursive; font-style: normal; font-size: 38px; color: var(--gold-3); margin-left: 6px; }

/* ───────── venue: when + QR + RSVP ───────── */
.venue-when { position: relative; margin-top: 10px; color: var(--gold-2); font-family: var(--bn); font-size: 17px; }
html[lang="en"] .venue-when { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.qr-block { position: relative; margin: 26px auto 0; max-width: 360px; display: grid; justify-items: center; gap: 12px; }
.qr-note { font-family: var(--bn); font-size: 16px; line-height: 1.6; color: var(--champagne); }
html[lang="en"] .qr-note { font-family: var(--serif); font-style: italic; font-size: 18px; }
.qr-box {
  display: block; width: min(64vw, 210px); aspect-ratio: 1; max-width: 100%; padding: 10px; border-radius: 18px; background: #fffdf8;
  box-shadow: 0 0 0 1px rgba(233, 207, 143, .7), 0 0 0 7px rgba(233, 207, 143, .12), 0 18px 40px -16px rgba(0, 0, 0, .6);
}
.qr-box svg { display: block; width: 100%; height: 100%; }
.qr-cap { color: var(--champagne-2); }
.ics-link { position: relative; margin-top: 14px; font-family: var(--bn); font-size: 13px; color: var(--champagne-2); text-decoration: underline; text-underline-offset: 3px; }
html[lang="en"] .ics-link { font-family: var(--sans); letter-spacing: .04em; }

/* ───────── blessings form (after the reference card) ───────── */
#blessings { background: linear-gradient(180deg, var(--blush), var(--ivory)); }
.bl-card {
  position: relative; max-width: 560px; margin: 0 auto; text-align: center;
  padding: clamp(34px, 7vw, 56px) clamp(18px, 6vw, 44px) clamp(26px, 5vw, 40px);
  background: #fffdf8; border-radius: 34px;
  box-shadow: 0 0 0 1px rgba(201, 164, 92, .6), 0 0 0 8px #fffdf8, 0 0 0 9px rgba(201, 164, 92, .35), 0 40px 80px -40px rgba(61, 16, 32, .45);
}
.bl-title { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 9vw, 60px); line-height: 1.05; margin: 10px 0 22px; text-wrap: balance; }
html[lang="hi"] .bl-title, html[lang="bn"] .bl-title { font-family: var(--bn); font-size: clamp(32px, 7vw, 46px); line-height: 1.3; }
#blessForm { display: grid; gap: 12px; text-align: left; }
.fld { display: block; }
.fld input, .fld textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #fff;
  border: 1px solid rgba(156, 116, 52, .45); border-radius: 16px; padding: 13px 16px; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.fld input::placeholder, .fld textarea::placeholder { color: #a08d86; font-family: var(--serif); }
html[lang="hi"] .fld input::placeholder, html[lang="hi"] .fld textarea::placeholder,
html[lang="bn"] .fld input::placeholder, html[lang="bn"] .fld textarea::placeholder { font-family: var(--bn); font-size: 15px; }
/* typed text in plain upright letters (the card's italic serif made numbers hard to read) */
.fld input, .fld textarea { font-family: var(--sans); font-style: normal; font-weight: 400; font-size: 16px; letter-spacing: .01em; }
.fld input::placeholder, .fld textarea::placeholder { font-family: var(--sans); font-style: normal; }
#bPhone { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 164, 92, .18); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.photo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.photo-pick { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-family: var(--bn); font-size: 15px; color: var(--wine-700); }
html[lang="en"] .photo-pick { font-family: var(--serif); font-size: 17px; font-style: italic; }
.ph-prev {
  width: 48px; height: 48px; border-radius: 50%; flex: none; border: 1px dashed var(--gold);
  background: #fff center / cover no-repeat;
  display: grid; place-items: center;
}
.ph-prev:not(.has)::before { content: "+"; font-size: 24px; color: var(--gold-3); line-height: 1; }
.ph-prev.has { border-style: solid; }
.ph-remove { font-size: 13px; color: var(--muted); text-decoration: underline; }
.bl-send { width: 100%; margin-top: 6px; padding: 16px 22px; font-size: 12px; }
html[lang="hi"] .bl-send, html[lang="bn"] .bl-send { font-family: var(--bn); font-size: 16px; letter-spacing: .02em; text-transform: none; }
.bl-send:disabled { opacity: .6; cursor: progress; }
.bl-status { min-height: 1.4em; text-align: center; font-size: 16px; }
.bl-status.ok { color: #2f6b3a; }
.bl-status.err { color: #a3243b; }
.bl-privacy { text-align: center; font-size: 14px; color: var(--muted); font-style: italic; }
html[lang="hi"] .bl-privacy, html[lang="bn"] .bl-privacy { font-family: var(--bn); font-style: normal; }

/* ───────── wall ───────── */
.wall { max-width: 1040px; margin: clamp(48px, 8vh, 80px) auto 0; }
.wall-head { text-align: center; margin-bottom: 22px; }
.wall-head .title { font-size: clamp(30px, 6vw, 48px); }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.bless {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start;
  background: #fffdf8; border-radius: 20px; padding: 18px;
  box-shadow: 0 0 0 1px rgba(201, 164, 92, .3), 0 18px 40px -28px rgba(61, 16, 32, .45);
}
.bl-av {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  font-family: var(--sans); font-weight: 500; font-size: 17px; letter-spacing: .04em; color: #fffaf0;
  box-shadow: 0 0 0 2px #fffdf8, 0 0 0 3px rgba(201, 164, 92, .6);
}
.bl-av img { width: 100%; height: 100%; object-fit: cover; }
.bl-body { min-width: 0; }
.bl-body h4 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--wine-700); overflow-wrap: anywhere; }
.bl-body p { margin: 4px 0 6px; font-size: 17px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.bl-body time { font-family: var(--sans); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.wall-empty { text-align: center; font-style: italic; color: var(--muted); font-size: 18px; }
.wall-more { display: block; margin: 22px auto 0; color: var(--wine-700); border-color: var(--gold); }
html[lang="hi"] .wall-more, html[lang="bn"] .wall-more { font-family: var(--bn); font-size: 15px; text-transform: none; letter-spacing: 0; }
html[lang="hi"] .btn, html[lang="bn"] .btn { font-family: var(--bn); font-size: 15px; text-transform: none; letter-spacing: .02em; }

/* ───────── lite mode: same story, far less work per frame ───────── */
.lite .gold-text { animation: none; background-position: 30% 0; }
.lite .gate-pattern, .lite .venue-glow, .lite .scroll-cue i::after, .lite .reel-play::before { animation: none; }
.lite .music-btn, .lite .lang-float { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(42, 11, 20, .92); }
.lite .float-sprig, .lite .candles i::after, .lite .cursor-dot { display: none; }
.lite .ring-card { box-shadow: 0 0 0 1px rgba(233, 207, 143, .45); }
.lite .gal-frame, .lite .polaroid, .lite .bless, .lite .arch-pic { box-shadow: 0 0 0 1px rgba(201, 164, 92, .35); }
.lite .envelope { filter: none; }
.lite .seal::before { animation: none; opacity: .5; }

html[lang="hi"] .scratch small, html[lang="bn"] .scratch small, html[lang="hi"] .cd small, html[lang="bn"] .cd small { letter-spacing: .02em; text-transform: none; font-family: var(--bn); font-size: 13px; }
