:root { --paper:#fff9ef; --ink:#584330; --gold:#a37a45; --serif:'Cormorant Garamond',Georgia,serif; --sans:'DM Sans',sans-serif; }
* { box-sizing:border-box; } html { scroll-behavior:smooth; scroll-padding-top:45px; } body { margin:0; background:#e8e5df; color:var(--ink); font:14px/1.7 var(--sans); } button,input,select { font:inherit; } button,a { -webkit-tap-highlight-color:transparent; } a { color:inherit; } button { cursor:pointer; } [hidden] { display:none!important; } :focus-visible { outline:3px solid #a07937; outline-offset:5px; } h1,h2,h3,p { margin:0; } h1,h2,h3 { font-family:var(--serif); font-weight:500; line-height:1.07; } h2 { font-size:48px; } em { font-weight:400; } .overline { font:9px/1.8 var(--sans); letter-spacing:2px; } .invitation { max-width:480px; margin:auto; background:var(--paper); overflow:hidden; box-shadow:0 0 100px #37271820; } section { position:relative; scroll-margin-top:35px; } .invite-scene,.event-scene { min-height:820px; min-height:max(800px,100svh); } .preview-bar { position:fixed; z-index:30; top:0; left:50%; transform:translateX(-50%); width:min(100%,480px); min-height:33px; padding:8px 12px; display:flex; align-items:center; justify-content:space-between; gap:8px; background:#fffaf2ed; color:#705b42; font-size:8px; backdrop-filter:blur(10px); } .preview-bar a { text-decoration:none; } .preview-bar span { font-size:6px; letter-spacing:1.4px; }
.opening { position:fixed; z-index:25; inset:0; width:min(100%,480px); margin:auto; overflow:hidden; perspective:1600px; background:#f7ead2 url('palace-couple.jpg') center/cover; } .opening-panel { position:absolute; top:0; bottom:0; width:50%; overflow:hidden; backface-visibility:hidden; transition:transform 1.5s cubic-bezier(.3,.03,.15,1),filter 1.5s; } .opening-panel.left { left:0; transform-origin:left; } .opening-panel.right { right:0; transform-origin:right; } .opening-panel img { position:absolute; width:200%; max-width:none; height:100%; object-fit:cover; object-position:center; } .opening-panel.left img { left:0; }.opening-panel.right img { left:-100%; } .opening.is-open .left { transform:rotateY(-100deg); filter:brightness(.5); } .opening.is-open .right { transform:rotateY(100deg); filter:brightness(.5); } .opening-content { position:absolute; z-index:2; inset:auto 30px 12%; text-align:center; transition:opacity .35s,transform .5s; } .opening-content button { border:1px solid #ead4ac; padding:13px 25px; border-radius:30px; background:#fffbef; color:#715331; font-size:10px; letter-spacing:1px; box-shadow:0 5px 25px #26150c33; } .opening-content button span { margin-left:12px; } .opening-content small { display:block; margin-top:12px; color:#fff6d9; font-size:12px; text-shadow:0 1px 5px #351d0d; } .opening.is-open .opening-content { opacity:0; transform:translateY(15px); pointer-events:none; } .envelope { background:#f7eee6 url('floral.jpg') center/cover; }.envelope .opening-panel { background:linear-gradient(145deg,#fff9f0eb,#efe1d3c9); border:1px solid #c7aa8755; height:45%; top:55%; clip-path:polygon(0 0,100% 40%,100% 100%,0 100%); }.envelope .right { clip-path:polygon(0 40%,100% 0,100% 100%,0 100%); }.envelope .opening-content { top:23%; bottom:auto; }.envelope .opening-content small { color:#6b7257; text-shadow:none; }.envelope .overline { color:#6b7257; }.monogram { width:145px; height:145px; border:1px solid #a28b63; outline:1px solid #b6a383; outline-offset:6px; border-radius:50%; margin:30px auto; display:flex; align-items:center; justify-content:center; gap:7px; font:54px var(--serif); color:#657052; }.monogram i { font-size:27px; }.envelope-message { font:italic 26px/1.25 var(--serif); color:#657052; margin-bottom:28px; }
.welcome-scene { background:#fff6e6 url('palace-couple.jpg') center bottom/100% 100% no-repeat; text-align:center; }.floral .welcome-scene { background-image:url('garden-couple.jpg'); color:#616b4d; }.welcome-text { position:relative; z-index:2; padding:65px 28px 0; }.couple-crest { display:flex; align-items:center; justify-content:center; width:45px; height:50px; border:1px solid #b69a6b; border-radius:50% 50% 40% 40%; margin:0 auto 18px; font:24px var(--serif); }.couple-crest i { font-size:20px; margin-left:-4px; margin-top:12px; }.welcome-text .overline { font-size:7px; letter-spacing:2px; }.welcome-text h1 { font-size:64px; line-height:.91; margin:18px auto; overflow-wrap:anywhere; }.welcome-text h1 i { display:block; font-size:30px; margin:8px 0; color:#a58a58; }.welcome-date { font-size:10px; letter-spacing:2px; text-transform:uppercase; margin:16px 0 5px; }.welcome-location { display:block; max-width:300px; margin:auto; font-size:9px; letter-spacing:.6px; }.scroll-cue { position:absolute; z-index:2; bottom:22px; left:50%; transform:translateX(-50%); width:80%; font-size:7px; letter-spacing:2px; text-decoration:none; color:#fff9e6; text-shadow:0 1px 5px #231e12; }.scroll-cue span { display:block; font-size:22px; line-height:1.2; }.petal-layer { position:absolute; inset:0; overflow:hidden; pointer-events:none; }.petal-layer i { position:absolute; top:-15px; left:15%; width:7px; height:11px; background:#dd92967a; border-radius:80% 0 80% 20%; animation:petal-fall 13s linear infinite; }.petal-layer i:nth-child(2) { left:32%; animation-delay:3s; }.petal-layer i:nth-child(3) { left:55%; animation-delay:7s; }.petal-layer i:nth-child(4) { left:75%; animation-delay:1s; }.petal-layer i:nth-child(5) { left:88%; animation-delay:9s; }.petal-layer i:nth-child(6) { left:42%; animation-delay:11s; } @keyframes petal-fall { to { transform:translate(25px,1000px) rotate(520deg); } }
.story-scene { display:grid; place-items:center; min-height:720px; padding:65px 25px; background:linear-gradient(#fff9f1df,#fff9f1ed),url('floral.jpg') center/cover; }.story-frame { width:100%; padding:55px 24px; border:1px solid #bea57270; outline:1px solid #bea57240; outline-offset:8px; border-radius:160px 160px 4px 4px; text-align:center; }.ornament { display:block; color:#a3844c; font:55px var(--serif); margin-bottom:22px; }.family-line { font:italic 24px/1.25 var(--serif); margin:16px 0 30px; overflow-wrap:anywhere; }.story-frame h2 { font-size:37px; }.story-copy { font-size:12px; line-height:2; margin:25px auto; white-space:pre-line; overflow-wrap:anywhere; }.story-signature { font:italic 28px var(--serif); margin:25px 0; }.small-link { display:inline-block; text-decoration:none; border-bottom:1px solid currentColor; padding-bottom:4px; font-size:9px; letter-spacing:.8px; }.countdown-scene { padding:65px 30px; text-align:center; background:radial-gradient(ellipse at center,#fff9eb,#e8d7b7); border-block:1px solid #a3834b40; }.countdown-scene h2 { margin:15px 0 30px; }.date-emblem { border:1px solid #b39a6b; border-radius:90px 90px 2px 2px; outline:1px solid #b39a6b60; outline-offset:5px; width:150px; padding:27px 0 20px; margin:35px auto; }.date-emblem span { display:block; font-size:10px; letter-spacing:3px; text-transform:uppercase; }.date-emblem strong { display:block; font:80px/.98 var(--serif); margin:10px 0; }.countdown { display:flex; justify-content:center; gap:25px; }.countdown strong { display:block; font:35px var(--serif); }.countdown span { font-size:6px; letter-spacing:1.2px; }.countdown-ended { font:italic 22px var(--serif); margin-top:20px; }.event-intro { text-align:center; padding:75px 28px; background:#fdf6e9; }.event-intro .overline { font-size:7px; letter-spacing:1.5px; }.event-intro h2 { margin:22px 0; }.event-intro > p:last-child { font-size:11px; line-height:1.9; }
.event-scene { background-position:center bottom; background-size:100% 100%; text-align:center; }.scene-mehndi { background-image:url('mehndi-scene.jpg'); background-color:#edf2db; color:#51663e; }.scene-sangeet { background-image:url('sangeet-scene.jpg'); background-color:#15213e; color:#f7deb1; }.scene-wedding { background-image:url('wedding-scene.jpg'); background-color:#fff2da; color:#87463a; }.event-copy { position:relative; z-index:1; padding:70px 30px 0; }.event-copy .overline { font-size:7px; letter-spacing:1.6px; }.event-copy h2 { font-size:65px; margin:21px 0 8px; overflow-wrap:anywhere; }.event-ornament { font-size:29px; line-height:1; }.event-date { font-size:15px; letter-spacing:3px; margin-top:12px; }.event-time { font-size:10px; letter-spacing:1px; margin-top:6px; }.event-venue { font:23px/1.2 var(--serif); max-width:310px; margin:15px auto 10px; overflow-wrap:anywhere; }.scene-next { position:absolute; bottom:25px; left:calc(50% - 16px); width:32px; height:32px; border:1px solid #fff9e599; border-radius:50%; color:#fff; text-decoration:none; background:#35291955; font-size:20px; }
.gallery-scene { padding:65px 0 40px; text-align:center; background:#f1e7d9; }.gallery-scene > .overline { padding-inline:20px; }.gallery-scene h2 { margin:16px 0 30px; }.photo-gallery { display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; padding:0 35px; }.photo-gallery figure { flex:0 0 100%; scroll-snap-align:center; margin:0; }.photo-gallery img { width:100%; height:420px; object-fit:cover; border:8px solid #fffaf3; }.gallery-controls { display:flex; align-items:center; justify-content:center; gap:25px; margin-top:20px; font-size:10px; }.gallery-controls button { width:35px; height:35px; border-radius:50%; border:1px solid #b8a07a; background:transparent; color:var(--ink); }.gallery-controls button:disabled { opacity:.3; cursor:default; }.venue-scene { min-height:760px; background:linear-gradient(#fff8eb15,#fff8eb00),url('heritage.jpg') center bottom/cover; padding:65px 35px; text-align:center; }.venue-copy { padding:35px 20px; background:#fff9edf0; border:1px solid #baa17570; border-radius:120px 120px 2px 2px; }.venue-copy .overline { max-width:220px; margin:auto; font-size:7px; }.venue-copy h2 { margin:18px 0; font-size:58px; }.venue-copy p:not(.overline) { font:25px/1.2 var(--serif); margin-bottom:25px; }.invite-button { display:inline-block; padding:13px 22px; border:1px solid #9c8156; background:#6b5435; color:#fff9ec; border-radius:2px; font-size:10px; letter-spacing:1px; text-decoration:none; }.rsvp-scene { padding:65px 35px 80px; background:#fff9f0; text-align:center; }.rsvp-scene h2 { margin:18px 0; }.rsvp-scene > p:not(.overline) { font-size:12px; margin-bottom:25px; line-height:1.9; }.rsvp-scene form { text-align:left; margin-top:30px; }.rsvp-scene label { display:block; font-size:11px; margin-bottom:18px; }.rsvp-scene input,.rsvp-scene select { display:block; width:100%; padding:12px; margin-top:6px; border:1px solid #d2c0a5; background:#fffdf8; color:var(--ink); border-radius:2px; font-size:16px; }.rsvp-scene form button { width:100%; }.rsvp-scene form small { display:block; font-size:9px; text-align:center; margin-top:15px; }.rsvp-success { padding:25px; border:1px solid #b49f7c; background:#f4eddf; }.closing-scene { padding:80px 35px 140px; text-align:center; background:linear-gradient(#fff8efb0,#fff8ef55),url('floral.jpg') center/cover; }.closing-scene h2 { font-size:65px; margin:25px 0; }.closing-scene h3 { font-size:35px; margin:25px 0 16px; }.closing-scene > p:not(.overline) { font-size:10px; }.made-with { display:block; margin-top:65px; font-size:7px; letter-spacing:2px; text-decoration:none; }
.invite-nav { position:fixed; z-index:15; bottom:15px; left:50%; transform:translateX(-50%); display:flex; gap:26px; padding:13px 24px; border:1px solid #d8cbb7; border-radius:35px; background:#fffbf2ed; box-shadow:0 5px 25px #3025181a; backdrop-filter:blur(10px); white-space:nowrap; }.invite-nav a { font-size:9px; text-decoration:none; }.music-control { position:fixed; z-index:16; top:47px; left:calc(50% + 120px); width:100px; border:1px solid #d7c6aa; border-radius:25px; padding:8px; color:#715b3d; background:#fffbf0e8; font-size:11px; }.music-control span { font-size:8px; }.share-invitation { position:fixed; z-index:16; bottom:74px; left:50%; transform:translateX(-50%); font-size:9px; background:#fffbf0ed; border:1px solid #d7c6aa; padding:7px 15px; border-radius:25px; text-decoration:none; }.opening:not([hidden]) ~ .music-control,.opening:not([hidden]) ~ .invite-nav,.opening:not([hidden]) ~ .share-invitation { visibility:hidden; }.will-reveal { opacity:0; transform:translateY(20px); transition:opacity 1s,transform 1s; }.will-reveal.revealed { opacity:1; transform:none; }
@media(max-width:480px) { .invite-scene,.event-scene { min-height:max(760px,100svh); }.welcome-text { padding-top:67px; }.welcome-text h1 { font-size:57px; }.couple-crest { width:37px; height:42px; font-size:22px; margin-bottom:15px; }.welcome-text h1 i { font-size:25px; margin:6px 0; }.welcome-text .overline { font-size:6px; }.welcome-date { font-size:9px; }.welcome-location { font-size:8px; }.welcome-scene { background-size:cover; }.event-scene { background-size:cover; }.event-copy { padding:65px 25px 0; }.event-copy h2 { font-size:58px; }.event-copy .overline { font-size:6px; }.music-control { left:auto; right:12px; width:89px; }.story-scene { min-height:700px; }.story-frame { padding:45px 20px; }.story-frame h2 { font-size:34px; }.story-copy { font-size:11px; }.story-signature { font-size:25px; }.event-venue { font-size:22px; }.venue-scene { min-height:700px; }.preview-bar { font-size:7px; }.preview-bar span { font-size:5px; } }
@media(max-width:350px) { .welcome-text h1 { font-size:48px; }.event-copy h2 { font-size:49px; }.overline { letter-spacing:1.4px; }.event-copy { padding-inline:18px; }.story-frame { padding-inline:15px; }.countdown { gap:17px; }.invite-nav { gap:20px; }.preview-bar span { display:none; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none!important; transition:none!important; }.will-reveal { opacity:1; transform:none; } }
/* Keep the introduction inside the artwork's quiet sky on shorter displays. */
.invitation:focus { outline:none; }
@media(min-width:481px) and (max-height:850px) { .welcome-text { padding-top:52px; }.couple-crest { margin-bottom:12px; width:40px; height:44px; }.welcome-text h1 { font-size:54px; margin:13px 0; }.welcome-text h1 i { margin:5px 0; font-size:25px; }.welcome-date { margin-top:12px; } }
html { scroll-padding-top:33px; }
section { scroll-margin-top:0; }
