:root {
    --site-bg: #f3e9e7;
    --page-width: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--site-bg);
    color: #352d2d;
    font-family: 'Montserrat', Arial, sans-serif;
    overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }

.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    background: #120f12;
    opacity: 1;
    transition: opacity .8s ease, visibility .8s ease;
}
.intro-overlay.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.intro-backdrop {
    position: absolute;
    inset: -4%;
    width: 108%;
    height: 108%;
    object-fit: cover;
    filter: blur(28px) brightness(.55) saturate(.85);
    transform: scale(1.08);
}
.intro-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 25%, rgba(0,0,0,.22) 100%);
    pointer-events: none;
}
.intro-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1;
}
.intro-video {
    width: min(100vw, calc(100vh * 9 / 16));
    height: min(100vh, calc(100vw * 16 / 9));
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    background: #000;
    box-shadow: 0 0 80px rgba(0,0,0,.25);
}
.intro-control {
    position: absolute;
    z-index: 3;
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
    background: rgba(15,10,14,.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.intro-control:hover { background: rgba(15,10,14,.68); }
.intro-control:active { transform: scale(.97); }
.sound-control { left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); }
.skip-control { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
.intro-fallback {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.35);
}
.intro-fallback[hidden] { display: none; }
.intro-fallback button {
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 999px;
    color: #fff;
    background: rgba(0,0,0,.45);
    padding: 12px 20px;
}

.wedding-site {
    width: 100%;
    max-width: var(--page-width);
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 42px rgba(68, 45, 45, .08);
    overflow: hidden;
}
.site-section-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.site-section-stage {
    position: relative;
    width: 1080px;
    transform-origin: 0 0;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.site-element {
    position: absolute;
    transform-origin: center center;
}
.site-element.text-element {
    white-space: pre-wrap;
    overflow-wrap: break-word;
}
.site-element.image-element img {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.site-element.map-element {
    overflow: hidden;
    background: #eee;
}
.site-element.map-element iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.map-open-link {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    text-decoration: none;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #4a3a3a;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}

@media (max-width: 760px) {
    .wedding-site { max-width: none; box-shadow: none; }
}
@media (max-width: 700px) {
    .intro-backdrop { display: none; }
    .intro-video {
        width: 100vw;
        height: 100dvh;
        object-fit: cover;
        max-width: none;
        max-height: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .intro-overlay { transition: none; }
}

.music-toggle {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 9000;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(82,54,62,.82);
    color: #fff;
    font: 600 12px/1 'Montserrat', sans-serif;
    box-shadow: 0 8px 28px rgba(0,0,0,.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}
.music-toggle.is-playing { background: rgba(132,65,83,.92); }
.youtube-music-player {
    position: fixed;
    width: 1px; height: 1px;
    left: -10px; bottom: -10px;
    opacity: .01;
    pointer-events: none;
    border: 0;
}

/* 2026-09-29: uploaded video elements + entrance animations */
.site-element.video-element {
    overflow: hidden;
}
.site-element.video-element video {
    display: block;
    width: 100%;
    height: 100%;
    background: #111;
}
.guest-inline-control{display:block;cursor:text;min-width:0}.guest-submit-element button{cursor:pointer}.guest-inline-control:focus{outline:2px solid #aa7b8b;outline-offset:2px}
