/* ==========================================================================
   Paște - the Easter family lunch, painted in watercolour: a spring meadow across the top with butterflies fluttering
   over it, the photo in a painted Easter egg (ou încondeiat: a shell with a lattice of dots and lines around an
   egg-shaped window; a touch makes it wobble, as when eggs are knocked together), the basket of eggs and a rabbit
   beside it. A little painted egg rolls in above every title, the chick just out of its shell says hello, the hosts'
   portrait sits in an egg beside the plush rabbit, the theme is written on an embroidered towel with a cross-stitch
   border, every moment has a spring watercolour, the days left are on painted eggs, and at the end the basket waits
   in the meadow.
   Palette: --inv-primary (the ink and the shell of the eggs), --inv-accent (the soft colour), --inv-bg, --inv-text.
   The watercolours (assets/art, Pixabay, see LICENSES.md) are made transparent; on the dark palette (.pa-dark, set
   by script.js) they get back a sheet of watercolour paper
   ========================================================================== */

.paste {
    --pa-soft: color-mix(in srgb, var(--inv-text) 64%, var(--inv-bg));
    --pa-line: color-mix(in srgb, var(--inv-primary) 18%, transparent);
    --pa-shell: var(--inv-primary);
    --pa-motif: color-mix(in srgb, #fffaf0 88%, var(--inv-accent));
    --pa-paper: color-mix(in srgb, #fffdf7 90%, var(--inv-accent));
    --pa-linen: #fbf7ee;
    --pa-stitch: color-mix(in srgb, #b3242f 70%, var(--inv-primary));
    --pa-shadow: 0 1px 2px color-mix(in srgb, var(--inv-text) 8%, transparent), 0 24px 48px -30px color-mix(in srgb, var(--inv-text) 50%, transparent);
    --kit-radius: 14px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--pa-line);
    font-family: var(--inv-font-body);
    font-weight: 400;
    font-size: 1.02rem;
    line-height: 1.72;
    background: var(--inv-bg);
    overflow-x: clip;
}
.paste.pa-dark { --pa-shell: #9b3540; --pa-motif: #f6dfa8; }
.paste h1, .paste h2, .paste h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1.16; }
:where(.paste) :is(h1, h2, h3) { margin: 0; }
:where(.paste) p { margin: 0 0 .9em; }
.paste strong { font-weight: 700; }
.paste a { color: var(--inv-primary); }
.pa-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.pa-role { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pa-soft); margin: 0 0 4px; }
.pa-names { font-family: var(--inv-font-heading); font-size: 1.24rem; margin: 0; }
.pa-hero, .pa-main, .pa-footer { position: relative; z-index: 1; }
.pa-card { position: relative; background: var(--inv-surface); border-radius: 22px; box-shadow: var(--pa-shadow), 0 0 0 1px var(--pa-line); }

/* ---------- The watercolours ---------- */
.pa-art { position: relative; display: block; }
.pa-art img { display: block; width: 100%; height: auto; }
.pa-dark .pa-art:not(.pa-meadow) img { background: radial-gradient(closest-side, var(--pa-paper) 54%, color-mix(in srgb, var(--pa-paper) 40%, transparent) 78%, transparent 100%); }

/* ---------- The painted egg (the shell pattern is shared by the frames, the titles and the countdown) ---------- */
.pa-egg, .pa-roll i {
    background:
        radial-gradient(circle, var(--pa-motif) 0 1.6px, transparent 2.2px) 0 0 / 14px 14px,
        repeating-linear-gradient(45deg, transparent 0 9px, color-mix(in srgb, var(--pa-motif) 70%, transparent) 9px 10.5px),
        repeating-linear-gradient(-45deg, transparent 0 9px, color-mix(in srgb, var(--pa-motif) 70%, transparent) 9px 10.5px),
        var(--pa-shell);
}
.pa-egg { position: relative; margin: 0; aspect-ratio: 4 / 5; padding: 6%; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
    box-shadow: inset 0 -14px 24px -10px rgba(0, 0, 0, .3), inset 0 10px 20px -10px rgba(255, 255, 255, .5), 0 30px 50px -30px color-mix(in srgb, var(--inv-text) 70%, transparent); }
.pa-egg-photo { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; background: var(--pa-paper); box-shadow: 0 0 0 3px var(--pa-motif); }
.pa-egg-photo img, .pa-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.pa-initial { display: grid; place-items: center; font-family: var(--inv-font-heading); font-style: italic; font-size: 5rem; color: var(--inv-primary); }

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

/* ---------- The meadow and the butterflies ---------- */
.pa-meadow { position: absolute; left: 0; right: 0; top: 0; height: min(64vh, 62vw); opacity: .5; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
.pa-meadow img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pa-dark .pa-meadow { opacity: .22; }
.pa-flutter { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pa-fly { --c: #f3b33d; position: absolute; left: 0; top: 0; width: 30px; height: 22px; background: linear-gradient(#4a3a30, #4a3a30) 50% 40% / 2px 13px no-repeat; }
/* each wing: a large upper lobe and a small lower one, with a darker edge; they fold towards the body as they flap */
.pa-fly::before, .pa-fly::after { content: ""; position: absolute; top: 0; width: 15px; height: 22px; animation: pa-flap .3s ease-in-out infinite alternate;
    background: radial-gradient(circle at 70% 40%, color-mix(in srgb, var(--c) 55%, #fff) 0 22%, var(--c) 48%, color-mix(in srgb, var(--c) 55%, #3a2a20) 100%); }
.pa-fly::before { right: 50%; transform-origin: 100% 50%; clip-path: path('M15 10C11 1 3 -1 1 3C-1 8 5 11 15 11C7 12 3 16 5 20C7 23 12 18 15 11Z'); }
.pa-fly::after { left: 50%; transform-origin: 0 50%; clip-path: path('M0 10C4 1 12 -1 14 3C16 8 10 11 0 11C8 12 12 16 10 20C8 23 3 18 0 11Z'); }
@keyframes pa-flap { from { scale: 1 1; } to { scale: .2 1; } }
.pa-fly { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .12)); }
.pa-fly--1 { animation: pa-wander-1 19s linear infinite; }
.pa-fly--2 { --c: #7fb0e0; scale: .8; animation: pa-wander-2 23s linear -7s infinite; }
.pa-fly--3 { --c: #ee8fb4; scale: .7; animation: pa-wander-1 27s linear -15s infinite reverse; }
@keyframes pa-wander-1 {
    0% { translate: -6vw 30vh; } 20% { translate: 18vw 14vh; } 40% { translate: 40vw 24vh; } 60% { translate: 62vw 8vh; } 80% { translate: 84vw 22vh; } 100% { translate: 106vw 12vh; }
}
@keyframes pa-wander-2 {
    0% { translate: 106vw 18vh; } 25% { translate: 78vw 34vh; } 50% { translate: 50vw 16vh; } 75% { translate: 22vw 30vh; } 100% { translate: -6vw 20vh; }
}

/* ---------- Hero: the egg, the basket and the rabbit ---------- */
.pa-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 110px 16px 60px; overflow: hidden; overflow: clip; }
.pa-hero-inner { position: relative; z-index: 1; width: min(1060px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 30px; text-align: center; }
.pa-nest { position: relative; width: min(420px, 86vw); padding: 0 12% 6%; }
.pa-knock { position: relative; z-index: 2; cursor: pointer; transform-origin: 50% 92%; -webkit-tap-highlight-color: transparent; }
.kit-js .pa-egg--hero { animation: pa-pop 1.3s cubic-bezier(.3, 1.3, .5, 1) .1s both; }
@keyframes pa-pop { from { opacity: 0; scale: .8; translate: 0 30px; } to { opacity: 1; scale: 1; translate: 0 0; } }
.pa-knock.is-wobbling { animation: pa-wobble 1.1s ease-in-out 1; }
@keyframes pa-wobble { 0%, 100% { rotate: 0deg; } 15% { rotate: -9deg; } 35% { rotate: 7deg; } 55% { rotate: -4deg; } 75% { rotate: 2deg; } }
.pa-basket { position: absolute; left: -8%; bottom: -4%; width: 46%; z-index: 3; }
.pa-rabbit { position: absolute; right: -6%; bottom: -2%; width: 34%; z-index: 3; }
.kit-js .pa-basket img { animation: pa-in-l 1.2s cubic-bezier(.3, 1.2, .5, 1) .5s both; }
.kit-js .pa-rabbit img { animation: pa-hop-in 1.3s cubic-bezier(.3, 1.3, .5, 1) .8s both; }
@keyframes pa-in-l { from { opacity: 0; translate: -30px 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes pa-hop-in { 0% { opacity: 0; translate: 60px 0; } 40% { opacity: 1; translate: 30px -24px; } 70% { translate: 8px 0; } 85% { translate: 4px -6px; } 100% { opacity: 1; translate: 0 0; } }

.pa-hero-text { display: grid; justify-items: center; width: 100%; min-width: 0; }
.paste .pa-name { font-family: var(--inv-font-heading); font-style: italic; font-size: clamp(2.8rem, 10vw, 4.6rem); line-height: 1.08; color: var(--inv-primary); overflow-wrap: anywhere; text-wrap: balance; margin: 0 0 12px; }
.pa-hero-date { font-family: var(--inv-font-heading); font-size: 1.34rem; margin: 0 0 4px; }
.pa-hero-place { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--pa-soft); margin: 0; }
.paste .pa-subtitle { max-width: 44ch; margin: 16px auto 0; color: var(--pa-soft); }
@keyframes pa-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.kit-js .pa-hero-text > * { animation: pa-up 1s ease .9s both; }
.kit-js .pa-hero-text > :nth-child(n+3) { animation-delay: 1.2s; }
@media (min-width: 900px) {
    .pa-hero { padding-top: 140px; }
    .pa-hero-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 60px; text-align: left; align-items: center; }
    .pa-hero-text { justify-items: start; order: -1; }
    .paste .pa-subtitle { margin-left: 0; }
    .pa-nest { width: min(440px, 40vw); }
}

/* ---------- Sections ---------- */
.pa-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.pa-section { padding-top: clamp(84px, 11vw, 128px); }
.pa-title { margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.pa-title h2 { font-size: clamp(1.9rem, 5.4vw, 2.6rem); color: var(--inv-primary); text-wrap: balance; }
.pa-roll { display: block; width: 26px; height: 32px; margin: 0 auto 12px; }
.pa-roll i { display: block; width: 100%; height: 100%; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; background-size: 7px 7px, auto, auto, auto; box-shadow: inset 0 -5px 8px -4px rgba(0, 0, 0, .3); }
.kit-js .pa-title .pa-roll i { translate: -70px 0; rotate: -300deg; opacity: 0; transition: translate 1.1s cubic-bezier(.3, 1.2, .5, 1) .1s, rotate 1.1s cubic-bezier(.3, 1.2, .5, 1) .1s, opacity .4s ease .1s; }
.kit-js .pa-title.is-visible .pa-roll i { translate: 0 0; rotate: 0deg; opacity: 1; }

/* Welcome, from the chick */
.pa-welcome { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 820px; margin: 0 auto; }
.pa-welcome p { font-size: 1.05rem; }
.pa-chick { width: min(190px, 48vw); }
.kit-js .pa-welcome .pa-chick img { opacity: 0; translate: 0 22px; transition: opacity .9s ease, translate 1s cubic-bezier(.3, 1.3, .5, 1); }
.kit-js .pa-welcome.is-visible .pa-chick img { opacity: 1; translate: 0 0; }
.paste .pa-welcome-title { font-family: var(--inv-font-heading); font-style: italic; font-size: clamp(2.2rem, 7vw, 3.1rem); line-height: 1.15; color: var(--inv-primary); margin-bottom: 14px; }
.pa-quote-author { font-family: var(--inv-font-heading); font-style: italic; color: var(--inv-primary); }
@media (min-width: 760px) {
    .pa-welcome { grid-template-columns: auto minmax(0, 1fr); gap: 50px; text-align: left; align-items: center; }
    .pa-chick { width: 220px; }
}

/* The hosts (the plush rabbit sits past the egg, so the section clips what a phone cannot show) */
.pa-host { overflow-x: clip; padding-bottom: 30px; }
.pa-host-grid { display: grid; gap: 56px; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.pa-portrait { position: relative; width: min(250px, 62vw); }
.pa-toy { position: absolute; right: -30%; bottom: -14%; width: 50%; z-index: 3; }
.kit-js .pa-host-grid .pa-toy img { opacity: 0; translate: 20px 0; transition: opacity .8s ease .5s, translate 1.1s cubic-bezier(.3, 1.3, .5, 1) .5s; }
.kit-js .pa-host-grid.is-visible .pa-toy img { opacity: 1; translate: 0 0; }
.pa-host-name { font-family: var(--inv-font-heading); font-size: 1.8rem; color: var(--inv-primary); margin-bottom: 6px; }
.pa-host-age { color: var(--pa-soft); }
.pa-host-message { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.1rem; max-width: 38ch; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
    .pa-host-grid { grid-template-columns: auto minmax(0, 1fr); gap: 100px; text-align: left; align-items: center; }
    .pa-portrait { width: 260px; }
    .pa-host-message { margin-left: 0; }
}

/* The theme, on an embroidered towel: a cross-stitch border top and bottom, a fringe at the end */
.pa-towel { position: relative; max-width: 640px; margin: 0 auto 18px; padding: 52px clamp(24px, 6vw, 52px) 50px; text-align: center; color: #3a2a24; background: var(--pa-linen);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 24px 40px -28px rgba(0, 0, 0, .45); }
.pa-towel::before, .pa-towel::after { content: ""; position: absolute; left: 0; right: 0; height: 18px;
    background:
        linear-gradient(135deg, var(--pa-stitch) 25%, transparent 25%) -9px 0 / 18px 18px,
        linear-gradient(225deg, var(--pa-stitch) 25%, transparent 25%) -9px 0 / 18px 18px,
        linear-gradient(315deg, var(--pa-stitch) 25%, transparent 25%) 0 0 / 18px 18px,
        linear-gradient(45deg, var(--pa-stitch) 25%, transparent 25%) 0 0 / 18px 18px; }
.pa-towel::before { top: 16px; }
.pa-towel::after { bottom: 16px; }
.pa-towel h3 { font-size: 1.5rem; font-style: italic; color: var(--pa-stitch); margin-bottom: 10px; }
.pa-towel p { color: #4a3a33; }
.pa-towel p:last-child { margin-bottom: 0; }
.pa-theme .pa-towel { background-image: repeating-linear-gradient(90deg, transparent 0 3px, rgba(120, 90, 60, .05) 3px 4px), repeating-linear-gradient(0deg, transparent 0 3px, rgba(120, 90, 60, .05) 3px 4px); }
.pa-theme { padding-bottom: 14px; }
.pa-theme .pa-towel { -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 10px) no-repeat, repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 5px) bottom / 100% 10px no-repeat;
    mask: linear-gradient(#000, #000) top / 100% calc(100% - 10px) no-repeat, repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 5px) bottom / 100% 10px no-repeat; }
.kit-js .pa-theme .pa-towel { opacity: 0; translate: 0 -16px; transform-origin: 50% 0; rotate: -1.5deg; transition: opacity .8s ease, translate 1s cubic-bezier(.3, 1.3, .5, 1), rotate 1.2s ease; }
.kit-js .pa-theme.is-visible .pa-towel { opacity: 1; translate: 0 0; rotate: 0deg; }

/* Programme: a spring watercolour beside every moment */
.pa-trail { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 30px; }
.pa-stop { display: grid; justify-items: center; }
.pa-stop-art { width: min(150px, 40vw); margin-bottom: -18px; z-index: 2; }
.pa-stop-card { width: 100%; display: grid; justify-items: center; gap: 2px; padding: 30px clamp(20px, 5vw, 36px) 22px; text-align: center; }
.kit-js .pa-stop .pa-stop-card { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .9s ease; }
.kit-js .pa-stop .pa-stop-art img { opacity: 0; scale: .8; transition: opacity .6s ease .3s, scale .9s cubic-bezier(.3, 1.4, .5, 1) .3s; }
.kit-js .pa-stop.is-visible .pa-stop-card { opacity: 1; translate: 0 0; }
.kit-js .pa-stop.is-visible .pa-stop-art img { opacity: 1; scale: 1; }
.pa-stop-time { font-family: var(--inv-font-heading); font-size: 1.5rem; color: var(--inv-primary); margin: 0 0 2px; font-variant-numeric: tabular-nums; }
.pa-stop-card h3 { font-size: clamp(1.3rem, 4vw, 1.55rem); margin-bottom: 4px; }
.pa-stop-place { font-weight: 700; margin: 0; }
.pa-stop-address, .pa-stop-notes { color: var(--pa-soft); margin: 0; }
.pa-stop-notes { font-style: italic; margin-top: 6px; }
.pa-stop .kit-event-actions { margin-top: 14px; justify-content: center; }
@media (min-width: 760px) {
    .pa-stop { grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 0; }
    .pa-stop-art { width: 170px; margin: 0 -26px 0 0; }
    .pa-stop:nth-child(even) { grid-template-columns: minmax(0, 1fr) 170px; }
    .pa-stop:nth-child(even) .pa-stop-art { order: 2; margin: 0 0 0 -26px; }
    .pa-stop-card { justify-items: start; text-align: left; padding-left: 48px; }
    .pa-stop:nth-child(even) .pa-stop-card { padding-left: 36px; padding-right: 48px; }
    .pa-stop .kit-event-actions { justify-content: flex-start; }
}
.paste .kit-button { border-radius: 999px; border: 1px solid var(--inv-primary); color: var(--inv-primary); background: transparent; font-size: .78rem; font-weight: 700; padding: 8px 18px; text-decoration: none; }
.paste .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: painted eggs, a band of motif at the top and bottom of each */
.pa-countdown { text-align: center; }
.pa-countdown .kit-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px clamp(10px, 3vw, 26px); margin-top: 30px; }
.pa-countdown .kit-countdown-unit { --c: #f7d6e2; width: clamp(70px, 19vw, 96px); min-width: 0; aspect-ratio: 4 / 5; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
    background:
        linear-gradient(180deg, transparent 15%, var(--pa-shell) 15% 21%, transparent 21% 79%, var(--pa-shell) 79% 85%, transparent 85%),
        radial-gradient(circle, var(--pa-shell) 0 1.4px, transparent 1.9px) 0 2px / 10px 10px,
        var(--c);
    box-shadow: inset 0 -10px 16px -8px rgba(0, 0, 0, .25), 0 12px 18px -12px rgba(0, 0, 0, .35); }
.pa-countdown .kit-countdown-unit:nth-child(2) { --c: #fbe6a6; }
.pa-countdown .kit-countdown-unit:nth-child(3) { --c: #d6e8c6; }
.pa-countdown .kit-countdown-unit:nth-child(4) { --c: #cfe0f4; }
.pa-countdown .kit-countdown-value { position: relative; font-family: var(--inv-font-heading); font-size: clamp(1.25rem, 5vw, 1.8rem); line-height: 1; color: #33272a; font-variant-numeric: tabular-nums;
    padding: 4px 6px 2px; border-radius: 10px; background: var(--c); }
.pa-countdown .kit-countdown-label { position: relative; opacity: 1; color: #4b3f42; font-size: .5rem; font-weight: 700; letter-spacing: .1em; padding: 0 4px; border-radius: 6px; background: var(--c); }
.kit-js .pa-countdown .kit-countdown-unit { opacity: 0; translate: 0 -30px; transition: opacity .5s ease, translate .9s cubic-bezier(.3, 1.6, .5, 1); }
.kit-js .pa-countdown .kit-countdown-unit:nth-child(2) { transition-delay: .12s; }
.kit-js .pa-countdown .kit-countdown-unit:nth-child(3) { transition-delay: .24s; }
.kit-js .pa-countdown .kit-countdown-unit:nth-child(4) { transition-delay: .36s; }
.kit-js .pa-countdown.is-visible .kit-countdown-unit { opacity: 1; translate: 0 0; }

/* Gallery: photos with a little painted border at the foot, tilted a touch like photos on the table */
.pa-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 26px); }
.pa-gallery-grid.kit-gallery a { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; border: 6px solid var(--inv-surface); box-shadow: var(--pa-shadow), 0 0 0 1px var(--pa-line); rotate: -1.2deg; transition: rotate .5s ease; }
.pa-gallery-grid.kit-gallery a:nth-child(even) { rotate: 1.4deg; }
.pa-gallery-grid.kit-gallery a:hover { rotate: 0deg; }
.pa-gallery-grid.kit-gallery img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s ease; }
.pa-gallery-grid.kit-gallery a:hover img { scale: 1.04; }
@media (min-width: 760px) { .pa-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* RSVP, info, contact */
.pa-reply { max-width: 700px; margin: 0 auto; padding: clamp(40px, 6vw, 56px) clamp(24px, 6vw, 56px) clamp(32px, 5vw, 48px); }
.paste .inv-rsvp__intro { font-family: var(--inv-font-heading); font-size: 1.08rem; }
.paste .inv-rsvp__deadline { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-primary); }
.pa-info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pa-info-item { padding: 30px 24px 20px; text-align: center; }
.pa-info-item h3 { font-size: 1.3rem; color: var(--inv-primary); margin-bottom: 8px; }
.pa-faq { max-width: 720px; margin: 46px auto 0; text-align: center; display: grid; gap: 12px; }
.pa-faq details { text-align: left; }
.pa-faq summary { cursor: pointer; list-style: none; padding: 17px 56px 17px 22px; position: relative; font-weight: 700; font-size: 1.02rem; }
.pa-faq summary::-webkit-details-marker { display: none; }
.pa-faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 14px; height: 18px; margin-top: -9px; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
    background: linear-gradient(180deg, transparent 40%, var(--pa-motif) 40% 55%, transparent 55%), var(--pa-shell); transition: rotate .5s ease; }
.pa-faq details[open] summary::after { rotate: 180deg; }
.pa-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; border-radius: 22px; }
.pa-faq details p { padding: 0 22px; color: var(--pa-soft); }
.pa-faq details p:last-child { padding-bottom: 16px; }
.pa-contact { text-align: center; }
.pa-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 60px; }
.pa-contact-person a { text-decoration: none; }

/* ---------- Footer: the basket waiting in the meadow ---------- */
.pa-footer { text-align: center; padding: clamp(90px, 13vw, 140px) 16px 0; overflow: hidden; overflow: clip; }
.pa-footer-message { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.18rem; color: var(--pa-soft); max-width: 36ch; margin: 0 auto 6px; }
.paste .pa-footer-name { font-family: var(--inv-font-heading); font-style: italic; font-size: clamp(2.4rem, 9vw, 3.6rem); line-height: 1.15; color: var(--inv-primary); margin: 4px 0 10px; }
.pa-hashtag { letter-spacing: .1em; color: var(--inv-primary); }
.pa-field { position: relative; margin: 30px -16px 0; height: clamp(260px, 42vw, 440px); }
.pa-meadow--end { top: auto; bottom: 0; height: 100%; opacity: .75; -webkit-mask-image: linear-gradient(0deg, #000 50%, transparent); mask-image: linear-gradient(0deg, #000 50%, transparent); }
.pa-meadow--end img { object-position: 50% 70%; }
.pa-dark .pa-meadow--end { opacity: .3; }
.pa-basket2 { position: absolute; left: 50%; bottom: 8%; width: min(230px, 52vw); translate: -50% 0; }
.kit-js .pa-footer .pa-basket2 img { opacity: 0; translate: 0 30px; transition: opacity .8s ease .2s, translate 1.1s cubic-bezier(.3, 1.3, .5, 1) .2s; }
.kit-js .pa-footer.is-visible .pa-basket2 img { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
    .pa-fly, .pa-fly::before, .pa-fly::after, .kit-js .pa-egg--hero, .kit-js .pa-basket img, .kit-js .pa-rabbit img, .kit-js .pa-hero-text > * { animation: none; }
    .pa-flutter { display: none; }
    .kit-js .pa-title .pa-roll i, .kit-js .pa-welcome .pa-chick img, .kit-js .pa-host-grid .pa-toy img, .kit-js .pa-theme .pa-towel, .kit-js .pa-stop .pa-stop-card,
    .kit-js .pa-stop .pa-stop-art img, .kit-js .pa-countdown .kit-countdown-unit, .kit-js .pa-footer .pa-basket2 img { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; transition: none; }
}
