/* UndanganPiyo - tema Plum: plum & krem romantis */
:root {
    --pl-primary: #63343E;
    --pl-cream: #E9D8BC;
    --pl-olive: #2B411C;
    --pl-white: #fff;
    --pl-ink: #3b2a2d;
    --pl-soft: color-mix(in srgb, var(--pl-cream) 45%, #fff);
    --pl-script: 'Pinyon Script', cursive;
    --pl-cap-font: 'Cinzel', serif;
    --pl-body: 'Nunito', system-ui, sans-serif;
    --pl-w: 440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.pl {
    margin: 0; font-family: var(--pl-body); font-size: 15px; line-height: 1.7; color: var(--pl-ink);
    background: color-mix(in srgb, var(--pl-primary) 88%, #000);
    -webkit-font-smoothing: antialiased;
}
.pl img { max-width: 100%; display: block; }
.pl a { color: inherit; }

/* Utilitas tipografi */
.pl-script { font-family: var(--pl-script); font-weight: 400; color: var(--pl-primary); line-height: 1.15; margin: 0; }
.pl-cap {
    font-family: var(--pl-cap-font); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
    color: var(--pl-primary); margin: 0 0 8px;
}
.pl-title {
    font-family: var(--pl-cap-font); font-weight: 500; font-size: 21px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--pl-primary); margin: 0;
}
.pl-title-script { font-family: var(--pl-script); text-transform: none; letter-spacing: 0; font-size: 52px; line-height: 1.1; }
.pl-rule { width: 120px; height: 1px; background: var(--pl-primary); margin: 14px auto 22px; position: relative; }
.pl-rule::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
    background: var(--pl-cream); border: 1px solid var(--pl-primary); transform: translate(-50%, -50%) rotate(45deg);
}
.pl-rule-sm { width: 70px; margin: 14px auto; }
.pl-lead { font-size: 14.5px; margin: 0 0 18px; }
.pl-sprig { display: block; width: 120px; height: 40px; margin: 6px auto; color: var(--pl-primary); opacity: .85; }
.pl-branch { position: absolute; width: 70px; height: 112px; color: var(--pl-primary); opacity: .55; pointer-events: none; }

/* Tombol */
.pl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 24px; border-radius: 999px; border: 1px solid var(--pl-primary);
    background: var(--pl-primary); color: var(--pl-cream) !important; text-decoration: none; cursor: pointer;
    font-family: var(--pl-body); font-size: 14px; font-weight: 600; letter-spacing: .03em;
    transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--pl-primary) 30%, transparent);
}
.pl-btn:hover { transform: translateY(-2px); background: var(--pl-olive); border-color: var(--pl-olive); }
.pl-btn-sm { padding: 8px 18px; font-size: 13px; }
.pl-btn-block { width: 100%; }

/* Sampul */
.pl-cover {
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: var(--pl-cream);
}
.pl-cover-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    filter: blur(14px) saturate(.8); transform: scale(1.1); opacity: .35;
}
.pl-cover-inner {
    position: relative; width: 100%; max-width: var(--pl-w); height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 32px 24px; text-align: center;
    background: color-mix(in srgb, var(--pl-cream) 88%, transparent);
    border-left: 1px solid color-mix(in srgb, var(--pl-primary) 25%, transparent);
    border-right: 1px solid color-mix(in srgb, var(--pl-primary) 25%, transparent);
    animation: pl-fade 1.2s ease both;
}
.pl-branch-l { left: 6px; top: 18px; transform: rotate(-12deg); }
.pl-branch-r { right: 6px; bottom: 18px; transform: rotate(168deg); }
.pl-cover-arch {
    width: 170px; height: 230px; border-radius: 999px 999px 0 0; overflow: hidden; margin: 10px 0 18px;
    border: 1px solid var(--pl-primary); padding: 6px; background: var(--pl-white);
    animation: pl-rise 1.4s .2s ease both;
}
.pl-cover-arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; }
.pl-cover h1 { font-size: 50px; animation: pl-rise 1.4s .4s ease both; }
.pl-guest { margin: 10px 0 22px; display: flex; flex-direction: column; gap: 4px; }
.pl-guest small { font-size: 12.5px; }
.pl-guest strong { font-size: 19px; color: var(--pl-primary); font-weight: 700; }
.pl-guest .pl-guest-note { font-size: 11px; opacity: .7; font-style: italic; }

/* Kolom utama */
.pl-main {
    max-width: var(--pl-w); margin: 0 auto; background: var(--pl-soft); overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, .35); min-height: 100vh;
}
.pl-section { position: relative; padding: 64px 24px; text-align: center; }

/* Hero */
.pl-hero { position: relative; text-align: center; background: var(--pl-cream); }
.pl-hero-photo {
    height: 62vh; min-height: 380px; background-size: cover; background-position: center;
    position: relative;
}
.pl-hero-photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 45%, var(--pl-cream) 100%);
}
.pl-hero-body { position: relative; margin-top: -90px; padding: 0 24px 54px; }
.pl-hero-names { font-size: 58px; }
.pl-hero-events { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.pl-hero-events li {
    display: flex; flex-direction: column; padding: 10px 0;
    border-top: 1px solid color-mix(in srgb, var(--pl-primary) 35%, transparent);
}
.pl-hero-events li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--pl-primary) 35%, transparent); }
.pl-hero-events span { font-family: var(--pl-cap-font); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--pl-primary); }
.pl-hero-events b { font-family: var(--pl-cap-font); font-weight: 500; font-size: 20px; letter-spacing: .1em; color: var(--pl-olive); }

/* Hitung mundur */
.pl-count { background: var(--pl-soft); }
.pl-arch-frame {
    border: 1px solid var(--pl-primary); border-radius: 220px 220px 18px 18px;
    padding: 64px 22px 32px; background: var(--pl-white); position: relative;
}
.pl-arch-frame::before {
    content: ''; position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, var(--pl-primary) 30%, transparent);
    border-radius: 212px 212px 12px 12px; pointer-events: none;
}
.pl-greet-title { font-weight: 700; color: var(--pl-primary); margin: 0 0 8px; }
.pl-quote { margin: 0 0 22px; padding: 16px; background: var(--pl-cream); border-radius: 12px; }
.pl-quote p { margin: 0; font-style: italic; font-size: 14px; }
.pl-quote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; font-size: 13px; color: var(--pl-primary); }
.pl-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 22px; }
.pl-countdown div {
    background: var(--pl-primary); color: var(--pl-cream); border-radius: 12px 12px 4px 4px; padding: 12px 4px;
    display: flex; flex-direction: column; align-items: center;
}
.pl-countdown b { font-family: var(--pl-cap-font); font-size: 24px; font-weight: 500; line-height: 1.2; }
.pl-countdown span { font-size: 11px; letter-spacing: .08em; }

/* Mempelai */
.pl-couple { background: var(--pl-cream); }
.pl-person { position: relative; padding: 10px 0; }
.pl-person-arch {
    width: 210px; height: 280px; margin: 0 auto 18px; padding: 7px; background: var(--pl-white);
    border: 1px solid var(--pl-primary); border-radius: 999px 999px 0 0;
}
.pl-person-arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; }
.pl-person-branch { left: 18px; top: 150px; transform: rotate(-8deg); }
.pl-person-branch.is-r { left: auto; right: 18px; transform: scaleX(-1) rotate(-8deg); }
.pl-person h3 { font-size: 46px; }
.pl-fullname { font-family: var(--pl-cap-font); font-size: 15px; letter-spacing: .06em; color: var(--pl-primary); margin: 4px 0 6px; font-weight: 600; }
.pl-child { margin: 0; font-size: 13.5px; }
.pl-parents { margin: 0 0 12px; font-weight: 700; font-size: 14px; }
.pl-desc { font-size: 13.5px; margin: 0 0 12px; opacity: .85; }
.pl-amp { font-size: 72px; margin: 18px 0 8px; color: var(--pl-olive); }

/* Acara */
.pl-events { background: var(--pl-soft); }
.pl-event {
    position: relative; background: var(--pl-white); border: 1px solid var(--pl-primary);
    border-radius: 200px 200px 16px 16px; padding: 46px 22px 28px; margin-bottom: 24px;
}
.pl-event h3 { font-size: 42px; margin-bottom: 12px; }
.pl-datebadge {
    display: inline-flex; flex-direction: column; align-items: center; gap: 0;
    padding: 12px 28px; border-top: 1px solid var(--pl-primary); border-bottom: 1px solid var(--pl-primary);
    color: var(--pl-primary); margin-bottom: 12px;
}
.pl-datebadge b { font-family: var(--pl-cap-font); font-weight: 500; font-size: 56px; line-height: 1; }
.pl-db-day, .pl-db-month { font-family: var(--pl-cap-font); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.pl-db-year { font-family: var(--pl-cap-font); font-size: 16px; letter-spacing: .3em; color: var(--pl-olive); }
.pl-time { margin: 0; font-weight: 700; color: var(--pl-olive); }
.pl-venue { margin: 0; font-weight: 700; font-size: 15.5px; color: var(--pl-primary); }
.pl-address { margin: 0 0 16px; font-size: 13.5px; }
.pl-live { border-radius: 16px; padding-top: 28px; }

/* Galeri */
.pl-gallery { background: var(--pl-cream); }
.pl-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pl-gallery-grid a { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--pl-primary) 35%, transparent); }
.pl-gallery-grid a.is-wide { grid-column: span 2; aspect-ratio: 16 / 10; }
.pl-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pl-gallery-grid a:hover img { transform: scale(1.06); }
.pl-video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 10px; border-radius: 8px; overflow: hidden; border: 1px solid var(--pl-primary); }
.pl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Cerita */
.pl-story { background: var(--pl-soft); }
.pl-timeline { position: relative; text-align: left; padding-left: 28px; }
.pl-timeline::before { content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 1px; background: var(--pl-primary); }
.pl-tl-item {
    position: relative; margin-bottom: 26px; background: var(--pl-white); padding: 16px;
    border-radius: 12px; border: 1px solid color-mix(in srgb, var(--pl-primary) 30%, transparent);
}
.pl-tl-dot {
    position: absolute; left: -26px; top: 18px; width: 13px; height: 13px; border-radius: 50%;
    background: var(--pl-cream); border: 1px solid var(--pl-primary); box-shadow: 0 0 0 3px var(--pl-soft);
}
.pl-tl-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--pl-primary); }
.pl-tl-img { border-radius: 8px; overflow: hidden; margin-bottom: 12px; aspect-ratio: 16 / 10; }
.pl-tl-img img { width: 100%; height: 100%; object-fit: cover; }
.pl-tl-date {
    display: inline-block; font-family: var(--pl-cap-font); font-size: 11.5px; letter-spacing: .12em;
    background: var(--pl-primary); color: var(--pl-cream); padding: 2px 12px; border-radius: 999px;
}
.pl-tl-item h3 { margin: 6px 0 4px; color: var(--pl-primary); font-size: 17px; }
.pl-tl-item p { margin: 0; font-size: 13.5px; }

/* Wishes */
.pl-wishes { background: var(--pl-cream); }
.pl-wishes .pl-title { font-family: var(--pl-cap-font); letter-spacing: .3em; }
.pl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.pl-stats div {
    background: var(--pl-white); border: 1px solid var(--pl-primary); border-radius: 10px; padding: 12px 4px;
    display: flex; flex-direction: column; align-items: center;
}
.pl-stats b { font-family: var(--pl-cap-font); font-size: 24px; color: var(--pl-primary); font-weight: 600; line-height: 1.2; }
.pl-stats span { font-size: 11px; line-height: 1.3; }
.pl-stats div:nth-child(2) b { color: var(--pl-olive); }
.pl-form { background: var(--pl-white); border-radius: 16px; padding: 20px; text-align: left; border: 1px solid color-mix(in srgb, var(--pl-primary) 30%, transparent); }
.pl-form .inv-field { margin-bottom: 14px; }
.pl-label { display: block; font-size: 13px; font-weight: 700; color: var(--pl-primary); margin-bottom: 6px; }
.pl-input {
    width: 100%; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--pl-primary) 40%, transparent);
    border-radius: 10px; background: var(--pl-soft); font: inherit; font-size: 14px; color: var(--pl-ink);
}
.pl-input:focus { outline: none; border-color: var(--pl-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pl-primary) 15%, transparent); }
.pl-wishes-wrap { margin-top: 26px; text-align: left; }
.pl-wishes-head { font-family: var(--pl-cap-font); font-size: 15px; letter-spacing: .1em; color: var(--pl-primary); text-align: center; margin: 0 0 12px; }
.pl-wish-list {
    max-height: 420px; overflow-y: auto; background: var(--pl-white); border-radius: 16px; padding: 6px 16px;
    border: 1px solid color-mix(in srgb, var(--pl-primary) 30%, transparent);
}
.pl-wish { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--pl-primary) 15%, transparent); }
.pl-wish:last-child { border-bottom: 0; }
.pl-wish-avatar {
    flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--pl-primary); color: var(--pl-cream);
    display: flex; align-items: center; justify-content: center; font-family: var(--pl-cap-font); font-weight: 600;
}
.pl-wish strong { color: var(--pl-primary); font-size: 14px; }
.pl-wish em { font-style: normal; font-size: 11px; background: var(--pl-cream); padding: 1px 8px; border-radius: 999px; margin-left: 4px; }
.pl-wish p { margin: 4px 0; font-size: 13.5px; word-wrap: break-word; }
.pl-wish small { font-size: 11px; opacity: .6; }
.pl-empty { text-align: center; font-size: 13px; opacity: .7; padding: 14px 0; margin: 0; }

/* Hadiah */
.pl-gift { background: var(--pl-soft); }
.pl-gift-box {
    display: grid; gap: 14px; max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .8s ease, opacity .6s ease, margin .6s ease;
}
.pl-gift-box.is-open { max-height: 2000px; opacity: 1; margin-top: 22px; }
.pl-gift-card {
    position: relative; background: var(--pl-white); border: 1px solid var(--pl-primary); border-radius: 14px;
    padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 2px; overflow: hidden;
}
.pl-gift-card::before {
    content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
    background: var(--pl-cream); opacity: .6;
}
.pl-gift-bank { position: relative; margin: 0 0 6px; font-family: var(--pl-cap-font); font-size: 17px; letter-spacing: .14em; text-transform: uppercase; color: var(--pl-primary); font-weight: 600; }
.pl-gift-card small { font-size: 12px; opacity: .75; }
.pl-gift-card strong { font-size: 21px; letter-spacing: .08em; color: var(--pl-olive); }
.pl-gift-card span { font-size: 13.5px; margin-bottom: 10px; }
.pl-gift-addr { font-size: 13.5px; margin: 4px 0 12px; }

/* Penutup */
.pl-footer { position: relative; background: var(--pl-primary); color: var(--pl-cream); text-align: center; }
.pl-footer-photo { height: 340px; background-size: cover; background-position: center; position: relative; }
.pl-footer-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--pl-primary)); }
.pl-footer-body { position: relative; padding: 10px 24px 40px; }
.pl-footer .pl-cap, .pl-footer .pl-script, .pl-footer .pl-sprig { color: var(--pl-cream); }
.pl-footer .pl-lead { color: var(--pl-cream); opacity: .9; }
.pl-footer-names { font-size: 54px; margin: 6px 0; }
.pl-footer-branch { color: var(--pl-cream); right: 14px; top: -60px; opacity: .35; transform: scaleX(-1); }
.pl-signature { font-size: 14px; opacity: .9; margin: 0 0 6px; }
.pl-credit { font-size: 12px; opacity: .7; margin: 18px 0 0; }
.pl-credit a { color: var(--pl-cream); font-weight: 700; }

@keyframes pl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pl-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 360px) {
    .pl-hero-names, .pl-footer-names { font-size: 46px; }
    .pl-cover h1 { font-size: 42px; }
    .pl-countdown b { font-size: 20px; }
    .pl-datebadge b { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
    .pl-cover-inner, .pl-cover-arch, .pl-cover h1 { animation: none; }
}
