/* ==========================================================================
   Pădurice - a christening in a sunny clearing in the woods, painted in watercolour: the photo in a ring of leaves
   that grow in one by one, a fawn stepping in from the left and a bunny that hops at a touch, oak branches swaying
   at the top. The owl keeps watch over the welcome, the squirrel sits at the child's portrait with its acorn, the
   family's names are on slices of an oak log, the fox watches the path while paw prints lead from one moment to the
   next, the days left sway on oak leaves, and at the end night falls on the woods, with fireflies and the hedgehog.
   Palette: --inv-primary (the ink), --inv-accent (the soft colour), --inv-bg, --inv-text.
   The animals (assets/art, Pixabay, see LICENSES.md) are watercolours made transparent; on the dark palette
   (.pd-dark, set by script.js) they get back a sheet of paper. script.js draws the pollen and the little leaves in
   the light, or the fireflies at night, on canvas.pd-air
   ========================================================================== */

.padurice {
    --pd-script: 'Send Flowers', 'Segoe Script', cursive;
    --pd-soft: color-mix(in srgb, var(--inv-text) 64%, var(--inv-bg));
    --pd-line: color-mix(in srgb, var(--inv-primary) 18%, transparent);
    --pd-paper: color-mix(in srgb, #fffaf0 90%, var(--inv-accent));
    /* the leaves: green whatever the palette, leaning towards it; one autumn tone among them */
    --pd-leaf0: color-mix(in srgb, #5f7d40 62%, var(--inv-primary));
    --pd-leaf1: color-mix(in srgb, #93ad62 64%, var(--inv-accent));
    --pd-leaf2: color-mix(in srgb, #c49a4c 58%, var(--inv-accent));
    --pd-berry: color-mix(in srgb, #b4483a 76%, var(--inv-primary));
    --pd-wood: #b8875a;
    --pd-wood-light: #e8cfa5;
    --pd-bark: #6f4b2e;
    --pd-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(--pd-line);
    font-family: var(--inv-font-body);
    font-weight: 300;
    font-size: 1.04rem;
    line-height: 1.76;
    background: var(--inv-bg);
    overflow-x: clip;
}
.padurice h1, .padurice h2, .padurice h3 { font-family: var(--inv-font-heading); font-weight: 500; line-height: 1.18; }
:where(.padurice) :is(h1, h2, h3) { margin: 0; }
:where(.padurice) p { margin: 0 0 .9em; }
.padurice strong { font-weight: 500; }
.padurice a { color: var(--inv-primary); }
.pd-kicker { font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.pd-role { font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--pd-soft); margin: 0 0 4px; }
.pd-names { font-family: var(--inv-font-heading); font-size: 1.22rem; margin: 0; }
.pd-hero, .pd-main, .pd-footer { position: relative; z-index: 1; }
.pd-card { position: relative; background: var(--inv-surface); border-radius: 18px; box-shadow: var(--pd-shadow), 0 0 0 1px var(--pd-line); }
.pd-tone-0 { fill: var(--pd-leaf0); }
.pd-tone-1 { fill: var(--pd-leaf1); }
.pd-tone-2 { fill: var(--pd-leaf2); }
.pd-vein { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: .6; stroke-linecap: round; }

/* the air over the whole page: pollen and little leaves, or fireflies at night */
.pd-air { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

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

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

/* ---------- Hero: the clearing ---------- */
.pd-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px 16px 56px; overflow: hidden; overflow: clip; }
/* sunlight falling into the clearing */
.pd-sun { position: absolute; left: 50%; top: -30%; width: min(1100px, 160vw); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, #fff2c4 60%, transparent), color-mix(in srgb, #fff2c4 18%, transparent) 55%, transparent);
    animation: pd-sun 10s ease-in-out infinite; }
@keyframes pd-sun { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.pd-dark .pd-sun { background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-accent) 26%, transparent), transparent 70%); }

/* oak branches reaching in from the top corners */
.pd-branch { position: absolute; top: 0; width: clamp(190px, 30vw, 380px); pointer-events: none; z-index: 0; }
.pd-branch svg { display: block; width: 100%; height: auto; overflow: visible; }
.pd-branch--left { left: -10px; }
.pd-branch--right { right: -10px; scale: -1 1; }
.pd-branch-wood { fill: none; stroke: color-mix(in srgb, var(--pd-bark) 80%, var(--inv-primary)); stroke-width: 3.4; stroke-linecap: round; }
.pd-branch-leaf { animation: pd-leaf 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
.pd-branch--right .pd-branch-leaf { animation-duration: 6s; }
@keyframes pd-leaf { 0%, 100% { rotate: -6deg; } 50% { rotate: 7deg; } }
.pd-branch svg { transform-origin: 0 0; animation: pd-bough 9s ease-in-out infinite; }
@keyframes pd-bough { 0%, 100% { rotate: 0deg; } 50% { rotate: 2deg; } }

.pd-hero-inner { position: relative; z-index: 1; width: min(1060px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; text-align: center; }
.pd-clearing { position: relative; width: min(460px, 94vw); padding-bottom: 6%; }
.pd-grass { position: absolute; left: 4%; right: 4%; bottom: 2%; height: 16%; border-radius: 50%; z-index: 0;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--pd-leaf1) 45%, transparent), color-mix(in srgb, var(--pd-leaf1) 12%, transparent) 70%, transparent); }
.pd-fawn { position: absolute; left: -3%; bottom: 3%; width: 33%; z-index: 2; }
.pd-bunny { position: absolute; right: 1%; bottom: 3%; width: 24%; z-index: 2; cursor: pointer; transform-origin: 50% 100%; }
.kit-js .pd-fawn img { animation: pd-step 2.2s cubic-bezier(.25, .8, .35, 1) .5s both; }
@keyframes pd-step { from { opacity: 0; translate: -46px 0; } 60% { opacity: 1; } to { opacity: 1; translate: 0 0; } }
.kit-js .pd-bunny img { animation: pd-hop .9s cubic-bezier(.3, .7, .4, 1) 1.4s both; }
.pd-bunny.is-hopping img { animation: pd-hop-again .9s cubic-bezier(.3, .7, .4, 1) 1; }
@keyframes pd-hop { 0% { opacity: 0; translate: 0 20px; scale: 1 .9; } 40% { opacity: 1; translate: 0 -26px; scale: .96 1.05; } 75% { translate: 0 0; scale: 1.05 .94; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes pd-hop-again { 0% { translate: 0 0; scale: 1.06 .92; } 40% { translate: 0 -34px; scale: .95 1.06; } 75% { translate: 0 0; scale: 1.06 .92; } 100% { translate: 0 0; scale: 1; } }

/* the photo in its ring of leaves */
.pd-ring { position: relative; margin: 0; aspect-ratio: 1; }
.pd-ring--hero { width: 70%; margin: 0 auto; z-index: 1; }
.pd-ring-leaves { position: absolute; inset: -14%; width: 128%; height: 128%; overflow: visible; }
.pd-ring-photo { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--pd-paper);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--inv-surface) 92%, transparent), 0 0 0 7px var(--pd-line), var(--pd-shadow); }
.pd-ring-photo img, .pd-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-initial { display: grid; place-items: center; font-family: var(--pd-script); font-size: 5rem; color: var(--inv-primary); }
.pd-berry { fill: var(--pd-berry); }
.kit-js .pd-ring-leaf { scale: 0; transition: scale .7s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(.3s + var(--i) * .05s); }
.kit-js .pd-berry { opacity: 0; transition: opacity .6s ease; transition-delay: calc(1s + var(--i) * .04s); }
.kit-js .pd-ring.is-grown .pd-ring-leaf { scale: 1; }
.kit-js .pd-ring.is-grown .pd-berry { opacity: 1; }

.pd-hero-text { display: grid; justify-items: center; width: 100%; min-width: 0; }
.padurice .pd-name { font-family: var(--pd-script); font-weight: 400; font-size: clamp(3.8rem, 15vw, 6.6rem); line-height: 1.12; color: var(--inv-primary); overflow-wrap: anywhere; margin: 0 0 10px; }
.pd-hero-date { font-family: var(--inv-font-heading); font-size: 1.36rem; margin: 0 0 2px; }
.pd-hero-place { font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--pd-soft); margin: 0; }
.padurice .pd-subtitle { max-width: 44ch; margin: 16px auto 0; color: var(--pd-soft); }
@keyframes pd-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.kit-js .pd-hero-text > * { animation: pd-up 1s ease .8s both; }
.kit-js .pd-hero-text > :nth-child(n+3) { animation-delay: 1.1s; }
@media (min-width: 900px) {
    .pd-hero { padding-top: 150px; }
    .pd-hero-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; text-align: left; align-items: center; }
    .pd-hero-text { justify-items: start; order: -1; }
    .padurice .pd-subtitle { margin-left: 0; }
    .pd-clearing { width: min(520px, 44vw); }
}

/* ---------- Sections ---------- */
.pd-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.pd-section { padding-top: clamp(84px, 11vw, 128px); }
.pd-title { margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.pd-title h2 { font-size: clamp(2rem, 5.4vw, 2.7rem); color: var(--inv-primary); text-wrap: balance; }
.pd-sprig { display: block; width: 92px; height: auto; margin: 0 auto 10px; overflow: visible; }
.pd-sprig-stem { fill: none; stroke: color-mix(in srgb, var(--pd-bark) 75%, var(--inv-primary)); stroke-width: 1.6; stroke-linecap: round; }
.pd-sprig-leaf--1 { fill: var(--pd-leaf0); }
.pd-sprig-leaf--2 { fill: var(--pd-leaf1); }
.pd-acorn ellipse { fill: color-mix(in srgb, #b98545 80%, var(--inv-primary)); }
.pd-acorn-cap { fill: color-mix(in srgb, var(--pd-bark) 85%, var(--inv-primary)); }
.pd-sprig-leaf, .pd-acorn { transform-box: fill-box; }
.pd-sprig-leaf--1 { transform-origin: 0 100%; }
.pd-sprig-leaf--2 { transform-origin: 0 60%; }
.pd-acorn { transform-origin: 50% 0; }
.kit-js .pd-title .pd-sprig-leaf { scale: 0; transition: scale .8s cubic-bezier(.3, 1.5, .5, 1) .2s; }
.kit-js .pd-title .pd-sprig-leaf--2 { transition-delay: .4s; }
.kit-js .pd-title .pd-acorn { opacity: 0; translate: 0 -14px; transition: opacity .4s ease .6s, translate .7s cubic-bezier(.3, 1.8, .5, 1) .6s; }
.kit-js .pd-title.is-visible .pd-sprig-leaf { scale: 1; }
.kit-js .pd-title.is-visible .pd-acorn { opacity: 1; translate: 0 0; }
.pd-lead { text-align: center; font-family: var(--inv-font-heading); font-style: italic; font-size: 1.2rem; color: var(--pd-soft); max-width: 40ch; margin: 0 auto 30px; }

/* Welcome: the owl on its stump beside the words */
.pd-welcome { display: grid; gap: 10px; justify-items: center; text-align: center; max-width: 820px; margin: 0 auto; }
.pd-welcome p { font-size: 1.06rem; }
.pd-owl { width: min(150px, 38vw); transform-origin: 50% 100%; }
.kit-js .pd-welcome .pd-owl img { opacity: 0; translate: 0 18px; transition: opacity .9s ease, translate 1s ease; }
.kit-js .pd-welcome.is-visible .pd-owl img { opacity: 1; translate: 0 0; }
.kit-js .pd-welcome.is-visible .pd-owl { animation: pd-owl 7s ease-in-out 1.4s infinite; }
@keyframes pd-owl { 0%, 70%, 100% { rotate: 0deg; } 76% { rotate: -5deg; } 84% { rotate: 4deg; } 90% { rotate: 0deg; } }
.padurice .pd-welcome-title { font-family: var(--pd-script); font-weight: 400; font-size: clamp(2.9rem, 9vw, 4.2rem); line-height: 1.15; color: var(--inv-primary); margin-bottom: 14px; }
.pd-quote-author { font-family: var(--inv-font-heading); font-style: italic; color: var(--inv-primary); }
@media (min-width: 760px) {
    .pd-welcome { grid-template-columns: auto minmax(0, 1fr); gap: 50px; text-align: left; align-items: end; }
    .pd-owl { width: 170px; }
}

/* Child */
.pd-child-grid { display: grid; gap: 50px; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.pd-portrait { position: relative; width: min(250px, 58vw); }
.pd-ring--child { width: 100%; }
.pd-squirrel { position: absolute; right: -30%; bottom: -14%; width: 52%; z-index: 2; }
.kit-js .pd-child-grid .pd-squirrel img { opacity: 0; translate: 24px 0; transition: opacity .8s ease .5s, translate 1.1s cubic-bezier(.3, 1.3, .5, 1) .5s; }
.kit-js .pd-child-grid.is-visible .pd-squirrel img { opacity: 1; translate: 0 0; }
.pd-child-name { font-family: var(--inv-font-heading); font-size: 1.8rem; color: var(--inv-primary); margin-bottom: 6px; }
.pd-child-born { color: var(--pd-soft); }
.pd-child-born strong { color: var(--inv-text); font-family: var(--inv-font-heading); font-weight: 500; }
.pd-child-message { font-family: var(--inv-font-heading); font-size: 1.14rem; max-width: 36ch; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
    .pd-child-grid { grid-template-columns: auto minmax(0, 1fr); gap: 120px; text-align: left; align-items: center; }
    .pd-portrait { width: 250px; }
    .pd-child-message { margin-left: 0; }
}
@media (max-width: 759px) { .pd-squirrel { right: -20%; width: 46%; } }

/* Family: slices of an oak log */
.pd-slices { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.pd-slice { position: relative; width: min(250px, 78vw); aspect-ratio: 1; display: grid; place-content: center; padding: 18%; text-align: center; border-radius: 48% 52% 50% 50% / 51% 49% 52% 48%;
    color: #3b2a1d;
    background:
        radial-gradient(circle at 48% 52%, var(--pd-wood-light) 0 34%, color-mix(in srgb, var(--pd-wood-light) 0%, transparent) 46%),
        repeating-radial-gradient(circle at 48% 52%, transparent 0 9px, color-mix(in srgb, var(--pd-wood) 55%, transparent) 9px 10px, transparent 10.5px 15px, color-mix(in srgb, var(--pd-wood) 30%, transparent) 15px 16px),
        radial-gradient(circle at 48% 52%, var(--pd-wood-light) 0 62%, color-mix(in srgb, var(--pd-wood-light) 70%, var(--pd-wood)) 86%, var(--pd-wood) 92%);
    box-shadow: 0 0 0 7px var(--pd-bark), 0 0 0 9px color-mix(in srgb, var(--pd-bark) 70%, #2a1a0e), 0 22px 30px -18px rgba(40, 25, 10, .55); }
.pd-slice .pd-role { color: #6a4a30; }
.pd-slice .pd-names { color: #3b2a1d; text-shadow: 0 0 10px var(--pd-wood-light), 0 0 4px var(--pd-wood-light); }
.kit-js .pd-family .pd-slice { opacity: 0; rotate: -14deg; scale: .9; transition: opacity .6s ease, rotate 1.2s cubic-bezier(.3, 1.4, .5, 1), scale 1.2s cubic-bezier(.3, 1.4, .5, 1); }
.kit-js .pd-family .pd-slice:nth-child(2) { transition-delay: .18s; }
.kit-js .pd-family .pd-slice:nth-child(3) { transition-delay: .36s; }
.kit-js .pd-family.is-visible .pd-slice { opacity: 1; rotate: 0deg; scale: 1; }

/* Programme: the fox, the path and the paw prints */
.pd-events { overflow-x: clip; }
.pd-fox { width: min(190px, 48vw); margin: -10px auto 26px; }
.pd-trail { list-style: none; margin: 0 auto; padding: 0; max-width: 680px; display: grid; }
.pd-stop { position: relative; }
.pd-stop-card { padding: 28px clamp(20px, 5vw, 36px) 22px; text-align: center; }
.kit-js .pd-stop .pd-stop-card { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .9s ease; }
.kit-js .pd-stop.is-visible .pd-stop-card { opacity: 1; translate: 0 0; }
.pd-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; }
.pd-stop-card h3 { font-size: clamp(1.34rem, 4.2vw, 1.6rem); margin-bottom: 4px; }
.pd-stop-place { font-weight: 500; margin: 0; }
.pd-stop-address, .pd-stop-notes { color: var(--pd-soft); margin: 0; }
.pd-stop-notes { font-style: italic; margin-top: 6px; }
.pd-stop .kit-event-actions { margin-top: 14px; justify-content: center; }
/* the paw prints between two moments, stepping alternately left and right */
.pd-prints { position: relative; display: block; height: 150px; width: 60px; margin: 0 auto; }
.pd-prints i { position: absolute; left: 50%; top: calc(8px + var(--p) * 22px); width: 15px; height: 17px; margin-left: -7px;
    rotate: 172deg;
    background:
        radial-gradient(ellipse 34% 30% at 50% 70%, var(--pd-print) 96%, transparent 100%),
        radial-gradient(circle at 16% 34%, var(--pd-print) 0 12%, transparent 13%),
        radial-gradient(circle at 38% 14%, var(--pd-print) 0 12%, transparent 13%),
        radial-gradient(circle at 62% 14%, var(--pd-print) 0 12%, transparent 13%),
        radial-gradient(circle at 84% 34%, var(--pd-print) 0 12%, transparent 13%);
    --pd-print: color-mix(in srgb, var(--inv-primary) 45%, transparent); }
.pd-prints i:nth-child(odd) { translate: -9px 0; }
.pd-prints i:nth-child(even) { translate: 9px 0; }
.kit-js .pd-prints i { opacity: 0; scale: .6; transition: opacity .3s ease, scale .4s ease; transition-delay: calc(.5s + var(--p) * .22s); }
.kit-js .pd-stop.is-visible .pd-prints i { opacity: 1; scale: 1; }
.padurice .kit-button { border-radius: 999px; border: 1px solid var(--inv-primary); color: var(--inv-primary); background: transparent; font-size: .78rem; font-weight: 500; padding: 8px 18px; text-decoration: none; }
.padurice .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: each number on an oak leaf swaying on its stalk */
.pd-countdown { text-align: center; }
.pd-countdown .kit-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px clamp(8px, 2.6vw, 24px); margin-top: 30px; }
.pd-countdown .kit-countdown-unit { --c: var(--pd-leaf0); filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .14)); position: relative; width: clamp(76px, 20vw, 112px); min-width: 0; aspect-ratio: .82; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; isolation: isolate;
    transform-origin: 50% 100%; animation: pd-sway 5s ease-in-out infinite; }
.pd-countdown .kit-countdown-unit::before { content: ""; position: absolute; inset: 0 0 6%; z-index: -1;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 114'%3E%3Cpath d='M50 1C80 22 99 52 92 76C86 96 66 108 50 113C34 108 14 96 8 76C1 52 20 22 50 1Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 114'%3E%3Cpath d='M50 1C80 22 99 52 92 76C86 96 66 108 50 113C34 108 14 96 8 76C1 52 20 22 50 1Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    background: linear-gradient(90deg, transparent calc(50% - .8px), rgba(255, 255, 255, .4) calc(50% - .8px) calc(50% + .8px), transparent calc(50% + .8px)), radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .35), transparent 60%), var(--c); }
.pd-countdown .kit-countdown-unit::after { content: ""; position: absolute; left: 50%; bottom: -4%; width: 2px; height: 16%; margin-left: -1px; border-radius: 2px; background: color-mix(in srgb, var(--pd-bark) 80%, var(--inv-primary)); z-index: -2; }
.pd-countdown .kit-countdown-unit:nth-child(2) { --c: var(--pd-leaf1); animation-delay: -1.3s; }
.pd-countdown .kit-countdown-unit:nth-child(3) { --c: var(--pd-leaf2); animation-delay: -2.6s; }
.pd-countdown .kit-countdown-unit:nth-child(4) { --c: color-mix(in srgb, var(--pd-leaf0) 60%, var(--pd-leaf1)); animation-delay: -3.9s; }
@keyframes pd-sway { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
.pd-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-weight: 600; font-size: clamp(1.2rem, 4.6vw, 1.8rem); line-height: 1; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); font-variant-numeric: tabular-nums; }
.pd-countdown .kit-countdown-label { opacity: 1; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); font-size: .5rem; font-weight: 600; letter-spacing: .1em; margin-top: 4px; }

/* Gallery: photos with an oak leaf tucked at one corner */
.pd-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.pd-gallery-grid.kit-gallery a { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; box-shadow: var(--pd-shadow); }
.pd-gallery-grid.kit-gallery a:nth-child(3n+2) { aspect-ratio: 1; align-self: center; }
.pd-gallery-grid.kit-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; transition: scale .8s ease; }
.pd-gallery-grid.kit-gallery a::after { content: ""; position: absolute; right: -10px; top: -12px; width: 30px; height: 30px; rotate: 10deg; z-index: 1;
    border-radius: 4% 100% 4% 100%;
    background: linear-gradient(135deg, transparent calc(50% - .6px), rgba(255, 255, 255, .45) calc(50% - .6px) calc(50% + .6px), transparent calc(50% + .6px)), var(--pd-leaf0); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); }
.pd-gallery-grid.kit-gallery a:nth-child(even)::after { background-color: var(--pd-leaf2); right: auto; left: -10px; rotate: -150deg; }
.pd-gallery-grid.kit-gallery a:hover img { scale: 1.03; }
.pd-gallery-grid.kit-gallery a { overflow: visible; }
@media (min-width: 760px) { .pd-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

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

/* ---------- Footer: night falls on the woods ---------- */
.pd-footer { text-align: center; padding: clamp(90px, 13vw, 140px) 0 0; overflow: hidden; overflow: clip; }
.pd-footer-message { font-family: var(--inv-font-heading); font-size: 1.22rem; color: var(--pd-soft); max-width: 36ch; margin: 0 auto 6px; padding: 0 16px; }
.padurice .pd-footer-name { font-family: var(--pd-script); font-size: clamp(3.4rem, 12vw, 5.4rem); line-height: 1.15; color: var(--inv-primary); margin: 4px 0 10px; padding: 0 16px; }
.pd-hashtag { letter-spacing: .12em; color: var(--inv-primary); }
.pd-night { position: relative; margin-top: 30px; height: clamp(260px, 42vw, 440px); }
.pd-night-woods { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 34%); mask-image: linear-gradient(180deg, transparent, #000 34%); }
.pd-firefly { position: absolute; left: calc(6% + var(--i) * 7.6%); top: var(--y); width: 5px; height: 5px; border-radius: 50%; background: #fff6b0;
    box-shadow: 0 0 6px 2px rgba(255, 240, 150, .8), 0 0 16px 6px rgba(220, 255, 120, .35); opacity: 0; }
.kit-js .pd-footer.is-visible .pd-firefly { animation: pd-firefly 4.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.83s); }
@keyframes pd-firefly { 0%, 100% { opacity: 0; translate: 0 0; } 25% { opacity: 1; } 50% { opacity: .2; translate: 14px -18px; } 75% { opacity: 1; translate: -6px -30px; } }
.pd-hedgehog { position: absolute; left: clamp(8px, 8vw, 120px); bottom: 4%; width: clamp(110px, 20vw, 190px); }
.pd-hedgehog img { filter: brightness(.82) saturate(.9); }
.kit-js .pd-footer .pd-hedgehog img { opacity: 0; translate: -40px 0; }
.kit-js .pd-footer.is-visible .pd-hedgehog img { animation: pd-step 3s cubic-bezier(.25, .8, .35, 1) .4s both; }
.pd-dark .pd-hedgehog img { background: none; }

@media (prefers-reduced-motion: reduce) {
    .pd-sun, .pd-branch svg, .pd-branch-leaf, .pd-countdown .kit-countdown-unit, .kit-js .pd-hero-text > *, .kit-js .pd-fawn img, .kit-js .pd-bunny img, .kit-js .pd-welcome.is-visible .pd-owl { animation: none; }
    .kit-js .pd-ring-leaf { scale: 1; transition: none; }
    .kit-js .pd-berry, .kit-js .pd-title .pd-acorn, .kit-js .pd-welcome .pd-owl img, .kit-js .pd-child-grid .pd-squirrel img, .kit-js .pd-family .pd-slice, .kit-js .pd-stop .pd-stop-card, .kit-js .pd-prints i, .kit-js .pd-footer .pd-hedgehog img { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; transition: none; animation: none; }
    .kit-js .pd-title .pd-sprig-leaf { scale: 1; transition: none; }
    .kit-js .pd-footer.is-visible .pd-firefly { animation: none; opacity: .8; }
}
