/* ══ Celestial Nocturne — indigo malam · gading bintang · emas purnama ══
   Prefix: cl- · Fonts: Cormorant Garamond (display) · Figtree (body) */

:root {
  --cl-night: #131636;
  --cl-night-2: #1B2050;
  --cl-night-3: #23285C;
  --cl-star: #EAE7FF;
  --cl-gold: #E9CE9A;
  --cl-gold-2: #C9A96B;
  --cl-lav: #5D5FA8;
  --cl-body: #B9BADF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Figtree", system-ui, sans-serif;
  background: var(--cl-night);
  color: var(--cl-body);
  -webkit-font-smoothing: antialiased;
}
body:not(.is-open) { overflow: hidden; }

/* ── page frame ── */
.cl-page {
  max-width: 480px; margin: 0 auto;
  background:
    radial-gradient(140% 60% at 50% 0%, #1B2050 0%, var(--cl-night) 58%),
    var(--cl-night);
  box-shadow: 0 0 60px rgba(0,0,0,.6); position: relative; overflow-x: clip;
  color: var(--cl-body);
}

/* ── starfield layers ── */
.cl-stars { position: absolute; inset: 0; pointer-events: none; }
.cl-stars::before, .cl-stars::after {
  content: ""; position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: transparent;
  box-shadow:
    24vw 12vh 0 0 rgba(234,231,255,.9), 61vw 5vh 0 0 rgba(234,231,255,.5),
    84vw 16vh 0 0 rgba(233,206,154,.8), 12vw 26vh 0 0 rgba(234,231,255,.6),
    43vw 21vh 0 0 rgba(234,231,255,.4), 72vw 29vh 0 0 rgba(234,231,255,.9),
    33vw 38vh 0 0 rgba(233,206,154,.6), 90vw 44vh 0 0 rgba(234,231,255,.5),
    8vw 52vh 0 0 rgba(234,231,255,.8), 55vw 47vh 0 0 rgba(234,231,255,.4),
    78vw 58vh 0 0 rgba(234,231,255,.7), 20vw 63vh 0 0 rgba(233,206,154,.5),
    66vw 71vh 0 0 rgba(234,231,255,.9), 38vw 78vh 0 0 rgba(234,231,255,.5),
    88vw 84vh 0 0 rgba(234,231,255,.6), 15vw 88vh 0 0 rgba(234,231,255,.7),
    50vw 92vh 0 0 rgba(233,206,154,.7), 70vw 10vh 0 0 rgba(234,231,255,.45);
  animation: cl-twinkle 4.5s ease-in-out infinite;
}
.cl-stars::after {
  transform: scale(1.6) rotate(7deg); opacity: .5;
  animation-delay: -2.2s; animation-duration: 6.5s;
}
@keyframes cl-twinkle {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

/* ── cover: skyfall ── */
.cl-cover {
  position: fixed; inset: 0; z-index: 100;
  max-width: 480px; margin: 0 auto;
  background: radial-gradient(130% 80% at 50% 12%, #23285C 0%, var(--cl-night) 62%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .9s ease, transform .9s ease, visibility 0s .95s;
  overflow: hidden;
}
.cl-cover .cl-stars { position: absolute; }
.cl-shoot {
  position: absolute; top: 18%; left: -30%;
  width: 160px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cl-gold));
  opacity: 0; transform: rotate(24deg);
}
body.is-open .cl-cover { opacity: 0; transform: scale(1.1); visibility: hidden; pointer-events: none; }
body.is-open .cl-shoot { animation: cl-fall .85s ease-out .05s forwards; }
@keyframes cl-fall {
  0% { opacity: 0; left: -30%; top: 12%; }
  12% { opacity: 1; }
  100% { opacity: 0; left: 115%; top: 52%; }
}
.cl-cover-inner {
  position: relative; text-align: center; color: var(--cl-star);
  padding: 32px 28px; transition: opacity .5s ease;
}
body.is-open .cl-cover-inner { opacity: 0; }

.cl-moon { width: 58px; height: 58px; margin-bottom: 14px; }
.cl-cover-kicker { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--cl-gold); margin-bottom: 10px; }
.cl-cover-names {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-style: italic;
  font-size: 48px; line-height: 1.1; margin: 8px 0 6px;
}
.cl-cover-names span { display: block; font-size: 20px; font-style: normal; color: var(--cl-body); margin: 6px 0; }
.cl-cover-date { font-size: 14px; letter-spacing: .12em; color: #D3D0F2; }
.cl-cover-guest { margin: 30px 0 26px; font-size: 14px; color: var(--cl-body); }
.cl-guest-name {
  font-family: "Cormorant Garamond", serif; font-size: 22px; color: var(--cl-star);
  margin: 6px 0 4px; font-weight: 500;
}
.cl-guest-note { font-size: 11px; color: #7b7cab; }
.cl-open-btn {
  font-family: "Figtree", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cl-night); background: linear-gradient(180deg, #F2E0B6, var(--cl-gold));
  border: none; border-radius: 999px; padding: 14px 38px; cursor: pointer;
  box-shadow: 0 0 30px rgba(233,206,154,.35), 0 10px 26px rgba(0,0,0,.4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cl-open-btn:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(233,206,154,.5), 0 14px 30px rgba(0,0,0,.45); }

/* ── hero ── */
.cl-hero { position: relative; text-align: center; padding: 54px 26px 0; }
.cl-const { position: absolute; top: 14px; left: 0; right: 0; opacity: .8; }
.cl-const svg { display: block; width: 100%; height: auto; }
.cl-hero-bismillah { font-size: 12.5px; letter-spacing: .1em; color: var(--cl-body); margin: 46px 0 20px; }
.cl-hero-intro { font-size: 13.5px; line-height: 1.7; color: #B9BADF; max-width: 34ch; margin: 0 auto 18px; }
.cl-hero-names {
  font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 54px; line-height: 1.08; color: var(--cl-star);
}
.cl-hero-names em { display: block; font-size: 22px; font-style: italic; color: var(--cl-gold); margin: 10px 0; }
.cl-hero-date { margin-top: 12px; font-size: 15px; letter-spacing: .14em; color: #D3D0F2; }

.cl-cd {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 30px auto 44px; max-width: 340px;
}
.cl-cd-cell {
  background: rgba(35,40,92,.55); border: 1px solid rgba(93,95,168,.5);
  border-radius: 14px; padding: 12px 4px 9px; text-align: center;
  backdrop-filter: blur(4px);
}
.cl-cd-cell svg { display: block; width: 16px; height: 16px; margin: 0 auto 4px; }
.cl-cd-cell b {
  display: block; font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 25px;
  color: var(--cl-star); font-variant-numeric: tabular-nums;
}
.cl-cd-cell span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8f91c2; }
.cl-hero-foot {
  border-top: 1px solid rgba(93,95,168,.4);
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--cl-gold);
  padding: 14px 0 0; margin-bottom: 50px;
}

/* ── sections ── */
.cl-section { padding: 52px 26px; position: relative; }
.cl-sec-head { text-align: center; margin-bottom: 32px; }
.cl-sec-kicker {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--cl-gold);
  margin-bottom: 8px;
}
.cl-sec-kicker::before, .cl-sec-kicker::after { content: "✦"; margin: 0 8px; color: var(--cl-lav); }
.cl-sec-title { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 28px; color: var(--cl-star); }

/* ── couple ── */
.cl-couple-card {
  text-align: center; background: rgba(35,40,92,.4); border: 1px solid rgba(93,95,168,.45);
  border-radius: 18px; padding: 30px 22px 26px;
  backdrop-filter: blur(6px);
}
.cl-orbit {
  position: relative; width: 84px; height: 84px; margin: 0 auto 18px;
  display: grid; place-items: center;
}
.cl-orbit span {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 30%, #2A3070, var(--cl-night-2));
  border: 1px solid rgba(233,206,154,.5);
  color: var(--cl-gold); font-family: "Cormorant Garamond", serif; font-size: 21px; font-weight: 500; letter-spacing: .04em;
}
.cl-orbit i {
  position: absolute; width: 84px; height: 84px; border-radius: 50%;
  border: 1px dashed rgba(234,231,255,.3); top: 0; left: 0;
  animation: cl-spin 14s linear infinite;
}
.cl-orbit i::after {
  content: ""; position: absolute; top: -2.5px; left: 50%;
  width: 5px; height: 5px; border-radius: 50%; background: var(--cl-gold);
}
.cl-orbit i:nth-child(3) { animation-duration: 22s; animation-direction: reverse; border-style: solid; border-color: rgba(93,95,168,.25); }
@keyframes cl-spin { to { transform: rotate(360deg); } }
.cl-couple-name { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 23px; color: var(--cl-star); }
.cl-couple-parents { margin-top: 10px; font-size: 13.5px; line-height: 1.65; color: var(--cl-body); }
.cl-couple-ig { margin-top: 8px; font-size: 12.5px; color: var(--cl-gold); letter-spacing: .04em; }
.cl-couple-amp {
  text-align: center; font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 30px; color: var(--cl-gold); margin: 14px 0;
}

/* ── events ── */
.cl-event {
  text-align: center; padding: 26px 22px; margin-bottom: 16px;
  background: rgba(35,40,92,.4); border: 1px solid rgba(93,95,168,.45);
  border-radius: 16px; backdrop-filter: blur(6px);
}
.cl-event-title { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 22px; color: var(--cl-star); }
.cl-event-time { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--cl-gold); letter-spacing: .05em; }
.cl-event-date { font-size: 13px; color: #8f91c2; margin-top: 2px; }
.cl-event-venue { margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--cl-star); }
.cl-event-addr { font-size: 13px; color: var(--cl-body); line-height: 1.55; margin-top: 3px; }
.cl-cal { margin-top: 14px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cl-cal a {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-decoration: none;
  color: var(--cl-star); border: 1px solid rgba(233,206,154,.5);
  padding: 7px 13px; border-radius: 999px; transition: background .2s ease, color .2s ease;
}
.cl-cal a:hover { background: var(--cl-gold); color: var(--cl-night); }

.cl-maps { margin-top: 8px; }
.cl-map-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid rgba(93,95,168,.6); border-radius: 12px 12px 0 0; overflow: hidden; }
.cl-map-tab {
  appearance: none; border: none; background: rgba(19,22,54,.9); cursor: pointer;
  padding: 11px 0; font-family: "Figtree", sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; color: var(--cl-body); text-transform: uppercase;
}
.cl-map-tab.is-active { background: var(--cl-gold); color: var(--cl-night); }
.cl-map { display: block; width: 100%; height: 230px; border: 1px solid rgba(93,95,168,.6); border-top: none; border-radius: 0 0 12px 12px; }

/* ── story: constellation line ── */
.cl-story { list-style: none; position: relative; padding-left: 26px; }
.cl-story::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 30px; width: 0;
  border-left: 1px dashed rgba(234,231,255,.4);
}
.cl-story-item { position: relative; padding: 0 0 30px 16px; }
.cl-story-item:last-child { padding-bottom: 0; }
.cl-story-item::before {
  content: "✦"; position: absolute; left: -26px; top: 0; width: 12px;
  font-size: 14px; color: var(--cl-gold); text-shadow: 0 0 10px rgba(233,206,154,.8);
}
.cl-story-year { font-family: "Cormorant Garamond", serif; font-size: 15px; color: var(--cl-gold); letter-spacing: .08em; }
.cl-story-title { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 19px; color: var(--cl-star); margin: 4px 0 6px; }
.cl-story-text { font-size: 14px; line-height: 1.7; color: var(--cl-body); }

/* ── gallery ── */
.cl-gallery-sec { background: rgba(27,32,80,.45); }
.cl-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cl-g-item {
  border-radius: 14px; overflow: hidden; cursor: zoom-in;
  border: 1px solid rgba(93,95,168,.5);
  transition: transform .25s ease, box-shadow .25s ease;
 aspect-ratio: 4/3; overflow: hidden; }
.cl-g-item:hover { transform: translateY(-3px); box-shadow: 0 10px 26px -12px rgba(233,206,154,.35); }
.cl-g-item svg { display: block; width: 100%; height: auto; }
.cl-g-item img { display: block; width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; }
.cl-g-item { color: #E9CE9A; }

/* ── forms ── */
.cl-form { display: grid; gap: 18px; }
.cl-field { display: grid; gap: 7px; border: none; }
.cl-field span, .cl-field legend { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cl-gold); }
.cl-field input, .cl-field select, .cl-field textarea {
  font-family: "Figtree", sans-serif; font-size: 15px; color: var(--cl-star);
  background: rgba(19,22,54,.8); border: 1px solid rgba(93,95,168,.6); border-radius: 12px; padding: 12px 14px;
  outline: none; transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.cl-field input::placeholder, .cl-field textarea::placeholder { color: #6b6e9e; }
.cl-field select { appearance: none; }
.cl-field select option { background: var(--cl-night-2); color: var(--cl-star); }
.cl-field input:focus, .cl-field select:focus, .cl-field textarea:focus {
  border-color: var(--cl-gold); box-shadow: 0 0 0 3px rgba(233,206,154,.15);
}
.cl-field textarea { resize: vertical; }
.cl-radios { display: block; }
.cl-radios label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--cl-body); padding: 6px 0; text-transform: none; letter-spacing: 0; }
.cl-radios input { accent-color: var(--cl-gold); width: 17px; height: 17px; }
.cl-submit {
  justify-self: center; appearance: none; border: none; cursor: pointer;
  font-family: "Figtree", sans-serif; font-size: 13.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cl-night); background: linear-gradient(180deg, #F2E0B6, var(--cl-gold));
  padding: 14px 36px; border-radius: 999px;
  box-shadow: 0 0 26px rgba(233,206,154,.28); transition: transform .2s ease, box-shadow .2s ease;
}
.cl-submit:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(233,206,154,.42); }
.cl-thanks {
  text-align: center; font-family: "Cormorant Garamond", serif; font-size: 18px;
  color: var(--cl-gold); padding: 26px 10px;
}

/* ── wishes ── */
.cl-wish-form { margin-bottom: 30px; }
.cl-wishes { display: grid; gap: 12px; margin-bottom: 18px; }
[data-wishes-list] .wish {
  background: rgba(35,40,92,.4); border: 1px solid rgba(93,95,168,.4); border-left: 3px solid var(--cl-gold);
  border-radius: 0 12px 12px 0; padding: 15px 17px 13px;
}
[data-wishes-list] .wish h4 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 16px; color: var(--cl-star); }
[data-wishes-list] .wish p { font-size: 13.5px; line-height: 1.6; color: var(--cl-body); margin-top: 4px; }
[data-wishes-list] .wish time { display: block; font-size: 11px; color: #8f91c2; margin-top: 7px; letter-spacing: .04em; }
.cl-more {
  display: block; margin: 0 auto; appearance: none; cursor: pointer;
  background: none; border: 1px solid rgba(233,206,154,.5); color: var(--cl-gold);
  font-family: "Figtree", sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 10px 22px; border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.cl-more:hover { background: var(--cl-gold); color: var(--cl-night); }

/* ── amplop ── */
.cl-env {
  text-align: center; color: var(--cl-star);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(233,206,154,.12), transparent 60%),
    rgba(27,32,80,.75);
  border: 1px solid rgba(233,206,154,.35);
  border-radius: 16px; padding: 24px 20px 20px; position: relative; overflow: hidden;
  backdrop-filter: blur(6px); margin-bottom: 14px;
}
.cl-env::after {
  content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(233,206,154,.3);
  border-radius: 11px; pointer-events: none;
}
.cl-env-bank { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--cl-gold); }
.cl-env-num { font-family: "Cormorant Garamond", serif; font-size: 25px; letter-spacing: .08em; margin-top: 8px; }
.cl-env-holder { font-size: 12.5px; color: var(--cl-body); margin-top: 4px; }
.cl-copy {
  margin-top: 14px; appearance: none; cursor: pointer;
  background: var(--cl-gold); color: var(--cl-night); border: none;
  font-family: "Figtree", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  padding: 8px 18px; border-radius: 999px; transition: background .2s ease;
}
.cl-copy:hover { background: #F2E0B6; }
.cl-amplop-note { text-align: center; font-size: 13.5px; line-height: 1.7; color: var(--cl-body); max-width: 38ch; margin: 0 auto 24px; }

/* ── closing ── */
.cl-closing {
  text-align: center; color: var(--cl-star); background: var(--cl-night-2);
  padding: 56px 28px 40px; position: relative; overflow: hidden;
}
.cl-close-moon { width: 52px; height: 52px; color: var(--cl-gold); filter: drop-shadow(0 0 14px rgba(233,206,154,.5)); }
.cl-closing-text { font-size: 13.5px; line-height: 1.75; color: var(--cl-body); max-width: 36ch; margin: 18px auto 24px; }
.cl-closing-thanks { font-size: 14px; line-height: 1.7; color: var(--cl-body); margin-bottom: 18px; }
.cl-closing-names {
  font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500;
  font-size: 38px; line-height: 1.2;
}
.cl-closing-fam { margin-top: 14px; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--cl-gold); }

/* ── music toggle ── */
.cl-music {
  position: fixed; right: 18px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(27,32,80,.92); color: var(--cl-gold);
  border: 1px solid rgba(233,206,154,.5); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.5);
}
.cl-music svg { width: 21px; height: 21px; }
.cl-music.is-playing { animation: cl-pulse 2.4s ease infinite; }
@keyframes cl-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(0,0,0,.5), 0 0 0 0 rgba(233,206,154,.5); }
  55% { box-shadow: 0 8px 22px rgba(0,0,0,.5), 0 0 0 12px rgba(233,206,154,0); }
}

/* ── reveal (behavior-critical) ── */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .85s ease, transform .85s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ── lightbox (theme flavor) ── */
.lb-overlay { font-family: "Figtree", sans-serif; }
.map-open { color: var(--cl-gold); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  /* cover-open end-states so content remains reachable */
  body.is-open [data-cover] { opacity: 0 !important; visibility: hidden !important; }
}
