/* ==========================================================================
   Ceai - a tea party, painted in watercolour: the photo in an oval porcelain frame with a gold rim, soft steam rising
   from the teapot beside it and a tower of pastel macarons (a touch sends a heart up through the steam and makes
   the macarons hop). Chamomile flowers float down the page, a little teacup steams above every title, the
   chamomile tea says hello, the birthday girl's portrait sits in a porcelain oval beside a cup of tea, the theme is
   written on a lace napkin, every moment has its cake, the days left are on macarons, the photos are porcelain
   plates and at the end the reading armchair waits with a cup of tea.
   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 (.ce-dark, set
   by script.js) they get back a sheet of watercolour paper. script.js draws the chamomile (canvas.ce-air)
   ========================================================================== */

.ceai {
    --ce-hand: 'Great Vibes', 'Segoe Script', cursive;
    --ce-soft: color-mix(in srgb, var(--inv-text) 64%, var(--inv-bg));
    --ce-line: color-mix(in srgb, var(--inv-primary) 18%, transparent);
    --ce-paper: color-mix(in srgb, #fffcf8 90%, var(--inv-accent));
    --ce-china: #fffdfa;
    --ce-gold: linear-gradient(145deg, #f6e2a6, #c99b45 40%, #f2d58f 60%, #a77a2c);
    --ce-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: 10px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--ce-line);
    font-family: var(--inv-font-body);
    font-weight: 400;
    font-size: 1.02rem;
    line-height: 1.75;
    background: var(--inv-bg);
    overflow-x: clip;
}
.ceai.ce-dark { --ce-china: #f6efe6; }
.ceai h1, .ceai h2, .ceai h3 { font-family: var(--inv-font-heading); font-weight: 500; line-height: 1.1; }
:where(.ceai) :is(h1, h2, h3) { margin: 0; }
:where(.ceai) p { margin: 0 0 .9em; }
.ceai strong { font-weight: 500; }
.ceai a { color: var(--inv-primary); }
.ce-kicker { font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.ce-role { font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ce-soft); margin: 0 0 4px; }
.ce-names { font-family: var(--inv-font-heading); font-weight: 600; font-size: 1.45rem; margin: 0; }
.ce-hero, .ce-main, .ce-footer { position: relative; z-index: 1; }
.ce-card { position: relative; background: var(--inv-surface); border-radius: 14px; box-shadow: var(--ce-shadow), 0 0 0 1px var(--ce-line); }
.ce-air { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

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

/* ---------- The porcelain oval: a white rim with a painted garland of dots and a gold line inside ---------- */
.ce-oval { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 50%; padding: 6.5%; background:
        radial-gradient(circle, color-mix(in srgb, var(--inv-primary) 55%, transparent) 0 1.6px, transparent 2.2px) 50% 50% / 16px 16px,
        var(--ce-china);
    box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px color-mix(in srgb, var(--inv-primary) 20%, transparent), 0 2px 3px rgba(0, 0, 0, .06), 0 30px 50px -30px color-mix(in srgb, var(--inv-text) 65%, transparent); }
.ce-oval::before { content: ""; position: absolute; inset: 5%; border-radius: 50%; padding: 3px; background: var(--ce-gold);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.ce-oval-photo { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--ce-paper); }
.ce-oval-photo img, .ce-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.ce-initial { display: grid; place-items: center; font-family: var(--ce-hand); font-size: 5rem; color: var(--inv-primary); }

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

/* ---------- Hero: the oval, the steaming teapot and the macarons ---------- */
.ce-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 110px 16px 70px; overflow: hidden; overflow: clip; }
.ce-sun { position: absolute; left: 50%; top: -20%; width: min(1000px, 160vw); aspect-ratio: 1; margin-left: max(-500px, -80vw); border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-accent) 75%, transparent), transparent 72%); }
.ce-dark .ce-sun { background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-accent) 22%, transparent), transparent 72%); }
.ce-hero-inner { position: relative; z-index: 1; width: min(1060px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 40px; text-align: center; }
.ce-table { position: relative; width: min(270px, 58vw); margin: 0 0 14%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kit-js .ce-oval--hero { animation: ce-rise 1.3s cubic-bezier(.3, 1.2, .5, 1) .1s both; }
@keyframes ce-rise { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
.ce-pot { position: absolute; left: -44%; bottom: -16%; width: 72%; z-index: 3; display: block; }
.ce-sweets { position: absolute; right: -36%; bottom: -12%; width: 52%; z-index: 3; display: block; }
.kit-js .ce-pot .ce-art img { animation: ce-in-l 1.2s cubic-bezier(.3, 1.2, .5, 1) .6s both; }
.kit-js .ce-sweets .ce-art img { animation: ce-in-r 1.2s cubic-bezier(.3, 1.2, .5, 1) .8s both; }
@keyframes ce-in-l { from { opacity: 0; translate: -30px 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes ce-in-r { from { opacity: 0; translate: 30px 16px; } to { opacity: 1; translate: 0 0; } }
.ce-table.is-pouring .ce-sweets .ce-art { animation: ce-hop .9s cubic-bezier(.3, 1.6, .5, 1) 1; }
@keyframes ce-hop { 0%, 100% { translate: 0 0; } 30% { translate: 0 -16px; rotate: -3deg; } 60% { translate: 0 0; rotate: 2deg; } 80% { translate: 0 -5px; } }
/* the steam: three soft curls rising from the teapot's spout, and the heart a touch sends up */
.ce-steam { position: absolute; left: 16%; bottom: 58%; width: 30%; height: 80%; pointer-events: none; z-index: 2; }
.ce-steam i { position: absolute; bottom: 0; width: 12px; height: 46%; border-radius: 50%; border-left: 3px solid color-mix(in srgb, var(--inv-text) 18%, transparent); filter: blur(1.5px); opacity: 0; }
.ce-dark .ce-steam i { border-color: rgba(255, 255, 255, .3); }
.ce-steam i:nth-child(1) { left: 20%; }
.ce-steam i:nth-child(2) { left: 42%; }
.ce-steam i:nth-child(3) { left: 64%; }
.kit-js .ce-steam i { animation: ce-steam 4.2s ease-in-out infinite; }
.kit-js .ce-steam i:nth-child(2) { animation-delay: 1.4s; }
.kit-js .ce-steam i:nth-child(3) { animation-delay: 2.8s; }
@keyframes ce-steam { 0% { opacity: 0; translate: 0 20px; scale: .6 .5; } 30% { opacity: 1; } 70% { opacity: .6; } 100% { opacity: 0; translate: 10px -60px; scale: 1.2 1.1; rotate: 8deg; } }
.ce-heart { position: absolute; left: 34%; bottom: 10%; width: 30px; height: 30px; opacity: 0; filter: blur(.6px); }
.ce-heart::before, .ce-heart::after { content: ""; position: absolute; top: 0; width: 52%; height: 80%; border-radius: 50% 50% 0 0; background: color-mix(in srgb, var(--inv-primary) 45%, transparent); }
.ce-heart::before { left: 50%; rotate: -45deg; transform-origin: 0 100%; }
.ce-heart::after { left: 0; rotate: 45deg; transform-origin: 100% 100%; }
.ce-table.is-pouring .ce-heart { animation: ce-love 2s ease-out 1; }
@keyframes ce-love { 0% { opacity: 0; translate: 0 20px; scale: .4; } 25% { opacity: 1; scale: 1; } 100% { opacity: 0; translate: 6px -120px; scale: 1.5; } }

.ce-hero-text { display: grid; justify-items: center; width: 100%; min-width: 0; }
.ceai .ce-name { font-family: var(--inv-font-heading); font-weight: 500; font-size: clamp(3rem, 12vw, 5.4rem); line-height: 1; color: var(--inv-primary); overflow-wrap: anywhere; text-wrap: balance; margin: 0 0 14px; }
.ce-hero-date { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.55rem; margin: 0 0 4px; }
.ce-hero-place { font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ce-soft); margin: 0; }
.ceai .ce-subtitle { max-width: 44ch; margin: 16px auto 0; color: var(--ce-soft); }
@keyframes ce-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.kit-js .ce-hero-text > * { animation: ce-up 1s ease .9s both; }
.kit-js .ce-hero-text > :nth-child(n+3) { animation-delay: 1.2s; }
@media (min-width: 900px) {
    .ce-hero { padding-top: 140px; }
    .ce-hero-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 60px; text-align: left; align-items: center; }
    .ce-hero-text { justify-items: start; order: -1; }
    .ceai .ce-subtitle { margin-left: 0; }
    .ce-table { width: min(300px, 26vw); margin: 0 clamp(90px, 9vw, 110px) 40px clamp(110px, 11vw, 140px); }
}

/* ---------- Sections ---------- */
.ce-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.ce-section { padding-top: clamp(84px, 11vw, 128px); }
.ce-title { margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.ce-title h2 { font-size: clamp(2.2rem, 6vw, 3.1rem); color: var(--inv-primary); text-wrap: balance; }
/* the little teacup: the bowl, its handle, the saucer and two curls of steam */
.ce-teacup { position: relative; display: block; width: 46px; height: 40px; margin: 0 auto 8px; }
.ce-teacup b { position: absolute; left: 8px; bottom: 5px; width: 24px; height: 14px; border-radius: 2px 2px 12px 12px; background: var(--ce-china); box-shadow: inset 0 0 0 1.5px var(--inv-primary); }
.ce-teacup b::before { content: ""; position: absolute; right: -8px; top: 2px; width: 9px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--inv-primary); }
.ce-teacup b::after { content: ""; position: absolute; left: -7px; right: -7px; bottom: -5px; height: 3px; border-radius: 2px; background: var(--inv-primary); }
.ce-teacup i { position: absolute; bottom: 21px; width: 7px; height: 16px; border-radius: 50%; border-left: 1.5px solid color-mix(in srgb, var(--inv-primary) 70%, transparent); }
.ce-teacup i:nth-child(1) { left: 15px; }
.ce-teacup i:nth-child(2) { left: 23px; }
.kit-js .ce-title .ce-teacup i { opacity: 0; }
.kit-js .ce-title.is-visible .ce-teacup i { animation: ce-curl 3.2s ease-in-out .3s infinite; }
.kit-js .ce-title.is-visible .ce-teacup i:nth-child(2) { animation-delay: 1.4s; }
@keyframes ce-curl { 0% { opacity: 0; translate: 0 6px; } 35% { opacity: 1; } 100% { opacity: 0; translate: 3px -12px; } }

/* Welcome, with the cup of chamomile */
.ce-welcome { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 820px; margin: 0 auto; }
.ce-welcome p { font-size: 1.04rem; }
.ce-hello { width: min(230px, 58vw); }
.kit-js .ce-welcome .ce-hello img { opacity: 0; translate: -30px 0; transition: opacity .9s ease, translate 1.2s cubic-bezier(.3, 1.2, .5, 1); }
.kit-js .ce-welcome.is-visible .ce-hello img { opacity: 1; translate: 0 0; }
.ceai .ce-welcome-title { font-family: var(--ce-hand); font-weight: 400; font-size: clamp(2.8rem, 10vw, 4rem); line-height: 1.1; color: var(--inv-primary); margin-bottom: 10px; }
.ce-quote-author { font-family: var(--inv-font-heading); font-style: italic; color: var(--inv-primary); }
@media (min-width: 760px) {
    .ce-welcome { grid-template-columns: auto minmax(0, 1fr); gap: 50px; text-align: left; align-items: center; }
    .ce-hello { width: 260px; }
}

/* The guest of honour (the cup sits past the oval, so the section clips what a phone cannot show) */
.ce-star { overflow-x: clip; padding-bottom: 30px; }
.ce-star-grid { display: grid; gap: 60px; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.ce-portrait { position: relative; width: min(230px, 58vw); }
.ce-cup { position: absolute; right: -42%; bottom: -10%; width: 66%; z-index: 3; }
.kit-js .ce-star-grid .ce-cup img { opacity: 0; translate: 20px 0; transition: opacity .8s ease .5s, translate 1.1s cubic-bezier(.3, 1.3, .5, 1) .5s; }
.kit-js .ce-star-grid.is-visible .ce-cup img { opacity: 1; translate: 0 0; }
.ce-star-name { font-family: var(--inv-font-heading); font-weight: 600; font-size: 2rem; color: var(--inv-primary); margin-bottom: 2px; }
.ce-age { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 0 0 10px; color: var(--ce-soft); }
.ce-age strong { font-family: var(--inv-font-heading); font-weight: 500; font-size: 4.4rem; line-height: 1; color: var(--inv-primary); }
.ce-age small { font-family: var(--ce-hand); font-size: 2rem; }
.ce-star-message { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.22rem; line-height: 1.5; max-width: 36ch; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
    .ce-star-grid { grid-template-columns: auto minmax(0, 1fr); gap: 120px; text-align: left; align-items: center; }
    .ce-portrait { width: 250px; }
    .ce-age { justify-content: flex-start; }
    .ce-star-message { margin-left: 0; }
}

/* The theme on a lace napkin: a scalloped edge with little holes, a dotted lace ring inside */
.ce-lace { position: relative; max-width: 600px; margin: 0 auto; padding: 50px clamp(32px, 7vw, 58px) 44px; text-align: center; background: color-mix(in srgb, var(--inv-accent) 55%, #fff); color: #3b2a2a;
    --s: 14px;
    -webkit-mask: radial-gradient(circle var(--s) at 50% 50%, #000 96%, transparent) 0 0 / calc(var(--s) * 2) calc(var(--s) * 2) round, linear-gradient(#000 0 0) var(--s) var(--s) / calc(100% - var(--s) * 2) calc(100% - var(--s) * 2) no-repeat;
    mask: radial-gradient(circle var(--s) at 50% 50%, #000 96%, transparent) 0 0 / calc(var(--s) * 2) calc(var(--s) * 2) round, linear-gradient(#000 0 0) var(--s) var(--s) / calc(100% - var(--s) * 2) calc(100% - var(--s) * 2) no-repeat;
    filter: drop-shadow(0 14px 20px rgba(80, 40, 40, .14)); }
.ce-lace::before { content: ""; position: absolute; inset: calc(var(--s) + 10px); border: 2px dotted color-mix(in srgb, #c9a0a6 80%, transparent); border-radius: 6px; pointer-events: none;
    background: radial-gradient(circle, rgba(201, 160, 166, .35) 0 2px, transparent 2.5px) 0 0 / 14px 14px; -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% 16px no-repeat, linear-gradient(#000 0 0) 0 100% / 100% 16px no-repeat; mask: linear-gradient(#000 0 0) 0 0 / 100% 16px no-repeat, linear-gradient(#000 0 0) 0 100% / 100% 16px no-repeat; }
.ce-lace h3 { position: relative; font-family: var(--ce-hand); font-weight: 400; font-size: 2.4rem; line-height: 1.15; color: var(--inv-primary); margin-bottom: 8px; }
.ce-dark .ce-lace h3 { color: #8a5a3a; }
.ce-lace p { position: relative; font-family: var(--inv-font-heading); font-size: 1.22rem; line-height: 1.5; color: #3b2a2a; }
.ce-lace p:last-child { margin-bottom: 0; }
.kit-js .ce-theme .ce-lace { opacity: 0; rotate: -3deg; scale: .96; transition: opacity .7s ease, rotate 1.2s cubic-bezier(.3, 1.4, .5, 1), scale 1.2s cubic-bezier(.3, 1.4, .5, 1); }
.kit-js .ce-theme.is-visible .ce-lace { opacity: 1; rotate: 0deg; scale: 1; }

/* Programme: a cake beside every moment */
.ce-trail { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 30px; }
.ce-stop { display: grid; justify-items: center; }
.ce-stop-art { width: min(150px, 40vw); margin-bottom: -14px; z-index: 2; }
.ce-stop-card { width: 100%; display: grid; justify-items: center; gap: 2px; padding: 28px clamp(20px, 5vw, 36px) 22px; text-align: center; }
.kit-js .ce-stop .ce-stop-card { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .9s ease; }
.kit-js .ce-stop .ce-stop-art img { opacity: 0; translate: 0 -14px; transition: opacity .6s ease .3s, translate .9s cubic-bezier(.3, 1.4, .5, 1) .3s; }
.kit-js .ce-stop.is-visible .ce-stop-card { opacity: 1; translate: 0 0; }
.kit-js .ce-stop.is-visible .ce-stop-art img { opacity: 1; translate: 0 0; }
.ce-stop-time { font-family: var(--inv-font-heading); font-style: italic; font-weight: 500; font-size: 2.1rem; line-height: 1; color: var(--inv-primary); margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.ce-stop-card h3 { font-size: clamp(1.55rem, 4.4vw, 1.85rem); font-weight: 600; margin-bottom: 4px; }
.ce-stop-place { font-weight: 500; margin: 0; }
.ce-stop-address, .ce-stop-notes { color: var(--ce-soft); margin: 0; }
.ce-stop-notes { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.12rem; margin-top: 6px; }
.ce-stop .kit-event-actions { margin-top: 14px; justify-content: center; }
@media (min-width: 760px) {
    .ce-stop { grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 0; }
    .ce-stop-art { width: 170px; margin: 0 -26px 0 0; }
    .ce-stop:nth-child(even) { grid-template-columns: minmax(0, 1fr) 170px; }
    .ce-stop:nth-child(even) .ce-stop-art { order: 2; margin: 0 0 0 -26px; }
    .ce-stop-card { justify-items: start; text-align: left; padding-left: 48px; }
    .ce-stop:nth-child(even) .ce-stop-card { padding-left: 36px; padding-right: 48px; }
    .ce-stop .kit-event-actions { justify-content: flex-start; }
}
.ceai .kit-button { border-radius: 999px; border: 1px solid var(--inv-primary); color: var(--inv-primary); background: transparent; font-size: .76rem; font-weight: 500; letter-spacing: .06em; padding: 8px 18px; text-decoration: none; }
.ceai .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: each number on a pastel macaron (two shells, the cream between them) */
.ce-countdown { text-align: center; }
.ce-countdown .kit-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px clamp(12px, 3.6vw, 28px); margin-top: 36px; }
.ce-countdown .kit-countdown-unit { --c: #f2b8c6; position: relative; width: clamp(70px, 19vw, 100px); min-width: 0; aspect-ratio: 1.12; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: none; isolation: isolate; }
.ce-countdown .kit-countdown-unit::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50% / 46%;
    background:
        linear-gradient(transparent 45%, #fff6ea 45% 55%, transparent 55%),
        linear-gradient(transparent 40%, color-mix(in srgb, var(--c) 80%, #6b4040) 40% 45%, transparent 45% 55%, color-mix(in srgb, var(--c) 80%, #6b4040) 55% 60%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 40% 22%, rgba(255, 255, 255, .5), transparent 70%),
        var(--c);
    box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .08), 0 12px 16px -10px rgba(80, 40, 40, .4); }
.ce-countdown .kit-countdown-unit:nth-child(2) { --c: #bfe0b8; }
.ce-countdown .kit-countdown-unit:nth-child(3) { --c: #f6e3a1; }
.ce-countdown .kit-countdown-unit:nth-child(4) { --c: #d2c3ec; }
.ce-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-weight: 600; font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1; color: #4a2c30; font-variant-numeric: tabular-nums; translate: 0 -16%; }
.ce-countdown .kit-countdown-label { opacity: 1; color: #6a4a4e; font-size: .5rem; font-weight: 500; letter-spacing: .12em; translate: 0 70%; }
.kit-js .ce-countdown .kit-countdown-unit { opacity: 0; translate: 0 -24px; transition: opacity .5s ease, translate 1s cubic-bezier(.3, 1.6, .5, 1); }
.kit-js .ce-countdown .kit-countdown-unit:nth-child(2) { transition-delay: .12s; }
.kit-js .ce-countdown .kit-countdown-unit:nth-child(3) { transition-delay: .24s; }
.kit-js .ce-countdown .kit-countdown-unit:nth-child(4) { transition-delay: .36s; }
.kit-js .ce-countdown.is-visible .kit-countdown-unit { opacity: 1; translate: 0 0; }

/* Gallery: the photos as porcelain plates, a white rim with a gold line */
.ce-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 30px); }
.ce-gallery-grid.kit-gallery a { position: relative; display: block; aspect-ratio: 1; padding: 9%; border-radius: 50%; background: var(--ce-china);
    box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 5px color-mix(in srgb, var(--inv-primary) 14%, transparent), 0 2px 3px rgba(0, 0, 0, .08), 0 18px 26px -16px rgba(60, 30, 30, .4); transition: translate .5s ease, rotate .6s ease; }
.ce-gallery-grid.kit-gallery a::after { content: ""; position: absolute; inset: 6.5%; border-radius: 50%; border: 2px solid #d2aa5a; pointer-events: none; }
.ce-gallery-grid.kit-gallery a:hover { translate: 0 -4px; rotate: 6deg; }
.ce-gallery-grid.kit-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@media (min-width: 760px) { .ce-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 860px; margin: 0 auto; } }

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

/* ---------- Footer: the reading armchair with its cup of tea ---------- */
.ce-footer { text-align: center; padding: clamp(90px, 13vw, 140px) 16px 40px; overflow: hidden; overflow: clip; }
.ce-footer-message { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.3rem; color: var(--ce-soft); max-width: 36ch; margin: 0 auto 6px; }
.ceai .ce-footer-name { font-family: var(--ce-hand); font-size: clamp(3.6rem, 13vw, 5rem); line-height: 1.1; color: var(--inv-primary); margin: 4px 0 10px; }
.ce-hashtag { letter-spacing: .1em; color: var(--inv-primary); }
.ce-nook { position: relative; width: min(580px, 100%); margin: 30px auto 0; display: grid; grid-template-columns: 0.9fr 1.8fr 0.9fr; align-items: end; }
.ce-chair { width: 100%; }
.ce-berries { width: 120%; margin: 0 -24% 2% 0; z-index: 2; justify-self: end; }
.ce-muffin { width: 120%; margin: 0 0 2% -24%; z-index: 2; }
.kit-js .ce-footer .ce-nook .ce-art img { opacity: 0; translate: 0 30px; transition: opacity .8s ease, translate 1.1s cubic-bezier(.3, 1.3, .5, 1); }
.kit-js .ce-footer .ce-nook .ce-chair img { transition-delay: .1s; }
.kit-js .ce-footer .ce-nook .ce-berries img { transition-delay: .35s; }
.kit-js .ce-footer .ce-nook .ce-muffin img { transition-delay: .5s; }
.kit-js .ce-footer.is-visible .ce-nook .ce-art img { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
    .kit-js .ce-oval--hero, .kit-js .ce-pot .ce-art img, .kit-js .ce-sweets .ce-art img, .kit-js .ce-hero-text > *, .kit-js .ce-steam i, .kit-js .ce-title.is-visible .ce-teacup i { animation: none; }
    .kit-js .ce-steam i { opacity: .5; }
    .kit-js .ce-title .ce-teacup i { opacity: 1; }
    .kit-js .ce-welcome .ce-hello img, .kit-js .ce-star-grid .ce-cup img, .kit-js .ce-theme .ce-lace, .kit-js .ce-stop .ce-stop-card,
    .kit-js .ce-stop .ce-stop-art img, .kit-js .ce-countdown .kit-countdown-unit, .kit-js .ce-footer .ce-nook .ce-art img { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; transition: none; }
}
