/* ==========================================================================
   Cofetărie - a birthday party in a pastry shop, painted in watercolour: a striped awning with a scalloped edge,
   the photo under a glass cloche on a cake stand, and the birthday cake with its balloons, whose candles flicker and
   blow out at a touch. Sprinkles drift down the page, every title has a swirl of piped cream with a cherry, the
   macarons welcome the guests, the birthday star sits on a lace doily beside the cupcakes, the theme is on the
   shop's menu card, every moment of the day has its own pastry, the days left are on macarons, and at the end
   lemonade, milk and cookies wait on a gingham cloth.
   Palette: --inv-primary (the ink), --inv-accent (the icing), --inv-bg, --inv-text.
   The pastries (assets/art, Pixabay, see LICENSES.md) are watercolours made transparent; on the dark palette
   (.cf-dark, set by script.js) they get back a sheet of paper. script.js draws the sprinkles (canvas.cf-sprinkles)
   ========================================================================== */

.cofetarie {
    --cf-sign: 'Pacifico', 'Segoe Script', cursive;
    --cf-soft: color-mix(in srgb, var(--inv-text) 64%, var(--inv-bg));
    --cf-line: color-mix(in srgb, var(--inv-primary) 18%, transparent);
    --cf-paper: color-mix(in srgb, #fffaf4 90%, var(--inv-accent));
    --cf-cream: color-mix(in srgb, #fffdf8 86%, var(--inv-accent));
    --cf-stripe: color-mix(in srgb, var(--inv-primary) 72%, var(--inv-accent));
    --cf-icing: color-mix(in srgb, var(--inv-accent) 80%, #fff);
    /* the macarons: the palette's icing beside a few pastel classics */
    --cf-m0: color-mix(in srgb, var(--inv-accent) 85%, var(--inv-primary));
    --cf-m1: color-mix(in srgb, #bfe0c4 70%, var(--inv-accent));
    --cf-m2: color-mix(in srgb, #f6e1a0 70%, var(--inv-accent));
    --cf-m3: color-mix(in srgb, #d6c4ee 70%, var(--inv-accent));
    --cf-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(--cf-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;
}
.cofetarie h1, .cofetarie h2, .cofetarie h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1.16; }
:where(.cofetarie) :is(h1, h2, h3) { margin: 0; }
:where(.cofetarie) p { margin: 0 0 .9em; }
.cofetarie strong { font-weight: 500; }
.cofetarie a { color: var(--inv-primary); }
.cf-kicker { font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.cf-role { font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--cf-soft); margin: 0 0 4px; }
.cf-names { font-family: var(--inv-font-heading); font-size: 1.2rem; margin: 0; }
.cf-hero, .cf-main, .cf-footer { position: relative; z-index: 1; }
.cf-card { position: relative; background: var(--inv-surface); border-radius: 20px; box-shadow: var(--cf-shadow), 0 0 0 1px var(--cf-line); }
.cf-sprinkles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

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

/* ---------- The awning ---------- */
.cf-awning { position: absolute; top: 0; left: 0; right: 0; height: 58px; z-index: 3; pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .08), transparent 40%, rgba(255, 255, 255, .12) 70%, rgba(0, 0, 0, .06)), repeating-linear-gradient(90deg, var(--cf-stripe) 0 34px, var(--cf-cream) 34px 68px);
    filter: drop-shadow(0 6px 6px color-mix(in srgb, var(--inv-text) 18%, transparent)); }
.cf-awning i { position: absolute; left: 0; right: 0; top: 100%; height: 18px; transform-origin: 50% 0; animation: cf-flutter 4s ease-in-out infinite;
    background:
        radial-gradient(circle at 50% 0, var(--cf-stripe) 16.5px, transparent 17.5px) 0 0 / 68px 18px repeat-x,
        radial-gradient(circle at 50% 0, var(--cf-cream) 16.5px, transparent 17.5px) 34px 0 / 68px 18px repeat-x; }
@keyframes cf-flutter { 0%, 100% { scale: 1 1; } 50% { scale: 1 1.18; } }

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

/* ---------- Hero: the shop window ---------- */
.cf-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 140px 16px 56px; overflow: hidden; overflow: clip; }
.cf-hero-inner { position: relative; z-index: 1; width: min(1060px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 26px; text-align: center; }
.cf-window { position: relative; width: min(470px, 94vw); display: grid; grid-template-columns: 56% minmax(0, 1fr); align-items: end; }

/* the photo under a glass cloche on a cake stand */
.cf-cloche { position: relative; grid-column: 1; grid-row: 1; margin: 0; padding-top: 18px; z-index: 1; }
.cf-cloche::before { content: ""; position: absolute; left: 50%; top: 2px; width: 26px; height: 22px; margin-left: -13px; z-index: 2; border-radius: 50% 50% 30% 30%;
    background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .5) 40%, color-mix(in srgb, var(--inv-primary) 20%, rgba(255, 255, 255, .4)) 70%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .15); }
.cf-dome { position: relative; display: block; width: 88%; margin: 0 auto; aspect-ratio: .84; border-radius: 50% 50% 8px 8px / 40% 40% 8px 8px; overflow: hidden; background: var(--cf-paper);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .8), 0 0 0 3px color-mix(in srgb, var(--inv-primary) 14%, transparent), var(--cf-shadow); }
.cf-dome img, .cf-dome .cf-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.cf-glass { position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background:
        linear-gradient(112deg, transparent 8%, rgba(255, 255, 255, .5) 12%, rgba(255, 255, 255, .12) 20%, transparent 28%),
        linear-gradient(112deg, transparent 72%, rgba(255, 255, 255, .22) 80%, transparent 86%),
        radial-gradient(120% 70% at 50% 0, rgba(255, 255, 255, .24), transparent 60%);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55), inset 0 -10px 18px rgba(255, 255, 255, .25); }
.kit-js .cf-glass { animation: cf-shine 6s ease-in-out 1.6s infinite; background-size: 220% 100%, 100% 100%, 100% 100%; background-position: 100% 0, 0 0, 0 0; }
@keyframes cf-shine { 0% { background-position: 100% 0, 0 0, 0 0; } 30%, 100% { background-position: -40% 0, 0 0, 0 0; } }
.cf-stand { position: relative; display: block; height: 48px; }
.cf-stand::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 16px; border-radius: 50%;
    background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--cf-cream) 80%, #c9bfb4)); box-shadow: 0 3px 4px rgba(0, 0, 0, .14); }
.cf-stand i { position: absolute; left: 50%; top: 8px; width: 16px; height: 26px; margin-left: -8px; background: linear-gradient(90deg, #e9e2da, #fff 45%, #d9d0c6); }
.cf-stand::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 0; height: 16px; border-radius: 50%; background: linear-gradient(180deg, #fff, #ddd3c8); box-shadow: 0 6px 10px -4px rgba(0, 0, 0, .2); }
.cf-initial { display: grid; place-items: center; font-family: var(--cf-sign); font-size: 4.6rem; color: var(--inv-primary); background: var(--cf-paper); }

/* the birthday cake, its candles flickering */
.cf-cake { position: relative; grid-column: 2; grid-row: 1; margin-left: -14%; margin-bottom: 4px; z-index: 2; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kit-js .cf-cake .cf-art img { animation: cf-in 1.2s cubic-bezier(.3, 1.2, .5, 1) .4s both; }
@keyframes cf-in { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
.cf-flames { position: absolute; inset: 0; pointer-events: none; }
.cf-flame { position: absolute; width: 4.6%; height: 8.6%; translate: -50% -100%; transform-origin: 50% 100%;
    border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
    background: radial-gradient(ellipse 40% 34% at 50% 76%, #fffbe8 0 60%, transparent 100%), radial-gradient(ellipse 60% 60% at 50% 70%, #ffd75e 0 55%, #ff9a2a 85%, rgba(255, 120, 30, 0) 100%);
    box-shadow: 0 0 10px 4px rgba(255, 196, 80, .45), 0 0 26px 10px rgba(255, 210, 120, .22);
    animation: cf-flicker 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); transition: opacity .25s ease, scale .3s ease; }
.cf-flames .cf-flame:nth-child(1) { left: 35.9%; top: 32.2%; }
.cf-flames .cf-flame:nth-child(2) { left: 45.5%; top: 30.7%; }
.cf-flames .cf-flame:nth-child(3) { left: 54.4%; top: 30.7%; }
.cf-flames .cf-flame:nth-child(4) { left: 62.6%; top: 32.3%; }
@keyframes cf-flicker { 0%, 100% { scale: 1 1; rotate: -2deg; } 25% { scale: .92 1.08; rotate: 2deg; } 50% { scale: 1.04 .94; rotate: -1deg; } 75% { scale: .96 1.05; rotate: 3deg; } }
.kit-js .cf-flames .cf-flame { opacity: 0; }
.kit-js .cf-cake.is-lit .cf-flames .cf-flame { opacity: 1; }
.cf-cake.is-out .cf-flames .cf-flame { opacity: 0; scale: .2 .2; animation-play-state: paused; }
/* a wisp of smoke from each wick when the candles are blown out */
.cf-flames .cf-flame::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 120%; height: 160%; margin-left: -60%; border-radius: 50%; opacity: 0;
    background: radial-gradient(closest-side, rgba(170, 170, 170, .55), transparent); }
.cf-cake.is-out .cf-flames .cf-flame::after { animation: cf-smoke 1.6s ease-out forwards; }
@keyframes cf-smoke { 0% { opacity: .9; translate: 0 0; scale: .6; } 100% { opacity: 0; translate: 6px -60px; scale: 1.8; } }

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

/* ---------- Sections ---------- */
.cf-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.cf-section { padding-top: clamp(84px, 11vw, 128px); }
.cf-title { margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.cf-title h2 { font-size: clamp(2rem, 5.4vw, 2.7rem); color: var(--inv-primary); text-wrap: balance; }
.cf-swirl { display: block; width: 120px; height: auto; margin: 0 auto 10px; overflow: visible; }
.cf-cream { fill: none; stroke: color-mix(in srgb, var(--inv-accent) 70%, var(--inv-primary)); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1.5px 0 color-mix(in srgb, var(--inv-primary) 30%, transparent)); }
.cf-cherry circle { fill: color-mix(in srgb, #c8283c 80%, var(--inv-primary)); }
.cf-cherry .cf-cherry-shine { fill: rgba(255, 255, 255, .8); }
.cf-cherry path { fill: none; stroke: #6c7a3a; stroke-width: 1.4; stroke-linecap: round; }
.kit-js .cf-title .cf-cream { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.3s ease .1s; }
.kit-js .cf-title .cf-cherry { opacity: 0; translate: 0 -16px; transition: opacity .3s ease 1.2s, translate .6s cubic-bezier(.3, 1.8, .5, 1) 1.2s; }
.kit-js .cf-title.is-visible .cf-cream { stroke-dashoffset: 0; }
.kit-js .cf-title.is-visible .cf-cherry { opacity: 1; translate: 0 0; }

/* Welcome, beside the macarons */
.cf-welcome { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 820px; margin: 0 auto; }
.cf-welcome p { font-size: 1.05rem; }
.cf-macarons { width: min(190px, 48vw); }
.kit-js .cf-welcome .cf-macarons img { opacity: 0; translate: 0 22px; transition: opacity .9s ease, translate 1s cubic-bezier(.3, 1.3, .5, 1); }
.kit-js .cf-welcome.is-visible .cf-macarons img { opacity: 1; translate: 0 0; }
.cofetarie .cf-welcome-title { font-family: var(--cf-sign); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1.35; color: var(--inv-primary); margin-bottom: 12px; }
.cf-quote-author { font-family: var(--inv-font-heading); color: var(--inv-primary); }
@media (min-width: 760px) {
    .cf-welcome { grid-template-columns: auto minmax(0, 1fr); gap: 50px; text-align: left; align-items: center; }
    .cf-macarons { width: 220px; }
}

/* The birthday star on a lace doily */
.cf-star-grid { display: grid; gap: 46px; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.cf-portrait { position: relative; width: min(250px, 60vw); }
.cf-doily { position: relative; margin: 0; aspect-ratio: 1; }
.cf-doily-lace { position: absolute; inset: -13%; border-radius: 50%;
    background:
        radial-gradient(circle, transparent 0 74%, color-mix(in srgb, var(--inv-primary) 18%, transparent) 74.5% 75.5%, transparent 76% 84%, color-mix(in srgb, var(--inv-primary) 14%, transparent) 84.5% 85%, transparent 85.5%),
        repeating-conic-gradient(from 0deg, transparent 0 4deg, color-mix(in srgb, var(--inv-primary) 9%, transparent) 4deg 5.5deg),
        var(--cf-cream);
    clip-path: polygon(50.0% 0.0%, 55.2% 3.7%, 61.1% 1.3%, 65.4% 6.0%, 71.7% 5.0%, 74.8% 10.5%, 81.2% 10.9%, 83.0% 17.0%, 89.1% 18.8%, 89.5% 25.2%, 95.0% 28.3%, 94.0% 34.6%, 98.7% 38.9%, 96.3% 44.8%, 100.0% 50.0%, 96.3% 55.2%, 98.7% 61.1%, 94.0% 65.4%, 95.0% 71.7%, 89.5% 74.8%, 89.1% 81.2%, 83.0% 83.0%, 81.2% 89.1%, 74.8% 89.5%, 71.7% 95.0%, 65.4% 94.0%, 61.1% 98.7%, 55.2% 96.3%, 50.0% 100.0%, 44.8% 96.3%, 38.9% 98.7%, 34.6% 94.0%, 28.3% 95.0%, 25.2% 89.5%, 18.8% 89.1%, 17.0% 83.0%, 10.9% 81.2%, 10.5% 74.8%, 5.0% 71.7%, 6.0% 65.4%, 1.3% 61.1%, 3.7% 55.2%, 0.0% 50.0%, 3.7% 44.8%, 1.3% 38.9%, 6.0% 34.6%, 5.0% 28.3%, 10.5% 25.2%, 10.9% 18.8%, 17.0% 17.0%, 18.8% 10.9%, 25.2% 10.5%, 28.3% 5.0%, 34.6% 6.0%, 38.9% 1.3%, 44.8% 3.7%); }
.cf-doily { filter: drop-shadow(0 8px 12px color-mix(in srgb, var(--inv-text) 18%, transparent)); }
.cf-doily-photo { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--inv-surface), 0 0 0 5px var(--cf-line); background: var(--cf-paper); }
.cf-doily-photo img, .cf-doily-photo .cf-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.cf-cupcakes { position: absolute; right: -32%; bottom: -16%; width: 54%; z-index: 2; }
.kit-js .cf-star-grid .cf-cupcakes img { opacity: 0; translate: 20px 10px; transition: opacity .8s ease .5s, translate 1s cubic-bezier(.3, 1.3, .5, 1) .5s; }
.kit-js .cf-star-grid.is-visible .cf-cupcakes img { opacity: 1; translate: 0 0; }
.cf-star-name { font-family: var(--inv-font-heading); font-size: 1.8rem; color: var(--inv-primary); margin-bottom: 8px; }
.cf-age { display: inline-flex; align-items: flex-end; gap: 10px; margin: 0 0 14px; color: var(--cf-soft); }
.cf-age strong { font-family: var(--cf-sign); font-weight: 400; font-size: 3.4rem; line-height: 1; color: var(--inv-primary); }
.cf-age small { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; padding-bottom: 8px; }
.cf-age-candle { position: relative; width: 10px; height: 44px; margin-bottom: 6px; border-radius: 3px; background: repeating-linear-gradient(-45deg, var(--cf-stripe) 0 5px, var(--cf-cream) 5px 10px); }
.cf-age-candle .cf-flame { left: 50%; top: -2px; width: 14px; height: 22px; animation-delay: -.2s; }
.cf-star-message { font-size: 1.08rem; max-width: 36ch; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
    .cf-star-grid { grid-template-columns: auto minmax(0, 1fr); gap: 120px; text-align: left; align-items: center; }
    .cf-portrait { width: 250px; }
    .cf-star-message { margin-left: 0; }
}
@media (max-width: 759px) { .cf-cupcakes { right: -22%; width: 48%; } }

/* The theme on the menu card */
.cf-menu { position: relative; max-width: 620px; margin: 0 auto; padding: 56px clamp(24px, 6vw, 52px) 30px; text-align: center; border-radius: 6px; background: var(--inv-surface);
    box-shadow: var(--cf-shadow), 0 0 0 1px var(--cf-line), inset 0 22px 0 0 transparent; }
.cf-menu::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(90deg, var(--cf-stripe) 0 22px, var(--cf-cream) 22px 44px); }
.cf-menu::after { content: ""; position: absolute; inset: 32px 12px 12px; border: 1.5px dashed color-mix(in srgb, var(--inv-primary) 30%, transparent); border-radius: 4px; pointer-events: none; }
.cf-menu h3 { font-family: var(--cf-sign); font-size: clamp(1.7rem, 5vw, 2.2rem); line-height: 1.4; color: var(--inv-primary); margin-bottom: 10px; }
.cf-bow { position: absolute; left: 50%; top: -18px; width: 70px; height: 40px; margin-left: -35px; z-index: 2; pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, var(--inv-primary) 0 7px, transparent 7.5px),
        radial-gradient(ellipse 18px 13px at 30% 46%, var(--cf-stripe) 0 92%, transparent 100%),
        radial-gradient(ellipse 18px 13px at 70% 46%, var(--cf-stripe) 0 92%, transparent 100%),
        linear-gradient(60deg, transparent 44%, var(--cf-stripe) 44% 52%, transparent 52%) 22% 100% / 30% 50% no-repeat,
        linear-gradient(-60deg, transparent 44%, var(--cf-stripe) 44% 52%, transparent 52%) 78% 100% / 30% 50% no-repeat;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .18)); }

/* Programme: the shop window, a pastry on every card */
.cf-shelf { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 34px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); max-width: 1000px; }
.cf-treat { display: grid; justify-items: center; align-content: start; }
.cf-treat-art { position: relative; z-index: 2; width: min(170px, 46vw); margin-bottom: -38px; }
.cf-treat-card { width: 100%; height: 100%; padding: 52px clamp(20px, 5vw, 30px) 22px; text-align: center; }
.kit-js .cf-treat .cf-treat-art img { opacity: 0; translate: 0 -24px; transition: opacity .5s ease .2s, translate .8s cubic-bezier(.3, 1.6, .5, 1) .2s; }
.kit-js .cf-treat.is-visible .cf-treat-art img { opacity: 1; translate: 0 0; }
.kit-js .cf-treat .cf-treat-card { opacity: 0; translate: 0 20px; transition: opacity .6s ease, translate .8s ease; }
.kit-js .cf-treat.is-visible .cf-treat-card { opacity: 1; translate: 0 0; }
.cf-treat-time { font-family: var(--cf-sign); font-size: 1.6rem; line-height: 1.4; color: var(--inv-primary); margin: 0 0 2px; font-variant-numeric: tabular-nums; }
.cf-treat-card h3 { font-size: clamp(1.3rem, 4vw, 1.5rem); margin-bottom: 4px; }
.cf-treat-place { font-weight: 500; margin: 0; }
.cf-treat-address, .cf-treat-notes { color: var(--cf-soft); margin: 0; }
.cf-treat-notes { font-style: italic; margin-top: 6px; }
.cf-treat .kit-event-actions { margin-top: 14px; justify-content: center; }
.cofetarie .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; }
.cofetarie .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: macarons */
.cf-countdown { text-align: center; }
.cf-countdown .kit-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px clamp(8px, 2.4vw, 22px); margin-top: 30px; }
.cf-countdown .kit-countdown-unit { --c: var(--cf-m0); position: relative; width: clamp(76px, 20vw, 112px); min-width: 0; aspect-ratio: 1.08; padding: 0; display: grid; grid-template-rows: 46% 54%; isolation: isolate; }
.cf-countdown .kit-countdown-unit::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50% / 46%;
    background:
        radial-gradient(ellipse 40% 18% at 40% 16%, rgba(255, 255, 255, .5), transparent),
        linear-gradient(180deg, var(--c) 0 42%, color-mix(in srgb, var(--c) 80%, #000) 42% 44%, var(--cf-cream) 44% 56%, color-mix(in srgb, var(--c) 80%, #000) 56% 58%, var(--c) 58%);
    box-shadow: inset 0 -6px 10px color-mix(in srgb, var(--c) 60%, #000 12%), 0 10px 14px -8px rgba(0, 0, 0, .3); }
.cf-countdown .kit-countdown-unit:nth-child(2) { --c: var(--cf-m1); }
.cf-countdown .kit-countdown-unit:nth-child(3) { --c: var(--cf-m2); }
.cf-countdown .kit-countdown-unit:nth-child(4) { --c: var(--cf-m3); }
.kit-js .cf-countdown .kit-countdown-unit { opacity: 0; translate: 0 -20px; transition: opacity .4s ease, translate .7s cubic-bezier(.3, 1.8, .5, 1); }
.kit-js .cf-countdown .kit-countdown-unit:nth-child(2) { transition-delay: .12s; }
.kit-js .cf-countdown .kit-countdown-unit:nth-child(3) { transition-delay: .24s; }
.kit-js .cf-countdown .kit-countdown-unit:nth-child(4) { transition-delay: .36s; }
.kit-js .cf-countdown.is-visible .kit-countdown-unit { opacity: 1; translate: 0 0; }
.cf-countdown .kit-countdown-value { align-self: end; padding-bottom: 2px; font-family: var(--inv-font-heading); font-weight: 900; font-size: clamp(1.1rem, 4.4vw, 1.7rem); line-height: 1; color: #3c2a2e; font-variant-numeric: tabular-nums; }
.cf-countdown .kit-countdown-label { align-self: center; margin-top: 10%; opacity: 1; color: #3c2a2e; font-size: .5rem; font-weight: 600; letter-spacing: .1em; }

/* Gallery: photos in white frames like labels on a cake box */
.cf-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 28px); }
.cf-gallery-grid.kit-gallery a { position: relative; aspect-ratio: 4 / 5; padding: 8px; border-radius: 18px; background: #fffdf9; box-shadow: var(--cf-shadow); rotate: -1.4deg; transition: rotate .5s ease, translate .5s ease; }
.cf-gallery-grid.kit-gallery a:nth-child(even) { rotate: 1.4deg; }
.cf-gallery-grid.kit-gallery a::after { content: ""; position: absolute; inset: 4px; border: 1.5px dashed color-mix(in srgb, var(--inv-primary) 26%, transparent); border-radius: 15px; pointer-events: none; }
.cf-gallery-grid.kit-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.cf-gallery-grid.kit-gallery a:hover { rotate: 0deg; translate: 0 -4px; }
@media (min-width: 760px) { .cf-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* RSVP, info, contact */
.cf-reply { max-width: 700px; margin: 0 auto; padding: clamp(44px, 6vw, 60px) clamp(24px, 6vw, 56px) clamp(32px, 5vw, 48px); }
.cofetarie .inv-rsvp__intro { font-size: 1.08rem; }
.cofetarie .inv-rsvp__deadline { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-primary); }
.cf-info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cf-info-item { padding: 30px 24px 20px; text-align: center; }
.cf-info-item h3 { font-size: 1.3rem; color: var(--inv-primary); margin-bottom: 8px; }
.cf-faq { max-width: 720px; margin: 46px auto 0; text-align: center; display: grid; gap: 12px; }
.cf-faq details { text-align: left; }
.cf-faq summary { cursor: pointer; list-style: none; padding: 17px 52px 17px 22px; position: relative; font-weight: 500; font-size: 1.02rem; }
.cf-faq summary::-webkit-details-marker { display: none; }
.cf-faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
    background: radial-gradient(circle at 36% 34%, rgba(255, 255, 255, .7) 0 2px, transparent 3px), color-mix(in srgb, #c8283c 80%, var(--inv-primary)); transition: scale .4s cubic-bezier(.3, 1.8, .5, 1); }
.cf-faq details[open] summary::after { scale: 1.25; }
.cf-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; border-radius: 20px; }
.cf-faq details p { padding: 0 22px; color: var(--cf-soft); }
.cf-faq details p:last-child { padding-bottom: 16px; }
.cf-contact { text-align: center; }
.cf-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 60px; }
.cf-contact-person a { text-decoration: none; }

/* ---------- Footer: the counter ---------- */
.cf-footer { text-align: center; padding: clamp(90px, 13vw, 140px) 0 0; overflow: hidden; overflow: clip; }
.cf-footer-message { font-size: 1.14rem; color: var(--cf-soft); max-width: 36ch; margin: 0 auto 6px; padding: 0 16px; }
.cofetarie .cf-footer-name { font-family: var(--cf-sign); font-size: clamp(2.8rem, 10vw, 4.4rem); line-height: 1.35; color: var(--inv-primary); margin: 4px 0 10px; padding: 0 16px; }
.cf-hashtag { letter-spacing: .12em; color: var(--inv-primary); }
.cf-counter { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 6vw, 60px); margin-top: 30px; padding: 0 16px; }
.cf-lemonade { width: min(190px, 40vw); position: relative; z-index: 1; margin-bottom: -10px; }
.cf-milk { width: min(200px, 44vw); position: relative; z-index: 1; margin-bottom: -6px; }
.cf-gingham { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 0;
    background:
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--inv-primary) 26%, transparent) 0 16px, transparent 16px 32px),
        repeating-linear-gradient(0deg, color-mix(in srgb, var(--inv-primary) 26%, transparent) 0 16px, transparent 16px 32px),
        var(--cf-cream);
    box-shadow: inset 0 6px 8px -4px rgba(0, 0, 0, .15); }
.cf-counter { padding-bottom: 34px; }
.kit-js .cf-footer .cf-counter .cf-art img { opacity: 0; translate: 0 24px; transition: opacity .8s ease, translate 1s cubic-bezier(.3, 1.3, .5, 1); }
.kit-js .cf-footer .cf-milk img { transition-delay: .2s; }
.kit-js .cf-footer.is-visible .cf-counter .cf-art img { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
    .cf-awning i, .cf-flame, .kit-js .cf-glass, .kit-js .cf-hero-text > *, .kit-js .cf-cake .cf-art img { animation: none; }
    .kit-js .cf-flames .cf-flame { opacity: 1; }
    .kit-js .cf-title .cf-cream { stroke-dashoffset: 0; transition: none; }
    .kit-js .cf-title .cf-cherry, .kit-js .cf-welcome .cf-macarons img, .kit-js .cf-star-grid .cf-cupcakes img, .kit-js .cf-treat .cf-treat-art img, .kit-js .cf-treat .cf-treat-card, .kit-js .cf-countdown .kit-countdown-unit, .kit-js .cf-footer .cf-counter .cf-art img { opacity: 1; translate: 0 0; transition: none; }
}
