/* ==========================================================================
   Briză - a wedding by the sea at golden hour: the sun sets behind the names with a path of glints on the water,
   waves roll along the bottom of the screen all the way down, and the photo dips into the sea
   Palette: --inv-primary (sunset), --inv-accent (the sea), --inv-bg (sand / sky), --inv-text
   script.js lifts the tide while the guest scrolls
   ========================================================================== */

.briza {
    --bz-ink-soft: color-mix(in srgb, var(--inv-text) 68%, var(--inv-bg));
    --bz-tint: color-mix(in srgb, var(--inv-primary) 9%, var(--inv-bg));
    --bz-sand: color-mix(in srgb, #E9C9A0 22%, var(--inv-bg));
    --bz-line: color-mix(in srgb, var(--inv-primary) 26%, transparent);
    --bz-sea: var(--inv-accent);
    --bz-sun: color-mix(in srgb, var(--inv-primary) 30%, #FFC46B);
    --bz-card: color-mix(in srgb, var(--inv-surface) 90%, transparent);
    --bz-shadow: 0 28px 60px -36px color-mix(in srgb, var(--inv-primary) 55%, transparent);
    --bz-tide: 0px;
    --kit-radius: 14px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--bz-line);
    font-family: var(--inv-font-body);
    font-size: 1.02rem;
    line-height: 1.72;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bz-sun) 22%, var(--inv-bg)) 0, var(--inv-bg) 900px) no-repeat,
        var(--inv-bg);
    overflow-x: clip;
}
.briza h1, .briza h2, .briza 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(.briza) :is(h1, h2, h3) { margin: 0; }
:where(.briza) p { margin: 0 0 .9em; }
.briza a { color: var(--inv-primary); }
.bz-kicker { font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.bz-role { font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--bz-ink-soft); margin: 0 0 4px; }
.bz-names-line { font-family: var(--inv-font-heading); font-size: 1.45rem; margin: 0; }

/* ---------- Waves ---------- */
.bz-waves { position: relative; height: 70px; overflow: hidden; pointer-events: none; }
.bz-wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; animation: bz-roll 18s linear infinite; }
.bz-wave path { fill: var(--bz-sea); }
.bz-wave--1 { height: 100%; opacity: .22; animation-duration: 26s; }
.bz-wave--2 { height: 78%; opacity: .32; animation-duration: 19s; animation-direction: reverse; }
.bz-wave--3 { height: 55%; opacity: .5; animation-duration: 13s; }
@keyframes bz-roll { to { transform: translateX(-50%); } }
.bz-tide { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; height: 80px; transform: translateY(calc(18px - var(--bz-tide))); transition: transform .9s cubic-bezier(.3, .7, .3, 1); }
.bz-hero, .bz-main, .bz-footer { position: relative; z-index: 1; }
.bz-hero { z-index: 2; }

/* ---------- The setting sun ---------- */
.bz-sun { position: absolute; width: 360px; height: 240px; pointer-events: none; }
/* The halo is its own layer, so the horizon can cut the disc without cutting the glow */
.bz-sun::before { content: ""; position: absolute; left: 50%; top: calc(22% + 75px); width: 380px; height: 300px; margin: -150px 0 0 -190px; background: radial-gradient(closest-side, color-mix(in srgb, var(--bz-sun) 45%, transparent), transparent); animation: bz-glow 6s ease-in-out infinite alternate; }
.bz-sun-disc { position: absolute; left: 50%; top: 22%; width: 150px; height: 150px; margin-left: -75px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--bz-sun) 60%, white), var(--bz-sun) 55%, color-mix(in srgb, var(--bz-sun) 80%, var(--inv-primary))); clip-path: inset(0 0 40% 0); }
.bz-horizon { position: absolute; left: 0; right: 0; top: calc(22% + 90px); height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--bz-sea) 70%, transparent), transparent); }
.bz-glints { position: absolute; left: 0; right: 0; top: calc(22% + 92px); bottom: 0; }
.bz-glints span { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: 2px; margin-left: calc(var(--w) / -2); border-radius: 2px; background: color-mix(in srgb, var(--bz-sun) 70%, white); opacity: .5; animation: bz-glint 2.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes bz-glint { 0%, 100% { opacity: .15; transform: scaleX(.6); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes bz-glow { from { opacity: .7; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }

/* ---------- Titles ---------- */
.bz-title { margin: 0 auto clamp(28px, 4.5vw, 48px); text-align: center; }
.bz-title h2 { font-size: clamp(2.2rem, 6.4vw, 3.2rem); }
.bz-title-mark { display: block; width: 80px; margin: 10px auto 0; overflow: visible; }
.bz-title-sun { fill: var(--bz-sun); }
.bz-title-wave { fill: none; stroke: var(--bz-sea); stroke-width: 2; stroke-linecap: round; }

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

/* ---------- Hero ---------- */
.bz-hero { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 90px clamp(16px, 4vw, 40px) 70px; overflow: hidden; }
.bz-hero-grid { display: grid; gap: 40px; width: min(1140px, 100%); margin: 0 auto; justify-items: center; text-align: center; }
.bz-hero-text { position: relative; padding-top: 230px; }
.bz-hero-sun { left: 50%; top: -30px; margin-left: -180px; }
.bz-hero-text > :not(.bz-hero-sun) { position: relative; }
/* The photo with its lower edge dipped into a wave */
.bz-hero-photo { position: relative; margin: 0; width: min(460px, 86vw); aspect-ratio: 4 / 5; }
.bz-hero-photo img {
    width: 100%; height: 100%; object-fit: cover; 
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'%3E%3Cpath d='M0 30Q0 0 30 0H370Q400 0 400 30V470C350 450 300 450 250 470S150 490 100 470 25 450 0 465z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'%3E%3Cpath d='M0 30Q0 0 30 0H370Q400 0 400 30V470C350 450 300 450 250 470S150 490 100 470 25 450 0 465z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.bz-hero-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath d='M0 25C50 5 100 5 150 25S250 45 300 25 375 5 400 18' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' opacity='.85'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.briza .bz-names { font-family: var(--inv-font-heading); font-style: italic; font-weight: 400; font-size: clamp(3.4rem, 11vw, 6.2rem); line-height: 1; display: grid; justify-items: center; overflow-wrap: anywhere; }
.bz-and { font-family: 'Allura', cursive; font-style: normal; font-size: .62em; color: var(--inv-primary); margin: .02em 0 -.06em; }
.bz-hero-date { font-family: var(--inv-font-heading); font-size: 1.38rem; margin: 20px 0 2px; }
.bz-hero-place { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bz-ink-soft); margin: 0; }
.briza .bz-subtitle { max-width: 38ch; margin: 18px auto 0; color: var(--bz-ink-soft); font-size: 1.06rem; }
@media (min-width: 900px) {
    .bz-hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
}
@keyframes bz-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.kit-js .bz-names { animation: bz-rise 1.4s ease .3s both; }
@keyframes bz-set { from { transform: translateY(40px); } to { transform: none; } }
.kit-js .bz-sun-disc { animation: bz-set 2.6s cubic-bezier(.2, .7, .3, 1) both; }

/* ---------- Sections ---------- */
.bz-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.bz-section { padding-top: clamp(76px, 11vw, 124px); }
.bz-card { background: var(--bz-card); border: 1px solid var(--bz-line); border-radius: 26px; box-shadow: var(--bz-shadow); }
.bz-block { position: relative; background: var(--bz-sand); border-radius: 34px; padding: clamp(36px, 6vw, 66px) clamp(26px, 6vw, 66px) clamp(46px, 7vw, 76px); text-align: center; max-width: 800px; margin: 0 auto; overflow: hidden; }
.bz-block::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14C50 2 100 2 150 14S250 26 300 14 375 2 400 10V26H0z' fill='%23000' opacity='.06'/%3E%3C/svg%3E") center / 100% 100%; }
.bz-lead { text-align: center; font-family: var(--inv-font-heading); font-style: italic; font-size: 1.22rem; color: var(--bz-ink-soft); max-width: 40ch; margin: 0 auto 26px; }
.briza .bz-welcome-title { font-family: var(--inv-font-heading); font-style: italic; font-size: clamp(2.5rem, 7.6vw, 3.6rem); color: var(--inv-primary); margin-bottom: 12px; }
.bz-block p { font-size: 1.08rem; }
.bz-quote-author { font-family: var(--inv-font-heading); font-style: italic; color: var(--inv-primary); }

/* Couple: two round portraits, like portholes, the same size */
.bz-couple-grid { display: grid; gap: 44px; justify-items: center; }
.bz-person { text-align: center; max-width: 380px; }
.bz-portrait { margin: 0 auto 22px; width: min(280px, 66vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--inv-surface); box-shadow: 0 0 0 1px var(--bz-line), 0 0 0 12px color-mix(in srgb, var(--bz-sea) 10%, transparent), var(--bz-shadow); }
.bz-portrait img, .bz-initial { width: 100%; height: 100%; object-fit: cover; }
.bz-initial { display: grid; place-items: center; background: var(--bz-tint); font-family: var(--inv-font-heading); font-style: italic; font-size: 6rem; color: var(--inv-primary); }
.bz-person h3 { font-size: 1.75rem; margin-bottom: 8px; }
.bz-person p { color: var(--bz-ink-soft); }
@media (min-width: 760px) { .bz-couple-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

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

/* Story */
.bz-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(44px, 7vw, 74px); }
.bz-chapter { display: grid; gap: 24px; align-items: center; }
.bz-chapter-photo { margin: 0; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; box-shadow: var(--bz-shadow); }
.bz-chapter-photo img { width: 100%; height: 100%; object-fit: cover; }
.bz-chapter-text h3 { font-size: 1.95rem; font-style: italic; margin-bottom: 8px; }
.bz-chapter-text p:not(.bz-kicker) { color: var(--bz-ink-soft); }
@media (min-width: 900px) {
    .bz-chapter { grid-template-columns: 1fr 1fr; gap: 58px; }
    .bz-chapter:nth-child(even) .bz-chapter-photo { order: 2; }
}

/* Programme */
.bz-moments { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.bz-moment { position: relative; padding: 28px 26px 24px; text-align: center; }
.bz-moment-mark { display: block; width: 60px; margin: 0 auto 12px; overflow: visible; }
.bz-moment-time { font-family: var(--inv-font-heading); font-size: 2.5rem; line-height: 1; color: var(--inv-primary); margin-bottom: 10px; }
.bz-moment h3 { font-size: 1.5rem; margin-bottom: 4px; }
.bz-moment-place { font-weight: 500; margin: 12px 0 0; }
.bz-moment-address, .bz-moment-notes { color: var(--bz-ink-soft); margin: 0; }
.bz-moment-notes { font-style: italic; margin-top: 6px; }
.briza .kit-button { border-radius: 999px; border: 1px solid var(--bz-line); color: var(--inv-primary); background: transparent; font-size: .8rem; padding: 9px 16px; text-decoration: none; }
.briza .kit-button:hover { background: var(--inv-primary); color: var(--inv-surface); }

/* Countdown: suns half-risen over the water */
.bz-countdown { text-align: center; }
.bz-countdown .kit-countdown { gap: clamp(10px, 3vw, 24px); }
.bz-countdown .kit-countdown-unit { min-width: 0; }
.bz-countdown .kit-countdown-value { display: grid; place-items: center; width: clamp(72px, 19vw, 112px); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(180deg, color-mix(in srgb, var(--bz-sun) 38%, var(--inv-surface)) 0 62%, color-mix(in srgb, var(--bz-sea) 18%, var(--inv-surface)) 62%); font-family: var(--inv-font-heading); font-size: clamp(1.8rem, 6vw, 2.6rem); color: var(--inv-text); }
.bz-countdown .kit-countdown-label { margin-top: 10px; opacity: 1; color: var(--bz-ink-soft); }

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

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

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

/* Footer: the sun sets once more */
.bz-footer { position: relative; text-align: center; padding: 280px 16px 130px; overflow: hidden; }
.bz-footer-sun { left: 50%; top: 20px; margin-left: -180px; }
.bz-footer > :not(.bz-footer-sun) { position: relative; }
.bz-footer-message { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.32rem; color: var(--bz-ink-soft); }
.bz-footer-names { font-family: var(--inv-font-heading); font-style: italic; font-size: clamp(2.8rem, 9vw, 4.6rem); line-height: 1.05; color: var(--inv-primary); margin: 6px 0 10px; }
.bz-hashtag { letter-spacing: .12em; color: var(--inv-primary); }

@media (prefers-reduced-motion: reduce) {
    .bz-wave, .bz-glints span, .bz-sun::before, .kit-js .bz-sun-disc, .kit-js .bz-names { animation: none; }
}
