/* ==========================================================================
   Fulg - a winter christening, painted in watercolour and warm as a woolly hat: the photo in the ribbed brim of a
   knitted bobble hat, the owl with its lantern on a branch beside it and the snowy owl flying in (a touch makes the
   bobble bounce and shakes a handful of snowflakes off the hat). Snow falls softly down the page, a snowflake draws
   itself above every title, the penguins in red hats say hello, the child's portrait sits in a little knitted hat
   beside the teddy bear, the parents have the mother polar bear and the godparents the owl in its scarf, every
   moment has its animal, the days left sit on snowballs, the photos are seen through windows whose frost flowers
   melt away and at the end the knitted penguins hug.
   Palette: --inv-primary (the ink), --inv-accent (the soft colour), --inv-bg, --inv-text.
   The watercolours (assets/art, Pixabay, see LICENSES.md) came transparent; on the dark palette (.fu-dark, set by
   script.js) they get back a sheet of watercolour paper. script.js draws the falling snow (canvas.fu-air)
   ========================================================================== */

.fulg {
    --fu-soft: color-mix(in srgb, var(--inv-text) 64%, var(--inv-bg));
    --fu-line: color-mix(in srgb, var(--inv-primary) 18%, transparent);
    --fu-paper: color-mix(in srgb, #fbfdff 90%, var(--inv-accent));
    /* the wool: two tones of the palette, knitted together */
    --fu-wool: color-mix(in srgb, var(--inv-primary) 72%, #fff);
    --fu-wool-dark: color-mix(in srgb, var(--inv-primary) 88%, #000);
    --fu-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(--fu-line);
    font-family: var(--inv-font-body);
    font-weight: 400;
    font-size: 1.03rem;
    line-height: 1.72;
    background: var(--inv-bg);
    overflow-x: clip;
}
.fu-dark { --fu-wool: color-mix(in srgb, var(--inv-accent) 80%, #fff); --fu-wool-dark: color-mix(in srgb, var(--inv-accent) 70%, #0b1420); }
.fulg h1, .fulg h2, .fulg h3 { font-family: var(--inv-font-heading); font-weight: 600; line-height: 1.12; }
:where(.fulg) :is(h1, h2, h3) { margin: 0; }
:where(.fulg) p { margin: 0 0 .9em; }
.fulg strong { font-weight: 700; }
.fulg a { color: var(--inv-primary); }
.fu-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.fu-role { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fu-soft); margin: 0 0 4px; }
.fu-names { font-family: var(--inv-font-heading); font-weight: 600; font-size: 1.3rem; margin: 0; }
.fu-hero, .fu-main, .fu-footer { position: relative; z-index: 1; }
.fu-card { position: relative; background: var(--inv-surface); border-radius: 22px; box-shadow: var(--fu-shadow), 0 0 0 1px var(--fu-line); }
.fu-air { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

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

/* ---------- The knitted hat round a round photo: the ribbed brim and the bobble ---------- */
.fu-hat { position: relative; margin: 0; aspect-ratio: 1; }
/* the rib: a thick ring of knit stitches, little V columns all the way round */
.fu-rib { position: absolute; inset: -11%; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, var(--fu-wool) 0 3.2deg, var(--fu-wool-dark) 3.2deg 3.9deg, var(--fu-wool) 3.9deg 7.1deg, color-mix(in srgb, var(--fu-wool) 80%, #fff) 7.1deg 7.5deg);
    -webkit-mask: radial-gradient(closest-side, transparent 80%, #000 81%); mask: radial-gradient(closest-side, transparent 80%, #000 81%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.fu-rib::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, transparent 80%, rgba(0, 0, 0, .14) 82%, transparent 88%, rgba(255, 255, 255, .25) 94%, transparent 99%); }
.fu-bobble { position: absolute; left: 50%; top: -31%; z-index: 2; width: 38%; aspect-ratio: 1; margin-left: -19%; border-radius: 50%; transform-origin: 50% 100%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .22) 0 2deg, transparent 2deg 5deg, rgba(0, 0, 0, .08) 5deg 6deg, transparent 6deg 9deg), radial-gradient(circle at 36% 32%, color-mix(in srgb, var(--fu-wool) 50%, #fff), var(--fu-wool) 55%, var(--fu-wool-dark));
    -webkit-mask: radial-gradient(closest-side, #000 82%, transparent 100%), repeating-conic-gradient(#000 0 4deg, transparent 4deg 8deg); mask: radial-gradient(closest-side, #000 82%, transparent 100%), repeating-conic-gradient(#000 0 4deg, transparent 4deg 8deg);
    -webkit-mask-composite: source-over; mask-composite: add;
    filter: drop-shadow(0 6px 6px rgba(20, 40, 60, .25)); }
.fu-hat-photo { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--fu-paper); box-shadow: 0 22px 40px -22px color-mix(in srgb, var(--inv-text) 70%, transparent); }
.fu-hat-photo img, .fu-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.fu-initial { display: grid; place-items: center; font-family: var(--inv-font-heading); font-weight: 600; font-size: 5rem; color: var(--inv-primary); }
.fu-cosy.is-shaking .fu-bobble { animation: fu-bounce .9s cubic-bezier(.3, 1.4, .5, 1) 1; }
@keyframes fu-bounce { 0%, 100% { translate: 0 0; scale: 1; } 25% { translate: 0 -16px; scale: .94 1.06; } 50% { translate: 0 0; scale: 1.08 .9; } 70% { translate: 0 -5px; scale: 1; } }
.fu-cosy.is-shaking .fu-rib { animation: fu-wiggle .6s ease-in-out 1; }
@keyframes fu-wiggle { 0%, 100% { rotate: 0deg; } 30% { rotate: 3deg; } 65% { rotate: -2deg; } }

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

/* ---------- Hero: the hat, the owl with its lantern and the snowy owl flying in ---------- */
.fu-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px 16px 70px; overflow: hidden; overflow: clip; }
.fu-glow { position: absolute; right: -16%; top: -16%; width: min(1000px, 160vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-accent) 85%, transparent), transparent 72%); }
.fu-dark .fu-glow { background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-accent) 18%, transparent), transparent 72%); }
.fu-hero-inner { position: relative; z-index: 1; width: min(1060px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 44px; text-align: center; }
.fu-cosy { position: relative; width: min(220px, 50vw); margin: 30% 12% 22% 18%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kit-js .fu-hat--hero .fu-hat-photo { animation: fu-rise 1.2s cubic-bezier(.3, 1.2, .5, 1) .1s both; }
.kit-js .fu-hat--hero .fu-rib { animation: fu-knit 1.4s cubic-bezier(.3, 1.1, .5, 1) .3s both; }
.kit-js .fu-hat--hero .fu-bobble { animation: fu-drop 1s cubic-bezier(.3, 1.6, .5, 1) 1s both; }
@keyframes fu-rise { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
@keyframes fu-knit { from { opacity: 0; rotate: -120deg; scale: .8; } to { opacity: 1; rotate: 0deg; scale: 1; } }
@keyframes fu-drop { from { opacity: 0; translate: 0 -40px; } to { opacity: 1; translate: 0 0; } }
.fu-lantern { position: absolute; left: -62%; bottom: -34%; width: 76%; z-index: 3; }
.kit-js .fu-lantern img { animation: fu-in-l 1.2s cubic-bezier(.3, 1.2, .5, 1) 1.2s both; }
@keyframes fu-in-l { from { opacity: 0; translate: -30px 10px; } to { opacity: 1; translate: 0 0; } }
.fu-flyer { position: absolute; right: -46%; top: -70%; width: 62%; z-index: 3; }
@media (min-width: 900px) { .fu-flyer { right: -60%; top: -64%; width: 74%; } }
.kit-js .fu-flyer img { animation: fu-fly-in 2.2s cubic-bezier(.25, .8, .4, 1) .9s both; }
@keyframes fu-fly-in { from { opacity: 0; translate: 120px -80px; scale: .7; } 60% { opacity: 1; } to { opacity: 1; translate: 0 0; scale: 1; } }
.kit-js .fu-flyer { animation: fu-glide 6s ease-in-out 3.2s infinite; }
@keyframes fu-glide { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: -6px 8px; rotate: -3deg; } }
/* the snowflakes shaken off the hat */
.fu-shake { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.fu-shake i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; opacity: 0;
    background: linear-gradient(#fff, #fff) 50% 50% / 2px 100% no-repeat, linear-gradient(60deg, transparent 46%, #fff 46% 54%, transparent 54%), linear-gradient(-60deg, transparent 46%, #fff 46% 54%, transparent 54%);
    filter: drop-shadow(0 0 2px rgba(60, 110, 160, .8)); }
.fu-cosy.is-shaking .fu-shake i { animation: fu-puff 1.8s ease-out 1 both; animation-delay: calc(var(--f) * .04s); }
@keyframes fu-puff {
    0% { opacity: 0; transform: rotate(calc(var(--f) * 45deg)) translateY(-40%) rotate(0deg) scale(.4); }
    15% { opacity: 1; }
    100% { opacity: 0; transform: rotate(calc(var(--f) * 45deg)) translateY(-190%) rotate(160deg) scale(1.1); }
}
.fu-shake i:nth-child(odd) { width: 10px; height: 10px; margin: -5px 0 0 -5px; }

.fu-hero-text { display: grid; justify-items: center; width: 100%; min-width: 0; }
.fulg .fu-name { font-family: var(--inv-font-heading); font-weight: 700; font-size: clamp(3.2rem, 14vw, 6rem); line-height: 1; color: var(--inv-primary); overflow-wrap: anywhere; text-wrap: balance; margin: 0 0 16px; letter-spacing: -.01em; }
.fu-hero-date { font-family: var(--inv-font-heading); font-weight: 600; font-size: 1.35rem; margin: 0 0 4px; }
.fu-hero-place { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--fu-soft); margin: 0; }
.fulg .fu-subtitle { max-width: 44ch; margin: 16px auto 0; color: var(--fu-soft); }
@keyframes fu-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.kit-js .fu-hero-text > * { animation: fu-up 1s ease .9s both; }
.kit-js .fu-hero-text > :nth-child(n+3) { animation-delay: 1.2s; }
@media (min-width: 900px) {
    .fu-hero { padding-top: 150px; }
    .fu-hero-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 60px; text-align: left; align-items: center; }
    .fu-hero-text { justify-items: start; order: -1; }
    .fulg .fu-subtitle { margin-left: 0; }
    .fu-cosy { width: min(260px, 22vw); margin: 150px clamp(110px, 11vw, 150px) 90px clamp(130px, 12vw, 170px); }
}

/* ---------- Sections ---------- */
.fu-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.fu-section { padding-top: clamp(84px, 11vw, 128px); overflow-x: clip; }
.fu-title { margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.fu-title h2 { font-size: clamp(2rem, 5.6vw, 2.8rem); color: var(--inv-primary); text-wrap: balance; }
/* the snowflake: three crossed rays, each with a little fork at both ends */
.fu-flake { position: relative; display: block; width: 36px; height: 36px; margin: 0 auto 12px; color: var(--inv-primary); }
.fu-flake i { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 2px; background: currentColor; }
.fu-flake i::before, .fu-flake i::after { content: ""; position: absolute; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border: solid currentColor; border-width: 2px 0 0 2px; rotate: 45deg; }
.fu-flake i::before { top: 3px; }
.fu-flake i::after { bottom: 3px; rotate: 225deg; }
.fu-flake i:nth-child(2) { rotate: 60deg; }
.fu-flake i:nth-child(3) { rotate: -60deg; }
.kit-js .fu-title .fu-flake i { scale: 1 0; }
.kit-js .fu-title .fu-flake { rotate: -60deg; }
.kit-js .fu-title.is-visible .fu-flake { rotate: 0deg; transition: rotate 1.4s cubic-bezier(.3, 1.2, .5, 1); }
.kit-js .fu-title.is-visible .fu-flake i { scale: 1 1; transition: scale .6s cubic-bezier(.3, 1.4, .5, 1); }
.kit-js .fu-title.is-visible .fu-flake i:nth-child(2) { transition-delay: .15s; }
.kit-js .fu-title.is-visible .fu-flake i:nth-child(3) { transition-delay: .3s; }

/* Welcome, from the penguins in red hats */
.fu-welcome { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 820px; margin: 0 auto; }
.fu-welcome p { font-size: 1.05rem; }
.fu-hello { width: min(230px, 60vw); }
.kit-js .fu-welcome .fu-hello img { opacity: 0; translate: 0 26px; transition: opacity .9s ease, translate 1.2s cubic-bezier(.3, 1.4, .5, 1); }
.kit-js .fu-welcome.is-visible .fu-hello img { opacity: 1; translate: 0 0; }
.fulg .fu-welcome-title { font-family: var(--inv-font-heading); font-weight: 700; font-size: clamp(2.2rem, 7.4vw, 3.2rem); line-height: 1.05; color: var(--inv-primary); margin-bottom: 12px; }
.fu-quote-author { font-family: var(--inv-font-heading); font-weight: 600; color: var(--inv-primary); }
@media (min-width: 760px) {
    .fu-welcome { grid-template-columns: auto minmax(0, 1fr); gap: 50px; text-align: left; align-items: center; }
    .fu-hello { width: 260px; }
}

/* The little one: the portrait in a little knitted hat, the teddy bear sitting past it */
.fu-child { padding-bottom: 30px; }
.fu-child-grid { display: grid; gap: 70px; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.fu-portrait { position: relative; width: min(190px, 48vw); margin: 22% 0 10%; }
.fu-mama { position: absolute; right: -66%; bottom: -26%; width: 74%; z-index: 3; }
.kit-js .fu-child-grid .fu-mama img { opacity: 0; translate: 20px 10px; transition: opacity .8s ease .5s, translate 1.1s cubic-bezier(.3, 1.3, .5, 1) .5s; }
.kit-js .fu-child-grid.is-visible .fu-mama img { opacity: 1; translate: 0 0; }
.kit-js .fu-child-grid .fu-hat--child .fu-bobble { translate: 0 -30px; opacity: 0; }
.kit-js .fu-child-grid.is-visible .fu-hat--child .fu-bobble { translate: 0 0; opacity: 1; transition: translate .9s cubic-bezier(.3, 1.6, .5, 1) .3s, opacity .4s ease .3s; }
.fu-child-name { font-family: var(--inv-font-heading); font-weight: 700; font-size: 1.8rem; color: var(--inv-primary); margin-bottom: 6px; }
.fu-child-born { color: var(--fu-soft); }
.fu-child-born strong { color: var(--inv-text); font-family: var(--inv-font-heading); font-weight: 600; }
.fu-child-message { font-family: var(--inv-font-heading); font-weight: 500; font-size: 1.1rem; max-width: 36ch; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
    .fu-child-grid { grid-template-columns: auto minmax(0, 1fr); gap: 130px; text-align: left; align-items: center; }
    .fu-portrait { width: 210px; }
    .fu-child-message { margin-left: 0; }
}

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

/* Programme */
.fu-trail { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 30px; }
.fu-stop { display: grid; justify-items: center; }
.fu-stop-art { width: min(150px, 40vw); margin-bottom: -14px; z-index: 2; }
.fu-stop-card { width: 100%; display: grid; justify-items: center; gap: 2px; padding: 28px clamp(20px, 5vw, 36px) 22px; text-align: center; }
.kit-js .fu-stop .fu-stop-card { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .9s ease; }
.kit-js .fu-stop .fu-stop-art img { opacity: 0; scale: .8; transition: opacity .6s ease .3s, scale .9s cubic-bezier(.3, 1.5, .5, 1) .3s; }
.kit-js .fu-stop.is-visible .fu-stop-card { opacity: 1; translate: 0 0; }
.kit-js .fu-stop.is-visible .fu-stop-art img { opacity: 1; scale: 1; }
.fu-stop-time { font-family: var(--inv-font-heading); font-weight: 700; font-size: 1.8rem; line-height: 1; color: var(--inv-primary); margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.fu-stop-card h3 { font-size: clamp(1.4rem, 4vw, 1.65rem); margin-bottom: 4px; }
.fu-stop-place { font-weight: 700; margin: 0; }
.fu-stop-address, .fu-stop-notes { color: var(--fu-soft); margin: 0; }
.fu-stop-notes { font-style: italic; margin-top: 6px; }
.fu-stop .kit-event-actions { margin-top: 14px; justify-content: center; }
@media (min-width: 760px) {
    .fu-stop { grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 0; }
    .fu-stop-art { width: 170px; margin: 0 -26px 0 0; }
    .fu-stop:nth-child(even) { grid-template-columns: minmax(0, 1fr) 170px; }
    .fu-stop:nth-child(even) .fu-stop-art { order: 2; margin: 0 0 0 -26px; }
    .fu-stop-card { justify-items: start; text-align: left; padding-left: 48px; }
    .fu-stop:nth-child(even) .fu-stop-card { padding-left: 36px; padding-right: 48px; }
    .fu-stop .kit-event-actions { justify-content: flex-start; }
}
.fulg .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; }
.fulg .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: each number on a snowball, a little glint on top */
.fu-countdown { text-align: center; padding-bottom: 14px; }
.fu-countdown .kit-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px clamp(14px, 4vw, 30px); margin-top: 40px; }
.fu-countdown .kit-countdown-unit { position: relative; width: clamp(68px, 18vw, 96px); min-width: 0; aspect-ratio: 1; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; isolation: isolate;
    background: radial-gradient(circle at 34% 28%, #fff 0 18%, #eef5fc 46%, #cfdeee 78%, #b3c7dd);
    box-shadow: inset -5px -7px 12px rgba(80, 120, 170, .25), 0 12px 18px -12px rgba(30, 60, 100, .55); }
.fu-countdown .kit-countdown-unit::after { content: ""; position: absolute; left: 22%; top: 16%; width: 18%; height: 10%; border-radius: 50%; background: rgba(255, 255, 255, .9); rotate: -30deg; filter: blur(1px); }
.fu-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-weight: 700; font-size: clamp(1.3rem, 5vw, 1.8rem); line-height: 1; color: #24415f; font-variant-numeric: tabular-nums; }
.fu-countdown .kit-countdown-label { opacity: 1; color: #4b6a8a; font-size: .52rem; font-weight: 700; letter-spacing: .1em; margin-top: 2px; }
.kit-js .fu-countdown .kit-countdown-unit { opacity: 0; translate: 0 30px; scale: .6; transition: opacity .6s ease, translate 1s cubic-bezier(.3, 1.4, .5, 1), scale 1s cubic-bezier(.3, 1.4, .5, 1); }
.kit-js .fu-countdown .kit-countdown-unit:nth-child(2) { transition-delay: .15s; }
.kit-js .fu-countdown .kit-countdown-unit:nth-child(3) { transition-delay: .3s; }
.kit-js .fu-countdown .kit-countdown-unit:nth-child(4) { transition-delay: .45s; }
.kit-js .fu-countdown.is-visible .kit-countdown-unit { opacity: 1; translate: 0 0; scale: 1; }

/* Gallery: windows with frost flowers in the corners, melting away as the photos come into view */
.fu-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); }
.fu-gallery-grid.kit-gallery a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 120px 120px 14px 14px; background: var(--fu-paper);
    box-shadow: 0 0 0 6px var(--inv-surface), 0 0 0 7px var(--fu-line), 0 22px 34px -20px color-mix(in srgb, var(--inv-text) 55%, transparent); transition: translate .5s ease; }
.fu-gallery-grid.kit-gallery a:hover { translate: 0 -4px; }
.fu-gallery-grid.kit-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fu-gallery-grid.kit-gallery a::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; transition: opacity 2.4s ease;
    background: radial-gradient(ellipse 70% 55% at 0 100%, rgba(255, 255, 255, .95), rgba(240, 248, 255, .6) 45%, transparent 72%),
        radial-gradient(ellipse 60% 45% at 100% 100%, rgba(255, 255, 255, .9), rgba(240, 248, 255, .5) 45%, transparent 70%),
        radial-gradient(ellipse 80% 40% at 50% 0, rgba(255, 255, 255, .7), transparent 70%); }
.kit-js .fu-gallery .fu-gallery-grid a::after { opacity: 1; }
.kit-js .fu-gallery.is-visible .fu-gallery-grid a::after { opacity: .35; }
.kit-js .fu-gallery.is-visible .fu-gallery-grid a:nth-child(2)::after { transition-delay: .2s; }
.kit-js .fu-gallery.is-visible .fu-gallery-grid a:nth-child(3)::after { transition-delay: .4s; }
.kit-js .fu-gallery.is-visible .fu-gallery-grid a:nth-child(4)::after { transition-delay: .6s; }
.kit-js .fu-gallery.is-visible .fu-gallery-grid a:nth-child(n+5)::after { transition-delay: .8s; }
.fu-gallery-grid.kit-gallery a:hover::after { opacity: 0; transition: opacity .6s ease; }
@media (min-width: 760px) { .fu-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 860px; margin: 0 auto; } }

/* RSVP: the card with a knitted band across its top */
.fu-reply { max-width: 700px; margin: 0 auto; padding: clamp(52px, 7vw, 66px) clamp(24px, 6vw, 56px) clamp(32px, 5vw, 48px); overflow: hidden; }
.fu-reply::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px;
    background: repeating-linear-gradient(90deg, var(--fu-wool) 0 7px, var(--fu-wool-dark) 7px 8px, var(--fu-wool) 8px 15px, color-mix(in srgb, var(--fu-wool) 80%, #fff) 15px 16px); }
.fulg .inv-rsvp__intro { font-family: var(--inv-font-heading); font-weight: 600; font-size: 1.1rem; }
.fulg .inv-rsvp__deadline { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-primary); }
.fu-info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.fu-info-item { padding: 30px 24px 20px; text-align: center; }
.fu-info-item h3 { font-size: 1.35rem; color: var(--inv-primary); margin-bottom: 8px; }
.fu-faq { max-width: 720px; margin: 46px auto 0; text-align: center; display: grid; gap: 12px; }
.fu-faq details { text-align: left; }
.fu-faq summary { cursor: pointer; list-style: none; padding: 17px 56px 17px 22px; position: relative; font-weight: 700; font-size: 1.02rem; }
.fu-faq summary::-webkit-details-marker { display: none; }
/* a little snowflake that turns when the answer opens */
.fu-faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px; transition: rotate .7s ease;
    background: linear-gradient(var(--inv-primary), var(--inv-primary)) 50% 50% / 2px 100% no-repeat, linear-gradient(60deg, transparent 45%, var(--inv-primary) 45% 55%, transparent 55%), linear-gradient(-60deg, transparent 45%, var(--inv-primary) 45% 55%, transparent 55%); }
.fu-faq details[open] summary::after { rotate: 90deg; }
.fu-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; border-radius: 22px; }
.fu-faq details p { padding: 0 22px; color: var(--fu-soft); }
.fu-faq details p:last-child { padding-bottom: 16px; }
.fu-contact { text-align: center; }
.fu-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 60px; }
.fu-contact-person a { text-decoration: none; }

/* ---------- Footer: the knitted penguins hugging ---------- */
.fu-footer { text-align: center; padding: clamp(90px, 13vw, 140px) 16px 40px; overflow: hidden; overflow: clip; }
.fu-footer-message { font-family: var(--inv-font-heading); font-weight: 500; font-size: 1.2rem; color: var(--fu-soft); max-width: 36ch; margin: 0 auto 6px; }
.fulg .fu-footer-name { font-family: var(--inv-font-heading); font-weight: 700; font-size: clamp(3.2rem, 11vw, 4.6rem); line-height: 1.05; color: var(--inv-primary); margin: 4px 0 10px; }
.fu-hashtag { letter-spacing: .1em; color: var(--inv-primary); }
.fu-goodbye { width: min(300px, 72vw); margin: 26px auto 0; transform-origin: 50% 100%; }
.kit-js .fu-footer .fu-goodbye img { opacity: 0; translate: 0 30px; transition: opacity .8s ease .2s, translate 1.1s cubic-bezier(.3, 1.3, .5, 1) .2s; }
.kit-js .fu-footer.is-visible .fu-goodbye img { opacity: 1; translate: 0 0; }
.kit-js .fu-footer.is-visible .fu-goodbye { animation: fu-sway 4.4s ease-in-out 1.5s infinite; }
@keyframes fu-sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 2deg; } }

@media (prefers-reduced-motion: reduce) {
    .kit-js .fu-hat--hero .fu-hat-photo, .kit-js .fu-hat--hero .fu-rib, .kit-js .fu-hat--hero .fu-bobble, .kit-js .fu-lantern img, .kit-js .fu-flyer img, .kit-js .fu-flyer,
    .kit-js .fu-hero-text > *, .kit-js .fu-footer.is-visible .fu-goodbye { animation: none; }
    .kit-js .fu-title .fu-flake, .kit-js .fu-title .fu-flake i { scale: 1; rotate: 0deg; transition: none; }
    .kit-js .fu-welcome .fu-hello img, .kit-js .fu-child-grid .fu-mama img, .kit-js .fu-child-grid .fu-hat--child .fu-bobble, .kit-js .fu-family .fu-namecard, .kit-js .fu-stop .fu-stop-card,
    .kit-js .fu-stop .fu-stop-art img, .kit-js .fu-countdown .kit-countdown-unit, .kit-js .fu-footer .fu-goodbye img { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; transition: none; }
    .kit-js .fu-gallery .fu-gallery-grid a::after { opacity: .35; transition: none; }
}
