:root {
  color-scheme: dark;
  --navy: #151e36;
  --gold: #dfc58e;
  --cream: #f5ead4;
  --muted: #b7b4bd;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Italianno", cursive;
  --sans: "DM Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  isolation: isolate;
  margin: 0;
  color: var(--cream);
  background: var(--navy);
  font: 1.18rem/1.6 var(--serif);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image: radial-gradient(1px 1px at 20% 30%, #fce4ba 90%, transparent),
    radial-gradient(1px 1px at 70% 80%, #eee 90%, transparent);
  background-size: 93px 157px, 173px 121px;
  pointer-events: none;
}
a, button, input { font: inherit; }
a { color: var(--gold); }
button { cursor: pointer; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, .gallery:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
button { color: inherit; }
p { margin: 0 0 18px; }
h2 {
  color: var(--gold);
  font: 400 clamp(3.1rem, 8vw, 4.5rem)/1.05 var(--script);
  margin: 0;
}
h3 { font-weight: 500; }
.section {
  width: min(100% - 40px, 660px);
  margin: auto;
  padding: 54px 0;
  text-align: center;
}
.flourish {
  color: var(--gold);
  letter-spacing: .28em;
  font-size: 1.25rem;
  margin: 14px auto 30px;
}
.small-label {
  display: block;
  color: var(--muted);
  font: .6rem/1.6 var(--sans);
  text-transform: uppercase;
  letter-spacing: .2em;
}
.hint { color: var(--gold); font-size: 1rem; font-style: italic; }
.muted, .gallery-note { color: var(--muted); font-size: .96rem; }
.text-link { font-size: .95rem; text-underline-offset: 5px; }
.gold-button {
  display: inline-block;
  padding: 12px 25px;
  border: 1px solid #ead49b;
  border-radius: 40px;
  color: #2e2831;
  background: linear-gradient(125deg, #d9b976, #f3dfab);
  text-decoration: none;
  font: .72rem/1.5 var(--sans);
  letter-spacing: .08em;
}
.scratch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; max-width: 460px; margin: 25px auto; }
.scratch-card { position: relative; aspect-ratio: .78; background: #ffffff08; border: 1px solid #dfc58e65; border-radius: 17px 17px 5px 5px; overflow: hidden; }
.date-value { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(1.7rem, 5vw, 2.6rem); }
.scratch-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.scratch-access { position: absolute; inset: 0; border: 0; background: transparent; color: #7c6234; pointer-events: none; }
.scratch-access:focus-visible { pointer-events: auto; outline-offset: -6px; }
.scratch-group > .small-label { margin-top: 10px; }
.date-details { margin-top: 25px; }
.date-details p { margin-bottom: 5px; }
.arch {
  padding: 45px 22px 35px;
  border: 1px solid #dfc58e60;
  border-radius: 48% 48% 10px 10px / 160px 160px 10px 10px;
  box-shadow: inset 0 0 0 7px var(--navy), inset 0 0 0 8px #dfc58e30;
}
.devotional { width: min(88%, 340px); height: auto; display: block; margin: 0 auto 18px; }
.blessing-verse { color: var(--gold); font-size: .95rem; }
.monogram {
  width: 93px;
  height: 93px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfc58e80;
  outline: 1px dashed #dfc58e45;
  outline-offset: 6px;
  border-radius: 50%;
  margin: 30px auto;
  font: 2rem var(--serif);
}
.monogram span { font: italic .8rem var(--serif); margin: 0 3px; }
.invitation-line { font-style: italic; margin: 36px 0 26px; }
.blessing h2 { font-size: 3.8rem; margin: 18px 0 10px; }
.blessing .small-label { margin-bottom: 6px; }
.joining { font: 2.5rem var(--script); color: var(--gold); margin: 22px 0; }
.chapter-path { max-width: 420px; margin: 30px auto 0; text-align: left; border-left: 1px solid #dfc58e60; padding-left: 26px; }
.chapter-path p { position: relative; }
.chapter-path p::before { content: "◇"; position: absolute; left: -35px; top: 2px; background: var(--navy); color: var(--gold); }
.chapter-path span { display: block; color: var(--gold); font: 2.2rem/1.1 var(--script); margin-bottom: 7px; }
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 15px 12px 22px; scrollbar-color: #8f7b59 transparent; }
.gallery figure { flex: 0 0 72%; margin: 0; scroll-snap-align: center; }
.gallery img { display: block; width: 100%; aspect-ratio: .78; object-fit: cover; border: 1px solid #dfc58e80; border-radius: 45% 45% 5px 5px / 24% 24% 5px 5px; padding: 5px; }
.gallery figcaption { font-style: italic; font-size: 1rem; margin-top: 13px; }
.timeline { position: relative; margin-top: 35px; }
.timeline::before { content: ""; position: absolute; width: 1px; top: 0; bottom: 0; left: 50%; background: linear-gradient(transparent, #dfc58e80 4%, #dfc58e80 96%, transparent); }
.event { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 42px; text-align: left; padding: 28px 0; align-items: center; }
.event::before { content: "◇"; position: absolute; left: 50%; top: 48%; translate: -50% -50%; background: var(--navy); color: var(--gold); }
.event:nth-child(even) .event-image { order: 2; }
.event:nth-child(even) .event-copy { text-align: right; }
.event-image { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid #dfc58e60; border-radius: 42% 42% 6px 6px; padding: 4px; }
.event h3 { font-size: 1.55rem; margin: 5px 0 8px; line-height: 1.2; }
.event time { display: block; color: var(--gold); font: 2.2rem/1 var(--script); margin: 5px 0; }
.event .event-day { font: .58rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.event p { font-size: 1rem; line-height: 1.3; margin: 8px 0; }
.event a { font-size: .85rem; }
.time { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 450px; margin: 25px auto; }
.time > div + div { border-left: 1px solid #dfc58e45; }
.time strong { display: block; color: var(--gold); font: 2.8rem/1.2 var(--serif); }
.time span { display: block; color: var(--muted); font: .58rem var(--sans); text-transform: uppercase; letter-spacing: .1em; margin-top: 10px; }
.diya-line { font-size: 1.2rem; margin-bottom: 44px; letter-spacing: .1em; }
.location-name { text-transform: uppercase; letter-spacing: .18em; font-size: 1.6rem; margin-bottom: 0; }
.venue-art { display: block; width: 100%; height: auto; border-radius: 160px 160px 7px 7px; margin: 30px auto; border: 1px solid #dfc58e50; }
.travel-grid { display: grid; gap: 26px; max-width: 430px; margin: auto; }
.travel-grid h3 { font: 2.5rem var(--script); color: var(--gold); margin: 0 0 8px; }
.swatches { display: flex; justify-content: center; gap: 25px; margin: 30px 0; }
.swatches i { display: block; width: 48px; height: 65px; margin: 0 auto 12px; background: var(--colour); border-radius: 24px 24px 5px 5px; box-shadow: inset 5px 0 14px #fff3, inset -6px 0 10px #0002; }
.swatches span { font-size: .9rem; }
.song-player { max-width: 340px; margin: auto; padding: 12px; background: #443724; text-align: left; border: 1px solid #ae8b53; border-radius: 18px; }
.song-player > img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.song-info { padding: 15px 7px 5px; }
.song-info h3 { font: 500 1.15rem var(--sans); margin: 0 0 5px; }
.song-info p { font: .7rem var(--sans); opacity: .8; margin-bottom: 18px; }
input[type="range"] { accent-color: var(--gold); width: 100%; cursor: pointer; }
.song-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font: .65rem var(--sans); }
.song-controls button { width: 50px; height: 50px; border: 0; border-radius: 50%; background: var(--cream); color: #403421; font-size: 1.2rem; }
.rsvp form { max-width: 470px; margin: 30px auto; text-align: left; }
.rsvp input[name="name"] { width: 100%; padding: 13px 15px; margin: 8px 0 20px; border: 1px solid #dfc58e50; border-radius: 8px; background: #ffffff0b; color: var(--cream); font-size: 1rem; }
.guest-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 0; border-bottom: 1px solid #dfc58e25; }
.guest-row label { font-size: 1.1rem; line-height: 1.3; }
.guest-row label small { display: block; font-size: .75rem; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 31px; height: 31px; border-radius: 50%; border: 1px solid #dfc58e40; background: #ffffff0d; font: 1.1rem var(--sans); }
.stepper input { width: 35px; text-align: center; color: var(--cream); background: transparent; border: 0; font: .9rem var(--sans); appearance: textfield; }
.stepper input::-webkit-inner-spin-button { appearance: none; }
.rsvp form > .gold-button { display: block; margin: 25px auto 0; }
#rsvp-status { color: var(--gold); font-size: .95rem; text-align: center; margin-top: 15px; }
footer { text-align: center; padding: 50px 20px 110px; color: var(--muted); font-style: italic; }
.footer-names { font: 3.4rem var(--script); color: var(--gold); margin: 20px 0; }
footer a { font-size: .9rem; }
.music { position: fixed; bottom: 18px; left: 15px; z-index: 10; border: 1px solid #dfc58e70; border-radius: 40px; padding: 10px 15px; background: #10172bdc; font: .65rem var(--sans); color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
/* The approved tap-to-play video opening. */
.temple-intro { position: relative; height: 100svh; min-height: 640px; max-height: 1200px; background: #081120; isolation: isolate; overflow: hidden; }
.temple-scene { position: absolute; inset: 0; background: #081120; }
.diya-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #081120; }
.intro-invitation, .temple-welcome { position: absolute; left: 24px; right: 24px; top: 4%; text-align: center; pointer-events: none; text-shadow: 0 2px 12px #000; }
.intro-invitation { transition: opacity .8s; }
.intro-invitation p { font: 3.5rem/1 var(--script); color: var(--gold); margin-bottom: 10px; }
.intro-invitation span, .temple-welcome > span { font: .6rem var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.is-lighting .intro-invitation { opacity: 0; }
.temple-welcome { opacity: 0; transform: translateY(12px); transition: opacity 1.8s, transform 1.8s; padding: 18px 5px; background: linear-gradient(#081120c9, transparent); border-radius: 16px; }
.temple-welcome > p { font-size: 1.1rem; margin: 0 0 14px; }
.temple-welcome h1 { font: clamp(3.7rem, 10vw, 5.7rem)/.8 var(--script); display: flex; flex-direction: column; gap: 14px; color: var(--gold); margin: 0 0 25px; }
.temple-welcome small { font: italic 1.4rem var(--serif); }
.is-lit .temple-welcome { opacity: 1; transform: none; }
.light-diyas { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; background: transparent; border: 0; padding: 0 20px 52px; font-style: italic; }
.light-diyas span { background: #08112080; border-radius: 40px; padding: 12px 25px; border: 1px solid #d2aa6240; animation: tap-pulse 2.4s ease-in-out infinite; }
.light-diyas.dismissed { opacity: 0; pointer-events: none; transition: opacity .6s; }
.intro-scroll { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; text-decoration: none; text-align: center; opacity: 0; visibility: hidden; font-style: italic; transition: opacity 1.5s; }
.intro-scroll span { display: block; line-height: .8; }
.is-lit .intro-scroll { opacity: 1; visibility: visible; }
.fireworks { position: fixed; inset: 0; z-index: 50; overflow: hidden; pointer-events: none; }
.fireworks i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 9px 2px var(--spark); opacity: 0; animation: firework-burst 1.6s ease-out var(--delay) both; }
@keyframes firework-burst { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 10%, 65% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.15); } }
@keyframes tap-pulse { 50% { opacity: .5; } }
@media (min-width: 800px) {
  .temple-intro { max-width: 760px; margin: auto; height: 1100px; }
  .gallery figure { flex-basis: 44%; }
  .travel-grid { grid-template-columns: 1fr 1fr; max-width: 600px; gap: 35px; }
  .travel-grid > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .section { width: calc(100% - 32px); }
  .event { gap: 28px; }
  .event h3 { font-size: 1.3rem; }
  .event time { font-size: 1.8rem; }
  .time strong { font-size: 2.3rem; }
  .blessing h2 { font-size: 3.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .light-diyas span, .fireworks i { animation: none; }
  .temple-welcome, .intro-invitation { transition: none; }
}
