/* ==========================================================================
   Acasă - a housewarming party, painted in watercolour: the photo framed in a little house with a tiled roof and
   smoke curling from its chimney, the new keys swinging on a ribbon (a touch sets them swinging), and the living room
   beside it, its floor lamp coming on. A little house drawn in one line sits above every title with its window
   lighting up, the hallway welcomes the guests, the hosts' portrait hangs in a round frame beside the reading
   armchair, the theme is a note on the fridge, the programme is a tour of the rooms, the days left are on blue enamel
   house-number plates, the reply waits behind a welcome doormat, and at the end the house's windows light up one by
   one in the evening.
   Palette: --inv-primary (the ink), --inv-accent (the soft colour), --inv-bg, --inv-text.
   The watercolours (assets/art, Pixabay, see LICENSES.md) are made transparent; on the dark palette (.ac-dark, set by
   script.js) they get back a sheet of paper and the lamp throws its light
   ========================================================================== */

.acasa {
    --ac-hand: 'Caveat Brush', 'Segoe Print', cursive;
    --ac-soft: color-mix(in srgb, var(--inv-text) 64%, var(--inv-bg));
    --ac-line: color-mix(in srgb, var(--inv-primary) 18%, transparent);
    --ac-paper: color-mix(in srgb, #fffaf2 90%, var(--inv-accent));
    --ac-wall: color-mix(in srgb, #fbf7f0 90%, var(--inv-accent));
    --ac-roof: color-mix(in srgb, #b4583a 78%, var(--inv-primary));
    --ac-wood: #a77b52;
    --ac-glow: #ffd98a;
    --ac-enamel: color-mix(in srgb, #1f4f8f 82%, var(--inv-primary));
    --ac-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: 12px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--ac-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;
}
.acasa h1, .acasa h2, .acasa h3 { font-family: var(--inv-font-heading); font-weight: 500; line-height: 1.16; }
:where(.acasa) :is(h1, h2, h3) { margin: 0; }
:where(.acasa) p { margin: 0 0 .9em; }
.acasa strong { font-weight: 500; }
.acasa a { color: var(--inv-primary); }
.ac-kicker { font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.ac-role { font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ac-soft); margin: 0 0 4px; }
.ac-names { font-family: var(--inv-font-heading); font-size: 1.24rem; margin: 0; }
.ac-hero, .ac-main, .ac-footer { position: relative; }
.ac-card { position: relative; background: var(--inv-surface); border-radius: 14px; box-shadow: var(--ac-shadow), 0 0 0 1px var(--ac-line); }

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

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

/* ---------- Hero: the little house ---------- */
.ac-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px 16px 56px; overflow: hidden; overflow: clip; }
.ac-hero-inner { position: relative; z-index: 1; width: min(1060px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; text-align: center; }
.ac-home { position: relative; width: min(470px, 94vw); display: grid; grid-template-columns: 50% minmax(0, 1fr); align-items: end; padding-top: 30px; }
.ac-house--hero { grid-column: 1; grid-row: 1; z-index: 1; margin-bottom: 18%; }
.kit-js .ac-house--hero { animation: ac-rise 1.1s cubic-bezier(.3, 1.2, .5, 1) .1s both; }
@keyframes ac-rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

/* the house frame */
.ac-house { position: relative; margin: 0; padding-top: 34%; }
.ac-roof { position: absolute; left: -9%; right: -9%; top: 0; aspect-ratio: 118 / 37; z-index: 2;
    clip-path: polygon(50% 0, 100% 86%, 100% 100%, 0 100%, 0 86%);
    background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(0, 0, 0, .14) 9px 10px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 10px, transparent 10px 20px), linear-gradient(var(--ac-roof), color-mix(in srgb, var(--ac-roof) 80%, #000));
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .2)); }
.ac-wall { position: relative; display: block; aspect-ratio: .9; overflow: hidden; background: var(--ac-wall); border-radius: 0 0 6px 6px; box-shadow: 0 0 0 8px var(--ac-wall), 0 0 0 9px var(--ac-line), var(--ac-shadow); }
.ac-wall img, .ac-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.ac-initial { display: grid; place-items: center; font-family: var(--ac-hand); font-size: 5rem; color: var(--inv-primary); background: var(--ac-paper); }
.ac-chimney { position: absolute; right: 18%; top: 4%; width: 13%; height: 20%; z-index: 1; background: linear-gradient(90deg, color-mix(in srgb, var(--ac-roof) 70%, #5a2a1a), var(--ac-roof)); border-radius: 2px 2px 0 0; box-shadow: inset 0 6px 0 rgba(0, 0, 0, .18); }
.ac-chimney i { position: absolute; left: 50%; bottom: 100%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: color-mix(in srgb, var(--inv-text) 22%, transparent); filter: blur(3px); opacity: 0; animation: ac-smoke 4.5s ease-out infinite; }
.ac-chimney i:nth-child(2) { animation-delay: 1.5s; }
.ac-chimney i:nth-child(3) { animation-delay: 3s; }
@keyframes ac-smoke { 0% { opacity: 0; translate: 0 0; scale: .5; } 20% { opacity: .8; } 100% { opacity: 0; translate: 26px -90px; scale: 2.2; } }

/* the living room, its floor lamp coming on */
.ac-living { position: relative; grid-column: 2; grid-row: 1; margin-left: -6%; margin-right: -6%; z-index: 2; }
.kit-js .ac-living .ac-art img { animation: ac-rise 1.3s cubic-bezier(.3, 1.2, .5, 1) .4s both; }
.ac-lamp { position: absolute; left: 10.4%; top: 12%; width: 34%; height: 46%; translate: -50% 0; pointer-events: none; opacity: 0;
    background: radial-gradient(ellipse 34% 12% at 50% 4%, rgba(255, 238, 190, .9), rgba(255, 220, 140, .4) 60%, transparent 100%), radial-gradient(ellipse 50% 60% at 50% 30%, rgba(255, 214, 120, .35), transparent 70%);
    mix-blend-mode: normal; }
.kit-js .ac-lamp { animation: ac-lamp 1.4s ease 2s forwards; }
@keyframes ac-lamp { 0% { opacity: 0; } 20% { opacity: .9; } 30% { opacity: .3; } 45%, 100% { opacity: 1; } }

/* the new keys swinging on their ribbon */
.ac-keys { position: absolute; left: 47%; top: 33%; width: 46px; height: 100px; z-index: 3; transform-origin: 50% 0; cursor: pointer; pointer-events: auto; animation: ac-keys 5s ease-in-out infinite; }
.ac-keys::before { content: ""; position: absolute; left: 50%; top: 0; width: 3px; height: 34px; margin-left: -1.5px; background: var(--inv-primary); border-radius: 2px; }
.ac-keys::after { content: ""; position: absolute; left: 50%; top: 30px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; border: 3px solid #c9a24f; }
.ac-key { position: absolute; left: 14px; top: 42px; width: 14px; height: 52px; rotate: 10deg; transform-origin: 50% 0;
    background: radial-gradient(circle at 50% 9px, transparent 0 3.5px, #d5b05a 4px 9px, transparent 9.5px), linear-gradient(90deg, transparent 38%, #d5b05a 38% 62%, transparent 62%) 0 16px / 100% 36px no-repeat, linear-gradient(#d5b05a, #d5b05a) 62% 44px / 4px 4px no-repeat, linear-gradient(#d5b05a, #d5b05a) 62% 36px / 5px 4px no-repeat;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.ac-key--small { left: 22px; top: 44px; height: 42px; rotate: -18deg; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)) hue-rotate(-15deg) saturate(.6) brightness(1.1); }
@keyframes ac-keys { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }
.ac-keys.is-swung { animation: ac-keys-big 2.2s cubic-bezier(.3, .6, .4, 1) 1; }
@keyframes ac-keys-big { 0% { rotate: 0deg; } 15% { rotate: 24deg; } 35% { rotate: -18deg; } 55% { rotate: 11deg; } 75% { rotate: -6deg; } 100% { rotate: 0deg; } }

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

/* ---------- Sections ---------- */
.ac-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.ac-section { padding-top: clamp(84px, 11vw, 128px); }
.ac-title { margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.ac-title h2 { font-size: clamp(2rem, 5.4vw, 2.7rem); color: var(--inv-primary); text-wrap: balance; }
.ac-sketch { display: block; width: 64px; height: auto; margin: 0 auto 8px; overflow: visible; }
.ac-sketch-line { fill: none; stroke: color-mix(in srgb, var(--inv-primary) 70%, transparent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ac-sketch-window { fill: var(--ac-glow); transition: fill .6s ease 1.2s; }
.kit-js .ac-title .ac-sketch-window { fill: transparent; }
.kit-js .ac-title.is-visible .ac-sketch-window { fill: var(--ac-glow); }
.kit-js .ac-title .ac-sketch-line { stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.4s ease .1s; }
.kit-js .ac-title.is-visible .ac-sketch-line { stroke-dashoffset: 0; }

/* Welcome, at the door */
.ac-welcome { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 820px; margin: 0 auto; }
.ac-welcome p { font-size: 1.05rem; }
.ac-entry { width: min(200px, 50vw); }
.kit-js .ac-welcome .ac-entry img { opacity: 0; translate: 0 22px; transition: opacity .9s ease, translate 1s ease; }
.kit-js .ac-welcome.is-visible .ac-entry img { opacity: 1; translate: 0 0; }
.acasa .ac-welcome-title { font-family: var(--ac-hand); font-weight: 400; font-size: clamp(2.6rem, 8vw, 3.6rem); line-height: 1.1; color: var(--inv-primary); margin-bottom: 12px; }
.ac-quote-author { font-family: var(--inv-font-heading); font-style: italic; color: var(--inv-primary); }
@media (min-width: 760px) {
    .ac-welcome { grid-template-columns: auto minmax(0, 1fr); gap: 50px; text-align: left; align-items: center; }
    .ac-entry { width: 230px; }
}

/* The hosts: a round frame on the wall, the armchair beside it */
.ac-host-grid { display: grid; gap: 56px; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.ac-portrait { position: relative; width: min(230px, 56vw); }
.ac-mirror { margin: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--ac-paper); box-shadow: 0 0 0 10px var(--ac-wood), 0 0 0 12px color-mix(in srgb, var(--ac-wood) 70%, #3a2412), var(--ac-shadow); }
.ac-mirror img, .ac-mirror .ac-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.ac-armchair { position: absolute; right: -44%; bottom: -26%; width: 72%; z-index: 2; }
.kit-js .ac-host-grid .ac-armchair img { opacity: 0; translate: 20px 10px; transition: opacity .8s ease .5s, translate 1s cubic-bezier(.3, 1.3, .5, 1) .5s; }
.kit-js .ac-host-grid.is-visible .ac-armchair img { opacity: 1; translate: 0 0; }
.ac-host-name { font-family: var(--inv-font-heading); font-size: 1.8rem; color: var(--inv-primary); margin-bottom: 4px; }
.ac-host-age { font-size: .76rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ac-soft); }
.ac-host-message { font-size: 1.06rem; max-width: 38ch; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
    .ac-host-grid { grid-template-columns: auto minmax(0, 1fr); gap: 140px; text-align: left; align-items: center; }
    .ac-portrait { width: 240px; }
    .ac-host-message { margin-left: 0; }
}
@media (max-width: 759px) { .ac-armchair { right: -28%; width: 60%; } }

/* The theme on a note on the fridge (tilted, so its section clips the overhang on a phone) */
.ac-theme { overflow-x: clip; padding-bottom: 6px; }
.ac-note { position: relative; max-width: 520px; margin: 0 auto; padding: 40px clamp(26px, 6vw, 46px) 30px; text-align: center; rotate: -1.4deg;
    background: linear-gradient(transparent 0, transparent 92%, rgba(0, 0, 0, .04)), color-mix(in srgb, #fff7c9 88%, var(--inv-accent)); box-shadow: 0 2px 3px rgba(0, 0, 0, .08), 0 18px 26px -18px rgba(0, 0, 0, .35); color: #3a3022; }
.ac-note::before { content: ""; position: absolute; left: 50%; top: -14px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: radial-gradient(circle at 36% 32%, color-mix(in srgb, var(--inv-primary) 40%, #fff), var(--inv-primary) 60%, color-mix(in srgb, var(--inv-primary) 70%, #000)); box-shadow: 0 3px 4px rgba(0, 0, 0, .3); }
.ac-note h3 { font-family: var(--ac-hand); font-weight: 400; font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1.1; color: #6b3a1e; margin-bottom: 10px; }
.ac-note p { font-family: var(--ac-hand); font-size: 1.32rem; line-height: 1.45; }
.kit-js .ac-theme .ac-note { opacity: 0; rotate: -8deg; translate: 0 -20px; transition: opacity .5s ease, rotate .9s cubic-bezier(.3, 1.5, .5, 1), translate .9s cubic-bezier(.3, 1.5, .5, 1); }
.kit-js .ac-theme.is-visible .ac-note { opacity: 1; rotate: -1.4deg; translate: 0 0; }

/* Programme: a tour of the house */
.ac-tour { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 30px; }
.ac-room-card { display: grid; gap: 4px 26px; justify-items: center; text-align: center; padding: 26px clamp(20px, 5vw, 36px) 24px; border-top: 5px solid color-mix(in srgb, var(--inv-accent) 80%, var(--inv-primary)); }
.ac-room-art { width: min(150px, 42vw); }
.kit-js .ac-room .ac-room-card { opacity: 0; translate: 0 24px; transition: opacity .6s ease, translate .9s cubic-bezier(.3, 1.2, .5, 1); }
.kit-js .ac-room.is-visible .ac-room-card { opacity: 1; translate: 0 0; }
.ac-room-time { font-family: var(--ac-hand); font-size: 2rem; line-height: 1.1; color: var(--inv-primary); margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.ac-room-text h3 { font-size: clamp(1.34rem, 4.2vw, 1.6rem); margin-bottom: 4px; }
.ac-room-place { font-weight: 500; margin: 0; }
.ac-room-address, .ac-room-notes { color: var(--ac-soft); margin: 0; }
.ac-room-notes { font-style: italic; margin-top: 6px; }
.ac-room .kit-event-actions { margin-top: 14px; justify-content: center; }
@media (min-width: 760px) {
    .ac-room-card { grid-template-columns: 160px minmax(0, 1fr); text-align: left; align-items: center; justify-items: start; padding: 30px 36px 26px; }
    .ac-room:nth-child(even) .ac-room-card { grid-template-columns: minmax(0, 1fr) 160px; }
    .ac-room:nth-child(even) .ac-room-art { order: 2; }
    .ac-room-art { width: 160px; }
    .ac-room .kit-event-actions { justify-content: flex-start; }
}
.acasa .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; }
.acasa .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: blue enamel house-number plates */
.ac-countdown { text-align: center; }
.ac-countdown .kit-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px clamp(8px, 2.6vw, 22px); margin-top: 30px; }
.ac-countdown .kit-countdown-unit { position: relative; width: clamp(76px, 20vw, 112px); min-width: 0; aspect-ratio: 1.15; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .28), transparent 50%), var(--ac-enamel);
    box-shadow: inset 0 0 0 4px var(--ac-enamel), inset 0 0 0 6px #fdfcf8, inset 0 0 12px rgba(0, 0, 0, .25), 0 10px 14px -8px rgba(0, 0, 0, .35); }
.ac-countdown .kit-countdown-unit::before, .ac-countdown .kit-countdown-unit::after { content: ""; position: absolute; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #9aa3ad); }
.ac-countdown .kit-countdown-unit::before { left: 10px; }
.ac-countdown .kit-countdown-unit::after { right: 10px; }
.ac-countdown .kit-countdown-value { font-family: var(--inv-font-body); font-weight: 600; font-size: clamp(1.4rem, 5.4vw, 2.2rem); line-height: 1; color: #fdfcf8; font-variant-numeric: tabular-nums; }
.ac-countdown .kit-countdown-label { opacity: 1; color: #dfe7f2; font-size: .52rem; font-weight: 500; letter-spacing: .12em; margin-top: 4px; }

/* Gallery: a gallery wall of mismatched frames */
.ac-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 30px); align-items: center; }
.ac-gallery-grid.kit-gallery a { position: relative; aspect-ratio: 4 / 5; padding: 9px; background: var(--ac-wood); box-shadow: var(--ac-shadow), inset 0 0 0 2px rgba(0, 0, 0, .15); }
.ac-gallery-grid.kit-gallery a:nth-child(3n+2) { aspect-ratio: 1; padding: 14px; background: #fdfcf8; box-shadow: var(--ac-shadow), inset 0 0 0 1px rgba(0, 0, 0, .08); }
.ac-gallery-grid.kit-gallery a:nth-child(3n) { padding: 5px; background: linear-gradient(135deg, #e3c77a, #b8913e 50%, #e8d18c); border-radius: 50% 50% 4px 4px / 30% 30% 4px 4px; }
.ac-gallery-grid.kit-gallery a:nth-child(3n) img { border-radius: 50% 50% 2px 2px / 30% 30% 2px 2px; }
.ac-gallery-grid.kit-gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .ac-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* RSVP behind the doormat, info, contact */
.ac-reply { max-width: 700px; margin: 0 auto; padding: clamp(40px, 6vw, 56px) clamp(24px, 6vw, 56px) clamp(32px, 5vw, 48px); }
.ac-doormat { display: block; width: min(260px, 80%); height: 46px; margin: -8px auto 22px; border-radius: 6px;
    background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 5px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .1) 0 2px, transparent 2px 4px), #c49a5c;
    box-shadow: inset 0 0 0 4px #8c6a3a, 0 6px 10px -6px rgba(0, 0, 0, .4); position: relative; }
.ac-doormat::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 22px; translate: -50% -50%; background: #5a3f1d; clip-path: polygon(50% 0, 100% 45%, 86% 45%, 86% 100%, 14% 100%, 14% 45%, 0 45%); }
.acasa .inv-rsvp__intro { font-size: 1.06rem; }
.acasa .inv-rsvp__deadline { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-primary); }
.ac-info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ac-info-item { padding: 30px 24px 20px; text-align: center; }
.ac-info-item h3 { font-size: 1.32rem; color: var(--inv-primary); margin-bottom: 8px; }
.ac-faq { max-width: 720px; margin: 46px auto 0; text-align: center; display: grid; gap: 12px; }
.ac-faq details { text-align: left; }
.ac-faq summary { cursor: pointer; list-style: none; padding: 17px 52px 17px 22px; position: relative; font-weight: 500; font-size: 1.02rem; }
.ac-faq summary::-webkit-details-marker { display: none; }
.ac-faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 18px; height: 16px; margin-top: -8px; background: color-mix(in srgb, var(--inv-primary) 70%, transparent); clip-path: polygon(50% 0, 100% 45%, 86% 45%, 86% 100%, 14% 100%, 14% 45%, 0 45%); transition: background .4s ease; }
.ac-faq details[open] summary::after { background: #e8b34e; }
.ac-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; border-radius: 14px; }
.ac-faq details p { padding: 0 22px; color: var(--ac-soft); }
.ac-faq details p:last-child { padding-bottom: 16px; }
.ac-contact { text-align: center; }
.ac-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 60px; }
.ac-contact-person a { text-decoration: none; }

/* ---------- Footer: the house in the evening ---------- */
.ac-footer { text-align: center; padding: clamp(90px, 13vw, 140px) 16px 70px; overflow: hidden; overflow: clip; }
.ac-evening { position: relative; width: min(240px, 66vw); margin: 0 auto 26px; padding-top: 50px; }
.ac-eve-house { position: relative; display: block; }
.ac-eve-house .ac-chimney { top: 14px; height: 40px; right: 20%; width: 26px; }
.ac-eve-roof { display: block; height: 70px; margin: 0 -14px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: linear-gradient(var(--ac-roof), color-mix(in srgb, var(--ac-roof) 75%, #000)); position: relative; z-index: 2; }
.ac-eve-wall { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 34px; padding: 22px 30px 0; height: 150px; background: color-mix(in srgb, var(--ac-wall) 80%, var(--inv-text)); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1); }
.ac-eve-window { display: block; height: 38px; border-radius: 3px; background: color-mix(in srgb, var(--inv-text) 55%, var(--inv-bg)); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--ac-wall) 70%, #fff), inset 0 -19px 0 -17px rgba(255, 255, 255, .7); transition: background .6s ease, box-shadow .6s ease; }
.ac-eve-door { position: absolute; left: 50%; bottom: 0; width: 34px; height: 56px; margin-left: -17px; border-radius: 16px 16px 0 0; background: var(--inv-primary); }
.kit-js .ac-footer.is-visible .ac-eve-window { background: var(--ac-glow); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--ac-wall) 70%, #fff), 0 0 18px 4px color-mix(in srgb, var(--ac-glow) 50%, transparent); transition-delay: calc(.6s + var(--w) * .5s); }
.ac-footer-message { font-size: 1.14rem; color: var(--ac-soft); max-width: 36ch; margin: 0 auto 6px; }
.acasa .ac-footer-name { font-family: var(--ac-hand); font-size: clamp(3rem, 11vw, 4.6rem); line-height: 1.1; color: var(--inv-primary); margin: 4px 0 10px; }
.ac-hashtag { letter-spacing: .12em; color: var(--inv-primary); }

@media (prefers-reduced-motion: reduce) {
    .ac-chimney i, .ac-keys, .kit-js .ac-house--hero, .kit-js .ac-living .ac-art img, .kit-js .ac-hero-text > * { animation: none; }
    .kit-js .ac-lamp { animation: none; opacity: 1; }
    .kit-js .ac-title .ac-sketch-line { stroke-dashoffset: 0; transition: none; }
    .kit-js .ac-welcome .ac-entry img, .kit-js .ac-host-grid .ac-armchair img, .kit-js .ac-theme .ac-note, .kit-js .ac-room .ac-room-card { opacity: 1; translate: 0 0; transition: none; }
    .kit-js .ac-theme .ac-note { rotate: -1.4deg; }
}
