/* ==========================================================================
   Voal - a bridal veil: layers of tulle cover the opening and lift away when the page opens, sheer sheets drift
   behind the whole page, and lace edges trim the cards; thin, high-contrast capitals and a flowing script
   Palette: --inv-primary (ribbon), --inv-accent (tulle), --inv-bg (ivory or night), --inv-text
   script.js lifts the tulle sheets with the scroll (--vo-breeze)
   ========================================================================== */

.voal {
    --vo-ink-soft: color-mix(in srgb, var(--inv-text) 66%, var(--inv-bg));
    --vo-tint: color-mix(in srgb, var(--inv-accent) 16%, var(--inv-bg));
    --vo-line: color-mix(in srgb, var(--inv-primary) 26%, transparent);
    --vo-card: color-mix(in srgb, var(--inv-surface) 84%, transparent);
    --vo-tulle: color-mix(in srgb, var(--inv-accent) 55%, var(--inv-bg));
    /* the net of the tulle: a fine grid of dots */
    --vo-net: radial-gradient(circle, color-mix(in srgb, var(--inv-primary) 16%, transparent) .7px, transparent 1.2px) 0 0 / 5px 5px;
    --vo-shadow: 0 30px 70px -44px color-mix(in srgb, var(--inv-primary) 60%, transparent);
    --vo-breeze: 0px;
    --kit-radius: 12px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--vo-line);
    font-family: var(--inv-font-body);
    font-size: 1.02rem;
    line-height: 1.75;
    letter-spacing: .01em;
    background: var(--inv-bg);
    overflow-x: clip;
}
.voal h1, .voal h2, .voal h3 { font-family: var(--inv-font-heading); font-weight: 300; line-height: 1.1; }
/* zero specificity, so the template's own heading classes can set their spacing */
:where(.voal) :is(h1, h2, h3) { margin: 0; }
:where(.voal) p { margin: 0 0 .9em; }
.voal a { color: var(--inv-primary); }
.vo-kicker { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 12px; }
.vo-role { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--vo-ink-soft); margin: 0 0 6px; }
.vo-names-line { font-family: var(--inv-font-heading); font-size: 1.6rem; margin: 0; }

/* ---------- Tulle and lace ---------- */
.vo-tulle { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.vo-sheet {
    position: absolute; width: 90vw; height: 70vh; border-radius: 45% 55% 40% 60% / 60% 40% 60% 40%;
    background: var(--vo-net), radial-gradient(closest-side, color-mix(in srgb, var(--vo-tulle) 60%, transparent), transparent);
    opacity: .5; filter: blur(.4px);
    transform: translateY(calc(var(--vo-breeze) * -1));
    transition: transform 1.4s cubic-bezier(.3, .7, .3, 1);
}
.vo-sheet--1 { left: -30vw; top: 4vh; animation: vo-float-1 26s ease-in-out infinite alternate; }
.vo-sheet--2 { right: -36vw; top: 30vh; animation: vo-float-2 32s ease-in-out infinite alternate; }
.vo-sheet--3 { left: 10vw; bottom: -40vh; animation: vo-float-1 38s ease-in-out infinite alternate-reverse; }
@keyframes vo-float-1 { from { rotate: -6deg; translate: 0 0; } to { rotate: 8deg; translate: 8vw 6vh; } }
@keyframes vo-float-2 { from { rotate: 10deg; translate: 0 0; } to { rotate: -6deg; translate: -10vw -4vh; } }
/* A scalloped lace edge: little arcs side by side, each pierced with a dot */
.vo-lace {
    display: block; width: 180px; height: 12px; margin: 14px auto 0;
    background:
        radial-gradient(circle at 50% 0, transparent 2px, var(--vo-line) 2.4px, var(--vo-line) 3px, transparent 3.4px) 0 0 / 12px 12px repeat-x,
        radial-gradient(circle at 50% 0, color-mix(in srgb, var(--inv-primary) 16%, transparent) 6px, transparent 6.5px) 0 0 / 12px 12px repeat-x;
}
.vo-lace--top { position: absolute; left: 0; right: 0; top: 0; width: auto; margin: 0; }
.vo-hero, .vo-main, .vo-footer { position: relative; z-index: 1; }
.vo-hero { z-index: 2; }

/* ---------- Titles ---------- */
.vo-title { margin: 0 auto clamp(30px, 5vw, 52px); text-align: center; }
.vo-title h2 { font-size: clamp(2.2rem, 6.6vw, 3.4rem); font-weight: 200; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Navigation ---------- */
.vo-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; padding: 20px 18px; }
.vo-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; }
.vo-nav a { text-decoration: none; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-text); padding: 6px 0; border-bottom: 1px solid transparent; }
.vo-nav a:hover, .vo-nav a.is-current { color: var(--inv-primary); border-bottom-color: var(--inv-primary); }
.vo-nav .kit-nav-brand { font-family: 'Luxurious Script', cursive; font-size: 2rem; letter-spacing: 0; text-transform: none; color: var(--inv-primary); margin-right: auto; border: 0; line-height: 1; }
.vo-nav.is-stuck { justify-content: space-between; align-items: center; padding: 6px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--inv-bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--vo-line); }
.voal .kit-to-top { border-radius: 50%; background: var(--inv-surface); color: var(--inv-primary); border: 1px solid var(--vo-line); }
@media (max-width: 899px) {
    .vo-nav { justify-content: flex-end; padding: 12px; }
    .vo-nav .kit-nav-toggle { width: 46px; height: 46px; border-radius: 50%; background: var(--vo-card); color: var(--inv-primary); border: 1px solid var(--vo-line); font-size: 1.2rem; }
    .vo-nav .kit-nav-links { display: none; }
    .vo-nav.is-open .kit-nav-links {
        display: flex; flex-direction: column; gap: 12px; position: absolute; top: 66px; left: 12px; right: 12px;
        padding: 24px; border-radius: 18px; background: var(--inv-surface); box-shadow: var(--vo-shadow);
    }
    .vo-nav.is-stuck { padding: 6px 12px; }
}

/* ---------- Hero: the names, then the photo; a veil lifts off them when the page opens ---------- */
.vo-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 110px 16px 70px; overflow: hidden; }
.vo-hero-inner { position: relative; width: min(1000px, 100%); text-align: center; display: grid; justify-items: center; }
.voal .vo-names { font-family: var(--inv-font-heading); font-weight: 200; font-size: clamp(3.6rem, 13vw, 8rem); line-height: .95; letter-spacing: .02em; text-transform: uppercase; display: grid; justify-items: center; overflow-wrap: anywhere; }
.vo-and { font-family: 'Luxurious Script', cursive; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .5em; line-height: 1.1; color: var(--inv-primary); margin: -.05em 0 -.12em; }
.vo-hero-date { font-size: .9rem; letter-spacing: .26em; text-transform: uppercase; margin: 26px 0 4px; }
.vo-hero-place { font-family: var(--inv-font-heading); font-size: 1.3rem; color: var(--vo-ink-soft); margin: 0; }
.voal .vo-subtitle { max-width: 42ch; margin: 18px auto 0; color: var(--vo-ink-soft); }
/* The photo: a wide frame with lace scallops along its top and bottom edges */
.vo-hero-photo { position: relative; margin: 44px 0 0; width: min(880px, 100%); aspect-ratio: 16 / 9; }
.vo-hero-photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
    -webkit-mask: radial-gradient(circle at 50% 0, transparent 7px, #000 7.5px) 0 0 / 18px 50.1% repeat-x, radial-gradient(circle at 50% 100%, transparent 7px, #000 7.5px) 0 100% / 18px 50.1% repeat-x;
    mask: radial-gradient(circle at 50% 0, transparent 7px, #000 7.5px) 0 0 / 18px 50.1% repeat-x, radial-gradient(circle at 50% 100%, transparent 7px, #000 7.5px) 0 100% / 18px 50.1% repeat-x;
}
@media (max-width: 759px) { .vo-hero-photo { aspect-ratio: 4 / 5; width: min(420px, 100%); } }
.vo-veil { position: absolute; inset: 0; z-index: 5; pointer-events: none; display: none; }
.vo-veil span { position: absolute; inset: -10% -20% 0; border-radius: 0 0 50% 50% / 0 0 12% 12%; background: var(--vo-net), linear-gradient(180deg, color-mix(in srgb, var(--vo-tulle) 85%, transparent), color-mix(in srgb, var(--vo-tulle) 55%, transparent)); }
.vo-veil span:nth-child(2) { inset: -10% -10% 4%; opacity: .7; }
.vo-veil span:nth-child(3) { inset: -10% 0 8%; opacity: .5; }
.kit-js .vo-veil { display: block; }
.kit-js .vo-veil span { animation: vo-lift 2.6s cubic-bezier(.6, .05, .3, 1) .5s both; }
.kit-js .vo-veil span:nth-child(2) { animation-delay: .65s; }
.kit-js .vo-veil span:nth-child(3) { animation-delay: .8s; }
@keyframes vo-lift { 0% { transform: none; opacity: 1; } 70% { opacity: .6; } 100% { transform: translateY(-115%) scaleY(.7); opacity: 0; } }

/* ---------- Sections ---------- */
.vo-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.vo-section { padding-top: clamp(80px, 12vw, 130px); }
.vo-card { position: relative; background: var(--vo-card); border: 1px solid var(--vo-line); border-top: 0; border-radius: 4px 4px 18px 18px; box-shadow: var(--vo-shadow); padding-top: 12px; }
.vo-block { position: relative; padding: clamp(44px, 7vw, 74px) clamp(26px, 6vw, 70px) clamp(38px, 6vw, 64px); text-align: center; max-width: 780px; margin: 0 auto; background: var(--vo-net), var(--vo-tint); border-radius: 4px 4px 22px 22px; }
.vo-lead { text-align: center; font-family: var(--inv-font-heading); font-size: 1.32rem; color: var(--vo-ink-soft); max-width: 40ch; margin: 0 auto 26px; }
.voal .vo-welcome-title { font-family: 'Luxurious Script', cursive; font-weight: 400; font-size: clamp(3rem, 9vw, 4.4rem); line-height: 1.1; color: var(--inv-primary); margin-bottom: 10px; }
.vo-block p { font-size: 1.06rem; }
.vo-quote-author { font-family: var(--inv-font-heading); color: var(--inv-primary); }

/* Couple: two oval portraits, the same height, ringed like a cameo */
.vo-couple-grid { display: grid; gap: 48px; justify-items: center; }
.vo-person { text-align: center; max-width: 380px; }
.vo-portrait { margin: 0 auto 24px; width: min(270px, 64vw); aspect-ratio: 4 / 5; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 8px var(--inv-bg), 0 0 0 9px var(--vo-line), var(--vo-shadow); }
.vo-portrait img, .vo-initial { width: 100%; height: 100%; object-fit: cover; }
.vo-initial { display: grid; place-items: center; background: var(--vo-tint); font-family: 'Luxurious Script', cursive; font-size: 6rem; color: var(--inv-primary); }
.vo-person h3 { font-size: 1.6rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.vo-person p { color: var(--vo-ink-soft); }
@media (min-width: 760px) { .vo-couple-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Family */
.vo-family-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); text-align: center; }
.vo-family-item { padding: 30px 22px 24px; }

/* Story */
.vo-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 8vw, 80px); }
.vo-chapter { display: grid; gap: 26px; align-items: center; }
.vo-chapter-photo { margin: 0; aspect-ratio: 4 / 5; max-width: 420px; justify-self: center; width: 100%; border-radius: 200px 200px 6px 6px; overflow: hidden; box-shadow: var(--vo-shadow); }
.vo-chapter-photo img { width: 100%; height: 100%; object-fit: cover; }
.vo-chapter-text h3 { font-size: 2.1rem; margin-bottom: 8px; }
.vo-chapter-text p:not(.vo-kicker) { color: var(--vo-ink-soft); }
@media (min-width: 900px) {
    .vo-chapter { grid-template-columns: 1fr 1fr; gap: 64px; }
    .vo-chapter:nth-child(even) .vo-chapter-photo { order: 2; }
}

/* Programme */
.vo-moments { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.vo-moment { padding: 36px 26px 26px; text-align: center; }
.vo-moment-time { font-family: var(--inv-font-heading); font-weight: 200; font-size: 2.8rem; line-height: 1; color: var(--inv-primary); margin-bottom: 10px; }
.vo-moment h3 { font-size: 1.5rem; margin-bottom: 4px; }
.vo-moment-place { font-weight: 500; margin: 12px 0 0; }
.vo-moment-address, .vo-moment-notes { color: var(--vo-ink-soft); margin: 0; }
.vo-moment-notes { font-style: italic; margin-top: 6px; }
.voal .kit-button { border-radius: 999px; border: 1px solid var(--vo-line); color: var(--inv-primary); background: transparent; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: 9px 18px; text-decoration: none; }
.voal .kit-button:hover { background: var(--inv-primary); color: var(--inv-surface); }

/* Countdown */
.vo-countdown { text-align: center; }
.vo-countdown .kit-countdown { gap: clamp(14px, 4vw, 40px); }
.vo-countdown .kit-countdown-unit { min-width: 0; }
.vo-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-weight: 200; font-size: clamp(2.6rem, 9vw, 4.4rem); line-height: 1; color: var(--inv-primary); }
.vo-countdown .kit-countdown-label { margin-top: 8px; opacity: 1; color: var(--vo-ink-soft); letter-spacing: .2em; }

/* Gallery: an even grid of ovals */
.vo-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 24px); }
.vo-gallery-grid.kit-gallery a { border-radius: 50%; aspect-ratio: 4 / 5; box-shadow: var(--vo-shadow); }
@media (min-width: 760px) { .vo-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* RSVP */
.vo-reply { max-width: 700px; margin: 0 auto; padding: clamp(40px, 6vw, 60px) clamp(24px, 6vw, 54px) clamp(30px, 6vw, 54px); }
.voal .inv-rsvp__intro { font-family: var(--inv-font-heading); font-size: 1.25rem; }
.voal .inv-rsvp__deadline { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); }
.voal .inv-rsvp__choice label { border-radius: 999px; }

/* Info, contact */
.vo-info-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.vo-info-item { padding: 32px 24px 16px; text-align: center; }
.vo-info-item h3 { font-size: 1.5rem; color: var(--inv-primary); margin-bottom: 8px; }
.vo-faq { max-width: 720px; margin: 44px auto 0; text-align: center; }
.vo-faq details { text-align: left; margin-bottom: 12px; padding-top: 0; border: 1px solid var(--vo-line); border-radius: 14px; }
.vo-faq summary { cursor: pointer; list-style: none; padding: 16px 50px 16px 22px; position: relative; font-family: var(--inv-font-heading); font-size: 1.22rem; border-radius: inherit; }
.vo-faq summary::-webkit-details-marker { display: none; }
.vo-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--inv-primary); font-size: 1.4rem; transition: transform .3s; }
.vo-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.vo-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; }
.vo-faq details p { padding: 0 22px; color: var(--vo-ink-soft); }
.vo-faq details p:last-child { padding-bottom: 16px; }
.vo-contact { text-align: center; }
.vo-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 60px; }
.vo-contact-person a { text-decoration: none; }

/* Footer */
.vo-footer { text-align: center; padding: clamp(110px, 16vw, 170px) 16px 80px; }
.vo-footer-message { font-family: var(--inv-font-heading); font-size: 1.4rem; color: var(--vo-ink-soft); }
.vo-footer-names { font-family: 'Luxurious Script', cursive; font-size: clamp(3.4rem, 11vw, 5.6rem); line-height: 1.1; color: var(--inv-primary); margin: 6px 0 10px; }
.vo-hashtag { letter-spacing: .16em; color: var(--inv-primary); }

@media (prefers-reduced-motion: reduce) {
    .vo-sheet, .kit-js .vo-veil span { animation: none; }
    .kit-js .vo-veil { display: none; }
}
