/* ══ Hilal Purnama — plum night · warm ink · antique gold ══
   Prefix: hl- · Fonts: Prata · Jost */

:root {
  --hl-bg: #251623;
  --hl-bg-deep: #1B0F1A;
  --hl-bg-lift: #2E1B2B;
  --hl-ink: #F5ECEE;
  --hl-ink-dim: #C9AFBC;
  --hl-gold: #D3A84C;
  --hl-gold-soft: #E8CE8F;
  --hl-mauve: #9A7B8C;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Jost", system-ui, sans-serif; font-weight: 300;
  background:
    radial-gradient(ellipse at 50% -10%, #3A2138 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, #2C1930 0%, transparent 50%),
    var(--hl-bg-deep);
  color: var(--hl-ink-dim); -webkit-font-smoothing: antialiased;
}
body:not(.is-open) { overflow: hidden; }

.hl-page {
  max-width: 480px; margin: 0 auto; position: relative; overflow-x: clip;
  background: var(--hl-bg); box-shadow: 0 0 80px rgba(0,0,0,.6);
}

/* ── cover ── */
.hl-cover {
  position: fixed; inset: 0; z-index: 100; max-width: 480px; margin: 0 auto;
  overflow: hidden;
  transition: visibility 0s 2.4s;
}
body.is-open .hl-cover { pointer-events: none; visibility: hidden; }
.hl-curtain {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background:
    radial-gradient(circle at 18% 22%, rgba(211,168,76,.07) 0, transparent 3px),
    radial-gradient(circle at 72% 12%, rgba(245,236,238,.05) 0, transparent 2px),
    radial-gradient(circle at 40% 70%, rgba(154,123,140,.08) 0, transparent 2px),
    radial-gradient(circle at 88% 58%, rgba(211,168,76,.06) 0, transparent 2px),
    linear-gradient(180deg, var(--hl-bg-deep), var(--hl-bg));
  transition: transform 1.15s cubic-bezier(.7,0,.25,1) .45s;
}
.hl-curtain-t { top: 0; box-shadow: 0 1px 0 rgba(211,168,76,.55); }
.hl-curtain-b { bottom: 0; box-shadow: 0 -1px 0 rgba(211,168,76,.55); }
body.is-open .hl-curtain-t { transform: translateY(-102%); }
body.is-open .hl-curtain-b { transform: translateY(102%); }


.hl-cover-inner {
  position: absolute; inset: 0; z-index: 2; padding: 32px 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; transition: opacity .5s ease .1s;
}
body.is-open .hl-cover-inner { opacity: 0; }
.hl-bismillah { font-family: "Prata", serif; font-size: 20px; line-height: 1.9; color: var(--hl-gold-soft); }
.hl-cover-kicker { margin-top: 16px; font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--hl-mauve); }
.hl-cover-names { font-family: "Prata", serif; font-weight: 400; font-size: 42px; line-height: 1.12; color: var(--hl-ink); margin-top: 12px; }
.hl-cover-names span { display: block; font-size: 18px; color: var(--hl-gold); margin: 8px 0; }
.hl-cover-date { margin-top: 10px; font-size: 13px; letter-spacing: .18em; color: var(--hl-ink-dim); }
.hl-cover-guest { margin: 30px 0 24px; font-size: 13px; color: var(--hl-mauve); }
.hl-guest-name { font-family: "Prata", serif; font-size: 19px; color: var(--hl-gold-soft); margin-top: 5px; }
.hl-open-btn {
  appearance: none; cursor: pointer; background: transparent;
  border: 1px solid var(--hl-gold); color: var(--hl-gold);
  font-family: "Jost", sans-serif; font-size: 12.5px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; padding: 13px 36px;
  transition: background .25s ease, color .25s ease;
}
.hl-open-btn:hover { background: var(--hl-gold); color: var(--hl-bg-deep); }

/* ── hero ── */
.hl-hero { position: relative; padding: 64px 26px 54px; text-align: center; }
.hl-hero-star { width: 44px; height: 44px; margin-bottom: 20px; }
.hl-hero-salam { font-family: "Prata", serif; font-size: 15px; color: var(--hl-gold); line-height: 1.7; }
.hl-hero-intro { font-size: 13.5px; line-height: 1.75; max-width: 34ch; margin: 16px auto 20px; }
.hl-hero-names { font-family: "Prata", serif; font-weight: 400; font-size: 38px; line-height: 1.15; color: var(--hl-ink); }
.hl-hero-names em { display: block; font-style: normal; font-size: 20px; color: var(--hl-gold); margin: 8px 0; }
.hl-hero-mean { margin-top: 14px; font-size: 12.5px; font-style: italic; letter-spacing: .04em; color: var(--hl-mauve); }
.hl-hero-date { margin-top: 12px; font-size: 13.5px; letter-spacing: .14em; color: var(--hl-ink-dim); }
.hl-cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 330px; margin: 28px auto 0; }
.hl-cd-cell { border: 1px solid rgba(211,168,76,.35); padding: 11px 4px 9px; text-align: center; position: relative; }
.hl-cd-cell::before { content: ""; position: absolute; top: 3px; left: 3px; right: 3px; bottom: 3px; border: 1px dotted rgba(154,123,140,.35); pointer-events: none; }
.hl-cd-cell b { display: block; font-family: "Prata", serif; font-weight: 400; font-size: 23px; color: var(--hl-gold-soft); font-variant-numeric: tabular-nums; }
.hl-cd-cell span { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--hl-mauve); }

/* ── divider lattice ── */
.hl-divider { display: flex; justify-content: center; padding: 4px 0; }
.hl-divider svg { width: min(300px, 82%); height: 28px; }

/* ── sections ── */
.hl-sec { padding: 52px 26px; }
.hl-sec-head { text-align: center; margin-bottom: 30px; }
.hl-phases { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.hl-ph-o, .hl-ph-h, .hl-ph-f { display: block; width: 11px; height: 11px; border-radius: 50%; }
.hl-ph-o { border: 1px solid var(--hl-gold); }
.hl-ph-h { border: 1px solid var(--hl-gold); background: linear-gradient(90deg, transparent 50%, var(--hl-gold) 50%); }
.hl-ph-f { background: var(--hl-gold); box-shadow: 0 0 8px rgba(211,168,76,.6); }
.hl-sec-title { font-family: "Prata", serif; font-weight: 400; font-size: 25px; color: var(--hl-ink); }
.hl-sec-sub { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--hl-mauve); margin-top: 7px; }

/* ── couple ── */
.hl-person {
  max-width: 340px; padding: 28px 22px 24px; text-align: center; position: relative;
  background: linear-gradient(180deg, rgba(46,27,43,.7), rgba(27,15,26,.7));
  border: 1px solid rgba(211,168,76,.28);
}
.hl-person::before, .hl-person::after { content: ""; position: absolute; width: 20px; height: 20px; border: 1.5px solid var(--hl-gold); }
.hl-person::before { top: 7px; left: 7px; border-right: none; border-bottom: none; }
.hl-person::after { bottom: 7px; right: 7px; border-left: none; border-top: none; }
.hl-avatar {
  width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-family: "Prata", serif; font-size: 21px;
  color: var(--hl-gold); border: 1px dotted var(--hl-mauve);
  background: radial-gradient(circle at 50% 40%, rgba(211,168,76,.16), transparent 70%);
}
.hl-person-name { font-family: "Prata", serif; font-size: 20px; color: var(--hl-gold-soft); line-height: 1.35; }
.hl-person-parents { margin-top: 9px; font-size: 13px; line-height: 1.65; }
.hl-person-ig { margin-top: 6px; font-size: 12px; letter-spacing: .06em; color: var(--hl-mauve); }
.hl-junct { text-align: center; color: var(--hl-gold); font-size: 21px; margin: 14px 0; }

/* ── events ── */
.hl-events { background: linear-gradient(180deg, var(--hl-bg-deep), var(--hl-bg)); }
.hl-event { border: 1px solid rgba(211,168,76,.3); padding: 24px 20px; margin-bottom: 18px; position: relative; }
.hl-event::after { content: ""; position: absolute; inset: 5px; border: 1px dotted rgba(154,123,140,.3); pointer-events: none; }
.hl-event-no { font-family: "Prata", serif; font-size: 13px; letter-spacing: .34em; color: var(--hl-mauve); }
.hl-event-title { font-family: "Prata", serif; font-weight: 400; font-size: 22px; color: var(--hl-gold-soft); margin-top: 3px; }
.hl-event-time { font-size: 13.5px; font-weight: 500; letter-spacing: .05em; color: var(--hl-gold); margin-top: 5px; }
.hl-event-venue { font-size: 14.5px; font-weight: 400; color: var(--hl-ink); margin-top: 11px; }
.hl-event-addr { font-size: 12.5px; line-height: 1.6; margin-top: 3px; position: relative; z-index: 1; }
.hl-cal { margin-top: 13px; display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.hl-cal a { font-size: 11.5px; font-weight: 500; letter-spacing: .05em; text-decoration: none; color: var(--hl-gold); border-bottom: 1px solid rgba(211,168,76,.5); padding-bottom: 2px; }
.hl-maps { margin-top: 24px; position: relative; z-index: 1; }
.hl-map-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.hl-map-tab {
  appearance: none; cursor: pointer; border: 1px solid rgba(211,168,76,.45); background: transparent;
  color: var(--hl-gold); font-family: "Jost", sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; padding: 10px 0;
}
.hl-map-tab:first-child { border-right: none; }
.hl-map-tab.is-active { background: var(--hl-gold); color: var(--hl-bg-deep); }
.hl-map { display: block; width: 100%; height: 220px; border: 1px solid rgba(211,168,76,.45); filter: grayscale(.4) sepia(.15); }
.hl-maplink { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--hl-mauve); }

/* ── story ── */
.hl-story { list-style: none; max-width: 360px; margin: 0 auto; }
.hl-story-item { position: relative; padding: 4px 0 26px 40px; border-left: 1px solid rgba(211,168,76,.3); margin-left: 8px; }
.hl-story-item:last-child { padding-bottom: 4px; }
.hl-story-item::before {
  content: ""; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid var(--hl-gold); background: var(--hl-bg);
}
.hl-story-item:nth-child(2)::before { background: linear-gradient(90deg, transparent 50%, var(--hl-gold) 50%); }
.hl-story-item:nth-child(n+3)::before { background: var(--hl-gold); box-shadow: 0 0 8px rgba(211,168,76,.55); }
.hl-story-year { font-family: "Prata", serif; font-size: 14px; color: var(--hl-gold); letter-spacing: .1em; }
.hl-story-title { font-family: "Prata", serif; font-weight: 400; font-size: 17.5px; color: var(--hl-ink); margin-top: 4px; }
.hl-story-text { font-size: 13.5px; line-height: 1.7; margin-top: 6px; }

/* ── gallery ── */
.hl-gal-sec { background: linear-gradient(180deg, var(--hl-bg), var(--hl-bg-deep)); }
.hl-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hl-g-item {
  cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid rgba(211,168,76,.35); transition: transform .3s ease, box-shadow .3s ease;
}
.hl-g-item:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 26px -12px rgba(232,206,143,.4); }
.hl-g-item svg { display: block; width: 100%; height: 100%; }
.hl-g-item { color: #D3A84C; }

/* ── forms ── */
.hl-form { display: grid; gap: 16px; }
.hl-field { display: grid; gap: 6px; border: none; }
.hl-field span, .hl-field legend { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--hl-mauve); }
.hl-field input, .hl-field select, .hl-field textarea {
  font-family: "Jost", sans-serif; font-size: 14.5px; color: var(--hl-ink);
  background: rgba(27,15,26,.6); border: 1px solid rgba(154,123,140,.4);
  padding: 11px 13px; outline: none; width: 100%; transition: border-color .2s ease;
}
.hl-field input:focus, .hl-field select:focus, .hl-field textarea:focus { border-color: var(--hl-gold); }
.hl-field ::placeholder { color: rgba(201,175,188,.5); }
.hl-radios label { display: flex; gap: 9px; align-items: center; font-size: 14px; padding: 5px 0; }
.hl-radios input { accent-color: var(--hl-gold); width: 16px; height: 16px; }
.hl-submit {
  justify-self: center; appearance: none; cursor: pointer; background: transparent;
  border: 1px solid var(--hl-gold); color: var(--hl-gold);
  font-family: "Jost", sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; padding: 13px 34px;
  transition: background .25s ease, color .25s ease;
}
.hl-submit:hover { background: var(--hl-gold); color: var(--hl-bg-deep); }
.hl-thanks { text-align: center; font-family: "Prata", serif; font-size: 16px; line-height: 1.7; color: var(--hl-gold-soft); padding: 26px 10px; }

/* ── wishes ── */
.hl-wish-form { margin-bottom: 28px; }
.hl-wishes { display: grid; gap: 10px; margin-bottom: 16px; }
[data-wishes-list] .wish {
  border: 1px solid rgba(211,168,76,.22); border-left: 2px solid var(--hl-gold);
  background: rgba(46,27,43,.45); padding: 13px 16px 11px;
}
[data-wishes-list] .wish h4 { font-family: "Prata", serif; font-weight: 400; font-size: 15px; color: var(--hl-gold-soft); }
[data-wishes-list] .wish p { font-size: 13px; line-height: 1.65; margin-top: 4px; }
[data-wishes-list] .wish time { display: block; font-size: 10.5px; color: var(--hl-mauve); margin-top: 7px; }
.hl-more {
  display: block; margin: 0 auto; appearance: none; cursor: pointer; background: none;
  border: 1px solid rgba(211,168,76,.5); color: var(--hl-gold);
  font-family: "Jost", sans-serif; font-size: 11.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; padding: 9px 22px;
}

/* ── amplop ── */
.hl-amplop { background: linear-gradient(180deg, var(--hl-bg-deep), var(--hl-bg)); }
.hl-amplop-note { text-align: center; font-size: 13px; line-height: 1.75; max-width: 38ch; margin: 0 auto 22px; }
.hl-envs { display: grid; gap: 12px; }
.hl-env { text-align: center; position: relative; padding: 22px 18px 19px; border: 1px solid rgba(211,168,76,.35); background: radial-gradient(circle at 50% 0%, rgba(211,168,76,.08), transparent 60%), var(--hl-bg-deep); }
.hl-env::before { content: ""; position: absolute; inset: 5px; border: 1px dotted rgba(154,123,140,.4); pointer-events: none; }
.hl-env-name { font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--hl-mauve); }
.hl-env-num { font-family: "Prata", serif; font-size: 23px; letter-spacing: .05em; color: var(--hl-gold-soft); margin-top: 8px; }
.hl-env-holder { font-size: 12px; margin-top: 4px; }
.hl-copy {
  margin-top: 13px; appearance: none; cursor: pointer; background: var(--hl-gold); color: var(--hl-bg-deep);
  border: none; font-family: "Jost", sans-serif; font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; padding: 8px 18px;
}

/* ── closing ── */
.hl-closing { text-align: center; padding: 56px 28px 34px; background: radial-gradient(ellipse at 50% 120%, rgba(211,168,76,.1), transparent 60%), var(--hl-bg-deep); }
.hl-close-moon { width: 48px; height: 48px; }
.hl-closing-text { font-size: 13px; line-height: 1.8; max-width: 36ch; margin: 20px auto 24px; }
.hl-closing-family { font-family: "Prata", serif; font-size: 30px; color: var(--hl-ink); }
.hl-closing-family span { display: block; font-size: 13px; color: var(--hl-mauve); margin-top: 6px; }
.hl-closing-wass { margin-top: 20px; font-family: "Prata", serif; font-size: 13.5px; color: var(--hl-gold); }

/* ── music toggle (visible after open) ── */
.hl-music {
  position: fixed; right: 18px; bottom: 22px; z-index: 90; width: 44px; height: 44px;
  background: rgba(27,15,26,.85); color: var(--hl-gold);
  border: 1px solid rgba(211,168,76,.5); border-radius: 50%;
  cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s;
}
body.is-open .hl-music { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.hl-music svg { width: 20px; height: 20px; }
.hl-music.is-playing { animation: hl-pulse 2.6s ease infinite; }
@keyframes hl-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(211,168,76,.4); } 60% { box-shadow: 0 0 0 11px rgba(211,168,76,0); } }

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

/* ── lightbox restyle ── */
.lb-overlay { background: rgba(27,15,26,.94) !important; font-family: "Jost", sans-serif; }
.lb-stage img { outline: 1px solid rgba(211,168,76,.5); }
.lb-cap { color: var(--hl-ink-dim) !important; font-style: italic; }

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}