@import url("/file-controls.css");

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Great+Vibes&family=Inter:wght@400&display=swap');
:root{--ink:#12382e;--paper:#faf7ef;--gold:#b29a5d;--line:#c7b887}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Cormorant Garamond',Georgia,serif;font-size:20px}body.sealed{overflow:hidden}button,a,input,textarea{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:5px}.small{font:10px/1.8 Arial,sans-serif;letter-spacing:3px;text-transform:uppercase}.script{font-family:'Great Vibes','Cormorant Garamond',cursive;font-style:italic}.ornament{font-size:22px;color:var(--gold);margin:24px auto}.ornament:before,.ornament:after{content:'';display:inline-block;width:48px;height:1px;background:var(--line);vertical-align:middle;margin:0 15px}.preview{position:fixed;top:13px;left:50%;transform:translateX(-50%);z-index:20;border:1px solid #b8a97677;border-radius:30px;padding:6px 13px;white-space:nowrap;background:#faf7efed;color:#5e634f;font:9px Arial,sans-serif;letter-spacing:1.3px}.cover{position:fixed;inset:0;z-index:15;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 43%,#eee5c8 0, #faf7ef 60%);transition:opacity 1s,visibility 1s;overflow:hidden}.cover.gone{opacity:0;visibility:hidden;pointer-events:none}.cover-inner{text-align:center;width:min(90%,620px)}.cover .intro{margin:0 0 66px}.envelope{width:100%;height:280px;position:relative;perspective:1000px;filter:drop-shadow(0 20px 24px #443c2322);background:#e5dcc2;border:1px solid #d9ccb0}.letter{position:absolute;inset:20px 24px;background:#fffdf7;display:flex;flex-direction:column;justify-content:center;gap:10px;transition:transform 1.25s .5s;box-shadow:0 0 4px #766b4420}.letter strong{font-weight:400;font-size:34px}.envelope:after{content:'';position:absolute;inset:0;background:linear-gradient(150deg,#f3ecda,#e7dfca);clip-path:polygon(0 0,50% 58%,100% 0,100% 100%,0 100%);z-index:3}.flap{position:absolute;inset:0;z-index:4;background:linear-gradient(160deg,#fffbee,#e2d6b6);clip-path:polygon(0 0,100% 0,50% 60%);transform-origin:top;transition:transform 1.1s,z-index .1s .55s}.seal{position:absolute;z-index:5;left:50%;top:48%;transform:translate(-50%,-50%);border:3px double #b19752;background:radial-gradient(circle at 32% 25%,#efdda0,#b79b4e);border-radius:50%;width:69px;height:69px;color:#6c5724;font-size:25px;box-shadow:0 3px 9px #5d491b30;transition:opacity .3s,transform .5s}.opening .flap{transform:rotateX(180deg);z-index:1}.opening .seal{opacity:0;transform:translate(-50%,-50%) scale(1.4)}.opening .letter{transform:translateY(-120px);z-index:2}.hint{margin-top:33px;font-size:15px;letter-spacing:1px}.cover-bottom{position:absolute;bottom:0;height:55px;background:var(--ink);width:100%;border-top:3px double #b29a5d}.cover-bottom:before{content:'';position:absolute;top:-11px;width:100%;height:11px;background:radial-gradient(circle at 10px 11px,var(--ink) 10px,transparent 10.5px) 0 0/20px 11px}.topbar{height:86px;display:flex;align-items:center;justify-content:space-between;padding:0 6%;border-bottom:1px solid #b29a5d30}.monogram{font-size:27px;font-style:italic}.topbar a{text-decoration:none;font:10px Arial,sans-serif;letter-spacing:2px}.hero{position:relative;min-height:780px;text-align:center;padding:88px 24px 75px;overflow:hidden}.hero:before,.hero:after{content:'';position:absolute;width:390px;height:570px;border:1px solid #b29a5d24;border-radius:50% 50% 0 0;top:80px;left:50%;transform:translateX(-50%);pointer-events:none}.hero:after{width:410px;height:580px;top:70px}.hero h1{font-size:clamp(68px,calc(10 * 1cqw),100px);font-weight:400;line-height:1;margin:33px 0}.hero h1 span{display:block;font-size:43px;color:var(--gold);line-height:1.45}.hero .blessing{max-width:350px;margin:23px auto;font-size:19px;line-height:1.6}.hero .arabic{font-size:26px;line-height:1.8}.scroll{display:inline-block;margin-top:36px;text-decoration:none;font-size:13px;letter-spacing:2px}.scroll span{display:block;margin-top:10px;animation:bob 2s infinite}.section{text-align:center;padding:85px 24px}.section h2{font-size:43px;font-weight:400;margin:10px 0 24px;line-height:1.12}.section p{line-height:1.7;max-width:550px;margin:20px auto;color:#657064}.reveal{opacity:0;transform:translateY(28px);transition:opacity 1s,transform 1s}.reveal.visible{opacity:1;transform:translateY(0)}.scratch-wrap{position:relative;width:min(100%,370px);height:207px;margin:35px auto 16px;border-radius:8px;background:var(--ink);box-shadow:0 15px 35px #15362a18;overflow:hidden}.date-under{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#fffbee;gap:15px;border:1px solid #b29a5d88;margin:12px}.date-under strong{font-size:30px;font-weight:400}canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;transition:opacity .7s}canvas.done{opacity:0;pointer-events:none}.text-button{border:0;border-bottom:1px solid #b29a5d77;background:none;color:#7b704b;font-size:14px;padding:6px}.quote{max-width:620px;margin:auto;font-size:28px;font-style:italic;line-height:1.6}.dark{background:var(--ink);color:var(--paper)}.dark p{color:#d3d9ca}.dark .small{color:#c4b780}.events{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;max-width:920px;margin:42px auto 0}.event{background:var(--paper);color:var(--ink);padding:38px 20px;outline:1px solid #c7b88780;outline-offset:-9px}.event .flower{font-size:30px;color:var(--gold)}.event h3{font-size:34px;font-weight:400;margin:18px 0}.event p{color:#6a7060;margin:8px 0;font-size:17px}.event .time{display:block;margin:22px 0 8px;font-size:25px}.counter{display:flex;justify-content:center;gap:36px;margin-top:36px}.counter strong{display:block;font-weight:400;font-size:50px;font-variant-numeric:tabular-nums}.counter span{font:9px Arial,sans-serif;text-transform:uppercase;letter-spacing:2px}.venue-frame{max-width:740px;margin:35px auto 0;padding:50px 24px;border:1px solid #b29a5d80;outline:1px solid #b29a5d50;outline-offset:8px;background:radial-gradient(ellipse at bottom,#284e3c,transparent)}.venue-art{height:120px;width:220px;margin:auto;color:#c8b77d}.venue-frame h3{font-size:33px;font-weight:400;margin:20px 0 0}.button{display:inline-block;text-decoration:none;border:1px solid var(--gold);background:transparent;color:inherit;padding:15px 25px;font:10px Arial,sans-serif;letter-spacing:2px;text-transform:uppercase}.message{max-width:490px;margin:30px auto}.message label{display:block;text-align:left;font-size:16px;margin:18px 0 7px}.message input,.message textarea{width:100%;background:#fffdf6;border:1px solid #cbc5ad;color:var(--ink);padding:14px;font:17px Georgia,serif;border-radius:0}.message textarea{resize:vertical;min-height:115px}.message .button{margin-top:20px;background:var(--ink);color:var(--paper)}#wishStatus{font-size:15px}.contacts{display:flex;justify-content:center;gap:70px;margin-top:35px}.contacts h3{font-weight:400;font-size:23px}.contacts p{font-size:16px}footer{text-align:center;padding:65px 24px}footer .script{font-size:51px}footer p{font-size:18px}footer button{color:#d2c397;margin-top:20px}.petal{position:fixed;top:-30px;z-index:8;width:10px;height:15px;border-radius:90% 0 90% 0;background:#d5bd7b88;pointer-events:none;animation:fall 5s linear forwards}@keyframes fall{to{transform:translate(90px,110vh) rotate(500deg);opacity:0}}@keyframes bob{50%{transform:translateY(7px)}}
@container invitation (max-width:600px){.hero{min-height:730px;padding-top:75px}.hero:before{width:83%;height:555px}.hero:after{width:88%;height:565px}.section{padding:65px 23px}.section h2{font-size:35px}.events{grid-template-columns:repeat(2,1fr);gap:14px}.event{padding:30px 12px}.event:last-child{grid-column:1/-1;width:calc(50% - 7px);justify-self:center}.event h3{font-size:29px}.event p{font-size:15px}.counter{gap:23px}.counter strong{font-size:39px}.contacts{gap:30px}.quote{font-size:24px}}
.topbar{padding-top:20px}@media(max-width:600px){.cover-inner{width:86%}.envelope{height:225px}.letter strong{font-size:27px}.cover .intro{margin-bottom:80px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.reveal{opacity:1;transform:none}}

.hero h1{font-size:clamp(36px,calc(6 * 1cqw),72px);max-width:760px;margin:33px auto;line-height:1.12}.letter strong{font-size:clamp(22px,4vw,32px);padding:0 10px}footer .script{font-size:clamp(30px,calc(5 * min(1vw, 4.4px)),51px)}
html{scroll-behavior:smooth}.preview{font-size:8px}.guest-welcome{font-style:italic;font-size:20px;margin:24px 0;color:var(--gold)}.hero .portrait{width:160px;height:190px;object-fit:cover;border-radius:90px 90px 5px 5px;border:4px double var(--gold);margin:25px auto 0}.hero.has-photo{padding-top:45px}.hero.has-photo h1{font-size:clamp(34px,calc(6 * 1cqw),62px)}.hero.has-photo:before,.hero.has-photo:after{height:86%}.section select{padding:12px;border:1px solid var(--line);background:var(--paper);width:100%;font:17px Georgia}.event a{display:inline-block;margin:10px 4px;font:11px Arial,sans-serif;color:var(--ink);text-decoration:underline}.event .venue-name{font-weight:600}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;max-width:900px;margin:30px auto}.gallery-grid img{width:100%;height:270px;object-fit:cover;border-radius:100px 100px 4px 4px}.timeline{max-width:620px;margin:auto}.moment{border-left:1px solid var(--gold);padding:5px 0 30px 28px;margin:30px;text-align:left;position:relative}.moment:before{content:'✧';position:absolute;left:-10px;top:0;background:var(--paper);color:var(--gold)}.moment h3{font-size:30px;font-weight:400;margin:10px 0}.moment img{width:100%;max-height:350px;object-fit:cover;margin-top:15px}.venue-image{width:100%;max-width:600px;height:280px;object-fit:cover;margin:15px auto}.guest-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.note{font:12px/1.7 Arial,sans-serif!important;color:#657064}.dark .note{color:#d1d9cb}.result{font-size:16px;line-height:1.5;margin:16px auto}.wish-item{border-bottom:1px solid var(--line);max-width:540px;padding:22px;margin:0 auto}.wish-item blockquote{font-style:italic;font-size:23px}.wish-item audio{width:100%;max-width:340px}.form-box{max-width:480px;margin:25px auto;text-align:left}.form-box input,.form-box textarea{width:100%;padding:13px;margin:7px 0 16px;font:17px Georgia;color:var(--ink);background:var(--paper);border:1px solid var(--line)}.form-box label{font-size:17px}.form-box textarea{min-height:90px}.form-box button{margin-top:12px}.mini-nav{display:flex;gap:12px;align-items:center}.mini-nav button{font:11px Arial;background:transparent;border:1px solid var(--gold);padding:8px;color:var(--ink)}.sound{position:fixed;right:16px;bottom:18px;z-index:12;background:var(--paper);color:var(--ink);border:1px solid var(--gold);border-radius:50%;width:44px;height:44px;font-size:19px}.floral-corner{position:absolute;width:100px;height:150px;top:55px;left:0;color:var(--gold);opacity:.55;pointer-events:none}.floral-corner.right{left:auto;right:0;transform:scaleX(-1)}.door-stage{position:absolute;inset:0;display:flex;pointer-events:none;z-index:-1}.door{height:100%;width:50%;background:var(--ink);border:4px double var(--gold);transition:transform 1.8s;transform-origin:left}.door.right{transform-origin:right}.cover.doors{background:var(--ink);color:var(--paper)}.cover.doors .intro{color:var(--gold)}.cover.doors .envelope{background:none;border:none;filter:none;height:230px}.cover.doors .envelope:after,.cover.doors .flap{display:none}.cover.doors .letter{background:transparent;color:var(--paper);box-shadow:none;inset:0;transform:none}.cover.doors .seal{top:90%}.cover.doors .cover-inner{z-index:1}.cover.doors .cover-bottom{display:none}.cover.doors.opened .door.left{transform:perspective(800px) rotateY(-110deg)}.cover.doors.opened .door.right{transform:perspective(800px) rotateY(110deg)}.cover.floral .door{background:radial-gradient(ellipse at top,#f6e9d0,var(--paper));color:var(--ink)}.cover.floral,.cover.floral .letter{color:var(--ink)}.cover.floral .door:before{content:'❦';display:block;font-size:110px;color:var(--gold);margin:15vh auto;text-align:center}.cover.gates .door{background:repeating-linear-gradient(90deg,transparent 0 26px,#b29a5d60 27px 29px),var(--ink);border-radius:100px 100px 0 0}.cover.fade .envelope{background:none;border:0;filter:none}.cover.fade .envelope:after,.cover.fade .flap{display:none}.cover.fade .letter{background:transparent;box-shadow:none;transform:none}.cover.fade .seal{top:90%}.font-romantic h1,.font-romantic footer .script{font-family:'Great Vibes',cursive}.font-modern h1,.font-modern h2{font-family:Arial,sans-serif;letter-spacing:-1px}.review-panel{background:#fff6dd;border:1px solid #c0a65d;padding:25px;text-align:center}.review-panel textarea{display:block;width:min(95%,500px);min-height:80px;margin:15px auto;padding:12px;font:16px Georgia}.review-panel button{margin:5px}.qrbox{display:grid;place-items:center;margin:24px auto}.qrbox svg{background:#fff;padding:12px;width:190px;height:190px}.qrbox canvas{width:190px!important;height:190px!important}.message label{font-size:17px}.section audio{max-width:100%}.upload-note{font:12px/1.7 Arial}.memories-hero{min-height:650px}.day-guide{border:1px solid var(--gold);padding:20px;max-width:480px;margin:25px auto}.cover .letter strong{overflow-wrap:anywhere}.cover .seal{font-size:21px}.event p{overflow-wrap:anywhere}.gallery-grid button{border:0;padding:0;background:transparent}.lightbox{position:fixed;inset:0;background:#102a25ee;z-index:99;display:grid;place-items:center;padding:40px}.lightbox img{max-width:100%;max-height:85vh;object-fit:contain}.lightbox button{position:absolute;top:15px;right:15px;background:#fff;border:0;padding:10px 18px}.preview-mode .reveal{opacity:1;transform:none}body[dir=rtl] .moment{text-align:right;border-left:0;border-right:1px solid var(--gold);padding-right:28px;padding-left:0}body[dir=rtl] .moment:before{left:auto;right:-10px}
@container invitation (max-width:600px){.gallery-grid{grid-template-columns:repeat(2,1fr)}.gallery-grid img{height:210px}.hero.has-photo{min-height:870px}.hero .portrait{height:150px;width:130px}.floral-corner{width:65px}.events{grid-template-columns:1fr 1fr}.events .event:last-child:nth-child(even){grid-column:auto;width:auto}.events .event:only-child{width:100%;grid-column:1/-1}.hero h1{overflow-wrap:break-word}}
.topbar a{font-size:8px}.mini-nav{gap:6px}
.cover:not(.doors) .door-stage{display:none}

/* Fluid invitation layouts, including long client names and upload controls. */
main, section, .event, .gallery-grid > *, .contacts > * { min-width: 0; }
h1, h2, h3, p, .guest-welcome, .letter, footer { overflow-wrap: anywhere; }
img, video, audio { max-width: 100%; }
.topbar { height: auto; min-height: 86px; gap: 16px; flex-wrap: wrap; padding-block: 18px; }
.mini-nav { flex-wrap: wrap; justify-content: flex-end; }
.mini-nav button { min-height: 44px; }
.preview { max-width: calc(100% - 24px); white-space: normal; text-align: center; line-height: 1.5; }
.button { max-width: 100%; min-height: 44px; line-height: 1.6; overflow-wrap: anywhere; }
.contacts { flex-wrap: wrap; gap: 24px 56px; }
.contacts > * { flex: 0 1 240px; }
.counter { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); max-width: 520px; margin-inline: auto; gap: clamp(8px,calc(3 * 1cqw),36px); }
.counter strong { font-size: clamp(30px,calc(7 * 1cqw),50px); }
.counter span { letter-spacing: 1px; }
.upload-panel { display: block; width: 100%; max-width: 490px; margin: 28px auto 0; padding: clamp(18px,calc(3 * 1cqw),28px); border: 1px solid #b29a5d55; border-radius: 18px; background: #fffdf680; text-align: start; box-shadow: 0 8px 28px #12382e06; }
.upload-panel .upload-title { display: block; color: var(--ink); font: 500 25px/1.25 'Cormorant Garamond',Georgia,serif; }
.upload-panel .note { margin: 8px 0 14px; }
.upload-panel input[type=file] { padding: 12px; margin: 14px 0; border: 1px dashed var(--gold); border-radius: 12px; background: #fffdf8; font: 13px/1.6 Arial,sans-serif; }
.upload-panel .button { width: 100%; background: var(--ink); color: var(--paper); border-radius: 8px; }
.venue-art { max-width: 100%; }
@container invitation (max-width: 760px){
  .events { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .events .event:last-child:nth-child(odd) { grid-column: 1/-1; width: min(100%,420px); justify-self: center; }
  .section { padding-block: 60px; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }}

@media(max-width: 760px) {
}
@container invitation (max-width: 480px){
  .section { padding: 48px 18px; }
  .events { grid-template-columns: minmax(0,1fr); gap: 18px; margin-top: 28px; }
  .events .event:last-child, .events .event:last-child:nth-child(even) { grid-column: auto; width: 100%; }
  .event { padding: 30px 22px; }
  .event p { font-size: 17px; }
  .hero { padding-inline: 18px; }
  .hero h1 { font-size: clamp(34px,calc(9 * 1cqw),44px); }
  .gallery-grid { gap: 10px; }
  .gallery-grid img { height: 175px; }
  .moment { margin: 24px 8px; padding-left: 20px; }
  .venue-frame { padding: 30px 16px; outline-offset: 5px; }
  .venue-image { height: 210px; }
  .guest-actions > .button { flex: 1 1 130px; }
  .message .button { width: 100%; }
  .upload-panel { padding: 18px; }
  .upload-panel input[type=file] { padding: 10px; font-size: 12px; }}

  .lightbox { padding: 18px; }
@media(max-width: 480px) {
  .cover .intro { margin-bottom: 48px; }
  .envelope { height: 240px; }
  .letter strong { font-size: clamp(19px,5.5vw,26px); }
}
@media(max-height: 600px) and (orientation: landscape) {
  .cover-inner { max-width: 520px; }
  .cover .intro { margin: 0 0 16px; }
  .envelope { height: 180px; }
  .hint { margin-top: 12px; }
  .cover-bottom { height: 20px; }
}

/* The decorative frame encloses the content at every viewport size. */
.hero, .hero.has-photo {
  padding: 100px clamp(38px,calc(8 * 1cqw),80px) 80px;
  min-height: 780px;
}
.hero:before, .hero.has-photo:before,
.hero:after, .hero.has-photo:after {
  top: 20px;
  bottom: 24px;
  width: calc(100% - 32px);
  max-width: 900px;
  height: auto;
  border-radius: 150px 150px 0 0;
}
.hero:after, .hero.has-photo:after {
  top: 28px;
  bottom: 16px;
  width: calc(100% - 48px);
  max-width: 884px;
  border-radius: 142px 142px 0 0;
}
.hero > h1, .hero > p, .hero > .small, .hero > .arabic, .hero > .day-guide {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  overflow-wrap: anywhere;
}
.hero > .small { max-width: 420px; line-height: 2; }
.hero .blessing { width: 100%; max-width: 350px; line-height: 1.7; }
.hero > .arabic { line-height: 2; }
@container invitation (max-width: 480px){
  .hero, .hero.has-photo { padding: 92px 40px 66px; min-height: 0; }
  .hero:before, .hero.has-photo:before { border-radius: 110px 110px 0 0; }
  .hero:after, .hero.has-photo:after { border-radius: 102px 102px 0 0; }
  .hero > .small { font-size: 9px; letter-spacing: 2px; max-width: 240px; }
  .hero h1, .hero.has-photo h1 { font-size: clamp(30px,calc(8 * 1cqw),38px); line-height: 1.2; margin-block: 28px; }
  .hero .blessing { font-size: 18px; }
  .hero .guest-welcome { font-size: 19px; }}

@media(max-width: 480px) {
}

/* Premium collections share all invitation modules and guest interactions. */
.theme-art{pointer-events:none;position:absolute;inset:0;overflow:hidden;border-radius:inherit;color:var(--gold);z-index:0}.hero>.theme-art~*{position:relative;z-index:1}.hero>.theme-art~.floral-corner{position:absolute}.palace-art{position:absolute;bottom:0;left:10%;width:80%;height:130px;opacity:.55;stroke-width:1.5}.celestial-moon,.celestial-stars{display:none}
body[data-theme=emerald] .hero,body[data-theme=mughal] .hero,body[data-theme=celestial] .hero{padding-bottom:180px}
body[data-theme=emerald] .hero{background:radial-gradient(ellipse at 50% 10%,#32604b66,transparent 65%);border-radius:220px 220px 0 0;margin:30px auto 0;max-width:1000px}
body[data-theme=emerald] .hero:before{border:3px double var(--gold);border-radius:240px 240px 0 0}
body[data-theme=emerald] .hero:after{border-radius:230px 230px 0 0}
body[data-theme=emerald] .hero h1{font-family:'Great Vibes',cursive;color:var(--gold);font-size:clamp(44px,calc(7 * 1cqw),96px);line-height:1.3}
body[data-theme=emerald] .event{border:1px solid var(--gold);border-radius:100px 100px 8px 8px}
body[data-theme=emerald] .dark,body[data-theme=celestial] .dark{background:#071e19;color:#f5edda}
body[data-theme=emerald] .cover{background:radial-gradient(ellipse,#28533e,#0c241c);color:#f5edda}
body[data-theme=editorial] .hero{display:flex;flex-direction:column;align-items:center;text-align:start;max-width:1050px;margin:auto;padding-top:65px}
body[data-theme=editorial] .hero:before,body[data-theme=editorial] .hero:after{display:none}
body[data-theme=editorial] .hero h1{order:-2;width:100%;font-size:clamp(44px,calc(8 * 1cqw),104px);line-height:1.05;letter-spacing:-2px;border-bottom:1px solid var(--line);padding-bottom:30px}
body[data-theme=editorial] .hero .portrait{order:-1;width:100%;max-width:660px;height:auto;aspect-ratio:4/3;object-fit:cover;border:0;border-radius:0;margin:20px 0 40px;padding:0}
body[data-theme=editorial] .hero .script{font-family:inherit}
body[data-theme=editorial] .event{border-radius:0;border-top:1px solid var(--gold)}
body[data-theme=editorial] .gallery-grid img{border-radius:0}
body[data-theme=mughal] .hero{margin:24px auto;max-width:1000px;background:radial-gradient(ellipse at top,#c79e4a20,transparent 65%);border:12px double #702b32;border-radius:160px 160px 5px 5px}
body[data-theme=mughal] .hero:before{border:2px solid var(--gold);border-radius:150px 150px 0 0}
body[data-theme=mughal] .hero:after{border-radius:140px 140px 0 0}
body[data-theme=mughal] .hero h1{color:#702b32}
body[data-theme=mughal] .dark{background:#642b31;color:#fbefdc}
body[data-theme=mughal] .event{border:3px double var(--gold);border-radius:90px 90px 5px 5px}
body[data-theme=mughal] .floral-corner{opacity:.7;width:140px}
body[data-theme=mughal] .cover{background:radial-gradient(ellipse,#954854,#542329);color:#fbefdc}
body[data-theme=celestial] .hero{padding-top:190px;background:radial-gradient(ellipse at bottom,#23405a77,transparent 60%)}
body[data-theme=celestial] .hero:before{border-radius:48% 48% 0 0;border-style:dotted;opacity:.6}
body[data-theme=celestial] .hero:after{border-radius:48% 48% 0 0;opacity:.4}
body[data-theme=celestial] .celestial-moon{display:block;text-align:center;position:absolute;top:30px;left:0;right:0;font:100px Georgia;animation:moonlight 5s ease-in-out infinite alternate}
body[data-theme=celestial] .celestial-stars{display:block;position:absolute;top:135px;left:0;right:0;text-align:center;letter-spacing:22px;animation:moonlight 3s ease-in-out infinite alternate}
body[data-theme=celestial] .hero h1{text-transform:uppercase;letter-spacing:3px;font-size:clamp(35px,calc(6 * 1cqw),74px)}
body[data-theme=celestial] .dark{background:#081321}
body[data-theme=celestial] .cover{background:radial-gradient(ellipse at bottom,#263e57,#081321);color:#f5edda}
body[data-theme=celestial] .event{border:1px solid var(--gold);background:#ffffff05}
body[data-theme=emerald] .section input,body[data-theme=celestial] .section input,body[data-theme=emerald] .section textarea,body[data-theme=celestial] .section textarea,body[data-theme=emerald] .section select,body[data-theme=celestial] .section select{background:#fffaf0;color:#17382e}
@keyframes moonlight{from{opacity:.55;filter:drop-shadow(0 0 4px #d2b67433)}to{opacity:1;filter:drop-shadow(0 0 14px #d2b67466)}}
@container invitation (max-width:600px){body[data-theme=mughal] .hero{margin:12px 0;border-width:6px;border-radius:130px 130px 0 0;padding-inline:32px}body[data-theme=emerald] .hero{margin:15px 0 0}body[data-theme=editorial] .hero{padding-inline:28px}body[data-theme=celestial] .hero h1{letter-spacing:1px}.palace-art{left:5%;width:90%;height:100px}}

@media(prefers-reduced-motion:reduce){.celestial-moon,.celestial-stars{animation:none!important}}

/* Couture collection: native text and original Figma ornament assets. */
.hero.couture-hero{padding:36px 16px 64px;min-height:0;margin:0 auto;max-width:100%;background:var(--paper)}
.hero.couture-hero:before,.hero.couture-hero:after{display:none}
.couture-card{border:1px solid var(--gold);width:min(100%,560px);margin:auto;padding:36px;display:flex;flex-direction:column;align-items:center;gap:24px;text-align:center}
.couture-card>*{max-width:100%;min-width:0;margin:0;overflow-wrap:anywhere}
.couture-card .couture-monogram{font:italic 24px/1.2 'Cormorant Garamond',serif;color:var(--gold)}
.couture-art{width:320px;height:180px;display:flex;align-items:center;justify-content:center}
.couture-art img{flex:none;max-width:none}
.couture-card .small{font:10px/1.6 Inter,Arial,sans-serif;letter-spacing:2px}
.couture-card h1{font:400 clamp(40px,calc(9 * 1cqw),68px)/1.1 'Cormorant Garamond',serif;letter-spacing:0;width:100%;padding:0}
.couture-card h1 span{display:block}
.couture-card .blessing{font:italic 22px/1.3 'Cormorant Garamond',serif}
.couture-card .couture-rule{width:72px;height:1px;background:var(--gold)}
.couture-card .couture-date{font:12px/1.6 Inter,Arial,sans-serif;letter-spacing:2px;text-transform:uppercase}
.couture-card .couture-venue{font-size:21px;line-height:1.3}
.couture-card .couture-cta{width:100%;min-height:52px;background:var(--gold);color:white;font:11px/1.6 Inter,Arial,sans-serif;display:grid;place-items:center;padding:15px;letter-spacing:1px}
.couture-card .couture-credit{font:10px/1.6 Inter,Arial,sans-serif}
.couture-card .portrait{width:100%;max-width:280px;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:140px 140px 0 0}
.couture-card .guest-welcome{font-size:22px}
body[data-theme=pearl] .couture-card h1{font-style:italic}
body[data-theme=noir] .couture-card h1{font-size:clamp(36px,calc(8 * 1cqw),54px);text-transform:uppercase}
body[data-theme=romance] .couture-card h1{font-family:'Great Vibes',cursive;line-height:1.3}
body[data-theme=noir] .dark,body[data-theme=noir] .cover{background:#111414;color:#f8f0df}
body[data-theme=noir] .couture-cta{color:#191b1b}
body[data-theme=noir] .section input,body[data-theme=noir] .section textarea,body[data-theme=noir] .section select{background:#faf4e8;color:#191b1b}
body[data-theme=pearl] .dark{background:#504538;color:#f8f4eb}
body[data-theme=romance] .dark{background:#713e4c;color:#f9eff0}
body[data-theme=sage] .dark{background:#344c40;color:#e9eee6}
@container invitation (max-width:420px){.hero.couture-hero{padding:16px 12px 40px}.couture-card{padding:24px 20px}.couture-art{height:155px}.couture-art img{transform:scale(.85)}}

@container invitation (max-width:350px){.couture-art{height:135px}.couture-art img{transform:scale(.72)}}


/* Bulawa Signature is opt-in for saved invitations and the default for new ones. */
.invitation-brand{display:block;width:min(235px,65%);height:auto;margin:0 auto 28px}
body[data-theme=bulawa] .hero{background:var(--paper) url('/brand/bulawa-stationery.webp') center/100% 100% no-repeat;margin:14px auto;max-width:1000px;padding:80px clamp(35px,calc(8 * 1cqw),100px);min-height:750px}
body[data-theme=bulawa] .hero:before,body[data-theme=bulawa] .hero:after,body[data-theme=bulawa] .floral-corner{display:none}
body[data-theme=bulawa] .hero h1{color:var(--ink);font-size:clamp(34px,calc(6 * 1cqw),65px);line-height:1.2}
body[data-theme=bulawa] .button{background:var(--ink);color:var(--paper);border-color:var(--ink);border-radius:7px}
body[data-theme=bulawa] .section{border-bottom:1px solid var(--line)}
body[data-theme=bulawa] .op-wax .op-decor{background:linear-gradient(30deg,#800020 49.5%,transparent 50%) left/50% 100% no-repeat,linear-gradient(-30deg,#670019 49.5%,transparent 50%) right/50% 100% no-repeat}
body[data-theme=bulawa] .op-wax .op-lid{background:#800020}
body[data-theme=bulawa] .guest-welcome{color:var(--ink)}
@container invitation (max-width:600px){body[data-theme=bulawa] .hero{padding:65px 34px;min-height:680px;margin:8px 0}.invitation-brand{width:180px}body[data-theme=bulawa] .hero .blessing{font-size:21px}}

/* Preserve ornament proportions and readable Bulawa text. */
body[data-theme=bulawa] .hero{background-image:none;border:1px solid var(--gold);outline:1px solid var(--gold);outline-offset:-10px;border-radius:90px 90px 8px 8px}
body[data-theme=bulawa] .hero:before{display:block;inset:22px;width:auto;height:auto;transform:none;border:1px solid var(--gold);border-radius:75px 75px 0 0;opacity:.35}
body[data-theme=bulawa] .section:not(.dark) p,body[data-theme=bulawa] .note{color:#574b45}
body[data-theme=bulawa] .dark p,body[data-theme=bulawa] .dark .note{color:var(--paper)}
body[data-theme=bulawa] .venue-frame{background:transparent}
body[data-theme=bulawa] input[type=file]:hover::file-selector-button{background:#620019}
body[data-theme=bulawa] .guest-welcome{color:var(--ink)}
.photo-selection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.photo-selection-item{min-width:0;font:12px/1.5 Arial,sans-serif;border:1px solid var(--gold);padding:8px;border-radius:8px}.photo-selection-item img{width:100%;height:90px;object-fit:cover}.photo-selection-item span{display:block;overflow-wrap:anywhere}.photo-selection-item button{min-height:44px;width:100%;margin-top:8px;background:var(--paper);color:var(--ink);border:1px solid var(--gold);font:13px Arial;border-radius:6px}
#photoProgress{accent-color:var(--ink)}[hidden]{display:none!important}
@container invitation (max-width:420px){.photo-selection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Fluid artwork and restrained, matching stationery borders. */
.couture-art { width:100%; max-width:320px; height:auto; aspect-ratio:16/9; }
.couture-art img { width:100%; max-width:100%; max-height:100%; object-fit:contain; transform:none; }
body[data-theme=bulawa] .hero { min-height:0; padding:56px clamp(32px,calc(6 * 1cqw),72px); outline:none; border-radius:72px 72px 8px 8px; }
body[data-theme=bulawa] .hero:before { inset:12px; border-radius:60px 60px 4px 4px; opacity:.45; }
body[data-theme=bulawa] .hero.has-photo { min-height:0; }
.upload-panel { border:0; box-shadow:none; padding:24px; background:var(--paper); }
.photo-selection-item { border:0; padding:8px; background:var(--paper); }
.photo-selection-item button { border-color:transparent; text-decoration:underline; text-underline-offset:3px; }
@container invitation (max-width:600px){
 body[data-theme=bulawa] .hero { padding:40px 28px; margin:8px 0; }
 body[data-theme=bulawa] .hero .portrait { margin-top:16px; }
 body[data-theme=bulawa] .hero h1 { margin-block:24px; }
 .upload-panel { padding:16px; }
 .couture-card { padding:24px; }}

@media(max-width:600px) {
}

.invitation-faq{text-align:start;border-bottom:1px solid var(--gold);padding:18px 0}.invitation-faq summary{cursor:pointer;font-size:20px;min-height:44px}.dress-line{white-space:pre-wrap}

/* Readable content and controls on phones, tablets and laptop screens. */
.section>p,.section>.quote,footer>p{max-width:720px;margin-inline:auto}
.section h2{line-height:1.15;overflow-wrap:anywhere}
.message,.upload-panel,.venue-frame{min-width:0;max-width:100%}
.message input,.message textarea,.message select,.upload-panel input{box-sizing:border-box;max-width:100%;min-width:0;font-size:16px}
.mini-nav a{display:inline-flex;align-items:center;min-height:44px;line-height:1.4;text-align:end}
.guest-actions .button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
@container invitation (max-width:600px){
 .section h2{font-size:clamp(30px,calc(8 * 1cqw),42px)}
 .events{grid-template-columns:minmax(0,1fr)}
 .events .event:last-child,.events .event:last-child:nth-child(odd){grid-column:auto;width:100%}
 .guest-actions{gap:10px}
 .guest-actions>.button{flex-basis:100%;width:100%}
 .couture-card{padding:28px 20px;gap:20px}
 .couture-card h1{font-size:clamp(30px,calc(8 * 1cqw),44px)}
 .couture-card .blessing{font-size:20px}
 .gallery-grid img{height:auto;aspect-ratio:4/5;object-fit:cover}
 .invitation-faq summary{font-size:18px;line-height:1.5;padding-block:8px}}

 .topbar{padding-inline:16px;gap:8px}
 .topbar .monogram{font-size:22px;overflow-wrap:anywhere;max-width:45%}
 .mini-nav{max-width:52%;margin-left:auto}
 .mini-nav a{font-size:10px}
 footer .script{font-size:clamp(30px,calc(8 * min(1vw, 4.4px)),42px);line-height:1.4}
@media(max-width:600px){
}

/* One company footer shared by every invitation template. */
footer .invitation-company{width:min(100%,680px);margin:40px auto 0;padding-top:28px;border-top:1px solid currentColor;text-align:center;color:inherit;font-family:Inter,Arial,sans-serif}
footer .invitation-company .company-kicker{font:12px/1.6 Inter,Arial,sans-serif;letter-spacing:1px;margin:0 0 8px;color:inherit}
footer .invitation-company .company-name{display:inline-block;font:600 20px/1.5 Inter,Arial,sans-serif;min-height:44px;padding:6px 0;color:inherit;text-decoration:none}
footer .company-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;margin-top:12px}
footer .company-links a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 4px;font:14px/1.6 Inter,Arial,sans-serif;color:inherit;overflow-wrap:anywhere;text-underline-offset:4px}
footer .invitation-company .company-follow{font:13px/1.6 Inter,Arial,sans-serif;color:inherit;margin:16px 0 0}footer .company-links{flex-direction:column;gap:4px}footer .invitation-company{margin-top:32px;padding-top:24px}


/* Voice recording and selected audio have separate previews and submissions. */
.voice-composer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;width:min(100%,800px);margin:30px auto;text-align:start}
.voice-card{min-width:0;padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--field-bg,var(--paper));color:var(--field-text,var(--ink))}
.voice-card h3{font-size:clamp(24px,calc(3 * 1cqw),30px);margin:0 0 12px;color:inherit}.voice-card .note{font:14px/1.7 Arial,sans-serif;color:inherit;opacity:.9}
.voice-card audio{display:block;width:100%;margin:16px 0;max-width:100%}.voice-card [hidden]{display:none!important}
.voice-card .button{font-size:13px;letter-spacing:1px;min-height:46px;padding:12px 16px;max-width:100%;white-space:normal}.voice-card .guest-actions{display:flex;gap:10px;margin:16px 0}
.voice-review-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:16px 0}.voice-review-actions .text-button{font:14px/1.5 Arial,sans-serif;min-height:44px;color:inherit;background:transparent}
.voice-card input[type=file]{width:100%;min-width:0;box-sizing:border-box}.voice-card .result{font:14px/1.7 Arial,sans-serif;overflow-wrap:anywhere}
.recording-indicator{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px;border:1px solid currentColor;border-radius:10px;font:14px/1.5 Arial,sans-serif}
.recording-indicator output{font-variant-numeric:tabular-nums;margin-inline-start:auto}.recording-dot{width:10px;height:10px;border-radius:50%;background:currentColor;animation:recordPulse 1s ease-in-out infinite}
@keyframes recordPulse{50%{opacity:.3}}@media(prefers-reduced-motion:reduce){.recording-dot{animation:none}}
@container invitation (max-width:680px){.voice-composer{grid-template-columns:minmax(0,1fr);gap:16px}.voice-card{padding:20px}.voice-review-actions .button{width:100%}}

dialog.lightbox{width:calc(100 * min(1vw, 4.4px));height:100dvh;max-width:none;max-height:none;margin:0;border:0;color:#fff}dialog.lightbox:not([open]){display:none}dialog.lightbox::backdrop{background:#102a25ee}
#invitation .voice-card{background:var(--ui-surface,var(--paper));color:var(--ui-text,var(--ink));border-color:var(--ui-border,var(--line))}
.voice-composer>.voice-card{margin:0;width:auto;max-width:none;text-align:start}
.voice-card .button{border-radius:10px}.voice-card button:disabled{opacity:.55;cursor:not-allowed}.voice-card input[type=file]::file-selector-button{padding:10px 14px;border-radius:8px;margin-inline-end:10px;cursor:pointer}
.template-enquiry-bar{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);z-index:30000;display:flex;align-items:center;justify-content:center;gap:20px;max-width:calc(calc(100 * min(1vw, 4.4px)) - 24px);padding:12px 18px;border:1px solid #c8a25d;border-radius:12px;background:#f8f4ec;color:#800020;font:13px/1.4 Arial,sans-serif;box-shadow:0 8px 32px #0003}.template-enquiry-bar a{color:#800020;white-space:nowrap;min-height:32px;display:flex;align-items:center}.template-enquiry-bar span{font-size:12px;color:#756b60}.template-enquiry-bar{width:calc(calc(100 * min(1vw, 4.4px)) - 24px);gap:12px;flex-wrap:wrap}.template-enquiry-bar span{display:none}.template-enquiry-bar a{font-size:12px}
/* Guest navigation stays on one row in English and Urdu. */
body .topbar{display:flex;flex-wrap:nowrap!important;align-items:center;justify-content:space-between;gap:12px;min-height:72px;padding:12px clamp(16px,calc(4 * min(1vw, 4.4px)),48px)}body .topbar .monogram{min-width:0;max-width:none;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body .topbar .mini-nav{display:flex!important;flex-flow:row nowrap!important;align-items:center;justify-content:flex-end;gap:10px;flex-shrink:0;width:auto!important}body .topbar .mini-nav a,body .topbar .mini-nav button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;white-space:nowrap;margin:0;font:12px/1.3 Arial,sans-serif;letter-spacing:.3px}body .topbar .mini-nav button{padding:8px 12px}body .topbar .event-shortcut svg{flex-shrink:0}body .topbar .event-shortcut{color:inherit}.invitation-company .company-links{display:flex;flex-wrap:wrap;justify-content:center;gap:14px}.invitation-company .contact-icon{width:46px;height:46px;padding:10px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;color:inherit}.contact-icon svg{display:block}.invitation-company .icon-tooltip{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.invitation-company .contact-icon:hover,.invitation-company .contact-icon:focus-visible{transform:translateY(-2px)}
.template-card .template-art{position:relative}
@media(max-width:360px){body .topbar .event-shortcut span{display:none}body .topbar .event-shortcut{width:44px}body .topbar .monogram{font-size:20px}}

/* Keep contact icons in one left-to-right row in every invitation theme. */
footer .invitation-company .company-follow{font:13px/1.6 Inter,Arial,sans-serif;letter-spacing:0;margin:18px 0 12px;color:inherit}footer .invitation-company .company-links{display:flex;flex-flow:row nowrap;direction:ltr;align-items:center;justify-content:center;gap:14px;margin:0 auto}footer .invitation-company .company-links .contact-icon{flex:0 0 46px;min-width:46px;min-height:46px}#sound:disabled{cursor:default;opacity:.55}

/* Keep all five Cimplet social icons visible on narrow invitation screens.
   The layout is LTR to preserve conventional social-icon ordering in Urdu. */
footer .invitation-company .company-links{
  flex-flow:row wrap;
  gap:10px;
  max-width:100%;
}

/* Adaptive couple-name sizing: preserve full words and original typographic style. */
#invitation .bulawa-name-fitted{
 max-width:100%;min-width:0;overflow-wrap:normal!important;
 word-break:normal!important;hyphens:none!important;
}
#invitation .bulawa-name-fitted>span:not(.script){
 max-width:100%;font-size:inherit!important;
 text-wrap:balance;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;
}
#invitation .bulawa-name-fitted>em{font-size:.76em;line-height:1.1}
