:root {
  --gold: #b18b41;
  --gold-light: #d9bb70;
  --ink: #292929;
  --paper: #fffefa;
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Sangkuriang", "Cinzel Decorative", Georgia, serif;
}

@font-face {
  font-family: "Sangkuriang";
  src: url("https://shareinvitation.net/wp-content/uploads/2024/07/Sangkuriang.woff") format("woff");
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.locked { overflow: hidden; }
html.auto-scrolling { scroll-behavior: auto; }
body { margin: 0; color: #292929; background: var(--paper); font-family: var(--serif); font-size: 18px; line-height: 1.35; }
body.locked { height: 100svh; overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.cover { min-height: 100svh; display: grid; place-items: center; position: relative; z-index: 1; overflow: auto; color: #fff; background: #222 url("assets/cover-iwa.jpeg") center/cover; padding: max(2rem, env(safe-area-inset-top)) 1.25rem max(2rem, env(safe-area-inset-bottom)); }
.cover.is-open .cover__button { display: none; }
.cover__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.36)), rgba(0,0,0,.2); }
.cover__content { z-index: 1; width: min(1140px, 92vw); min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(.55rem, 1.45vh, 1rem); text-align: center; transform: none; animation: cover-in 1.2s ease both; }
.cover h1, h2, h3 { font-weight: 500; }
.cover h1 { color: var(--gold-light); font-family: var(--display); font-size: clamp(2.2rem, 5.1vw, 65px); line-height: 1; letter-spacing: normal; margin: .3rem auto 1.5rem; max-width: 100%; text-shadow: 0 2px 16px #0008; }
.cover h1 span { color: #fff; font-family: var(--serif); }
.cover .sunda-mark { margin: 0 0 .15rem; }
.cover .eyebrow { height: auto; margin: 0; line-height: 1.2; }
.cover h1 { min-height: 0; margin: 0; line-height: 1.05; overflow-wrap: anywhere; }
.cover__copy { margin: 0; font-size: 16px; line-height: 22px; white-space: pre-line; }
.cover__guest { margin: 0; color: var(--gold-light); font-size: 15px; line-height: 20px; white-space: pre-line; }
.cover.has-guest .cover__content { min-height: 0; }
.cover__date { min-height: 20px; font-weight: 600; font-size: 20px; line-height: 1.25; margin: .25rem 0 0; }
.cover__button { margin-top: clamp(.45rem, 1.8vh, 1.15rem); }
.eyebrow { margin: 0 0 .5rem; font-size: .98rem; }
.sunda-mark { display: block; width: 92px; height: 108px; margin: 0 auto 1rem; object-fit: contain; filter: drop-shadow(0 4px 7px rgba(177,139,65,.15)); }
.sund-mark--wayang { width: 136px; height: 120px; margin-bottom: 2rem; }
.sund-mark--gunungan { width: 84px; height: 112px; }
.section { padding: 7.5rem 6vw; position: relative; overflow: hidden; }
.section--light { background: var(--paper); }
.section--light::before { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: url("https://shareinvitation.net/wp-content/uploads/2024/07/Jawa-Patterns.png") repeat; background-size: 700px; opacity: .08; }
.section--dark { color: #fff; background: #292929; }
.section--dark:not(.countdown-section)::before { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: url("https://shareinvitation.net/wp-content/uploads/2024/07/Jawa-Patterns-1.png") repeat; background-size: 700px; opacity: .05; }
.section--light > *, .section--dark > * { position: relative; z-index: 1; }
.section-heading { max-width: 960px; margin: 0 auto 3.8rem; text-align: center; }
.section-heading h2 { margin: .2rem 0 .8rem; color: var(--gold); font-family: var(--display); font-size: clamp(2.1rem, 5vw, 4.1rem); line-height: 1.15; }
.section-heading p { margin: .35rem auto; max-width: 980px; }
.section-heading--dark h2 { color: var(--gold-light); }
.couple { padding-bottom: 9.5rem; min-height: 1118px; }
.couple-grid { width: min(1050px, 100%); margin: auto; display: grid; grid-template-columns: 1fr 110px 1fr; gap: 2rem; align-items: end; }
.person { text-align: center; }
.person__photo { width: min(310px, 100%); aspect-ratio: .74; margin: auto; overflow: hidden; border: 10px solid var(--gold); border-radius: 48% 48% 25px 25px; box-shadow: 0 10px 34px rgba(177,139,65,.15); background: #eee8df; }
.person__photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.person h3 { color: var(--gold); font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 2.1rem); margin: 1.1rem 0 .15rem; }
.person p { margin: 0 0 .4rem; }
.person small { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .22rem; font-size: .98rem; line-height: 1.45; text-align: center; }
.person small .parent-father,
.person small .parent-mother { display: block; width: 100%; text-align: center; }
.ampersand { color: var(--ink); font-family: var(--display); font-size: 5rem; text-align: center; padding-bottom: 10rem; }
.countdown-section { height: auto; min-height: 840px; overflow: hidden; text-align: center; background: #151515 url("assets/cover-iwa.jpeg") center/cover fixed; }
.countdown-section::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.64); }
.countdown-section > * { position: relative; }
.countdown { width: min(820px, 100%); margin: 2rem auto 2.2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.countdown strong { display: block; color: #fff; font-family: var(--display); font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 400; }
.countdown span { color: var(--gold-light); display: block; font-size: 1.05rem; }
blockquote { max-width: 1000px; margin: 4rem auto 0; text-align: center; font-size: 1.18rem; }
blockquote cite { display: block; color: var(--gold-light); font-family: var(--display); font-size: 1rem; font-style: normal; margin-top: 1.3rem; }
.gold-button { display: inline-flex; min-height: 2.55rem; align-items: center; justify-content: center; padding: .55rem 1.25rem; border: 0; border-radius: 999px; color: #fff; background: var(--gold); text-decoration: none; font-family: var(--serif); font-size: .9rem; cursor: pointer; transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.gold-button:hover { background: #9c782f; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(177,139,65,.25); }
.event-grid { width: min(1040px, 100%); margin: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; align-items: stretch; }
.event-card { --event-safe-width: min(100%, 20rem); min-height: 390px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .35rem; overflow: hidden; text-align: center; padding: clamp(2.5rem, 6vw, 3.5rem) 1.6rem 2rem; border-radius: 48% 48% 0 0; background: rgba(255,255,255,.92); box-shadow: 0 8px 30px rgba(45,36,21,.12); }
.event-icon { flex: 0 0 auto; margin-bottom: .25rem; color: var(--gold); font-size: 4rem; line-height: 1; }
.event-card h3 { width: var(--event-safe-width); max-width: 84%; color: var(--gold); font-family: var(--display); font-size: clamp(1.35rem, 2.35vw, 2.1rem); line-height: 1.14; overflow-wrap: anywhere; text-wrap: balance; margin: .3rem auto .65rem; }
.event-card p, .event-date { width: var(--event-safe-width); max-width: 100%; }
.event-card p { margin: .2rem 0; overflow-wrap: anywhere; }
.event-location { color: var(--gold); font-weight: 600; }
.event-address, .event-notes { max-width: 34rem; font-size: .95rem; overflow-wrap: anywhere; }
.event-notes { font-style: italic; color: #666; }
.event-map-button { flex: 0 0 auto; margin-top: .95rem; }
.event-map-frame { width: min(100%, 23rem); height: 210px; flex: 0 0 210px; margin: 1.2rem 0 0; border-width: 6px; }
.event-date { display: flex; flex-direction: column; align-items: center; color: var(--gold); line-height: 1; }
.event-date span { font-size: 1rem; }
.event-date strong { font-size: 4rem; font-weight: 500; }
.venue { margin: 5rem auto 0; max-width: 960px; text-align: center; }
.venue h3 { color: var(--gold); font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3rem); margin: .3rem 0; }
.venue p { max-width: 700px; margin: .6rem auto 1.3rem; }
.map-frame { height: 300px; margin: 1.5rem 0; border: 10px solid #fff; box-shadow: 0 8px 26px rgba(45,36,21,.12); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: saturate(.72) sepia(.15); }
.story { height: 973px; min-height: 0; overflow: hidden; }
.story-list { width: min(1110px, 100%); margin: auto; display: grid; gap: 1.2rem; }
.story-list article { padding: 1.3rem 1.6rem; color: #333; background: #fff; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.story-list h3 { color: var(--gold); font-family: var(--display); font-size: 1.4rem; margin: 0 0 .7rem; }
.story-list p { margin: 0; }
.gallery-section { min-height: 0; padding-bottom: 6rem; text-align: center; }
.gallery { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1.25rem; width: min(1110px, 100%); margin: 0 auto; text-align: center; }
.gallery-item { position: relative; display: block; flex: 0 1 340px; width: 340px; max-width: 100%; margin: 0; border-radius: 6px; overflow: hidden; padding: 0; border: 0; background: #eee8df; cursor: zoom-in; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.gallery:has(.gallery-item:only-child) .gallery-item { flex: 0 1 min(480px, 100%); width: min(480px, 100%); }
.gallery-item img { width: 100%; height: auto; max-width: 100%; display: block; object-fit: contain; object-position: center; transform-origin: center; transition: opacity .25s ease, transform .6s ease; }
.gallery-item.is-loading::after { content: ""; position: absolute; inset: 0; min-height: 180px; background: linear-gradient(110deg, rgba(255,255,255,.28) 18%, rgba(255,255,255,.72) 38%, rgba(255,255,255,.28) 58%); background-size: 220% 100%; animation: gallery-loading 1.1s ease-in-out infinite; }
.gallery-item.is-loading img { opacity: 0; }
.gallery-item.is-error::after { content: "Foto tidak dapat dimuat"; position: absolute; inset: 0; min-height: 120px; display: grid; place-items: center; padding: 1rem; color: #766b5d; font-size: .82rem; text-align: center; background: #eee8df; }
.gallery-item:hover img { transform: scale(1.04); }
.forms-section { min-height: 1468px; padding-top: 6rem; }
.rsvp-form, .wish-form { width: min(1090px, 100%); margin: auto; display: grid; gap: .8rem; }
.rsvp-form { grid-template-columns: 1.6fr .8fr 1.3fr auto; align-items: end; }
input, select, textarea { width: 100%; min-height: 2.7rem; padding: .65rem .85rem; border: 1px solid rgba(177,139,65,.8); border-radius: 4px; color: inherit; background: rgba(255,255,255,.08); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-light); box-shadow: 0 0 0 3px rgba(177,139,65,.18); }
select { color: inherit; }
option { color: #222; }
.gift-block { width: min(1000px, 100%); margin: 6rem auto 0; }
.bank-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.bank-card, .address-card { padding: 2rem; text-align: center; color: #333; background: #fff; border-radius: 9px; }
.bank-logo { color: #1a315d; font-family: Arial, sans-serif; font-size: 2.8rem; font-weight: 700; letter-spacing: -3px; }
.bank-logo[data-bank="bca"] { color: #1261a0; }
.bank-logo[data-bank="bsi"] { color: #00a39a; }
.bank-logo[data-bank="bri"] { color: #00529b; }
.bank-logo[data-bank="bni"] { color: #f58220; }
.bank-logo[data-bank="mandiri"] { color: #1c4380; }
.bank-logo[data-bank="btn"] { color: #0875b9; }
.bank-logo[data-bank="cimb-niaga"] { color: #d71920; }
.bank-logo[data-bank="danamon"] { color: #ef7c22; }
.bank-logo[data-bank="permata"] { color: #00a4a7; }
.bank-logo[data-bank="ocbc"] { color: #d71920; }
.bank-card p { margin: .3rem 0; color: #777; }
.bank-card strong { display: block; font-size: 1.4rem; font-weight: 500; margin: .4rem 0 1.2rem; }
.address-card { max-width: 650px; margin: 2rem auto 0; }
.gift-icon { color: var(--gold); font-size: 3rem; }
.address-card p { margin: .4rem auto 1.3rem; }
.wishes { min-height: 1198px; }
.comment-count { width: min(1090px, 100%); margin: 0 auto .9rem; padding-bottom: .8rem; color: var(--gold); border-bottom: 1px solid rgba(177,139,65,.35); font-size: .95rem; }
.wish-form { grid-template-columns: 1fr 1fr; }
.wish-form textarea { grid-column: 1 / -1; min-height: 150px; resize: vertical; }
.wish-form select { grid-column: 1 / 2; }
.wish-form button { justify-self: end; }
.wish-list { width: min(1090px, 100%); margin: 1.3rem auto; }
.wish-list article { padding: .9rem 1rem; border-bottom: 1px solid rgba(177,139,65,.2); }
.wish-list strong { color: var(--gold); }
.footer { min-height: 886px; text-align: center; padding-top: 6rem; padding-bottom: 6rem; }
.footer h2 { color: var(--gold-light); font-family: var(--display); font-size: clamp(2rem, 5vw, 3.8rem); margin: .2rem 0 1rem; }
.footer small { display: block; color: #aaa; margin-top: 3rem; }
.story[hidden] { display: none !important; }
.music-toggle { position: fixed; z-index: 30; left: 12px; bottom: 13px; width: 31px; height: 31px; border: 2px solid var(--gold-light); border-radius: 50%; color: #fff; background: var(--gold); font-size: 1rem; cursor: pointer; }
.music-toggle.is-playing { animation: pulse 1.6s ease-in-out infinite; }
.auto-scroll-toggle { position: fixed; z-index: 30; right: 12px; bottom: 13px; display: grid; width: 29px; height: 29px; place-items: center; overflow: hidden; box-sizing: border-box; padding: 0; border: 1px solid var(--gold-light); border-radius: 50%; color: var(--gold-light); background: rgba(41,41,41,.82); font-size: 0; line-height: 0; cursor: pointer; opacity: .9; transition: color .25s ease, background .25s ease, transform .25s ease; }
.auto-scroll-toggle svg { width: 14px; height: 14px; display: block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.auto-scroll-toggle svg path { vector-effect: non-scaling-stroke; }
.auto-scroll-toggle:hover { transform: translateY(-2px); }
.auto-scroll-toggle.is-active, .auto-scroll-toggle.is-resume-ready { width: 29px; min-width: 29px; padding: 0; border-radius: 50%; font-size: 0; }
.auto-scroll-toggle.is-active { color: #fff; background: var(--gold); }
.auto-scroll-toggle.is-resume-ready { color: #fff; background: var(--ink); }
.auto-scroll-toggle[hidden] { display: none !important; }
.auto-scroll-toggle:disabled { opacity: .65; cursor: default; }
body.locked .auto-scroll-toggle { display: none; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 25px; padding: .65rem 1rem; color: #fff; background: #252525; border: 1px solid var(--gold); border-radius: 5px; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.lightbox { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 4vw; background: rgba(0,0,0,.9); opacity: 0; visibility: hidden; transition: .25s ease; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1000px, 95vw); max-height: 88vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 15px; right: 25px; border: 0; color: #fff; background: transparent; font-size: 3rem; cursor: pointer; }
.reveal { opacity: 1; transform: none; }
.reveal > * { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible > * { opacity: 1; transform: none; }
@keyframes cover-in { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(177,139,65,.15); } }
@keyframes gallery-loading { to { background-position: -120% 0; } }

@media (max-width: 1024px) {
  .cover__content { width: min(92vw, 46rem); }
  .cover h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 5.5rem 5vw; }
  .couple-grid, .event-grid, .bank-grid { grid-template-columns: 1fr; gap: 2.7rem; }
  .ampersand { padding: 0; margin: -1.4rem 0; font-size: 3.2rem; }
  .person__photo { width: min(250px, 75vw); }
  .countdown { gap: .3rem; }
  .countdown strong { font-size: 1.55rem; }
  .countdown span { font-size: .88rem; }
  .event-card { --event-safe-width: min(100%, 18rem); min-height: 315px; height: auto; padding: 2.15rem 1.15rem 1.8rem; }
  .event-card h3 { max-width: 88%; font-size: clamp(1.3rem, 7vw, 1.8rem); }
  .cover { min-height: 100svh; }
  .cover__content { width: min(100%, 34rem); min-height: 0; gap: .62rem; }
  .cover h1 { font-size: clamp(2rem, 10vw, 3.8rem); }
  .cover__copy { font-size: .95rem; }
  .cover__date { margin-top: .35rem; font-size: 1.05rem; }
  .cover__button { margin-top: .7rem; }
  .event-map-frame { height: 180px; flex-basis: 180px; }
  .gallery { columns: 2 140px; column-gap: .5rem; }
  .gallery-item { margin-bottom: .5rem; min-width: 0; }
  .rsvp-form, .wish-form { grid-template-columns: 1fr; }
  .wish-form textarea, .wish-form select { grid-column: auto; }
  .wish-form button { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
