/* ==========================================================================
   Bufniță - a christening under the moon, painted in watercolour: an evening sky with stars that twinkle in turn and
   now and then a shooting star, the photo as a full moon with a soft halo that breathes, and a little owl with a
   lantern on a branch in front of it (a touch makes it hop and the lantern flare). Soft feathers drift down the page,
   a crescent moon rises above every title, the owl in the flowered hat says hello, the little one's portrait sits in a
   small moon beside the owl in the sun hat, the parents have the owl couple and the godparents the owls in love, every
   moment has an owl perched on top, the days left are on the phases of the moon, and at the end the mother owl and her
   owlet sit in their tree under the night sky.
   Palette: --inv-primary (the ink), --inv-accent (the dusk colour), --inv-bg, --inv-text.
   The watercolours (assets/art, Pixabay, see LICENSES.md) come with their own transparency; on the dark palette
   (.bf-dark, set by script.js) they get a soft halo of moonlight. script.js draws the feathers (canvas.bf-air)
   ========================================================================== */

.bufnita {
    --bf-script: 'Pacifico', 'Segoe Script', cursive;
    --bf-soft: color-mix(in srgb, var(--inv-text) 64%, var(--inv-bg));
    --bf-line: color-mix(in srgb, var(--inv-primary) 18%, transparent);
    --bf-moonlight: color-mix(in srgb, #fff4d6 84%, var(--inv-accent));
    --bf-dusk: color-mix(in srgb, var(--inv-accent) 70%, var(--inv-bg));
    --bf-star: color-mix(in srgb, var(--inv-primary) 55%, var(--inv-accent));
    --bf-lamp: #ffd77a;
    --bf-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: 16px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--bf-line);
    font-family: var(--inv-font-body);
    font-weight: 400;
    font-size: 1.03rem;
    line-height: 1.74;
    background: var(--inv-bg);
    overflow-x: clip;
}
.bufnita.bf-dark { --bf-star: #f3dc9c; --bf-dusk: color-mix(in srgb, #0b1022 60%, var(--inv-bg)); }
.bufnita h1, .bufnita h2, .bufnita h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1.2; }
:where(.bufnita) :is(h1, h2, h3) { margin: 0; }
:where(.bufnita) p { margin: 0 0 .9em; }
.bufnita strong { font-weight: 600; }
.bufnita a { color: var(--inv-primary); }
.bf-kicker { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.bf-role { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bf-soft); margin: 0 0 4px; }
.bf-names { font-family: var(--inv-font-heading); font-size: 1.24rem; margin: 0; }
.bf-hero, .bf-main, .bf-footer { position: relative; z-index: 1; }
.bf-card { position: relative; background: var(--inv-surface); border-radius: 26px; box-shadow: var(--bf-shadow), 0 0 0 1px var(--bf-line); }
.bf-air { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- The watercolours ---------- */
.bf-art { position: relative; display: block; }
.bf-art img { display: block; width: 100%; height: auto; }
.bf-dark .bf-art img { filter: drop-shadow(0 0 22px color-mix(in srgb, var(--bf-moonlight) 30%, transparent)); }

/* ---------- Navigation ---------- */
.bf-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; padding: 18px; }
.bf-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.bf-nav .kit-nav-links a { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--inv-text); padding: 6px 0; border-bottom: 1px solid transparent; }
.bf-nav .kit-nav-links a:hover, .bf-nav .kit-nav-links a.is-current { border-color: var(--inv-primary); color: var(--inv-primary); }
.bf-nav .kit-nav-brand { font-family: var(--bf-script); font-size: 1.5rem; line-height: 1.2; color: var(--inv-primary); text-decoration: none; }
.bf-nav.is-stuck { justify-content: space-between; align-items: center; padding: 6px 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(--bf-line); }
.bufnita .kit-to-top { background: var(--inv-surface); color: var(--inv-primary); border: 1px solid var(--bf-line); }
@media (max-width: 899px) {
    .bf-nav { justify-content: flex-end; padding: 12px; }
    .bf-nav .kit-nav-toggle { width: 46px; height: 46px; border-radius: 50%; background: var(--inv-surface); color: var(--inv-primary); border: 1px solid var(--bf-line); font-size: 1.2rem; }
    .bf-nav .kit-nav-links { display: none; }
    .bf-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(--bf-shadow);
    }
    .bf-nav.is-stuck { padding: 6px 12px; }
}

/* ---------- The evening sky (hero and footer) ---------- */
.bf-sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
    background: linear-gradient(180deg, var(--bf-dusk) 0%, color-mix(in srgb, var(--bf-dusk) 45%, var(--inv-bg)) 55%, var(--inv-bg) 100%); }
.bf-star { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; background: var(--bf-star); opacity: .2;
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
    animation: bf-twinkle 3.4s ease-in-out infinite; animation-delay: calc(var(--s) * -.53s); }
.bf-star:nth-of-type(3n) { width: 7px; height: 7px; }
.bf-star:nth-of-type(3n+1) { width: 9px; height: 9px; }
@keyframes bf-twinkle { 0%, 100% { opacity: .18; scale: .7; } 50% { opacity: .95; scale: 1.1; } }
.bf-comet { position: absolute; left: 70%; top: 10%; width: 120px; height: 2px; border-radius: 2px; rotate: 155deg; opacity: 0;
    background: linear-gradient(90deg, var(--bf-star), transparent); animation: bf-comet 11s ease-in 3s infinite; }
@keyframes bf-comet { 0%, 86% { opacity: 0; translate: 0 0; } 88% { opacity: 1; } 96% { opacity: 0; translate: -340px 0; } 100% { opacity: 0; translate: -340px 0; } }

/* ---------- Hero: the moon and the owl with its lantern ---------- */
.bf-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 110px 16px 60px; overflow: hidden; overflow: clip; }
.bf-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; }
.bf-night { position: relative; width: min(420px, 84vw); padding-bottom: 14%; }

/* the full moon */
.bf-moon { position: relative; margin: 0; aspect-ratio: 1; }
.bf-halo { position: absolute; inset: -22%; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--bf-moonlight) 70%, transparent) 55%, color-mix(in srgb, var(--bf-moonlight) 22%, transparent) 75%, transparent 100%);
    animation: bf-breathe 6s ease-in-out infinite; }
@keyframes bf-breathe { 0%, 100% { opacity: .75; scale: .96; } 50% { opacity: 1; scale: 1.03; } }
.bf-moon-photo { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--bf-moonlight);
    box-shadow: 0 0 0 6px var(--bf-moonlight), 0 0 0 7px color-mix(in srgb, var(--inv-primary) 22%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--inv-text) 60%, transparent); }
.bf-moon-photo img, .bf-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.bf-initial { display: grid; place-items: center; font-family: var(--bf-script); font-size: 5rem; color: var(--inv-primary); }
.kit-js .bf-moon--hero { animation: bf-rise 1.6s cubic-bezier(.25, 1, .4, 1) .1s both; }
@keyframes bf-rise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }

/* the owl on its branch, with the lantern glowing (the lantern sits at the right of the painting) */
.bf-perch { position: absolute; right: -12%; bottom: -2%; width: 62%; z-index: 3; cursor: pointer; transform-origin: 40% 90%; -webkit-tap-highlight-color: transparent; }
.bf-lamp { position: absolute; left: 70%; top: 34%; width: 44%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; z-index: 2; mix-blend-mode: screen;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--bf-lamp) 75%, transparent), color-mix(in srgb, var(--bf-lamp) 20%, transparent) 55%, transparent);
    animation: bf-flicker 2.6s ease-in-out infinite; }
@keyframes bf-flicker { 0%, 100% { opacity: .65; scale: .95; } 30% { opacity: .9; scale: 1.02; } 55% { opacity: .7; } 75% { opacity: 1; scale: 1.05; } }
.kit-js .bf-perch .bf-art img { animation: bf-land 1.3s cubic-bezier(.3, 1.3, .5, 1) .7s both; }
@keyframes bf-land { from { opacity: 0; translate: 40px -30px; rotate: 8deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
.bf-perch.is-hopping .bf-art { animation: bf-hop .9s cubic-bezier(.3, 1.4, .5, 1) 1; }
.bf-perch.is-hopping .bf-lamp { animation: bf-flare .9s ease-out 1; }
@keyframes bf-hop { 0%, 100% { translate: 0 0; scale: 1; } 20% { translate: 0 2px; scale: 1.03 .95; } 45% { translate: 0 -14%; scale: .98 1.03; } 70% { translate: 0 0; scale: 1.02 .97; } }
@keyframes bf-flare { 0% { opacity: .7; scale: 1; } 30% { opacity: 1; scale: 1.5; } 100% { opacity: .7; scale: 1; } }

.bf-hero-text { display: grid; justify-items: center; width: 100%; min-width: 0; }
.bufnita .bf-name { font-family: var(--bf-script); font-weight: 400; font-size: clamp(3rem, 12vw, 5rem); line-height: 1.25; color: var(--inv-primary); overflow-wrap: anywhere; margin: 0 0 12px; }
.bf-hero-date { font-family: var(--inv-font-heading); font-size: 1.36rem; margin: 0 0 4px; }
.bf-hero-place { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bf-soft); margin: 0; }
.bufnita .bf-subtitle { max-width: 44ch; margin: 16px auto 0; color: var(--bf-soft); }
@keyframes bf-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.kit-js .bf-hero-text > * { animation: bf-up 1s ease 1s both; }
.kit-js .bf-hero-text > :nth-child(n+3) { animation-delay: 1.3s; }
@media (min-width: 900px) {
    .bf-hero { padding-top: 140px; }
    .bf-hero-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 70px; text-align: left; align-items: center; }
    .bf-hero-text { justify-items: start; order: -1; }
    .bufnita .bf-subtitle { margin-left: 0; }
    .bf-night { width: min(420px, 38vw); }
}

/* ---------- Sections ---------- */
.bf-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.bf-section { padding-top: clamp(84px, 11vw, 128px); }
.bf-title { margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.bf-title h2 { font-size: clamp(1.9rem, 5.4vw, 2.6rem); color: var(--inv-primary); text-wrap: balance; }
.bf-crescent { position: relative; display: block; width: 46px; height: 30px; margin: 0 auto 10px; }
.bf-crescent i { position: absolute; left: 10px; top: 2px; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset -7px 3px 0 0 var(--bf-star); rotate: 20deg; }
.bf-crescent b { position: absolute; right: 2px; top: 0; width: 10px; height: 10px; background: var(--bf-star); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.kit-js .bf-title .bf-crescent i { translate: 0 14px; opacity: 0; transition: translate 1s cubic-bezier(.3, 1.3, .5, 1) .15s, opacity .6s ease .15s; }
.kit-js .bf-title .bf-crescent b { scale: 0; transition: scale .6s cubic-bezier(.3, 1.6, .5, 1) .7s; }
.kit-js .bf-title.is-visible .bf-crescent i { translate: 0 0; opacity: 1; }
.kit-js .bf-title.is-visible .bf-crescent b { scale: 1; }

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

/* The little one (the owl sits past the moon, so the section clips what a phone cannot show) */
.bf-child { overflow-x: clip; padding-bottom: 30px; }
.bf-child-grid { display: grid; gap: 64px; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.bf-portrait { position: relative; width: min(270px, 66vw); }
.bf-keeper { position: absolute; right: -26%; bottom: -24%; width: 52%; z-index: 3; }
.kit-js .bf-child-grid .bf-keeper img { opacity: 0; translate: 20px 0; transition: opacity .8s ease .5s, translate 1.1s cubic-bezier(.3, 1.3, .5, 1) .5s; }
.kit-js .bf-child-grid.is-visible .bf-keeper img { opacity: 1; translate: 0 0; }
.bf-child-name { font-family: var(--inv-font-heading); font-size: 1.8rem; color: var(--inv-primary); margin-bottom: 6px; }
.bf-child-born { color: var(--bf-soft); }
.bf-child-born strong { color: var(--inv-text); font-family: var(--inv-font-heading); font-weight: 500; }
.bf-child-message { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.1rem; max-width: 36ch; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
    .bf-child-grid { grid-template-columns: auto minmax(0, 1fr); gap: 100px; text-align: left; align-items: center; }
    .bf-portrait { width: 280px; }
    .bf-child-message { margin-left: 0; }
}

/* Family: name cards, each with its pair of owls */
.bf-cards { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); max-width: 720px; margin: 0 auto; }
.bf-namecard { position: relative; padding: 0 22px 26px; text-align: center; border-radius: 26px; background: var(--inv-surface); box-shadow: var(--bf-shadow), 0 0 0 1px var(--bf-line); margin-top: 70px; }
.bf-namecard-art { width: 150px; margin: -76px auto 10px; }
.kit-js .bf-family .bf-namecard { opacity: 0; translate: 0 20px; transition: opacity .6s ease, translate .8s ease; }
.kit-js .bf-family .bf-namecard:nth-child(2) { transition-delay: .15s; }
.kit-js .bf-family .bf-namecard:nth-child(3) { transition-delay: .3s; }
.kit-js .bf-family.is-visible .bf-namecard { opacity: 1; translate: 0 0; }
.bf-lead { text-align: center; font-family: var(--inv-font-heading); font-style: italic; font-size: 1.2rem; color: var(--bf-soft); max-width: 40ch; margin: 0 auto 10px; }

/* Programme: an owl perched on top of every card */
.bf-trail { list-style: none; margin: 0 auto; padding: 0; max-width: 680px; display: grid; gap: 40px; }
.bf-stop { position: relative; display: grid; justify-items: center; }
.bf-stop-art { width: min(124px, 34vw); margin-bottom: -16px; z-index: 2; }
.bf-stop-card { width: 100%; display: grid; justify-items: center; gap: 2px; padding: 30px clamp(20px, 5vw, 36px) 22px; text-align: center; }
.kit-js .bf-stop .bf-stop-card { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .9s ease; }
.kit-js .bf-stop .bf-stop-art img { opacity: 0; translate: 0 -24px; transition: opacity .6s ease .35s, translate .9s cubic-bezier(.3, 1.4, .5, 1) .35s; }
.kit-js .bf-stop.is-visible .bf-stop-card, .kit-js .bf-stop.is-visible .bf-stop-art img { opacity: 1; translate: 0 0; }
.bf-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; }
.bf-stop-card h3 { font-size: clamp(1.3rem, 4vw, 1.5rem); margin-bottom: 4px; }
.bf-stop-place { font-weight: 600; margin: 0; }
.bf-stop-address, .bf-stop-notes { color: var(--bf-soft); margin: 0; }
.bf-stop-notes { font-style: italic; margin-top: 6px; }
.bf-stop .kit-event-actions { margin-top: 14px; justify-content: center; }
.bufnita .kit-button { border-radius: 999px; border: 1px solid var(--inv-primary); color: var(--inv-primary); background: transparent; font-size: .78rem; font-weight: 600; padding: 8px 18px; text-decoration: none; }
.bufnita .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: the phases of the moon, from a crescent to the full moon */
.bf-countdown { text-align: center; }
.bf-countdown .kit-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px clamp(10px, 3vw, 26px); margin-top: 30px; }
.bf-countdown .kit-countdown-unit { --ph: 26px; width: clamp(76px, 20vw, 104px); min-width: 0; aspect-ratio: 1; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, #fffdf4, var(--bf-moonlight) 70%);
    box-shadow: inset calc(-1 * var(--ph)) 0 0 0 color-mix(in srgb, var(--inv-primary) 30%, var(--bf-moonlight)), 0 0 0 1px color-mix(in srgb, var(--inv-primary) 14%, transparent), 0 0 30px -4px color-mix(in srgb, var(--bf-moonlight) 80%, transparent); }
.bf-countdown .kit-countdown-unit:nth-child(2) { --ph: 16px; }
.bf-countdown .kit-countdown-unit:nth-child(3) { --ph: 7px; }
.bf-countdown .kit-countdown-unit:nth-child(4) { --ph: 0px; }
.bf-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-size: clamp(1.3rem, 5vw, 1.9rem); line-height: 1; color: #2d2a3a; font-variant-numeric: tabular-nums; }
.bf-countdown .kit-countdown-label { opacity: 1; color: #4b4658; font-size: .5rem; font-weight: 700; letter-spacing: .1em; margin-top: 3px; }
.kit-js .bf-countdown .kit-countdown-unit { opacity: 0; scale: .7; transition: opacity .6s ease, scale .8s cubic-bezier(.3, 1.4, .5, 1); }
.kit-js .bf-countdown .kit-countdown-unit:nth-child(2) { transition-delay: .15s; }
.kit-js .bf-countdown .kit-countdown-unit:nth-child(3) { transition-delay: .3s; }
.kit-js .bf-countdown .kit-countdown-unit:nth-child(4) { transition-delay: .45s; }
.kit-js .bf-countdown.is-visible .kit-countdown-unit { opacity: 1; scale: 1; }

/* Gallery: photos in soft arched windows, a star in the corner of each */
.bf-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 26px); }
.bf-gallery-grid.kit-gallery a { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 22px 22px; overflow: hidden; box-shadow: 0 0 0 5px var(--inv-surface), 0 0 0 6px var(--bf-line), var(--bf-shadow); }
.bf-gallery-grid.kit-gallery img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s ease; }
.bf-gallery-grid.kit-gallery a:hover img { scale: 1.04; }
@media (min-width: 760px) { .bf-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

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

/* ---------- Footer: the owls' tree under the night sky ---------- */
.bf-footer { text-align: center; padding: clamp(110px, 15vw, 160px) 16px 0; margin-top: clamp(60px, 9vw, 100px); overflow: hidden; overflow: clip; }
.bf-sky--end { background: linear-gradient(0deg, var(--bf-dusk) 0%, color-mix(in srgb, var(--bf-dusk) 40%, var(--inv-bg)) 60%, var(--inv-bg) 100%); }
.bf-footer > :not(.bf-sky) { position: relative; }
.bf-footer-message { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.18rem; color: var(--bf-soft); max-width: 36ch; margin: 0 auto 6px; }
.bufnita .bf-footer-name { font-family: var(--bf-script); font-size: clamp(2.8rem, 10vw, 4rem); line-height: 1.3; color: var(--inv-primary); margin: 4px 0 10px; }
.bf-hashtag { letter-spacing: .1em; color: var(--inv-primary); }
.bf-tree { width: min(260px, 64vw); margin: 26px auto 0; }
.kit-js .bf-footer .bf-tree img { opacity: 0; translate: 0 30px; }
.kit-js .bf-footer.is-visible .bf-tree img { animation: bf-rise 1.6s ease .2s both; }

@media (prefers-reduced-motion: reduce) {
    .bf-star, .bf-comet, .bf-halo, .bf-lamp, .kit-js .bf-moon--hero, .kit-js .bf-perch .bf-art img, .kit-js .bf-hero-text > * { animation: none; }
    .bf-comet { display: none; }
    .kit-js .bf-title .bf-crescent i, .kit-js .bf-title .bf-crescent b, .kit-js .bf-welcome .bf-hello img, .kit-js .bf-child-grid .bf-keeper img, .kit-js .bf-family .bf-namecard,
    .kit-js .bf-stop .bf-stop-card, .kit-js .bf-stop .bf-stop-art img, .kit-js .bf-countdown .kit-countdown-unit { opacity: 1; translate: 0 0; scale: 1; transition: none; }
    .kit-js .bf-footer .bf-tree img { opacity: 1; translate: 0 0; animation: none; }
}
