/* ==========================================================================
   Azur - a Mediterranean summer wedding by the water. The names are written by hand above a big photo under an arch,
   and the light of the water dances over it as at the edge of a pool by the sea (canvas.az-caustics, script.js); at a
   touch a ripple spreads through the light. Titles sit over a wave line that keeps rippling, portraits and story
   photos shimmer with water light, the times sit on discs of water, and the light of the water returns at the end.
   Palette: --inv-primary (ink, titles), --inv-accent (the water), --inv-bg, --inv-text.
   ========================================================================== */

.azur {
    --az-script: 'The Nautigal', 'Segoe Script', cursive;
    --az-soft: color-mix(in srgb, var(--inv-text) 68%, var(--inv-bg));
    --az-line: color-mix(in srgb, var(--inv-primary) 20%, transparent);
    --az-water: var(--inv-accent);
    --az-warm: color-mix(in srgb, var(--inv-accent) 45%, transparent);
    --az-pane: color-mix(in srgb, var(--inv-surface) 76%, transparent);
    --az-shadow: 0 1px 2px color-mix(in srgb, var(--inv-text) 8%, transparent), 0 30px 60px -40px color-mix(in srgb, var(--inv-accent) 80%, transparent);
    --kit-radius: 14px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--az-line);
    font-family: var(--inv-font-body);
    font-weight: 300;
    font-size: 1.06rem;
    line-height: 1.75;
    color: var(--inv-text);
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-accent) 12%, var(--inv-bg)) 0, var(--inv-bg) 70vh), var(--inv-bg);
    overflow-x: clip;
}
.azur h1, .azur h2, .azur h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1.2; }
:where(.azur) :is(h1, h2, h3) { margin: 0; }
:where(.azur) p { margin: 0 0 .9em; }
.azur strong, .azur b { font-weight: 600; }
.azur a { color: var(--inv-primary); }
.az-kicker { font-size: .74rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.az-role { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--az-soft); margin: 0 0 6px; }
.az-names-line { font-family: var(--inv-font-heading); font-size: 1.3rem; margin: 0; }
.az-hero, .az-main, .az-footer { position: relative; z-index: 1; }
.az-hero { z-index: 2; }
/* a soft glow of sea light at the top of the page */
.az-glow { position: absolute; top: -20vh; left: 0; width: 100%; height: 70vh; z-index: 0; pointer-events: none; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-accent) 22%, transparent), transparent); filter: blur(20px); }

/* Panes */
.az-pane { background: var(--az-pane); border: 1px solid var(--az-line); border-radius: 18px; box-shadow: var(--az-shadow); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* photos shimmering with water light: soft bright spots drifting slowly over them */
.az-shimmer { position: relative; }
.az-shimmer::after { content: ""; position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: soft-light; opacity: .55;
    background:
        radial-gradient(ellipse 18% 9% at 20% 30%, rgba(255, 255, 255, .9), transparent 70%),
        radial-gradient(ellipse 14% 7% at 70% 20%, rgba(255, 255, 255, .8), transparent 70%),
        radial-gradient(ellipse 20% 8% at 45% 65%, rgba(255, 255, 255, .85), transparent 70%),
        radial-gradient(ellipse 12% 6% at 80% 75%, rgba(255, 255, 255, .8), transparent 70%),
        radial-gradient(ellipse 16% 7% at 15% 85%, rgba(255, 255, 255, .75), transparent 70%);
    animation: az-dapple 9s ease-in-out infinite alternate; }
@keyframes az-dapple { 0% { translate: 0 0; } 50% { translate: 6% -4%; } 100% { translate: -5% 5%; } }

/* ---------- Handwriting ---------- */
.az-word { display: inline-block; white-space: nowrap; }
.az-letter { display: inline-block; white-space: pre; clip-path: inset(-20% 100% -30% -10%); opacity: 0; }
.az-hero .az-letter, .is-visible .az-letter { animation: az-write .5s calc(var(--i) * .1s + var(--az-delay, 0s)) cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes az-write {
    0% { clip-path: inset(-20% 100% -30% -10%); opacity: 0; filter: blur(3px); }
    30% { opacity: 1; }
    92% { clip-path: inset(-20% -30% -30% -10%); opacity: 1; filter: none; }
    /* once written, the mask opens far beyond the letter so its glow is never cut into a box */
    100% { clip-path: inset(-500% -500% -500% -500%); opacity: 1; filter: none; }
}

/* ---------- Titles over a rippling wave ---------- */
.az-title { position: relative; margin: 0 auto clamp(36px, 5vw, 52px); text-align: center; }
.az-title h2 { display: inline-block; font-size: clamp(2.2rem, 5.6vw, 3.1rem); font-style: italic; font-weight: 300; color: var(--inv-primary); padding: 0 .2em; }
.az-wave { display: block; width: min(200px, 56%); height: 18px; margin: 6px auto 0; overflow: visible; }
.az-wave-line { fill: none; stroke: var(--az-water); stroke-width: 1.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.kit-js .az-title .az-wave-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.kit-js .az-title.is-visible .az-wave-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s ease .3s; }
.az-title.is-visible .az-wave, html:not(.kit-js) .az-wave { animation: az-ripple 4s ease-in-out 1.9s infinite alternate; }
@keyframes az-ripple { from { scale: 1 1; } to { scale: 1 -1; } }

/* A little sun over two waves (welcome) */
.az-sun { display: block; width: 150px; margin: 0 auto 8px; overflow: visible; }
.az-line { fill: none; stroke: var(--az-water); stroke-width: 1.4; stroke-linecap: round; }
.kit-js .kit-reveal .az-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.kit-js .kit-reveal.is-visible .az-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.45, .05, .35, 1) .2s; }

/* ---------- Navigation ---------- */
.az-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; padding: 18px; }
.az-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; }
.az-nav a { text-decoration: none; font-size: .76rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--inv-text); padding: 6px 0; border-bottom: 1px solid transparent; }
.az-nav a:hover, .az-nav a.is-current { color: var(--inv-primary); border-bottom-color: var(--az-water); }
.az-nav .kit-nav-brand { font-family: var(--az-script); font-size: 2.2rem; letter-spacing: 0; text-transform: none; color: var(--inv-primary); margin-right: auto; border: 0; line-height: 1; }
.az-nav.is-stuck { justify-content: space-between; align-items: center; padding: 6px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--inv-bg) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--az-line); }
.azur .kit-to-top { border-radius: 50%; background: var(--inv-surface); color: var(--inv-primary); border: 1px solid var(--az-line); }
@media (max-width: 899px) {
    .az-nav { justify-content: flex-end; padding: 12px; }
    .az-nav .kit-nav-toggle { width: 46px; height: 46px; border-radius: 50%; background: var(--az-pane); color: var(--inv-primary); border: 1px solid var(--az-line); font-size: 1.2rem; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
    .az-nav .kit-nav-links { display: none; }
    .az-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(--az-shadow); }
    .az-nav.is-stuck { padding: 6px 12px; }
}

/* ---------- Hero: the names, the photo with the light of the water ---------- */
.az-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 84px 0 64px; text-align: center; }
.az-hero-inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.az-hero-inner > :not(.az-scene) { margin-left: 16px; margin-right: 16px; max-width: calc(100% - 32px); }
.azur .az-names { font-family: var(--az-script); font-weight: 400; font-size: clamp(4.4rem, 15vw, 8.4rem); line-height: .95; color: var(--inv-primary); display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .2em; overflow-wrap: anywhere; margin: 0 0 4px;
    text-shadow: 0 0 26px color-mix(in srgb, var(--inv-accent) 25%, transparent); }
.az-and { font-size: .55em; color: var(--az-water); }
.az-hero .az-letter { --az-delay: .4s; }
.az-scene { position: relative; width: min(820px, 100%); margin: 10px 0 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: pan-y; }
.az-pool { position: relative; margin: 0; aspect-ratio: 16 / 10.5; overflow: hidden; border-radius: 260px 260px 18px 18px / 150px 150px 18px 18px; background: var(--az-warm); box-shadow: var(--az-shadow); }
.az-pool img { display: block; width: 100%; height: 100%; object-fit: cover; }
.az-caustics { position: absolute; inset: 0; width: 100%; height: 100%; display: block; mix-blend-mode: screen; pointer-events: none; }
.az-pool::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--inv-accent) 22%, transparent)); }
.az-hero-date { font-family: var(--inv-font-heading); font-size: 1.4rem; margin-top: 26px; margin-bottom: 2px; }
.az-hero-place { font-size: .74rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--az-soft); margin: 0; }
.azur .az-subtitle { width: 44ch; margin-top: 18px; margin-bottom: 0; color: var(--az-soft); }
@keyframes az-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.kit-js .az-hero-inner > :not(.az-names) { animation: az-rise 1.1s ease 1.4s both; }
.kit-js .az-hero-inner > .az-kicker { animation-delay: .15s; }
.kit-js .az-hero-inner > .az-scene { animation: az-rise 1.4s cubic-bezier(.3, .9, .4, 1) .6s both; }
@media (max-width: 699px) {
    .az-pool { aspect-ratio: 4 / 4.6; border-radius: 170px 170px 16px 16px / 120px 120px 16px 16px; margin: 0 16px; }
}

/* ---------- Sections ---------- */
.az-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.az-section { padding-top: clamp(80px, 11vw, 128px); }
.az-welcome { text-align: center; max-width: 720px; margin: 0 auto; }
.az-welcome p { font-size: 1.1rem; }
.azur .az-welcome-title { font-family: var(--az-script); font-size: clamp(3.4rem, 9vw, 4.6rem); line-height: 1.05; color: var(--inv-primary); margin-bottom: 12px; }
.az-quote-author { font-family: var(--inv-font-heading); font-style: italic; color: var(--inv-primary); }
.az-lead { text-align: center; font-family: var(--inv-font-heading); font-style: italic; font-size: 1.22rem; color: var(--az-soft); max-width: 40ch; margin: 0 auto 26px; }

/* Couple: arched portraits, warmed by the sun */
.az-couple-grid { display: grid; gap: 60px; justify-items: center; }
.az-person { text-align: center; max-width: 380px; display: grid; justify-items: center; }
.az-arch { margin: 0 0 22px; width: min(270px, 66vw); aspect-ratio: 3 / 4; border-radius: 999px 999px 16px 16px / 40% 40% 16px 16px; overflow: hidden; background: var(--az-warm); box-shadow: var(--az-shadow); }
.az-arch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.az-initial { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--az-script); font-size: 5rem; color: var(--inv-primary); }
.az-person h3 { font-size: 1.7rem; margin: 0 0 8px; }
.az-person p { color: var(--az-soft); }
.kit-js .az-person { opacity: 0; translate: 0 24px; }
.kit-js .az-person.is-visible { opacity: 1; translate: 0 0; transition: opacity 1.1s ease, translate 1.3s ease; }
@media (min-width: 760px) { .az-couple-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

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

/* Story */
.az-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(60px, 8vw, 90px); }
.az-chapter { display: grid; gap: 28px; align-items: center; }
.az-chapter-photo { margin: 0; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; box-shadow: var(--az-shadow); }
.az-chapter-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.az-chapter-text h3 { font-size: 1.9rem; font-style: italic; margin-bottom: 8px; }
.az-chapter-text p:not(.az-kicker) { color: var(--az-soft); }
.kit-js .az-chapter { opacity: 0; translate: 0 22px; }
.kit-js .az-chapter.is-visible { opacity: 1; translate: 0 0; transition: opacity 1s ease, translate 1.2s ease; }
@media (min-width: 900px) {
    .az-chapter { grid-template-columns: 1fr 1fr; gap: 58px; }
    .az-chapter:nth-child(even) .az-chapter-photo { order: 2; }
}

/* Programme: the hour in a disc of light */
.az-moments { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.az-moment { padding: 36px 28px 30px; text-align: center; }
.az-tile-time { margin: 0 auto 18px; width: max-content; }
.az-tile-time span, .az-countdown .kit-countdown-value { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; color: var(--inv-primary); font-family: var(--inv-font-heading);
    background: linear-gradient(180deg, var(--inv-surface) 0 50%, color-mix(in srgb, var(--inv-accent) 26%, var(--inv-surface)) 50% 100%) 0 50% / 100% 200% no-repeat;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 45%, transparent), 0 14px 30px -18px var(--az-warm); animation: az-tide 5s ease-in-out infinite alternate; animation-delay: var(--az-delay, 0s); }
/* the water in each disc rises and falls a little, like a calm tide */
@keyframes az-tide { from { background-position: 0 42%; } to { background-position: 0 58%; } }
.az-tile-time span { width: 92px; font-size: 1.35rem; }
.az-moment:nth-child(2) { --az-delay: -1.6s; }
.az-moment:nth-child(3) { --az-delay: -3.2s; }
.az-moment h3 { font-size: 1.5rem; margin: 6px 0 6px; }
.az-moment-place { font-weight: 600; margin: 12px 0 0; }
.az-moment-address, .az-moment-notes { color: var(--az-soft); margin: 0; }
.az-moment-notes { font-style: italic; margin-top: 6px; }
.az-moment .kit-event-actions { justify-content: center; margin-top: 16px; }
.azur .kit-button { border-radius: 999px; border: 1px solid var(--az-line); background: var(--inv-surface); color: var(--inv-primary); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.azur .kit-button:hover { border-color: var(--az-water); box-shadow: 0 0 16px var(--az-warm); }
.kit-js .az-moment { opacity: 0; translate: 0 22px; }
.kit-js .az-moment.is-visible { opacity: 1; translate: 0 0; transition: opacity .9s ease, translate 1.1s ease; }

/* Countdown */
.az-countdown { text-align: center; }
.az-countdown .kit-countdown { gap: clamp(14px, 4vw, 36px); margin-top: 18px; }
.az-countdown .kit-countdown-unit { min-width: 0; background: none; padding: 0; }
.az-countdown .kit-countdown-value { width: clamp(76px, 19vw, 112px); font-size: clamp(1.7rem, 5.6vw, 2.5rem); }
.az-countdown .kit-countdown-unit:nth-child(2) .kit-countdown-value { --az-delay: -1.2s; }
.az-countdown .kit-countdown-unit:nth-child(3) .kit-countdown-value { --az-delay: -2.4s; }
.az-countdown .kit-countdown-unit:nth-child(4) .kit-countdown-value { --az-delay: -3.6s; }
.az-countdown .kit-countdown-label { margin-top: 10px; font-size: .62rem; letter-spacing: .2em; color: var(--az-soft); opacity: 1; }

/* Gallery: a sheen of water light passes over each photo on hover */
.az-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 22px); }
@media (min-width: 760px) { .az-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.az-gallery-grid.kit-gallery a { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; box-shadow: var(--az-shadow); }
.az-gallery-grid.kit-gallery a::after { content: ""; position: absolute; inset: -20% -60%; pointer-events: none; translate: -100% 0; mix-blend-mode: screen;
    background: linear-gradient(110deg, transparent 40%, color-mix(in srgb, var(--inv-accent) 55%, #fff) 50%, transparent 60%); opacity: .6; transition: translate 1.3s ease; }
.az-gallery-grid.kit-gallery a:hover::after { translate: 100% 0; }
.kit-js .az-gallery .az-gallery-grid a { opacity: 0; translate: 0 24px; }
.kit-js .az-gallery.is-visible .az-gallery-grid a { opacity: 1; translate: 0 0; transition: opacity .9s ease, translate 1.1s ease; }
.kit-js .az-gallery.is-visible .az-gallery-grid a:nth-child(3n+2) { transition-delay: .12s; }
.kit-js .az-gallery.is-visible .az-gallery-grid a:nth-child(3n) { transition-delay: .24s; }

/* RSVP */
.az-reply { max-width: 720px; margin: 0 auto; padding: clamp(28px, 5vw, 52px); text-align: center; }
.azur .inv-rsvp__intro { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.2rem; }
.azur .inv-rsvp__deadline { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); }
.azur .inv-rsvp__submit { border-radius: 999px; letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 10px 30px -14px var(--az-warm); }
.azur input[type=radio], .azur input[type=checkbox] { accent-color: var(--inv-primary); }

/* Info, FAQ, contact */
.az-info-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); text-align: center; }
.az-info-item { padding: 28px 24px; }
.az-info-item h3 { font-size: 1.45rem; font-style: italic; color: var(--inv-primary); margin-bottom: 8px; }
.az-info-item p { color: var(--az-soft); }
.az-faq { max-width: 720px; margin: 50px auto 0; text-align: center; }
.az-faq details { text-align: left; border-bottom: 1px solid var(--az-line); }
.az-faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 4px; position: relative; font-weight: 400; }
.az-faq summary::-webkit-details-marker { display: none; }
.az-faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: radial-gradient(circle, var(--az-water) 0 35%, transparent 40%); box-shadow: 0 0 0 1px var(--az-water); transition: box-shadow .4s ease; }
.az-faq details[open] summary::after { box-shadow: 0 0 0 1px var(--az-water), 0 0 14px 3px var(--az-warm); }
.az-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; }
.az-faq details p { padding: 0 4px; color: var(--az-soft); }
.az-contact { text-align: center; }
.az-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 64px; }
.az-contact-person a { text-decoration: none; }

/* ---------- Footer: the light of the water again ---------- */
.az-footer { position: relative; text-align: center; padding: clamp(110px, 14vw, 160px) 16px 60px; overflow: hidden; isolation: isolate; }
.az-caustics--footer { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; z-index: -1; opacity: .7;
    -webkit-mask: linear-gradient(180deg, transparent, #000 40%); mask: linear-gradient(180deg, transparent, #000 40%); }
.az-footer::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--inv-accent) 22%, var(--inv-bg)) 70%); }
.az-footer-message { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.25rem; color: var(--az-soft); max-width: 38ch; margin: 0 auto 8px; }
.azur .az-footer-names { font-family: var(--az-script); font-size: clamp(3.6rem, 12vw, 5.6rem); line-height: 1.1; color: var(--inv-primary); margin: 6px 0 12px; }
.az-hashtag { letter-spacing: .12em; color: var(--inv-primary); }

@media (prefers-reduced-motion: reduce) {
    .az-letter { animation: none !important; clip-path: none; opacity: 1; }
    .az-shimmer::after, .az-tile-time span, .az-countdown .kit-countdown-value, .az-wave { animation: none !important; }
    .kit-js .kit-reveal .az-line, .kit-js .az-title .az-wave-line { stroke-dashoffset: 0; transition: none; }
    .kit-js .az-person { opacity: 1; translate: 0 0; transition: none; }
    .kit-js .az-chapter, .kit-js .az-moment, .kit-js .az-gallery .az-gallery-grid a { opacity: 1; translate: 0 0; transition: none; }
    .kit-js .az-hero-inner > * { animation: none; }
}
