:root {
  --ivory: #fbf5e8;
  --paper: #f4ead6;
  --wine: #6d2939;
  --ink: #3b2525;
  --muted: #765c50;
  --gold: #896332;
  --rule: #ceb68b;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --hindi: "Noto Sans Devanagari", Mangal, sans-serif;
  --folio: 575px;
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='78'%3E%3Cg fill='%238e6d48' opacity='.22'%3E%3Ccircle cx='6' cy='11' r='.6'/%3E%3Ccircle cx='33' cy='8' r='.4'/%3E%3Ccircle cx='41' cy='44' r='.7'/%3E%3Ccircle cx='68' cy='63' r='.55'/%3E%3Ccircle cx='11' cy='55' r='.44'/%3E%3Ccircle cx='74' cy='23' r='.63'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-gutter: stable both-edges; }
html.sealed, html.sealed body { overflow: hidden; }
body { margin: 0; background: radial-gradient(ellipse at 50% 0%, #fbf7ed, #e9dfce); color: var(--ink); font: 16px/1.58 var(--sans); }
h1, h2, h3, p, ul { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
[lang="hi"] { font-family: var(--hindi); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.folio { position: relative; width: min(100%, var(--folio)); margin-inline: auto; background: var(--ivory); box-shadow: 0 0 55px #3e2b191e; }
.skip { position: absolute; left: 15px; top: -70px; z-index: 2; padding: 10px 14px; background: var(--ivory); }
.skip:focus { top: 10px; }
.eyebrow { color: var(--gold); font-weight: 600; font-size: 10px; line-height: 1.5; text-transform: uppercase; letter-spacing: .22em; }
.eyebrow[lang="hi"] { font-size: 13px; letter-spacing: .07em; }
.lotus { width: 48px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linejoin: round; color: var(--gold); }
.button, .next-cover { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; text-decoration: none; border-radius: 40px; }
.button { padding: 9px 21px; font-size: 13px; font-weight: 500; }
.button svg, .next-cover svg, .gate-action svg, .venue-pin { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.primary { color: #fff8ec; background: var(--wine); border: 1px solid var(--wine); }
.primary:hover { background: #51202b; }
.chapter { position: relative; padding: 72px clamp(22px, 8vw, 56px); overflow: clip; }
.chapter + .chapter, .footer { border-top: 1px solid #d7c29a; }
.section-intro { text-align: center; }
.section-intro h2, .venue h2 { margin: 7px 0 12px; font: 600 clamp(42px, 8vw, 62px)/.97 var(--serif); letter-spacing: -.042em; color: var(--wine); }
.section-intro h2 em { font-weight: 500; }
.section-intro > p:last-child { color: var(--muted); }

.invitation-gate {
  position: fixed; inset: 0; z-index: 10; width: min(100%, var(--folio)); height: 100dvh; margin-inline: auto;
  overflow: hidden; isolation: isolate; perspective: 1050px; color: var(--wine); text-align: center;
}
.door { position: absolute; inset-block: 0; width: 50.06%; overflow: hidden; border: 1px solid #ae956e; }
.door-left { left: 0; transform-origin: left center; background: var(--paper-grain), linear-gradient(94deg, #d7c4a1 0%, #f2e7cf 9%, #faf2df 45%, #e8d9bb 100%); box-shadow: inset -3px 0 4px #66432240; }
.door-right { right: 0; transform-origin: right center; background: var(--paper-grain), linear-gradient(270deg, #d7c4a1 0%, #f2e7cf 9%, #faf2df 45%, #e9dbbc 100%); box-shadow: inset 3px 0 4px #fff6dfbb; }
.door span { position: absolute; inset: 10px 9px; border: 1px solid #b9a078; box-shadow: inset 0 0 0 3px #fff7e6aa, inset 0 0 0 4px #b6a17b80; }
.door-left span { border-radius: 90px 0 0 0; }
.door-right span { border-radius: 0 90px 0 0; }
.door::before {
  content: ""; position: absolute; inset: 0; opacity: .32;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52'%3E%3Cpath fill='none' stroke='%23ae925f' stroke-width='.6' d='M26 4Q29 22 48 26Q30 30 26 48Q21 30 4 26Q21 21 26 4Z M26 17q3 7 9 9-7 3-9 9-3-6-9-9 6-3 9-9Z'/%3E%3C/svg%3E");
  mask-image: linear-gradient(#0008, transparent 34%, transparent 63%, #0009);
}
.door img { position: absolute; width: 108%; max-width: none; bottom: -1.5%; opacity: .92; filter: drop-shadow(1px 2px 1px #6e522b55); }
.door-left img { left: -5%; }
.door-right img { right: -5%; transform: scaleX(-1); }
.gate-heading { position: absolute; top: max(68px, 15%); left: 50%; transform: translateX(-50%); width: 220px; padding: 17px 0 15px; background: radial-gradient(ellipse, #fbf1dc 58%, #fbf1dc00 75%); pointer-events: none; }
.gate-heading span { display: block; }
.gate-heading [lang="hi"] { color: var(--wine); font-size: 24px; font-weight: 500; letter-spacing: .045em; }
.gate-heading span:last-child, .gate-date { font-size: 9px; font-weight: 600; letter-spacing: .22em; }
.gate-heading span:last-child { color: var(--gold); margin-top: 8px; }
.gate-date { position: absolute; bottom: max(28px, 5%); left: 50%; transform: translateX(-50%); width: max-content; color: #6c4827; text-transform: uppercase; pointer-events: none; }
.gate-date span, .cover-date span { color: #a57b45; font-size: 6px; vertical-align: middle; padding-inline: 4px; }
.gate-open { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; }
.gate-open:focus-visible { outline: 0; }
.seal {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%,-50%); display: flex; align-items: center; justify-content: center; flex-direction: column;
  width: clamp(104px, 26vw, 127px); aspect-ratio: 1; border-radius: 49% 52% 47% 51%; color: #f8d9a1;
  background: radial-gradient(circle at 30% 20%, #ad5866 0%, #833b4b 31%, #672737 65%, #4c1d2b 100%);
  border: 2px solid #9d5662; box-shadow: inset 3px 4px 8px #e19c9880, inset -2px -5px 8px #341321aa, 3px 7px 12px #5a3a3452;
}
.seal::before, .seal::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px solid #dc9f7977; box-shadow: inset 0 2px 3px #2c101a88; }
.seal::after { inset: 12px; border-color: #f2c69455; box-shadow: none; }
.seal svg { width: 38%; height: 29%; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round; }
.seal > span { font: 600 clamp(25px, 6vw, 33px)/1 var(--serif); margin-top: 3px; }
.seal i { font-size: .62em; color: #e2ad7f; }
.gate-action { position: absolute; left: 50%; bottom: max(68px, 12%); transform: translateX(-50%); min-height: 47px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 22px; border-radius: 30px; color: #542b30; background: #fbf2dd; border: 1px solid #a58555; box-shadow: 0 3px 10px #75573124; white-space: nowrap; text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 600; }
.gate-open:hover .gate-action { background: #fff8e9; }
.gate-open:focus-visible .gate-action { outline: 2px solid var(--wine); outline-offset: 4px; }
.opening .gate-open { pointer-events: none; }
.opening .gate-heading, .opening .gate-date, .opening .gate-action { animation: clear-gate .27s ease both; }
.opening .seal { animation: lift-seal .48s ease both; }
.opening .door-left { animation: open-left 1.28s .19s cubic-bezier(.42,.04,.2,1) both; }
.opening .door-right { animation: open-right 1.28s .19s cubic-bezier(.42,.04,.2,1) both; }
@keyframes clear-gate { to { opacity: 0; } }
@keyframes lift-seal { 42% { opacity: 1; transform: translate(-50%,-50%) scale(1.08) rotate(-7deg); } to { opacity: 0; transform: translate(-50%,-65%) scale(.87) rotate(-12deg); } }
@keyframes open-left { 60% { opacity: .97; } to { transform: translateX(-47%) rotateY(-78deg); opacity: 0; } }
@keyframes open-right { 60% { opacity: .97; } to { transform: translateX(47%) rotateY(78deg); opacity: 0; } }

.cover {
  min-height: 100svh; padding: clamp(150px, 22svh, 210px) 28px clamp(129px, 18svh, 170px);
  display: grid; place-items: center; text-align: center; isolation: isolate;
  background: var(--paper-grain), radial-gradient(ellipse at 50% 48%, #fffaf0 15%, #f5ead5 66%, #e4d0ac);
}
.cover-frame { position: absolute; inset: 13px; width: calc(100% - 26px); height: calc(100% - 26px); z-index: -1; overflow: visible; }
.arch-emboss { fill: #fff8e55e; stroke: #7d562e38; stroke-width: 7px; filter: drop-shadow(1px 4px 3px #72522c58); }
.arch-edge { fill: none; stroke: #fffaec; stroke-width: 3px; }
.arch-inner { fill: none; stroke: #b79a67; stroke-width: 1px; }
.cover-vine { position: absolute; bottom: -15px; width: 44%; max-width: 253px; opacity: .78; z-index: -1; filter: drop-shadow(1px 2px 1px #74552e50); }
.cover-vine.left { left: -12px; }
.cover-vine.right { right: -12px; transform: scaleX(-1); }
.cover-lotus { margin-bottom: 9px; width: 42px; height: 30px; }
.blessing { font-size: 14px; font-weight: 500; color: var(--wine); margin-bottom: 12px; }
.cover h1 { display: grid; justify-items: center; gap: 2px; margin-top: 15px; color: var(--wine); font-weight: 400; }
.cover h1:focus { outline: 0; }
.name { display: block; font: 400 clamp(69px, 17vw, 112px)/1.12 var(--script); text-shadow: 0 1px #fffaf0; padding: 0 .1em; }
.weds { display: flex; align-items: center; gap: 9px; font: 500 italic 26px/1 var(--serif); color: var(--gold); }
.weds::before, .weds::after { content: ""; width: 29px; border-top: 1px solid #ae8b54; }
.cover-date { margin-top: 17px; color: #714b36; font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.next-cover { position: absolute; bottom: max(25px, 5%); background: #fff8ebf5; border: 1px solid #b89b6c; padding: 7px 15px; font-size: 12px; color: #6a4631; }
.next-cover:hover { background: #fffdf7; }
.next-cover svg { width: 15px; height: 15px; }
.sealed .cover-content, .sealed .next-cover { visibility: hidden; }
.cover.is-revealing .cover-intro { animation: rise-in .6s .03s both; }
.cover.is-revealing .first { animation: ink-in .83s .18s both; }
.cover.is-revealing .weds { animation: rise-in .55s .42s both; }
.cover.is-revealing .second { animation: ink-in .83s .59s both; }
.cover.is-revealing .cover-date, .cover.is-revealing .next-cover { animation: rise-in .65s .93s both; }
@keyframes ink-in { from { clip-path: inset(-30% 100% -30% -10%); opacity: 0; } 20% { opacity: .8; } to { clip-path: inset(-30% -12% -30% -12%); opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.invitation { background: var(--paper-grain), #fcf7eb; }
.invitation .section-intro p:last-child { max-width: 39ch; margin: 0 auto; }
.family { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: start; gap: 7px; margin: 31px auto 0; border-block: 1px solid var(--rule); padding: 19px 0; text-align: center; }
.family .lotus { width: 32px; height: 25px; align-self: center; }
.family .eyebrow { font-size: 9px; }
.family h3 { margin: 6px 0 3px; font: 600 35px/1 var(--serif); color: var(--wine); }
.family p { color: var(--muted); font-size: 13px; }

.date-chapter { text-align: center; background: var(--paper-grain), radial-gradient(ellipse, #fff7e4, #ead9b9); }
.date-inner { max-width: 380px; margin-inline: auto; padding: 33px 14px; border: 1px solid var(--rule); outline: 1px solid #dbc49a; outline-offset: -7px; }
.date-inner h2 { display: grid; color: var(--wine); margin-top: 9px; }
.date-number { font: 600 106px/.8 var(--serif); letter-spacing: -.08em; padding-right: .06em; }
.date-month { font: 600 30px/1 var(--serif); margin-top: 24px; }
.date-weekday, .venue-date { font-size: 13px; margin: 9px 0 19px; color: var(--muted); }
.countdown { width: min(100%, 295px); margin: 0 auto 24px; display: grid; grid-template-columns: repeat(4, 1fr); color: var(--wine); }
.countdown > div + div { border-left: 1px solid #c9ab75; }
.countdown strong, .countdown span { display: block; }
.countdown strong { font: 600 30px/1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown span { color: var(--muted); font-size: 9px; margin-top: 5px; text-transform: uppercase; letter-spacing: .09em; }

.celebrations { background: var(--paper-grain), #fcf7eb; }
.time-zone { white-space: nowrap; }
.dot { margin-inline: 3px; color: var(--gold); }
.schedule { display: grid; gap: 14px; margin-top: 29px; }
.day { background: #f6ebd5; padding: 8px 16px 12px; border: 1px solid var(--rule); outline: 1px solid #d9c7a3; outline-offset: -5px; }
.wedding-day { background: #f1e1c6; border-color: #b18d60; }
.day header { display: flex; gap: 13px; align-items: center; padding: 11px 0 12px; border-bottom: 1px solid #d9c49e; }
.day-no { color: var(--gold); font: 600 49px/.8 var(--serif); letter-spacing: -.05em; }
.day header .eyebrow { font-size: 9px; }
.day h3 { margin-top: 3px; color: var(--wine); font: 600 clamp(21px, 5vw, 29px)/1 var(--serif); }
.day ul { list-style: none; padding: 0; }
.day li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 8px 0; }
.day li + li { border-top: 1px solid #dfcdab; }
.day li :is(time, .time) { font-size: 12px; font-weight: 600; color: #785232; white-space: nowrap; }
.day strong { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; }
.day li div > span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }

.venue { background: var(--paper-grain), #f1e3cb; text-align: center; }
.venue-card { position: relative; isolation: isolate; width: min(100%, 360px); margin: 14px auto 0; padding: 69px 16px 29px; color: var(--ink); }
.venue-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; filter: drop-shadow(0 3px 5px #7d5a2f35); }
.venue-frame .arch-edge { fill: #fbf1dd; stroke: #bd9d67; stroke-width: 1.2px; }
.venue-pin { display: block; width: 27px; height: 27px; color: var(--gold); margin: 0 auto 10px; }
address { font-style: normal; font-size: 15px; margin-bottom: 18px; }
.footer { background: var(--paper-grain), radial-gradient(ellipse, #fbefd7, #ecd8b7); text-align: center; padding-block: 45px; }
.footer .lotus { display: block; margin: 0 auto 12px; }
.closing { font: 500 italic clamp(34px, 7vw, 45px)/.98 var(--serif); color: var(--wine); margin: 10px 0 13px; }
.footer-date { color: var(--muted); font-size: 12px; }
.top-link { display: inline-block; margin-top: 17px; padding-block: 6px; font-size: 12px; text-underline-offset: 4px; }

.reveal.pending { opacity: 0; transform: translateY(14px); }
.reveal.arrived { animation: rise-in .66s cubic-bezier(.2,.65,.27,1) both; }
@media(max-width: 390px) {
  html { scrollbar-gutter: auto; }
  .chapter:not(.cover) { padding-inline: 19px; }
  .cover { padding-inline: 22px; }
  .cover-frame { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .cover-date { font-size: 10px; letter-spacing: .12em; }
  .day { padding-inline: 13px; }
  .day li { grid-template-columns: 62px minmax(0, 1fr); gap: 6px; }
  .family p { font-size: 12px; }
}
@media(max-height: 660px) {
  .gate-heading { top: 7%; }
  .cover { padding-top: 130px; padding-bottom: 110px; }
  .cover-frame { height: calc(100% - 22px); }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; }
  .reveal.pending { opacity: 1; transform: none; }
}

.music-toggle {
  position: fixed;
  z-index: 3;
  inset-inline-end: max(11px, calc((100vw - var(--folio)) / 2 + 17px));
  bottom: max(13px, env(safe-area-inset-bottom));
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #b89b6c;
  border-radius: 50%;
  background: #fff8ec;
  color: var(--wine);
  box-shadow: 0 2px 8px #75573124;
  cursor: pointer;
}
.music-toggle:hover { background: #fffdf7; }
.music-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.music-toggle .music-waves, .music-toggle[data-audible="true"] .music-cross { display: none; }
.music-toggle[data-audible="true"] .music-waves { display: block; }
