/* ==========================================================
   Macarons de François: a Turbo Studio website concept
   Soft serif (Fraunces) + rounded sans (Outfit). White, soft pink and soft china blue with
   gold hairlines, a striped patisserie awning and French touches, rounded shapes and gentle motion. Deliberately nothing like turbostudio.com.au
   ========================================================== */

:root {
  --white: #FFFFFF;
  --pink-soft: #FBE9ED;
  --pink: #F4CDD6;
  --blue-soft: #E4ECF8;
  --ink: #22305A;        /* deep china blue: text and the darker panels */
  --ink-soft: #5C6785;
  --blue: #4E6CB0;       /* china blue: accents, italics, buttons */
  --gold: #C6A15B;       /* fine gilded lines, like the rim of the tea set */
  --line: rgba(34, 48, 90, .14);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --round: 2rem;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* flavour colours, used by the swatches and the box */
  --f-raspberry: #E58A9B;
  --f-pistachio: #B9CFA0;
  --f-caramel: #D9A86C;
  --f-rose: #F2C4CC;
  --f-lemon: #F1DC8A;
  --f-blueberry: #A9B8DE;
  --f-vanilla: #F3E7D0;
  --f-chocolate: #6B4A3E;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; overflow-x: clip; background: var(--white); color: var(--ink); font: 300 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; line-height: 1.02; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--blue); }
p { margin: 0; }
figure { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 1rem; z-index: 50; padding: .6rem 1rem; background: var(--ink); color: var(--white); border-radius: 999px; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }

/* pill buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.6rem; border: 0; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); cursor: pointer; transition: transform .35s var(--ease), background-color .3s, color .3s;
}
.pill:hover { transform: translateY(-2px); }
.pill-dark { background: var(--ink); color: var(--white); }
.pill-dark:hover { background: var(--blue); }
.pill-blue { background: var(--blue); color: #fff; }
.pill-blue:hover { background: var(--ink); }
.pill-line { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.pill-line:hover { background: var(--ink); color: var(--white); }

/* ---------- Awning ----------
   Pink and white stripes with a scalloped edge, like a Paris patisserie front */
/* the outline traces the scalloped edge so the white stripes still read on a white page */
.awning { filter: drop-shadow(0 1.5px 0 rgba(34, 48, 90, .22)); }
.awning::before {
  content: ''; display: block; height: 2.6rem;
  background: linear-gradient(rgba(34, 48, 90, .08), transparent 40%), repeating-linear-gradient(90deg, var(--pink) 0 2.5rem, var(--white) 2.5rem 5rem);
  -webkit-mask: radial-gradient(1.25rem at 50% 0, #000 98%, transparent) 0 100% / 2.5rem 1.25rem repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 1.25rem) no-repeat;
  mask: radial-gradient(1.25rem at 50% 0, #000 98%, transparent) 0 100% / 2.5rem 1.25rem repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 1.25rem) no-repeat;
}

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 2rem;
  padding: 1rem var(--gutter); background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand-mark { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--white) 0 22%, transparent 23%), linear-gradient(var(--pink) 0 44%, var(--ink) 44% 56%, var(--pink) 56%); }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.brand-name em { font-weight: 300; }
.top-nav { display: flex; gap: 1.75rem; font-size: .95rem; }
.top-nav a { position: relative; }
.top-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.3rem; height: 2px; border-radius: 2px; background: var(--blue); transform-origin: left; scale: 0 1; transition: scale .4s var(--ease); }
.top-nav a:hover::after { scale: 1 1; }
.top-order { padding: .7rem 1.25rem; font-size: .88rem; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2rem;
  min-height: calc(100svh - 4.5rem); padding: clamp(2rem, 6vh, 5rem) var(--gutter) clamp(3rem, 8vh, 6rem);
}
.hero h1 { margin-top: 1.25rem; font-size: clamp(3.2rem, 7.4vw, 7.6rem); }
.hero-lead { max-width: 30rem; margin-top: 1.75rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.hero-art { position: relative; aspect-ratio: 1 / 1.02; max-height: 74svh; justify-self: center; width: min(100%, 38rem); }
.blob { position: absolute; border-radius: 50%; }
.blob-soft { inset: 10% -4% 18% 2%; background: var(--blue-soft); border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; animation: morph 14s ease-in-out infinite alternate; }
.blob-blue { width: 30%; aspect-ratio: 1; right: -2%; bottom: -4%; background: var(--pink); opacity: .7; }
@keyframes morph { to { border-radius: 58% 42% 40% 60% / 44% 58% 42% 56%; rotate: 8deg; } }
/* The tea-table photo in an arch, with a fine gold rim set just outside it */
.hero-photo { position: absolute; inset: 0 8% 0 10%; margin: 0; border-radius: 999px 999px 2rem 2rem; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(34, 48, 90, .45); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 44% 60%; animation: drift 18s ease-in-out infinite alternate; }
.hero-art::after { content: ''; position: absolute; inset: -.9rem calc(8% - .9rem) -.9rem calc(10% - .9rem); border: 1px solid var(--gold); border-radius: 999px 999px 2.6rem 2.6rem; pointer-events: none; }
@keyframes drift { to { scale: 1.06; object-position: 46% 58%; } }
.sticker {
  position: absolute; left: 2%; bottom: 10%; display: grid; place-items: center; width: 7.5rem; aspect-ratio: 1; border-radius: 50%;
  z-index: 1; background: var(--pink); color: var(--ink); font: 600 .7rem/1.15 var(--sans); letter-spacing: .08em; text-align: center; text-transform: uppercase; rotate: -12deg;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--gold);
  animation: spin 24s linear infinite;
}
.sticker strong { font: italic 500 1.9rem/1 var(--serif); color: var(--blue); letter-spacing: 0; text-transform: none; }
@keyframes spin { to { rotate: 348deg; } }

/* ---------- Flavour marquee ---------- */
.flavours { overflow: hidden; padding: 1.4rem 0; background: var(--blue-soft); color: var(--ink); border-block: 1px solid var(--gold); rotate: -1.2deg; margin: 0 -2rem; }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee-track span { padding: 0 1.6rem; font: italic 300 clamp(1.6rem, 3vw, 2.6rem)/1 var(--serif); white-space: nowrap; }
.marquee-track span::after { content: '✿'; margin-left: 3.2rem; font-size: .6em; color: var(--blue); vertical-align: middle; font-style: normal; }
@keyframes slide { to { translate: -50% 0; } }

/* ---------- Build a box ---------- */
.build { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(5rem, 11vw, 9rem) var(--gutter); }
.build h2, .gifts h2, .story h2, .visit h2 { margin-top: 1rem; font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
/* "Fill it your way." always starts its own line */
.build h2 .line { display: block; }
.build-intro > p:not(.eyebrow) { max-width: 30rem; margin-top: 1.25rem; color: var(--ink-soft); }
.sizes { display: flex; gap: .6rem; margin-top: 2rem; }
.size {
  display: grid; justify-items: center; gap: .1rem; min-width: 5.2rem; padding: .8rem 1rem; border: 0; border-radius: 1.25rem;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font: 500 1.6rem/1 var(--serif); cursor: pointer; transition: background-color .3s, color .3s, box-shadow .3s;
}
.size span { font: 600 .78rem/1 var(--sans); color: var(--ink-soft); }
.size.is-on { background: var(--ink); color: var(--white); box-shadow: none; }
.size.is-on span { color: var(--pink); }
.swatches { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.swatch {
  display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .95rem .55rem .55rem; border: 0; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font: 400 .92rem/1 var(--sans); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s;
}
.swatch::before { content: ''; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08); }
.swatch:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--ink); }
.swatch[data-flavour="Raspberry"], .slot[data-flavour="Raspberry"] { --c: var(--f-raspberry); }
.swatch[data-flavour="Pistachio"], .slot[data-flavour="Pistachio"] { --c: var(--f-pistachio); }
.swatch[data-flavour="Salted caramel"], .slot[data-flavour="Salted caramel"] { --c: var(--f-caramel); }
.swatch[data-flavour="Rose"], .slot[data-flavour="Rose"] { --c: var(--f-rose); }
.swatch[data-flavour="Lemon"], .slot[data-flavour="Lemon"] { --c: var(--f-lemon); }
.swatch[data-flavour="Blueberry"], .slot[data-flavour="Blueberry"] { --c: var(--f-blueberry); }
.swatch[data-flavour="Vanilla bean"], .slot[data-flavour="Vanilla bean"] { --c: var(--f-vanilla); }
.swatch[data-flavour="Dark chocolate"], .slot[data-flavour="Dark chocolate"] { --c: var(--f-chocolate); }

.box-wrap { justify-self: center; width: min(100%, 34rem); }
.box { position: relative; padding: 3.4rem 1.4rem 1.4rem; border-radius: var(--round); background: #fff; box-shadow: 0 40px 70px -40px rgba(34, 48, 90, .4), inset 0 0 0 1.5px var(--line); }
.box-lid {
  position: absolute; left: 1.4rem; right: 1.4rem; top: 1rem; display: flex; justify-content: center;
  font: italic 300 1rem/1 var(--serif); color: var(--ink-soft);
}
.box-lid span { padding: .3rem 1rem; border-radius: 999px; background: var(--pink-soft); }
/* shown over the empty circles until the first macaron goes in */
.box-hint {
  position: absolute; inset: 3.4rem 1.4rem 1.4rem; display: grid; place-items: center; margin: 0; padding: 1.5rem;
  pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
}
.box-hint span {
  max-width: 100%; padding: .7rem 1.4rem; border-radius: 999px; text-wrap: balance; background: rgba(255, 255, 255, .9); box-shadow: 0 10px 24px -14px rgba(34, 48, 90, .4);
  font: italic 300 clamp(1.05rem, 1.7vw, 1.4rem)/1.25 var(--serif); color: var(--ink); text-align: center;
}
.box.is-empty .box-hint { opacity: 1; }
.slots { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: .7rem; margin: 0; padding: 1.1rem; list-style: none; border-radius: 1.25rem; background: var(--pink-soft); }
.slot {
  position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(34, 48, 90, .18); background: transparent;
  cursor: default; transition: transform .35s var(--ease);
}
.slot.is-full {
  border: 0; cursor: pointer;
  background: linear-gradient(var(--c) 0 40%, rgba(255, 255, 255, .85) 40% 60%, var(--c) 60%);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .07), 0 6px 10px -6px rgba(34, 48, 90, .4);
}
.slot.is-new { animation: pop .45s var(--ease); }
.slot.is-full:hover { transform: scale(.94); }
/* demo: macarons lift out, then the flavour buttons pulse once ("your turn") */
.slot.is-out { transition: translate .26s ease-in, opacity .26s ease-in; translate: 0 -40%; opacity: 0; }
.swatches.is-nudge .swatch { animation: nudge .8s var(--ease) 2; }
.swatches.is-nudge .swatch:nth-child(2n) { animation-delay: .08s; }
@keyframes nudge { 40% { translate: 0 -5px; box-shadow: 0 8px 14px -8px rgba(78, 108, 176, .6); } }
@keyframes pop { from { scale: .2; } 70% { scale: 1.12; } to { scale: 1; } }
.box-foot { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.box-count { font-size: .95rem; color: var(--ink-soft); }
.box-count strong { color: var(--ink); }
.box-price { margin-left: auto; font: 500 1.8rem/1 var(--serif); }

/* ---------- Gifts and prices ---------- */
.gifts { padding: clamp(5rem, 11vw, 9rem) var(--gutter); background: var(--pink-soft); border-radius: 3rem 3rem 0 0; }
.gifts-head { max-width: 46rem; }
.gifts-head > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--ink-soft); max-width: 36rem; }
.price-groups { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; margin-top: clamp(2.5rem, 6vw, 4rem); }
.price-group { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--round); background: var(--white); }
.price-group.is-gift { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 6px var(--ink), inset 0 0 0 7px rgba(198, 161, 91, .5); }
.price-group h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-style: italic; }
.prices { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.prices li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: .1rem .6rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.is-gift .prices li { border-top-color: rgba(255, 255, 255, .2); }
.p-name { font-weight: 600; }
.p-dots { border-bottom: 2px dotted currentColor; opacity: .25; transform: translateY(-.25em); }
.p-cost { font: 500 1.4rem/1 var(--serif); }
.p-note { grid-column: 1 / -1; font-size: .88rem; opacity: .7; }
.gift-photo { overflow: hidden; border-radius: 50% 50% var(--round) var(--round); aspect-ratio: 3 / 4; }
.gift-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: .9fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; min-height: clamp(28rem, 42vw, 40rem); padding: clamp(5rem, 11vw, 9rem) var(--gutter); background: var(--pink-soft); }
/* the story and its café drawing flow straight on from the gift boxes: one pink stretch, no gap */
.gifts:has(+ .story) { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.gifts + .story { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
/* The café line drawing behind the story text: faint china-blue ink that sketches itself in */
/* the Eiffel Tower rises out of the drawing and passes behind the gift box cards above */
.story { position: relative; overflow-x: clip; overflow-y: visible; }
.price-groups { position: relative; z-index: 2; }
.story > :not(.story-sketch) { position: relative; z-index: 1; }
.story-text { grid-column: 2; }
.story-sketch { position: absolute; left: 0; top: 0; bottom: 0; z-index: 0; height: 100%; width: auto; max-width: none; pointer-events: none; overflow: visible; }
.sketch-lines path { fill: none; stroke: var(--blue); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .15; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sketch-lines path.fg { stroke: var(--ink); stroke-width: 1.5; opacity: .75; }
.story-sketch.is-drawn .sketch-lines path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) calc(var(--i) * 45ms); }
.sketch-sign { font: italic 300 22px var(--serif); letter-spacing: .08em; fill: var(--blue); opacity: 0; transition: opacity 1.2s ease 2s; }
.story-sketch.is-drawn .sketch-sign { opacity: .13; }
.sketch-steam path { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; opacity: 0; }
.story-sketch.is-drawn .sketch-steam path { animation: steam 3.2s ease-in-out 3.5s infinite; }
.story-sketch.is-drawn .sketch-steam .s2 { animation-delay: 4.6s; }
/* the flock: each bird flaps and flies up and away, fading as it passes behind the cards above */
.sketch-birds path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; animation: flap .32s ease-in-out infinite alternate; }
.bird { opacity: 0; }
.story-sketch.is-drawn .bird { animation: fly var(--t) linear calc(2.5s + var(--d)) infinite; }
/* each bird's drift, speed and start */
.sketch-birds .bird:nth-child(1) { --dx:-60px; --t:9s; --d:0s; }
.sketch-birds .bird:nth-child(2) { --dx:-90px; --t:11s; --d:4.5s; }
.sketch-birds .bird:nth-child(3) { --dx:-10px; --t:12s; --d:2.2s; }
.sketch-birds .bird:nth-child(4) { --dx:-40px; --t:10s; --d:7.5s; }
.sketch-birds .bird:nth-child(5) { --dx:140px; --t:10s; --d:1.5s; }
.sketch-birds .bird:nth-child(6) { --dx:220px; --t:8.5s; --d:3s; }
.sketch-birds .bird:nth-child(7) { --dx:280px; --t:9.5s; --d:6s; }
.sketch-birds .bird:nth-child(8) { --dx:180px; --t:10.5s; --d:5.2s; }
.sketch-birds .bird:nth-child(9) { --dx:330px; --t:9s; --d:8.8s; }
@keyframes fly { 0% { opacity: 0; translate: 0 0; } 8% { opacity: .75; } 70% { opacity: .65; } 100% { opacity: 0; translate: var(--dx) -360px; } }
@keyframes flap { to { scale: 1 .25; } }
@keyframes steam { 0% { opacity: 0; translate: 0 4px; } 40% { opacity: .6; } 100% { opacity: 0; translate: 0 -10px; } }
.story-text p:not(.eyebrow) { max-width: 34rem; margin-top: 1.1rem; color: var(--ink-soft); }
.story-text .story-pull { margin-top: 1.75rem; font: italic 300 clamp(1.4rem, 2.2vw, 1.9rem)/1.3 var(--serif); color: var(--blue); }

/* ---------- Gallery ---------- */
/* ---------- Postcards ----------
   Photos as French postcards: tilted, overlapping, each with a pink stamp, some postmarked.
   They're dealt in one by one (js/site.js adds .is-in) and lift and straighten on hover */
.postcards { padding: clamp(4.5rem, 9vw, 7.5rem) var(--gutter) clamp(5rem, 10vw, 8rem); background: var(--blue-soft); border-block: 1px solid var(--gold); overflow: hidden; }
.cards-head { text-align: center; }
.postcards + .visit { padding-top: clamp(3.5rem, 7vw, 6rem); }
.postcards h2 { margin-top: 1rem; font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.cards { display: flex; justify-content: center; align-items: flex-start; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; list-style: none; }
.card {
  --r: 0deg; --y: 0rem; position: relative; flex: 0 0 clamp(11.5rem, 17.5vw, 17rem); margin-inline: clamp(-.6rem, -.5vw, -.2rem);
  padding: .75rem .75rem 1.1rem; background: var(--white); border-radius: .35rem;
  box-shadow: 0 1px 0 rgba(34, 48, 90, .06), 0 24px 40px -24px rgba(34, 48, 90, .45);
  rotate: var(--r); translate: 0 var(--y); transition: rotate .6s var(--ease), translate .6s var(--ease), scale .6s var(--ease), box-shadow .6s, opacity .6s;
}
.card-1 { --r: -6deg; --y: 1.5rem; }
.card-2 { --r: 4deg;  --y: -.5rem; z-index: 1; }
.card-3 { --r: -2deg; --y: 2.5rem; z-index: 2; }
.card-4 { --r: 5deg;  --y: 0rem;  z-index: 1; }
.card-5 { --r: -4deg; --y: 2rem; }
.card:hover, .card:focus-within { z-index: 5; rotate: 0deg; translate: 0 calc(var(--y) - .9rem); scale: 1.06; box-shadow: 0 1px 0 rgba(34, 48, 90, .06), 0 36px 50px -24px rgba(34, 48, 90, .5); }
.card figure { margin: 0; }
.card img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: .15rem; filter: saturate(.92); }
.card figcaption { display: grid; gap: .2rem; padding: .85rem .3rem 0; }
.card-fr { font: italic 400 1.3rem/1.1 var(--serif); color: var(--ink); }
.card-en { font-size: .8rem; line-height: 1.35; color: var(--ink-soft); }
/* the stamp: perforated white edge around a pink face with the little macaron mark */
.stamp {
  position: absolute; top: -.7rem; right: -.6rem; display: grid; place-items: center; gap: .15rem; width: 3.1rem; height: 3.7rem;
  padding: .3rem; background: var(--pink); outline: 3px dotted var(--white); outline-offset: -1px; border: 3px solid var(--white); rotate: 8deg;
  box-shadow: 0 6px 10px -6px rgba(34, 48, 90, .5);
}
.stamp .brand-mark { width: 1.3rem; height: 1.3rem; }
.stamp small { font: italic 500 .7rem/1 var(--serif); color: var(--ink); }
/* the postmark: a faint inked circle over the stamp's edge */
.postmark {
  position: absolute; top: .3rem; right: 1.5rem; display: grid; place-items: center; width: 4.2rem; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid rgba(34, 48, 90, .45); box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4.5px rgba(34, 48, 90, .25);
  font: 600 .5rem/1.25 var(--sans); letter-spacing: .12em; text-align: center; text-transform: uppercase; color: rgba(34, 48, 90, .6); rotate: -14deg; pointer-events: none;
}
.postmark b { font: italic 500 .8rem/1 var(--serif); letter-spacing: 0; text-transform: none; }
/* dealt in one by one */
.cards.is-dealing .card { opacity: 0; translate: 0 calc(var(--y) + 3rem); rotate: calc(var(--r) * 3); }
.cards.is-dealing.is-in .card { opacity: 1; translate: 0 var(--y); rotate: var(--r); }
.cards.is-in .card-2 { transition-delay: .12s; } .cards.is-in .card-3 { transition-delay: .24s; }
.cards.is-in .card-4 { transition-delay: .36s; } .cards.is-in .card-5 { transition-delay: .48s; }
.cards.is-done .card { transition-delay: 0s; }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); padding: 0 var(--gutter) clamp(5rem, 10vw, 8rem); }
.visit-card, .sweet { padding: clamp(2rem, 4vw, 3.25rem); border-radius: var(--round); }
.visit-card { position: relative; background: var(--blue-soft); }
.hours { margin: 1.75rem 0 2rem; }
/* A Paris street sign: enamel blue, white border, green frame */
.street-sign {
  position: absolute; bottom: clamp(1.75rem, 3.5vw, 3rem); right: clamp(1.5rem, 3vw, 2.5rem); rotate: -3deg;
  display: grid; margin: 0; padding: .55rem 1.3rem .65rem; border-radius: .5rem; text-align: center;
  background: #24407A; color: #fff; box-shadow: inset 0 0 0 3px #24407A, inset 0 0 0 5px #fff, 0 0 0 4px #2F5E46, 0 14px 24px -14px rgba(34, 48, 90, .6);
}
.street-sign small { font: 600 .62rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.street-sign span { font: 600 1.35rem/1.1 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid rgba(34, 48, 90, .18); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; text-align: right; }
.sweet { background: var(--ink); color: var(--white); align-self: stretch; box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 6px var(--ink), inset 0 0 0 7px rgba(198, 161, 91, .5); }
.sweet h3 { font-size: clamp(2rem, 3.4vw, 3rem); font-style: italic; }
.sweet > p { margin-top: .75rem; opacity: .75; }
.sweet-row { display: flex; gap: .5rem; margin-top: 1.75rem; padding: .35rem; border-radius: 999px; background: var(--white); }
.sweet-row input { flex: 1; min-width: 0; padding: 0 1rem; border: 0; background: none; color: var(--ink); font: 300 1rem var(--sans); }
.sweet-row input:focus { outline: none; }
.sweet-row .pill { background: var(--blue); }
.sweet-done { margin-top: 1rem; color: var(--pink); }

/* ---------- Footer and concept tag ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 2rem var(--gutter) 5rem; border-top: 1px solid var(--line); }
.foot-brand { font: 500 1.6rem/1 var(--serif); }
.foot-brand em { font-weight: 300; }
.foot-merci { font: italic 300 1.3rem/1 var(--serif); color: var(--blue); }
.foot-note { font-size: .9rem; color: var(--ink-soft); }
.foot-note a { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: .2em; }
.concept-tag {
  position: fixed; left: 50%; bottom: 1rem; z-index: 30; translate: -50% 0; padding: .55rem 1.1rem; border-radius: 999px;
  background: var(--ink); color: var(--white); font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 10px 24px -10px rgba(34, 48, 90, .5);
}
.concept-tag:hover { background: var(--blue); }

/* ---------- Smaller screens ---------- */
@media (max-width: 960px) {
  .top-nav { display: none; }
  .hero, .build, .story, .visit { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-art { width: min(100%, 30rem); }
  .price-groups { grid-template-columns: 1fr 1fr; }
  .gift-photo { display: none; }
  .story { min-height: 0; padding-bottom: calc(80vw + 2rem); }
  .story-text { grid-column: auto; }
  .story-sketch { top: auto; height: auto; width: 100%; }
  .cards { flex-wrap: wrap; row-gap: 2rem; }
  .card { flex-basis: clamp(12rem, 30vw, 15rem); }
}
@media (max-width: 640px) {
  .price-groups { grid-template-columns: 1fr; }
  .cards { flex-wrap: wrap; row-gap: 1.5rem; }
  .card { flex-basis: calc(50% - .25rem); margin-inline: -.25rem; padding: .5rem .5rem .8rem; }
  .card-fr { font-size: 1.05rem; }
  .card-en { font-size: .72rem; }
  .card-5 { --y: 0rem; }
  .stamp { width: 2.5rem; height: 3rem; }
  .postmark { width: 3.4rem; right: 1rem; }
  .sizes .size { min-width: 0; flex: 1; }
  .box-foot { flex-wrap: wrap; }
  .sticker { width: 6rem; }
  .top { gap: 1rem; }
  .brand-name { font-size: 1.1rem; white-space: nowrap; }
  .top-order { padding: .6rem 1rem; font-size: .8rem; white-space: nowrap; }
  .street-sign { position: static; justify-self: start; display: inline-grid; margin-top: 1.5rem; rotate: 0deg; }
}
@media (prefers-reduced-motion: reduce) {
  .blob-soft, .hero-photo img, .sticker, .marquee-track, .slot.is-new, .swatches.is-nudge .swatch, .sketch-steam path { animation: none; }
  .bird { opacity: .6; }
  .sketch-birds path { animation: none; }
  .card { transition: none; }
  .sketch-lines path { stroke-dashoffset: 0; transition: none; }
  .sketch-sign { opacity: .13; }
}

/* ---------- Font test (temporary) ----------
   ?font=a|b|c|d or the picker bottom left swaps the headline serif */
html[data-font="a"] { --serif: 'Young Serif', Georgia, serif; }
html[data-font="b"] { --serif: 'DM Serif Display', Georgia, serif; }
html[data-font="c"] { --serif: 'Playfair Display', Georgia, serif; }
html[data-font="d"] { --serif: 'Cormorant Garamond', Georgia, serif; }
/* Young Serif and DM Serif Display only come in one weight: let them sit at their natural weight */
html[data-font="a"] h1, html[data-font="a"] h2, html[data-font="a"] h3,
html[data-font="b"] h1, html[data-font="b"] h2, html[data-font="b"] h3 { font-weight: 400; }
html[data-font="d"] h1, html[data-font="d"] h2 { font-weight: 300; letter-spacing: -.02em; }
html[data-font="d"] .hero h1 { font-size: clamp(3.6rem, 8.2vw, 8.6rem); }
.font-test {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 40; display: grid; gap: .2rem; padding: .35rem;
  border-radius: 1.4rem; background: #fff; box-shadow: 0 10px 24px -10px rgba(34, 48, 90, .45), inset 0 0 0 1.5px var(--line);
  font: 600 .72rem/1 var(--sans);
}
.ft-row { display: flex; align-items: center; gap: .3rem; }
.font-test span { width: 4.4rem; padding: 0 .5rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.font-test button { min-width: 2.2rem; padding: .5rem .6rem; border: 0; border-radius: 999px; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.font-test button.is-on { background: var(--blue); color: #fff; }
