/* ==========================================================================
   Dovleac - a Halloween party painted in watercolour: a full moon, fog rolling along the bottom of the page, bats
   flitting across it, the photo through an arched window with a cobweb in its corner, and the jack-o'-lantern in its
   witch's hat on the sill beside the black cat and the lantern, the light inside it flickering (a touch makes it flare
   and sends up a flock of bats). A little spider drops on its thread above every title, the host's portrait sits
   beside a plate of ghost cookies, the theme is a recipe on a scorched page from a book of spells, every moment of the
   night has its treat, the days left are carved into glowing pumpkins, and at the end a little ghost floats up over
   the pumpkins under the moon.
   Palette: --inv-primary (the ink), --inv-accent (the second colour), --inv-bg, --inv-text. Night palettes first.
   The watercolours (assets/art, Pixabay, see LICENSES.md) are made transparent; on the dark palettes (.dv-dark, set by
   script.js) they get back a sheet of paper. script.js draws the bats (canvas.dv-bats)
   ========================================================================== */

.dovleac {
    --dv-drip: 'Rubik Wet Paint', 'Impact', sans-serif;
    --dv-soft: color-mix(in srgb, var(--inv-text) 66%, var(--inv-bg));
    --dv-line: color-mix(in srgb, var(--inv-primary) 22%, transparent);
    --dv-paper: color-mix(in srgb, #f6ead2 92%, var(--inv-accent));
    --dv-pumpkin: #e8771c;
    --dv-flame: #ffcf6a;
    --dv-wood: color-mix(in srgb, #2b1f1a 85%, var(--inv-accent));
    --dv-moon: color-mix(in srgb, #fff3cf 88%, var(--inv-primary));
    --dv-shadow: 0 1px 2px color-mix(in srgb, #000 12%, transparent), 0 24px 48px -30px color-mix(in srgb, #000 60%, transparent);
    --kit-radius: 12px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--dv-line);
    font-family: var(--inv-font-body);
    font-weight: 300;
    font-size: 1.03rem;
    line-height: 1.74;
    background: var(--inv-bg);
    overflow-x: clip;
}
.dovleac h1, .dovleac h2, .dovleac h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1.15; }
:where(.dovleac) :is(h1, h2, h3) { margin: 0; }
:where(.dovleac) p { margin: 0 0 .9em; }
.dovleac strong { font-weight: 600; }
.dovleac a { color: var(--inv-primary); }
.dv-kicker { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.dv-role { font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--dv-soft); margin: 0 0 4px; }
.dv-names { font-family: var(--inv-font-heading); font-size: 1.4rem; margin: 0; }
.dv-hero, .dv-main, .dv-footer { position: relative; z-index: 1; }
.dv-card { position: relative; background: var(--inv-surface); border-radius: 14px; box-shadow: var(--dv-shadow), 0 0 0 1px var(--dv-line); }
.dv-bats { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

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

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

/* ---------- Hero: the moon, the fog, the window ---------- */
.dv-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px 16px 70px; overflow: hidden; overflow: clip; }
.dv-moon { position: absolute; right: clamp(-60px, 6vw, 140px); top: clamp(60px, 10vh, 120px); width: clamp(160px, 26vw, 300px); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle at 38% 36%, #fffdf3, var(--dv-moon) 46%, color-mix(in srgb, var(--dv-moon) 80%, #b9a98a) 100%);
    box-shadow: 0 0 60px 20px color-mix(in srgb, var(--dv-moon) 30%, transparent), 0 0 160px 60px color-mix(in srgb, var(--dv-moon) 14%, transparent);
    opacity: .9; animation: dv-moon 1.6s ease-out .2s both; }
.dv-moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 62% 58%, rgba(150, 130, 100, .18) 0 9%, transparent 10%), radial-gradient(circle at 34% 64%, rgba(150, 130, 100, .14) 0 6%, transparent 7%), radial-gradient(circle at 56% 30%, rgba(150, 130, 100, .12) 0 5%, transparent 6%); }
@keyframes dv-moon { from { opacity: 0; translate: 0 40px; } to { opacity: .9; translate: 0 0; } }
.dv-light .dv-moon { opacity: .55; box-shadow: none; }
.dv-fog { position: absolute; left: 0; right: 0; bottom: 0; height: 44%; pointer-events: none; z-index: 2; overflow: hidden;
    -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 55%, transparent); mask-image: linear-gradient(transparent, #000 35%, #000 55%, transparent); }
.dv-fog i { position: absolute; left: -50%; bottom: -10%; width: 200%; height: 100%;
    background: radial-gradient(ellipse 22% 40% at 20% 70%, color-mix(in srgb, var(--inv-text) 16%, transparent), transparent 70%), radial-gradient(ellipse 26% 34% at 55% 80%, color-mix(in srgb, var(--inv-text) 12%, transparent), transparent 70%), radial-gradient(ellipse 20% 44% at 85% 75%, color-mix(in srgb, var(--inv-text) 14%, transparent), transparent 70%);
    animation: dv-fog 26s linear infinite; }
.dv-fog i:nth-child(2) { bottom: -20%; opacity: .7; animation-duration: 38s; animation-direction: reverse; }
@keyframes dv-fog { from { translate: 0 0; } to { translate: 25% 0; } }
.dv-light .dv-fog i { opacity: .5; }

.dv-hero-inner { position: relative; z-index: 3; width: min(1060px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; text-align: center; }
.dv-porch { position: relative; width: min(470px, 94vw); display: grid; grid-template-columns: 52% minmax(0, 1fr); align-items: end; }
.dv-window--hero { grid-column: 1; grid-row: 1; z-index: 1; margin-bottom: 14%; }
.kit-js .dv-window--hero { animation: dv-rise 1.2s cubic-bezier(.3, 1.2, .5, 1) .1s both; }
@keyframes dv-rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

/* the arched window */
.dv-window { position: relative; margin: 0; }
.dv-window-glass { display: block; position: relative; aspect-ratio: .74; border-radius: 50% 50% 6px 6px / 34% 34% 6px 6px; overflow: hidden; background: color-mix(in srgb, var(--inv-surface) 70%, #000);
    box-shadow: 0 0 0 9px var(--dv-wood), 0 0 0 11px color-mix(in srgb, var(--dv-wood) 70%, #000), var(--dv-shadow); }
.dv-window-glass::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .22), transparent 30%, transparent 70%, rgba(180, 200, 255, .12)), linear-gradient(transparent 60%, rgba(10, 6, 20, .35)); }
.dv-window-glass img, .dv-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.dv-initial { display: grid; place-items: center; font-family: var(--dv-drip); font-size: 5rem; color: var(--inv-primary); }
.dv-window::after { content: ""; position: absolute; left: -16px; right: -16px; bottom: -22px; height: 16px; border-radius: 3px; background: linear-gradient(var(--dv-wood), color-mix(in srgb, var(--dv-wood) 70%, #000)); box-shadow: 0 8px 12px -6px rgba(0, 0, 0, .5); }
.dv-web { position: absolute; left: -4px; top: -4px; width: 46%; height: auto; overflow: visible; pointer-events: none; }
.dv-web path { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: .8; }
.dv-light .dv-web path { stroke: color-mix(in srgb, var(--inv-text) 45%, transparent); }

/* the jack-o'-lantern and its flickering light */
.dv-jack { position: relative; grid-column: 2; grid-row: 1; margin-left: -22%; z-index: 2; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kit-js .dv-jack .dv-art img { animation: dv-rise 1.3s cubic-bezier(.3, 1.2, .5, 1) .4s both; }
.dv-halo { position: absolute; left: 10%; top: 30%; width: 80%; height: 60%; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--dv-pumpkin) 50%, transparent), transparent); filter: blur(10px); opacity: 0; }
.dv-dark .dv-halo { opacity: .8; animation: dv-flicker 2.4s ease-in-out infinite; }
.dv-glow { position: absolute; border-radius: 50%; pointer-events: none; translate: -50% -50%; background: radial-gradient(closest-side, rgba(255, 228, 140, .62), rgba(255, 190, 80, .25) 55%, transparent); animation: dv-flicker 1.9s ease-in-out infinite; }
.dv-glow--face { left: 44.8%; top: 59.8%; width: 40%; height: 30%; }
.dv-glow--candle { left: 78.4%; top: 77%; width: 15%; height: 15%; animation-duration: 1.3s; animation-delay: -.4s; }
@keyframes dv-flicker { 0%, 100% { opacity: .75; } 18% { opacity: .55; } 32% { opacity: .95; } 47% { opacity: .65; } 63% { opacity: 1; } 80% { opacity: .6; } }
.dv-jack.is-flaring .dv-glow--face { animation: dv-flare 1.2s ease-out 1; }
@keyframes dv-flare { 0% { opacity: 1; scale: 1; } 30% { opacity: 1; scale: 1.5; filter: brightness(1.4); } 100% { opacity: .75; scale: 1; } }

.dv-hero-text { display: grid; justify-items: center; width: 100%; min-width: 0; }
.dovleac .dv-name { font-family: var(--dv-drip); font-weight: 400; font-size: clamp(3rem, 12vw, 5.4rem); line-height: 1.08; color: var(--inv-primary); overflow-wrap: anywhere; margin: 0 0 10px; text-shadow: 0 0 24px color-mix(in srgb, var(--inv-primary) 35%, transparent); }
.dv-hero-date { font-family: var(--inv-font-heading); font-size: 1.6rem; margin: 0 0 2px; }
.dv-hero-place { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--dv-soft); margin: 0; }
.dovleac .dv-subtitle { max-width: 44ch; margin: 16px auto 0; color: var(--dv-soft); }
@keyframes dv-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.kit-js .dv-hero-text > * { animation: dv-up 1s ease .8s both; }
.kit-js .dv-hero-text > :nth-child(n+3) { animation-delay: 1.1s; }
@media (min-width: 900px) {
    .dv-hero { padding-top: 140px; }
    .dv-hero-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; text-align: left; align-items: center; }
    .dv-hero-text { justify-items: start; order: -1; }
    .dovleac .dv-subtitle { margin-left: 0; }
    .dv-porch { width: min(520px, 44vw); }
}

/* ---------- Sections ---------- */
.dv-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.dv-section { padding-top: clamp(84px, 11vw, 128px); }
.dv-title { margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.dv-title h2 { font-size: clamp(2.2rem, 6vw, 3rem); color: var(--inv-primary); text-wrap: balance; }
.dv-spider { display: block; width: 30px; height: auto; margin: -20px auto 6px; overflow: visible; }
.dv-thread { stroke: color-mix(in srgb, var(--inv-text) 45%, transparent); stroke-width: .8; transform-box: fill-box; transform-origin: 50% 0; }
.dv-legs { fill: none; stroke: color-mix(in srgb, #1a1420 85%, var(--inv-text)); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dv-spider-body ellipse, .dv-spider-body > circle:not(.dv-eye) { fill: color-mix(in srgb, #1a1420 85%, var(--inv-text)); }
.dv-dark .dv-legs { stroke: #0c0a10; }
.dv-dark .dv-spider-body ellipse, .dv-dark .dv-spider-body > circle:not(.dv-eye) { fill: #0c0a10; }
.dv-dark .dv-spider { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--inv-text) 40%, transparent)); }
.dv-eye { fill: #ffd85a; }
.kit-js .dv-title .dv-spider-body { translate: 0 -40px; transition: translate 1.1s cubic-bezier(.3, 1.6, .5, 1) .2s; }
.kit-js .dv-title .dv-thread { scale: 1 .1; transition: scale 1.1s cubic-bezier(.3, 1.6, .5, 1) .2s; }
.kit-js .dv-title.is-visible .dv-spider-body { translate: 0 0; animation: dv-bob 3s ease-in-out 1.4s infinite; }
.kit-js .dv-title.is-visible .dv-thread { scale: 1 1; }
@keyframes dv-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }

/* Welcome */
.dv-welcome { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 820px; margin: 0 auto; }
.dv-welcome p { font-size: 1.05rem; }
.dv-lantern { width: min(210px, 52vw); }
.kit-js .dv-welcome .dv-lantern img { opacity: 0; translate: 0 22px; transition: opacity .9s ease, translate 1s ease; }
.kit-js .dv-welcome.is-visible .dv-lantern img { opacity: 1; translate: 0 0; }
.dovleac .dv-welcome-title { font-family: var(--inv-font-heading); font-size: clamp(2.4rem, 7vw, 3.2rem); color: var(--inv-primary); margin-bottom: 12px; }
.dv-quote-author { font-family: var(--inv-font-heading); font-size: 1.2rem; color: var(--inv-primary); }
@media (min-width: 760px) {
    .dv-welcome { grid-template-columns: auto minmax(0, 1fr); gap: 50px; text-align: left; align-items: center; }
    .dv-lantern { width: 240px; }
}

/* The host */
.dv-host-grid { display: grid; gap: 60px; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.dv-portrait { position: relative; width: min(230px, 56vw); }
.dv-cookies { position: absolute; right: -40%; bottom: -24%; width: 66%; z-index: 2; }
.kit-js .dv-host-grid .dv-cookies img { opacity: 0; translate: 20px 10px; transition: opacity .8s ease .5s, translate 1s cubic-bezier(.3, 1.3, .5, 1) .5s; }
.kit-js .dv-host-grid.is-visible .dv-cookies img { opacity: 1; translate: 0 0; }
.dv-host-name { font-family: var(--inv-font-heading); font-size: 2rem; color: var(--inv-primary); margin-bottom: 4px; }
.dv-host-age { font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--dv-soft); }
.dv-host-message { font-size: 1.06rem; max-width: 38ch; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
    .dv-host-grid { grid-template-columns: auto minmax(0, 1fr); gap: 130px; text-align: left; align-items: center; }
    .dv-portrait { width: 240px; }
    .dv-host-message { margin-left: 0; }
}
@media (max-width: 759px) { .dv-cookies { right: -26%; width: 56%; } }

/* The theme on a scorched page of a book of spells */
.dv-spellbook { position: relative; max-width: 620px; margin: 0 auto; padding: 44px clamp(26px, 6vw, 54px) 36px; text-align: center; color: #3b2a1a;
    background: radial-gradient(ellipse at 50% 40%, #f6e7c6, #ead3a4 70%, #c99e62 100%);
    clip-path: polygon(0 3%, 6% 0, 14% 2%, 24% 0, 36% 1.5%, 48% 0, 60% 2%, 72% 0, 84% 1.5%, 94% 0, 100% 3%, 99% 20%, 100% 40%, 98.5% 60%, 100% 80%, 99% 97%, 92% 100%, 80% 98%, 66% 100%, 52% 98.5%, 38% 100%, 24% 98%, 10% 100%, 1% 97%, 0 80%, 1.5% 60%, 0 40%, 1% 20%);
    box-shadow: inset 0 0 40px rgba(110, 60, 20, .45); }
.dv-spellbook h3 { font-family: var(--inv-font-heading); font-size: clamp(1.9rem, 6vw, 2.5rem); color: #6b2a10; margin-bottom: 10px; }
.dv-spellbook p { font-size: 1.05rem; }
.dv-spellbook::before { content: ""; display: block; width: 60px; height: 2px; margin: 0 auto 16px; background: #8a4a20; box-shadow: 0 0 0 0 transparent; }

/* Programme: a treat for every moment */
.dv-night { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 30px; }
.dv-hour-card { display: grid; gap: 4px 26px; justify-items: center; text-align: center; padding: 26px clamp(20px, 5vw, 36px) 24px; }
.dv-hour-art { width: min(150px, 42vw); }
.kit-js .dv-hour .dv-hour-card { opacity: 0; translate: 0 24px; transition: opacity .6s ease, translate .9s cubic-bezier(.3, 1.2, .5, 1); }
.kit-js .dv-hour.is-visible .dv-hour-card { opacity: 1; translate: 0 0; }
.dv-hour-time { font-family: var(--inv-font-heading); font-size: 2rem; line-height: 1.1; color: var(--inv-primary); margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.dv-hour-text h3 { font-size: clamp(1.5rem, 4.4vw, 1.8rem); margin-bottom: 4px; }
.dv-hour-place { font-weight: 600; margin: 0; }
.dv-hour-address, .dv-hour-notes { color: var(--dv-soft); margin: 0; }
.dv-hour-notes { font-style: italic; margin-top: 6px; }
.dv-hour .kit-event-actions { margin-top: 14px; justify-content: center; }
@media (min-width: 760px) {
    .dv-hour-card { grid-template-columns: 160px minmax(0, 1fr); text-align: left; align-items: center; justify-items: start; padding: 28px 36px 26px; }
    .dv-hour:nth-child(even) .dv-hour-card { grid-template-columns: minmax(0, 1fr) 160px; }
    .dv-hour:nth-child(even) .dv-hour-art { order: 2; }
    .dv-hour-art { width: 160px; }
    .dv-hour .kit-event-actions { justify-content: flex-start; }
}
.dovleac .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; }
.dovleac .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: carved pumpkins with a light inside */
.dv-countdown { text-align: center; }
.dv-countdown .kit-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px clamp(8px, 2.6vw, 24px); margin-top: 34px; }
.dv-countdown .kit-countdown-unit { position: relative; width: clamp(78px, 21vw, 116px); min-width: 0; aspect-ratio: 1.1; padding: 6% 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; isolation: isolate; }
.dv-countdown .kit-countdown-unit::before { content: ""; position: absolute; inset: 10% 0 0; z-index: -1; border-radius: 48% 48% 44% 44% / 54% 54% 46% 46%;
    background:
        radial-gradient(ellipse 22% 50% at 50% 50%, rgba(255, 210, 120, .35), transparent),
        linear-gradient(90deg, rgba(120, 40, 0, .28), transparent 14%, rgba(120, 40, 0, .2) 30%, transparent 40%, transparent 60%, rgba(120, 40, 0, .2) 70%, transparent 86%, rgba(120, 40, 0, .28)),
        radial-gradient(ellipse at 50% 35%, #ffad4d, var(--dv-pumpkin) 58%, #a8490b);
    box-shadow: 0 12px 16px -8px rgba(0, 0, 0, .45); }
.dv-countdown .kit-countdown-unit::after { content: ""; position: absolute; left: 50%; top: 0; width: 12%; height: 18%; margin-left: -6%; border-radius: 3px 6px 2px 2px; background: linear-gradient(90deg, #4f5a26, #7b8a3a 50%, #4a5422); rotate: 8deg; z-index: -1; }
.dv-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1; color: #ffe39a; text-shadow: 0 0 8px rgba(255, 200, 80, .9), 0 0 2px #6a2a00, 0 2px 0 #6a2a00; font-variant-numeric: tabular-nums; }
.dv-countdown .kit-countdown-label { opacity: 1; color: #fff1cf; font-size: .52rem; font-weight: 600; letter-spacing: .1em; text-shadow: 0 1px 2px rgba(80, 20, 0, .8); }
.kit-js .dv-countdown.is-visible .kit-countdown-value { animation: dv-flicker 2.2s ease-in-out infinite; }
.kit-js .dv-countdown.is-visible .kit-countdown-unit:nth-child(2) .kit-countdown-value { animation-delay: -.6s; }
.kit-js .dv-countdown.is-visible .kit-countdown-unit:nth-child(3) .kit-countdown-value { animation-delay: -1.2s; }
.kit-js .dv-countdown.is-visible .kit-countdown-unit:nth-child(4) .kit-countdown-value { animation-delay: -1.7s; }

/* Gallery: crooked frames with cobwebs */
.dv-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px) clamp(14px, 2vw, 24px); }
.dv-gallery-grid.kit-gallery a { position: relative; aspect-ratio: 4 / 5; padding: 7px; border-radius: 4px; background: var(--dv-wood); box-shadow: var(--dv-shadow), inset 0 0 0 2px color-mix(in srgb, var(--dv-wood) 60%, #c7a46a); rotate: -2deg; transition: rotate .6s cubic-bezier(.3, 1.6, .5, 1); overflow: visible; }
.dv-gallery-grid.kit-gallery a:nth-child(even) { rotate: 2.4deg; }
.dv-gallery-grid.kit-gallery a:nth-child(3n) { rotate: -.8deg; }
.dv-gallery-grid.kit-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.dv-gallery-grid.kit-gallery a::after { content: ""; position: absolute; right: -2px; top: -2px; width: 46%; aspect-ratio: 1; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='white' stroke-opacity='.75' stroke-width='.9'%3E%3Cpath d='M100 0L0 18M100 0L22 52M100 0L54 80M100 0L84 100M78 4Q80 13 83 16Q89 19 96 22M56 8Q62 25 67 31Q80 40 91 44M34 12Q43 37 51 47Q69 61 87 67M12 16Q24 49 36 62Q59 82 83 90'/%3E%3C/svg%3E") center / contain no-repeat; }
.dv-gallery-grid.kit-gallery a:hover { rotate: 0deg; }
@media (min-width: 760px) { .dv-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* RSVP, info, contact */
.dv-reply { max-width: 700px; margin: 0 auto; padding: clamp(40px, 6vw, 56px) clamp(24px, 6vw, 56px) clamp(32px, 5vw, 48px); }
.dovleac .inv-rsvp__intro { font-size: 1.06rem; }
.dovleac .inv-rsvp__deadline { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-primary); }
.dv-info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.dv-info-item { padding: 30px 24px 20px; text-align: center; }
.dv-info-item h3 { font-size: 1.6rem; color: var(--inv-primary); margin-bottom: 8px; }
.dv-faq { max-width: 720px; margin: 46px auto 0; text-align: center; display: grid; gap: 12px; }
.dv-faq details { text-align: left; }
.dv-faq summary { cursor: pointer; list-style: none; padding: 17px 52px 17px 22px; position: relative; font-weight: 600; font-size: 1.02rem; }
.dv-faq summary::-webkit-details-marker { display: none; }
.dv-faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 20px; height: 18px; margin-top: -9px; border-radius: 46% 46% 44% 44% / 54% 54% 46% 46%; background: radial-gradient(ellipse at 50% 35%, #ffad4d, var(--dv-pumpkin) 60%, #a8490b); transition: rotate .5s ease, filter .5s ease; }
.dv-faq details[open] summary::after { rotate: 20deg; filter: drop-shadow(0 0 6px #ffb347); }
.dv-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; border-radius: 14px; }
.dv-faq details p { padding: 0 22px; color: var(--dv-soft); }
.dv-faq details p:last-child { padding-bottom: 16px; }
.dv-contact { text-align: center; }
.dv-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 60px; }
.dv-contact-person a { text-decoration: none; }

/* ---------- Footer: the pumpkins under the moon, and a little ghost ---------- */
.dv-footer { text-align: center; padding: clamp(90px, 13vw, 140px) 16px 70px; overflow: hidden; overflow: clip; }
.dv-finale { position: relative; width: min(320px, 78vw); margin: 0 auto 20px; }
.kit-js .dv-footer .dv-pumpkins img { opacity: 0; translate: 0 20px; }
.kit-js .dv-footer.is-visible .dv-pumpkins img { animation: dv-rise 1.4s ease .1s both; }
.dv-ghost { position: absolute; right: 2%; top: 4%; width: 68px; height: 84px; z-index: 2; opacity: 0;
    background: radial-gradient(circle at 34% 34%, #2a2030 0 5px, transparent 6px), radial-gradient(circle at 64% 34%, #2a2030 0 5px, transparent 6px), radial-gradient(ellipse 12% 8% at 49% 52%, #2a2030 90%, transparent 100%), linear-gradient(#fbf8f2, #e9e4ee);
    border-radius: 50% 50% 0 0 / 46% 46% 0 0;
    -webkit-mask: linear-gradient(#000, #000) 0 0 / 100% calc(100% - 8.5px) no-repeat, radial-gradient(circle at 50% 0, #000 8.2px, transparent 8.7px) 0 100% / 17px 17px repeat-x;
    mask: linear-gradient(#000, #000) 0 0 / 100% calc(100% - 8.5px) no-repeat, radial-gradient(circle at 50% 0, #000 8.2px, transparent 8.7px) 0 100% / 17px 17px repeat-x;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, .45)); }
.kit-js .dv-footer.is-visible .dv-ghost { animation: dv-ghost-in 1.6s ease 1s forwards, dv-float 3.4s ease-in-out 2.6s infinite; }
@keyframes dv-ghost-in { from { opacity: 0; translate: 0 40px; } to { opacity: .95; translate: 0 0; } }
@keyframes dv-float { 0%, 100% { opacity: .95; translate: 0 0; rotate: -4deg; } 50% { opacity: .95; translate: 0 -12px; rotate: 4deg; } }
.dv-footer-message { font-size: 1.14rem; color: var(--dv-soft); max-width: 36ch; margin: 0 auto 6px; }
.dovleac .dv-footer-name { font-family: var(--dv-drip); font-size: clamp(3rem, 11vw, 4.6rem); line-height: 1.1; color: var(--inv-primary); margin: 4px 0 10px; }
.dv-hashtag { letter-spacing: .12em; color: var(--inv-primary); }

@media (prefers-reduced-motion: reduce) {
    .dv-moon, .dv-fog i, .dv-glow, .dv-dark .dv-halo, .kit-js .dv-window--hero, .kit-js .dv-jack .dv-art img, .kit-js .dv-hero-text > *, .kit-js .dv-countdown.is-visible .kit-countdown-value { animation: none; }
    .kit-js .dv-title .dv-spider-body, .kit-js .dv-title .dv-thread, .kit-js .dv-welcome .dv-lantern img, .kit-js .dv-host-grid .dv-cookies img, .kit-js .dv-hour .dv-hour-card { opacity: 1; translate: 0 0; scale: 1; transition: none; animation: none; }
    .kit-js .dv-footer .dv-pumpkins img { opacity: 1; translate: 0 0; animation: none; }
    .kit-js .dv-footer.is-visible .dv-ghost { animation: none; opacity: .95; }
}
