:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --wine: #4a0f1c;
  --wine-2: #6b1a2a;
  --gold: #c9a063;
  --gold-soft: #e7c98f;
  --ink: #1f1a17;
  --ink-2: #5c534c;
  --line: #ebe3d8;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(31, 26, 23, .04), 0 12px 32px -12px rgba(74, 15, 28, .14);

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
}
html[lang="gu"] {
  --f-display: "Anek Gujarati", "Noto Sans Gujarati", sans-serif;
  --f-body: "Anek Gujarati", "Noto Sans Gujarati", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="gu"] body { font-size: 17px; line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background .3s, box-shadow .3s, color .3s;
  color: #fff;
}
.topbar.solid {
  background: rgba(250, 246, 240, .85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--wine);
}
.mark {
  font-family: "Fraunces", serif; font-size: 20px; text-decoration: none; letter-spacing: .04em;
  padding: 8px 4px; margin: -8px 0;
}
.mark span { color: var(--gold); font-weight: 400; }

.lang-toggle {
  display: inline-flex; padding: 3px; gap: 2px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent; color: inherit; cursor: pointer;
  font: 500 13px/1 "Inter", "Anek Gujarati", sans-serif;
}
.lt-opt { padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.lt-opt[data-l="gu"] { font-family: "Anek Gujarati", sans-serif; font-size: 14px; }
/* active pill colours flip depending on bar state */
.topbar:not(.solid) .lang-toggle .lt-opt { color: rgba(255,255,255,.85); }
html[lang="gu"] .topbar:not(.solid) .lt-opt[data-l="gu"],
html[lang="en"] .topbar:not(.solid) .lt-opt[data-l="en"] { background: #fff; color: var(--wine); }
html[lang="gu"] .topbar.solid .lt-opt[data-l="gu"],
html[lang="en"] .topbar.solid .lt-opt[data-l="en"] { background: var(--wine); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  color: #fff;
  background: var(--wine);
  overflow: hidden;
  padding: 96px 16px 72px;
}
.hero.has-photo { background-size: cover; background-position: center; }
.hero.has-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40, 8, 15, .55) 0%, rgba(40, 8, 15, .7) 55%, rgba(40, 8, 15, .92) 100%);
}
.hero-glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 50% 38%, rgba(201, 160, 99, .28), transparent 70%),
    radial-gradient(30% 30% at 15% 85%, rgba(201, 160, 99, .12), transparent 70%),
    radial-gradient(30% 30% at 90% 10%, rgba(255, 255, 255, .06), transparent 70%);
  pointer-events: none;
}
.hero.has-photo .hero-glow { display: none; }
.hero-inner { position: relative; max-width: 760px; width: 100%; }

.invocation {
  margin: 0 0 36px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-soft); opacity: .9;
  text-wrap: balance;
}
html[lang="gu"] .invocation { letter-spacing: .04em; font-size: 14px; text-transform: none; }


.couple {
  margin: 28px 0 26px;
  font-family: var(--f-display);
  font-weight: 300;
  line-height: .95;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.couple .name { font-size: clamp(64px, 17vw, 140px); letter-spacing: -.02em; }
html[lang="gu"] .couple { font-weight: 500; line-height: 1.15; gap: 4px; }
html[lang="gu"] .couple .name { font-size: clamp(56px, 15vw, 116px); letter-spacing: 0; }
.couple .amp {
  font-style: normal; font-weight: 300; color: var(--gold);
  font-size: clamp(36px, 8vw, 64px); line-height: 1;
}
html[lang="gu"] .couple .amp { font-style: normal; font-size: clamp(18px, 4vw, 24px); font-weight: 400; letter-spacing: .06em; }

.hero-date {
  margin: 0; font-size: clamp(15px, 3.4vw, 18px);
  letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
}
html[lang="gu"] .hero-date { letter-spacing: .04em; font-size: clamp(18px, 4vw, 22px); }
.hero-place { margin: 6px 0 0; color: rgba(255,255,255,.65); letter-spacing: .12em; font-size: 14px; }

.countdown {
  margin: 44px auto 0; max-width: 420px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(6px);
}
.countdown div { padding: 14px 4px 10px; }
.countdown div + div { border-left: 1px solid rgba(255,255,255,.12); }
.countdown b {
  display: block; font-family: "Fraunces", serif; font-weight: 400;
  font-size: clamp(26px, 7vw, 36px); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.countdown span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
html[lang="gu"] .countdown span { letter-spacing: 0; font-size: 13px; }
.countdown.done { display: block; padding: 14px; font-size: 18px; }

.scroll-cue {
  display: inline-flex; margin-top: 28px; padding: 12px; color: rgba(255,255,255,.6);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- Sections ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.section { padding: 88px 0 0; }
.eyebrow {
  margin: 0 0 8px; text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
html[lang="gu"] .eyebrow { letter-spacing: .06em; font-size: 14px; }
.title {
  margin: 0 0 40px; text-align: center;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(32px, 7vw, 52px); line-height: 1.1; letter-spacing: -.01em;
  color: var(--wine);
}
html[lang="gu"] .title { font-weight: 600; line-height: 1.3; }

/* Intro / invitation card */
.intro { max-width: 760px; margin: 0 auto; text-align: center; scroll-margin-top: 40px; }
.letter {
  position: relative;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(32px, 7vw, 60px) clamp(22px, 6vw, 60px);
}
.letter::before {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid var(--gold-soft); border-radius: 16px; opacity: .7;
}
.greeting { margin: 0 0 22px; color: var(--wine); }
.greeting .dear {
  display: block; margin-bottom: 2px;
  font-family: "Fraunces", serif; font-style: italic; font-size: 20px; color: var(--gold);
}
html[lang="gu"] .greeting .dear { font-family: var(--f-body); font-style: normal; font-size: 18px; font-weight: 500; }
.greeting strong {
  display: block; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(26px, 6.4vw, 38px); line-height: 1.25; overflow-wrap: anywhere;
}
html[lang="gu"] .greeting strong { font-weight: 600; line-height: 1.4; }
.greeting .fam { color: var(--gold); font-size: .62em; font-weight: 500; white-space: nowrap; }
.prose {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(19px, 3.6vw, 23px); line-height: 1.6; font-weight: 300;
  color: var(--ink);
}
html[lang="gu"] .prose { font-weight: 400; line-height: 1.85; font-size: clamp(18px, 3.4vw, 21px); }
.prose b { font-weight: 600; color: var(--wine); }
.parents {
  margin-top: 40px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center;
  padding: 24px 8px 0; border-top: 1px solid var(--line);
}
.parents .sep { width: 1px; height: 48px; background: var(--line); }
.parents .label { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
html[lang="gu"] .parents .label { letter-spacing: .04em; font-size: 14px; }
.parents strong { font-weight: 500; color: var(--ink); font-size: 16px; line-height: 1.5; }
@media (max-width: 600px) {
  .parents { grid-template-columns: 1fr; gap: 14px; }
  .parents .sep { width: 48px; height: 1px; margin: 0 auto; }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid; gap: 10px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 120px;
}
.gallery button {
  padding: 0; border: 0; background: #eee; cursor: zoom-in; overflow: hidden;
  border-radius: 14px; grid-column: span 2; grid-row: span 2;
}
.gallery button:nth-child(5n+1) { grid-column: span 4; grid-row: span 3; }
.gallery button:nth-child(5n+2) { grid-row: span 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
@media (hover: hover) { .gallery button:hover img { transform: scale(1.04); } }
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery button, .gallery button:nth-child(5n+2) { grid-column: span 1; grid-row: span 2; }
  .gallery button:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
}

/* ---------- Timeline ---------- */
.day { margin: 0 auto 56px; max-width: 760px; }
.day-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px;
  padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.day-head h3 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 4.5vw, 28px); color: var(--wine); line-height: 1.3; }
.day-head p { margin: 0; color: var(--ink-2); font-size: 14px; }
.day-tag {
  display: inline-block; margin-right: 10px; vertical-align: middle;
  font: 600 11px/1 "Inter", sans-serif; letter-spacing: .14em;
  padding: 6px 10px; border-radius: 999px; background: var(--wine); color: #fff;
}

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 108px; top: 22px; bottom: 22px; width: 1px; background: var(--line);
}
.ev {
  display: grid; grid-template-columns: 92px 32px 1fr; align-items: start;
  padding: 16px 0;
}
.ev-time {
  text-align: right; font-weight: 600; color: var(--wine); font-size: 15px; padding-top: 2px;
  font-variant-numeric: tabular-nums; line-height: 1.35;
}
.ev-dot { position: relative; height: 24px; }
.ev-dot::before {
  content: ""; position: absolute; left: 11px; top: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold);
}
.ev-body h4 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 21px; line-height: 1.3; color: var(--ink); }
html[lang="gu"] .ev-body h4 { font-weight: 600; }
.ev-body p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.ev.main .ev-body {
  background: var(--wine); color: #fff;
  padding: 20px 22px; border-radius: var(--radius); box-shadow: var(--shadow);
  margin-top: -6px;
}
.ev.main .ev-body h4 { color: #fff; font-size: 24px; }
.ev.main .ev-body p { color: rgba(255,255,255,.75); }
.ev.main .ev-dot::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(201,160,99,.25); }
.ev.main .chip { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--wine); }
.ev.main .chip svg { color: var(--wine); }
@media (hover: hover) {
  .ev.main .chip:hover { background: #fff; border-color: #fff; color: var(--wine); }
  .ev.main .chip:hover svg { color: var(--wine); }
}
.badge {
  display: inline-block; margin-bottom: 8px;
  font: 600 10.5px/1 "Inter", sans-serif; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; background: var(--gold); color: var(--wine);
}

@media (max-width: 560px) {
  .timeline::before { left: 7px; }
  .ev { grid-template-columns: 26px 1fr; grid-template-areas: "dot time" "dot body"; }
  .ev-dot { grid-area: dot; }
  .ev-dot::before { left: 2px; }
  .ev-time { grid-area: time; text-align: left; font-size: 14px; padding: 0; }
  .ev-body { grid-area: body; }
  .ev.main .ev-body { margin-top: 8px; }
}

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px;
  font: 500 14px/1 "Inter", "Anek Gujarati", sans-serif;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(201, 160, 99, .55); background: #fdf8f1; color: var(--wine);
  text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
html[lang="gu"] .chip { font-size: 15px; }
.chip svg { width: 15px; height: 15px; flex: none; color: var(--gold); }
.chip:active { transform: scale(.97); }
@media (hover: hover) {
  .chip:hover { background: var(--wine); color: #fff; border-color: var(--wine); }
  .chip:hover svg { color: var(--gold-soft); }
}

/* ---------- Venues ---------- */
.venues { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.venue {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.venue iframe { width: 100%; height: 220px; border: 0; display: block; background: #eee; }
.venue-info { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.venue-info .city { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
html[lang="gu"] .venue-info .city { letter-spacing: .04em; font-size: 13px; }
.venue-info h3 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 22px; line-height: 1.3; color: var(--wine); }
html[lang="gu"] .venue-info h3 { font-weight: 600; }
.venue-info p { margin: 0; color: var(--ink-2); font-size: 14px; }
.venue-info .for { color: var(--ink); font-size: 14px; font-weight: 500; }
.venue-info .chip { align-self: flex-start; margin-top: auto; }
.venue-info .for + .chip { margin-top: 12px; }

/* ---------- Family ---------- */
.family-section { max-width: 860px; margin: 0 auto; }
.family { display: grid; gap: 12px; }
.family .row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 20px;
  padding: 14px 20px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow);
  font-size: 15px; color: var(--ink-2);
}
.family .row.solo { grid-template-columns: 1fr; text-align: center; color: var(--wine); font-weight: 600; background: transparent; box-shadow: none; padding: 2px; }
.family .row span:first-child { color: var(--ink); font-weight: 500; }
@media (max-width: 680px) { .family .row { grid-template-columns: 1fr; } }
.family-footer {
  margin: 36px 0 0; text-align: center;
  font-family: var(--f-display); font-size: clamp(20px, 4.4vw, 26px); color: var(--wine); font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 96px; padding: 72px 16px 64px;
  background: var(--wine); color: #fff; text-align: center;
}
.footer p { margin: 0; }
.footer-line { color: rgba(255,255,255,.7); font-size: 15px; }
.footer-names { font-family: "Fraunces", serif; font-weight: 300; font-size: clamp(36px, 8vw, 56px); margin: 10px 0 4px !important; }
.footer-names span { color: var(--gold); }
.footer-date { letter-spacing: .3em; color: var(--gold-soft); font-size: 13px; }

/* ---------- Share-image mode (?og) ---------- */
html.og .topbar, html.og .countdown, html.og .scroll-cue { display: none; }
html.og .hero { min-height: 630px; padding: 40px 16px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 6, 10, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 92vh; max-width: 100%; border-radius: 10px; object-fit: contain; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
  html { scroll-behavior: auto; }
}
