/* ==========================================================================
   Lebădă - a christening on a still lake: a swan glides across the opening with its reflection and a soft wake,
   rings spread on the water behind the whole page (and wherever the guest scrolls), lilies and reeds
   Palette: --inv-primary (deep water), --inv-accent (reflections), --inv-bg (the lake's light), --inv-text
   script.js drops a new ring on the water while the page scrolls
   ========================================================================== */

.lebada {
    --lb-ink-soft: color-mix(in srgb, var(--inv-text) 68%, var(--inv-bg));
    --lb-tint: color-mix(in srgb, var(--inv-accent) 18%, var(--inv-bg));
    --lb-line: color-mix(in srgb, var(--inv-primary) 24%, transparent);
    --lb-water: color-mix(in srgb, var(--inv-accent) 45%, var(--inv-bg));
    --lb-ring: color-mix(in srgb, var(--inv-primary) 30%, transparent);
    --lb-swan: color-mix(in srgb, white 92%, var(--inv-accent));
    --lb-card: color-mix(in srgb, var(--inv-surface) 88%, transparent);
    --lb-shadow: 0 26px 60px -36px color-mix(in srgb, var(--inv-primary) 55%, transparent);
    --kit-radius: 14px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--lb-line);
    font-family: var(--inv-font-body);
    font-size: 1.03rem;
    font-kerning: none; /* Didact Gothic kerns a space before a capital twice as wide */
    line-height: 1.72;
    background: linear-gradient(180deg, var(--inv-bg) 0, color-mix(in srgb, var(--inv-accent) 12%, var(--inv-bg)) 100%) fixed, var(--inv-bg);
    overflow-x: clip;
}
.lebada h1, .lebada h2, .lebada h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1.15; }
/* zero specificity, so the template's own heading classes can set their spacing */
:where(.lebada) :is(h1, h2, h3) { margin: 0; }
.lebada h1, .lebada h2, .lebada h3, .lb-names, .lb-nav .kit-nav-brand, .lb-hero-date, .lb-quote-author, .lb-lead, .lb-pool-initial, .lb-child-born strong, .lb-moment-time, .lb-countdown .kit-countdown-value, .lebada .inv-rsvp__intro, .lb-faq summary, .lb-footer-message, .lb-footer-name { font-kerning: normal; }
:where(.lebada) p { margin: 0 0 .9em; }
.lebada a { color: var(--inv-primary); }
.lb-kicker { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.lb-role { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--lb-ink-soft); margin: 0 0 4px; }
.lb-names { font-family: var(--inv-font-heading); font-size: 1.36rem; margin: 0; }

/* ---------- The lake and its rings ---------- */
.lb-lake { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lb-ripple { position: absolute; width: 0; height: 0; }
.lb-ripple i { position: absolute; left: 0; top: 0; width: 260px; height: 80px; margin: -40px 0 0 -130px; border: 1.5px solid var(--lb-ring); border-radius: 50%; opacity: 0; animation: lb-ring 9s ease-out infinite; animation-delay: var(--delay, 0s); }
.lb-ripple i:nth-child(2) { animation-delay: calc(var(--delay, 0s) + .9s); }
.lb-ripple i:nth-child(3) { animation-delay: calc(var(--delay, 0s) + 1.8s); }
.lb-ripple.is-once i { animation-iteration-count: 1; animation-duration: 4.5s; }
@keyframes lb-ring { 0% { transform: scale(.05); opacity: 0; } 8% { opacity: .9; } 60% { opacity: 0; } 100% { transform: scale(1); opacity: 0; } }
.lb-hero, .lb-main, .lb-footer { position: relative; z-index: 1; }
.lb-hero { z-index: 2; }

/* ---------- Swan and lilies ---------- */
.lb-swan { display: block; overflow: visible; }
.lb-swan-body, .lb-swan-head { fill: var(--lb-swan); stroke: color-mix(in srgb, var(--inv-primary) 35%, transparent); stroke-width: 1; }
.lb-swan-wing { fill: white; stroke: color-mix(in srgb, var(--inv-primary) 25%, transparent); stroke-width: 1; }
.lb-swan-feather { fill: none; stroke: color-mix(in srgb, var(--inv-primary) 22%, transparent); stroke-width: 1; stroke-linecap: round; }
.lb-swan-neck { fill: none; stroke: var(--lb-swan); stroke-width: 8; stroke-linecap: round; }
.lb-swan-beak { fill: #E08A4A; }
.lb-swan-eye { fill: var(--inv-text); }
.lb-reflection { transform: scaleY(-1); opacity: .22; filter: blur(1.5px); -webkit-mask: linear-gradient(0deg, #000, transparent 80%); mask: linear-gradient(0deg, #000, transparent 80%); }
.lb-lily { display: block; overflow: visible; }
.lb-lily-pad { fill: color-mix(in srgb, #5E8F5A 70%, var(--inv-primary)); opacity: .85; }
.lb-lily-flower path { fill: color-mix(in srgb, white 70%, #E9A9B8); stroke: color-mix(in srgb, #D9819A 50%, transparent); stroke-width: .6; }

/* ---------- Titles ---------- */
.lb-title { margin: 0 auto clamp(28px, 4.5vw, 48px); text-align: center; }
.lb-title h2 { font-size: clamp(2.1rem, 6vw, 3rem); font-style: italic; }
.lb-title-mark { position: relative; display: block; width: 46px; margin: 10px auto 0; }
.lb-title-mark::after { content: ""; position: absolute; left: 50%; top: 62%; width: 110px; height: 22px; margin-left: -55px; border: 1px solid var(--lb-ring); border-radius: 50%; z-index: -1; }

/* ---------- Navigation ---------- */
.lb-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; padding: 18px; }
.lb-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
.lb-nav a { text-decoration: none; font-size: .82rem; letter-spacing: .06em; color: var(--inv-text); padding: 6px 0; border-bottom: 1px solid transparent; }
.lb-nav a:hover, .lb-nav a.is-current { color: var(--inv-primary); border-bottom-color: var(--inv-primary); }
.lb-nav .kit-nav-brand { font-family: 'Ephesis', cursive; font-size: 2rem; letter-spacing: 0; color: var(--inv-primary); margin-right: auto; border: 0; line-height: 1; }
.lb-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(--lb-line); }
.lebada .kit-to-top { border-radius: 50%; background: var(--inv-surface); color: var(--inv-primary); border: 1px solid var(--lb-line); }
@media (max-width: 899px) {
    .lb-nav { justify-content: flex-end; padding: 12px; }
    .lb-nav .kit-nav-toggle { width: 46px; height: 46px; border-radius: 50%; background: var(--lb-card); color: var(--inv-primary); border: 1px solid var(--lb-line); font-size: 1.2rem; }
    .lb-nav .kit-nav-links { display: none; }
    .lb-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: 20px; background: var(--inv-surface); box-shadow: var(--lb-shadow);
    }
    .lb-nav.is-stuck { padding: 6px 12px; }
}

/* ---------- Hero: the name above the pond, the swan gliding across it ---------- */
.lb-hero { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: 100px 0 0; overflow: hidden; }
.lb-hero-text { align-self: center; text-align: center; padding: 0 16px 20px; }
.lebada .lb-name { font-family: var(--inv-font-heading); font-style: italic; font-size: clamp(4rem, 15vw, 8.4rem); line-height: 1; color: var(--inv-primary); overflow-wrap: anywhere; }
.lb-hero-date { font-family: var(--inv-font-heading); font-size: 1.4rem; margin: 20px 0 2px; }
.lb-hero-place { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--lb-ink-soft); margin: 0; }
.lebada .lb-subtitle { max-width: 40ch; margin: 18px auto 0; color: var(--lb-ink-soft); font-size: 1.06rem; }
.kit-js .lb-name { animation: lb-surface 1.6s ease .2s both; }
@keyframes lb-surface { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.lb-pond { position: relative; height: clamp(190px, 26vw, 260px); background: linear-gradient(180deg, transparent, var(--lb-water) 34%, color-mix(in srgb, var(--inv-accent) 55%, var(--inv-bg))); }
.lb-pond::before { content: ""; position: absolute; left: 0; right: 0; top: 34%; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, white 70%, transparent), transparent); }
.lb-glide { position: absolute; left: 0; top: -6%; width: clamp(160px, 24vw, 260px); animation: lb-glide 46s ease-in-out infinite alternate; }
.lb-hero-swan { width: 100%; }
.lb-glide .lb-hero-swan:first-child { position: relative; z-index: 1; animation: lb-bob 4s ease-in-out infinite alternate; }
.lb-glide .lb-reflection { margin-top: -10%; }
/* the swan faces left; on the way back it turns */
@keyframes lb-glide { 0% { transform: translateX(calc(96vw - 100%)) scaleX(1); } 49% { transform: translateX(6vw) scaleX(1); } 51% { transform: translateX(6vw) scaleX(-1); } 100% { transform: translateX(calc(92vw - 100%)) scaleX(-1); } }
@keyframes lb-bob { from { transform: translateY(0); } to { transform: translateY(3px); } }
.lb-wake { position: absolute; left: 70%; top: 74%; width: 0; height: 0; }
.lb-wake i { position: absolute; width: 120px; height: 18px; margin: -9px 0 0 -10px; border: 1px solid color-mix(in srgb, white 70%, transparent); border-left: 0; border-radius: 50%; opacity: 0; animation: lb-wake 3s ease-out infinite; }
.lb-wake i:nth-child(2) { animation-delay: 1s; } .lb-wake i:nth-child(3) { animation-delay: 2s; }
@keyframes lb-wake { 0% { transform: scale(.2); opacity: 0; } 20% { opacity: .9; } 100% { transform: scale(1.3) translateX(40px); opacity: 0; } }
.lb-pond-lily { position: absolute; width: 60px; }
.lb-pond-lily--1 { left: 8%; top: 52%; }
.lb-pond-lily--2 { right: 12%; top: 66%; width: 48px; }
.lb-pond-lily--3 { left: 46%; top: 80%; width: 40px; }
/* Reeds: thin blades rising from each bank */
.lb-reeds { position: absolute; bottom: 30%; width: clamp(90px, 14vw, 160px); height: clamp(150px, 22vw, 230px); background:
    linear-gradient(var(--lb-reed, #6E8B5A), var(--lb-reed, #6E8B5A)) 10% 100% / 2px 82% no-repeat,
    linear-gradient(var(--lb-reed, #6E8B5A), var(--lb-reed, #6E8B5A)) 26% 100% / 2px 100% no-repeat,
    linear-gradient(var(--lb-reed, #6E8B5A), var(--lb-reed, #6E8B5A)) 44% 100% / 2px 70% no-repeat,
    linear-gradient(var(--lb-reed, #6E8B5A), var(--lb-reed, #6E8B5A)) 62% 100% / 2px 92% no-repeat,
    linear-gradient(var(--lb-reed, #6E8B5A), var(--lb-reed, #6E8B5A)) 80% 100% / 2px 64% no-repeat,
    radial-gradient(4px 14px at 26% 6%, #7A5A3A 90%, transparent) no-repeat,
    radial-gradient(4px 14px at 62% 16%, #7A5A3A 90%, transparent) no-repeat;
    opacity: .7; transform-origin: bottom center; animation: lb-reeds 7s ease-in-out infinite alternate; }
.lb-reeds--left { left: 2%; }
.lb-reeds--right { right: 2%; transform: scaleX(-1); animation-delay: -3s; }
@keyframes lb-reeds { from { rotate: -1.5deg; } to { rotate: 1.5deg; } }

/* ---------- Sections ---------- */
.lb-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.lb-section { padding-top: clamp(76px, 11vw, 124px); }
.lb-wide-photo { margin: clamp(40px, 6vw, 70px) auto 0; aspect-ratio: 16 / 9; border-radius: 200px / 120px; overflow: hidden; box-shadow: var(--lb-shadow); }
.lb-wide-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 759px) { .lb-wide-photo { aspect-ratio: 4 / 5; border-radius: 50%; } }
.lb-card { background: var(--lb-card); border: 1px solid var(--lb-line); border-radius: 24px; box-shadow: var(--lb-shadow); }
.lb-welcome { text-align: center; max-width: 720px; margin: 0 auto; }
.lebada .lb-welcome-title { font-family: 'Ephesis', cursive; font-size: clamp(3rem, 9vw, 4.4rem); line-height: 1.1; color: var(--inv-primary); margin-bottom: 10px; }
.lb-prose p { font-size: 1.1rem; }
.lb-quote-author { font-family: var(--inv-font-heading); font-style: italic; color: var(--inv-primary); }
.lb-lead { text-align: center; font-family: var(--inv-font-heading); font-style: italic; font-size: 1.2rem; color: var(--lb-ink-soft); max-width: 40ch; margin: 0 auto 26px; }

/* Child */
.lb-child-grid { display: grid; gap: 40px; justify-items: center; text-align: center; }
.lb-pool { position: relative; margin: 0; width: min(300px, 64vw); aspect-ratio: 4 / 5; }
.lb-pool-photo { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 6px solid var(--inv-surface); box-shadow: var(--lb-shadow); }
.lb-pool-photo img, .lb-pool-initial { width: 100%; height: 100%; object-fit: cover; }
.lb-pool-initial { display: grid; place-items: center; background: var(--lb-tint); font-family: 'Ephesis', cursive; font-size: 7rem; color: var(--inv-primary); }
.lb-pool-rings i { position: absolute; inset: 0; border: 1px solid var(--lb-ring); border-radius: 50%; animation: lb-pool 6s ease-out infinite; }
.lb-pool-rings i:nth-child(2) { animation-delay: 2s; } .lb-pool-rings i:nth-child(3) { animation-delay: 4s; }
@keyframes lb-pool { from { transform: scale(1); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.lb-child-name { font-family: var(--inv-font-heading); font-style: italic; font-size: clamp(2.2rem, 6vw, 3rem); color: var(--inv-primary); margin-bottom: 8px; }
.lb-child-born { color: var(--lb-ink-soft); }
.lb-child-born strong { color: var(--inv-text); font-weight: 400; font-family: var(--inv-font-heading); font-size: 1.15rem; }
.lb-child-message { font-size: 1.1rem; }
@media (min-width: 760px) { .lb-child-grid { grid-template-columns: auto 1fr; gap: 70px; text-align: left; } }

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

/* Programme: a stream running down, a lily pad at each moment */
.lb-stream { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; position: relative; display: grid; gap: 26px; }
.lb-stream::before { content: ""; position: absolute; left: 30px; top: 10px; bottom: 10px; width: 10px; border-radius: 10px; background: linear-gradient(180deg, var(--lb-water), color-mix(in srgb, var(--inv-accent) 30%, transparent)); }
.lb-moment { position: relative; display: grid; grid-template-columns: 70px 1fr; align-items: start; gap: 12px; }
.lb-moment-pad { position: relative; z-index: 1; width: 60px; margin-top: 18px; }
.lb-moment-card { padding: 24px 24px 20px; }
.lb-moment-time { font-family: var(--inv-font-heading); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--inv-primary); margin-bottom: 8px; }
.lb-moment-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.lb-moment-place { font-weight: 500; margin: 12px 0 0; }
.lb-moment-address, .lb-moment-notes { color: var(--lb-ink-soft); margin: 0; }
.lb-moment-notes { font-style: italic; margin-top: 6px; }
.lebada .kit-button { border-radius: 999px; border: 1px solid var(--lb-line); color: var(--inv-primary); background: transparent; font-size: .8rem; padding: 9px 16px; text-decoration: none; }
.lebada .kit-button:hover { background: var(--inv-primary); color: var(--inv-surface); }

/* Countdown: each number in a ring on the water */
.lb-countdown { text-align: center; }
.lb-countdown .kit-countdown { gap: clamp(10px, 3vw, 24px); }
.lb-countdown .kit-countdown-unit { min-width: 0; }
.lb-countdown .kit-countdown-value { display: grid; place-items: center; width: clamp(72px, 19vw, 110px); aspect-ratio: 1; border-radius: 50%; background: var(--lb-tint); box-shadow: 0 0 0 6px color-mix(in srgb, var(--inv-accent) 14%, transparent), 0 0 0 12px color-mix(in srgb, var(--inv-accent) 7%, transparent); font-family: var(--inv-font-heading); font-style: italic; font-size: clamp(1.8rem, 6vw, 2.6rem); color: var(--inv-primary); }
.lb-countdown .kit-countdown-label { margin-top: 16px; opacity: 1; color: var(--lb-ink-soft); }

/* Gallery: an even grid, every photo the same shape */
.lb-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 18px); }
.lb-gallery-grid.kit-gallery a { border-radius: 26px; aspect-ratio: 1; box-shadow: var(--lb-shadow); }
@media (min-width: 760px) { .lb-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* RSVP */
.lb-reply { max-width: 700px; margin: 0 auto; padding: clamp(30px, 6vw, 54px); }
.lebada .inv-rsvp__intro { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.15rem; }
.lebada .inv-rsvp__deadline { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--inv-primary); }
.lebada .inv-rsvp__choice label { border-radius: 999px; }

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

/* Footer: the swan once more, resting */
.lb-footer { text-align: center; padding: clamp(90px, 14vw, 150px) 16px 70px; }
.lb-footer-swan { width: 150px; margin: 0 auto 24px; }
.lb-footer-swan .lb-reflection { margin-top: -10%; }
.lb-footer-message { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.3rem; color: var(--lb-ink-soft); }
.lb-footer-name { font-family: 'Ephesis', cursive; font-size: clamp(3.4rem, 11vw, 5.4rem); line-height: 1.1; color: var(--inv-primary); margin: 6px 0 10px; }
.lb-hashtag { letter-spacing: .12em; color: var(--inv-primary); }

@media (prefers-reduced-motion: reduce) {
    .lb-ripple i, .lb-glide, .lb-glide .lb-hero-swan, .lb-wake i, .lb-reeds, .lb-pool-rings i, .kit-js .lb-name { animation: none; }
    .lb-glide { transform: translateX(40vw); }
}
