/* =====================================================================
   SugarPlumJelly Miami — v4 styles
   (editorial cookie menu, scroll showcase, cake request form, map,
   Instagram cookie, next pop-up bar, and the Night Court dark theme)
   ===================================================================== */

:root {
  --bar-h: 0px;
  --pill-1-bg: var(--moon-mist); --pill-1-fg: var(--baltic);
  --pill-2-bg: #F3B6CF; --pill-2-fg: var(--baltic);
  --pill-3-bg: var(--fantasy); --pill-3-fg: var(--grape);
  --pill-4-bg: var(--grape); --pill-4-fg: var(--fantasy);
  --halo: var(--lilac-soft);
  --plinth: linear-gradient(180deg, #EFE6F5, #D9CBE6);
  --ornament: none;
}
body.has-stop-bar { --bar-h: 36px; }
html { scroll-padding-top: calc(var(--header-h) + var(--bar-h) + 12px); }
body { transition: background-color 400ms var(--ease-out); }

/* ---------- Header with the next pop-up bar ---------- */
.site-header { height: auto; }
.header-inner { height: var(--header-h); }
.hero { margin-top: calc((var(--header-h) + var(--bar-h)) * -1); padding-top: calc(var(--header-h) + var(--bar-h) + clamp(18px, 4vw, 40px)); }
@media (max-width: 900px) { .primary-nav { top: calc(var(--header-h) + var(--bar-h) - 6px); } }
body.no-hero main { padding-top: 8px; }

.stop-bar {
  height: var(--bar-h); display: flex; align-items: center; justify-content: center; gap: 10px;
  padding-inline: var(--gutter); overflow: hidden;
  background: var(--deep); color: var(--on-accent); text-decoration: none;
  font-size: .86rem; white-space: nowrap;
}
.stop-bar[hidden] { display: none; }
.stop-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--moon-mist); flex: none; box-shadow: 0 0 0 0 rgba(213, 227, 174, .7); animation: ping 2s ease-out infinite; }
.stop-label { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; color: var(--moon-mist); }
.stop-text { display: inline-flex; gap: 8px; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.stop-text strong { font-weight: 700; }
.sb-sep { opacity: .5; }
.stop-cta { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(252, 245, 232, .4); }
.stop-cta svg { font-size: .95rem; transition: transform var(--t-fast); }
.stop-bar:hover .stop-cta svg { transform: translateX(3px); }
.stop-bar:focus-visible { outline-offset: -3px; }
@media (max-width: 640px) {
  .stop-label, .sb-time, .stop-cta, .stop-text .sb-sep:first-of-type { display: none; }
  .stop-text::before { content: "Next pop-up:"; font-weight: 700; }
}

/* ---------- Light / Night Court switch ---------- */
.theme-switch { position: relative; width: 64px; height: 48px; border: 0; padding: 0; background: none; cursor: pointer; display: inline-grid; place-items: center; color: var(--baltic); }
.ts-track { position: relative; width: 56px; height: 30px; border-radius: 999px; background: var(--lilac-soft); box-shadow: inset 0 0 0 1.5px var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 7px; transition: background-color var(--t-med); }
.ts-track svg { width: 15px; height: 15px; position: relative; z-index: 1; transition: color var(--t-med), opacity var(--t-med); }
.ts-sun { color: #C98A1B; }
.ts-moon { color: var(--lilac); opacity: .65; }
.ts-knob { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(60, 28, 50, .25); transition: transform var(--t-med) var(--ease-spring), background-color var(--t-med); }
.theme-switch[aria-checked="true"] .ts-knob { transform: translateX(26px); background: #C1B5C9; box-shadow: 0 0 12px rgba(193, 181, 201, .6); }
.theme-switch[aria-checked="true"] .ts-moon { color: #211A2B; opacity: 1; }
.theme-switch[aria-checked="true"] .ts-sun { opacity: .45; color: #C1B5C9; }
.site-header:not(.is-scrolled) .ts-track { background: rgba(252, 245, 232, .18); box-shadow: inset 0 0 0 1.5px rgba(252, 245, 232, .35); }
.theme-switch:hover .ts-knob { box-shadow: 0 2px 10px rgba(60, 28, 50, .35); }
.theme-switch:focus-visible { outline-offset: 0; border-radius: 999px; }

/* theme change: the new theme opens in a circle from the switch */
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: theme-reveal 650ms cubic-bezier(.4, 0, .2, 1); }
@keyframes theme-reveal { from { clip-path: circle(0 at var(--vt-x, 90%) var(--vt-y, 0)); } to { clip-path: circle(150vmax at var(--vt-x, 90%) var(--vt-y, 0)); } }

/* ---------- Editorial cookie menu ---------- */
.flavor-list { list-style: none; margin: 0 auto; padding: 0; max-width: 1060px; display: grid; gap: clamp(28px, 5vw, 64px); counter-reset: flavor; }
.flavor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 5vw, 72px); }
.flavor:nth-child(even) .flavor-media { order: 2; }
.flavor-media { display: grid; place-items: center; }
.fm { position: relative; width: min(100%, 380px); aspect-ratio: 1; border: 0; padding: 0; background: none; display: grid; place-items: center; cursor: default; color: inherit; -webkit-tap-highlight-color: transparent; }
button.fm { cursor: pointer; }
.fm-halo { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(closest-side, var(--halo) 0 70%, transparent 71%); transition: transform 700ms var(--ease-spring); }
.fm-halo::after { /* thin orbit ring */ content: ""; position: absolute; inset: -5%; border-radius: 50%; border: 1.5px dashed rgba(143, 118, 169, .4); transition: transform 1.4s var(--ease-out); }
.fm-shadow { position: absolute; left: 24%; right: 24%; bottom: 7%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 28, 50, .35), transparent); transition: transform 600ms var(--ease-spring), opacity 600ms; }
.fm-cookie { position: relative; z-index: 1; width: 82%; height: auto; transform: rotate(var(--tilt)); transition: transform 700ms var(--ease-spring), filter 500ms; filter: drop-shadow(0 18px 22px rgba(60, 28, 50, .18)); }
.fm-cookie.is-photo { width: 74%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 8px var(--surface), var(--shadow-md); filter: none; }
.fm-inside { position: absolute; z-index: 2; right: 0; bottom: 4%; width: 42%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px var(--surface), var(--shadow-md); transform: scale(0) rotate(-20deg); transform-origin: 20% 20%; opacity: 0; transition: transform 500ms var(--ease-spring), opacity 250ms; }
.fm-inside img { width: 100%; height: 100%; object-fit: cover; }
.fm-crumbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fm-crumbs i { position: absolute; left: 50%; top: 55%; width: 9px; height: 7px; border-radius: 46% 54% 40% 60%; background: #C98B4B; opacity: 0; }
.fm-crumbs i:nth-child(2n) { background: #5B3A2A; width: 6px; height: 5px; }
.fm-crumbs i:nth-child(3n) { background: #E2B57A; }

/* hover / tap: each cookie moves its own way, then shows what's inside */
.flavor .fm:hover .fm-halo, .flavor.show-inside .fm-halo { transform: scale(1.06); }
.flavor .fm:hover .fm-halo::after, .flavor.show-inside .fm-halo::after { transform: rotate(140deg); }
.flavor .fm:hover .fm-shadow { transform: scale(.72); opacity: .6; }
.fx-spin .fm:hover .fm-cookie { transform: translateY(-14px) rotate(calc(var(--tilt) + 28deg)) scale(1.05); }
.fx-wobble .fm:hover .fm-cookie { animation: fm-wobble 900ms var(--ease-out); transform: translateY(-10px) rotate(var(--tilt)) scale(1.05); }
.fx-hop .fm:hover .fm-cookie { animation: fm-hop 800ms var(--ease-out); transform: translateY(-12px) rotate(calc(var(--tilt) - 14deg)) scale(1.05); }
@keyframes fm-wobble { 0% { transform: rotate(var(--tilt)); } 25% { transform: translateY(-10px) rotate(calc(var(--tilt) - 10deg)) scale(1.05); } 50% { transform: translateY(-10px) rotate(calc(var(--tilt) + 8deg)) scale(1.05); } 75% { transform: translateY(-10px) rotate(calc(var(--tilt) - 4deg)) scale(1.05); } 100% { transform: translateY(-10px) rotate(var(--tilt)) scale(1.05); } }
@keyframes fm-hop { 0% { transform: rotate(var(--tilt)); } 35% { transform: translateY(-34px) rotate(calc(var(--tilt) - 20deg)) scale(1.07); } 65% { transform: translateY(-4px) rotate(calc(var(--tilt) - 10deg)) scale(1.03); } 100% { transform: translateY(-12px) rotate(calc(var(--tilt) - 14deg)) scale(1.05); } }
.flavor .fm:hover .fm-inside, .flavor.show-inside .fm-inside { transform: none; opacity: 1; transition-delay: 120ms; }
.flavor .fm:hover .fm-crumbs i { animation: fm-crumb 900ms var(--ease-out) forwards; }
.fm-crumbs i:nth-child(1) { --cx: -150px; --cy: -60px; } .fm-crumbs i:nth-child(2) { --cx: 140px; --cy: -90px; animation-delay: 40ms !important; }
.fm-crumbs i:nth-child(3) { --cx: -120px; --cy: 90px; animation-delay: 80ms !important; } .fm-crumbs i:nth-child(4) { --cx: 160px; --cy: 40px; animation-delay: 30ms !important; }
.fm-crumbs i:nth-child(5) { --cx: -40px; --cy: -150px; animation-delay: 60ms !important; } .fm-crumbs i:nth-child(6) { --cx: 60px; --cy: 140px; animation-delay: 100ms !important; }
@keyframes fm-crumb { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.6); } 100% { opacity: 0; transform: translate(calc(-50% + var(--cx)), calc(-50% + var(--cy))) rotate(220deg) scale(1); } }
.flavor.show-inside .fm-cookie { transform: rotate(calc(var(--tilt) - 8deg)) scale(.94); }
button.fm:focus-visible { outline-offset: -6px; border-radius: 50%; }

.flavor-body { display: grid; gap: 12px; justify-items: start; max-width: 520px; }
.flavor:nth-child(even) .flavor-body { justify-self: end; }
.flavor-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.flavor-tags:empty, .flavor-tags:has(> [data-stock-note]:only-child:empty) { display: none; }
.flavor-name { font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: .98; letter-spacing: -.005em; }
.flavor-desc { color: var(--ink-soft); font-size: 1.05rem; max-width: 46ch; }
.flavor-buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.flavor-price { font-family: var(--font-display); font-size: 2.1rem; color: var(--grape); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.flavor .card-actions { margin: 0; min-width: 220px; }
.flavor .add-btn { width: auto; }
.flavor .stepper { width: 230px; }
.stock-note { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.stock-note.is-low { background: #FBE3C8; color: #7A3E0A; }
.stock-note.is-low::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: twinkle 1.8s ease-in-out infinite; }
.stock-note.is-out { background: var(--deep); color: var(--on-accent); }
.flavor.is-soldout .fm-cookie { filter: grayscale(.6) brightness(1.05); }
.flavor.is-soldout .flavor-price { opacity: .5; }
.stepper .icon-btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.menu-more { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }
.js .flavor.reveal { transform: translateY(40px); }
.js .flavor.reveal.is-in { transform: none; }

@media (max-width: 760px) {
  .flavor, .flavor:nth-child(even) { grid-template-columns: 1fr; gap: 6px; text-align: center; }
  .flavor:nth-child(even) .flavor-media { order: 0; }
  .flavor-body, .flavor:nth-child(even) .flavor-body { justify-items: center; justify-self: center; }
  .flavor-tags { justify-content: center; }
  .fm { width: min(78vw, 300px); }
  .flavor-buy { justify-content: center; }
  .flavor .card-actions { min-width: 0; }
}

/* ---------- Cookie showcase (scroll, glitter, next batch) ---------- */
.showcase { position: relative; height: calc((var(--batches, 3) * 70 + 40) * 1vh); background: var(--surface); }
.showcase-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: calc(var(--header-h) + var(--bar-h) + 10px) var(--gutter) 28px; isolation: isolate; }
.showcase-stage::before { /* a soft spotlight and moon pattern behind the batch */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 50% at 50% 58%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(70% 60% at 50% 62%, var(--lilac-soft), transparent 75%);
}
.showcase-stage::after { /* the moon pattern, faint and only at the edges */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../assets/img/brand/pattern-light.webp") center / 260px auto; opacity: .22;
  -webkit-mask: radial-gradient(75% 70% at 50% 55%, transparent 40%, #000); mask: radial-gradient(75% 70% at 50% 55%, transparent 40%, #000);
}
[data-theme="dark"] .showcase-stage::after { background-image: url("../assets/img/brand/pattern-dark.webp"); opacity: .1; }
.showcase-head { text-align: center; display: grid; justify-items: center; gap: 8px; }
.showcase-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.showcase-batches { position: relative; width: min(1100px, 100%); align-self: stretch; }
.batch { position: absolute; inset: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center; gap: clamp(8px, 3vw, 40px); pointer-events: none; }
.batch.is-active { pointer-events: auto; }
.sc-item { position: relative; display: grid; justify-items: center; gap: 10px; text-decoration: none; color: inherit; opacity: 0; transform: translateY(70px) scale(.8) rotate(var(--tilt)); }
.sc-item:nth-child(2) { margin-top: -6vh; }
.sc-cookie { width: min(100%, 300px, 34vh); height: auto; filter: drop-shadow(0 26px 24px rgba(60, 28, 50, .22)); animation: sc-float 6s ease-in-out infinite; animation-delay: calc(var(--k) * -1.6s); transition: transform 500ms var(--ease-spring); }
@keyframes sc-float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 4deg; } }
.sc-plinth { position: absolute; z-index: -1; left: 50%; top: 62%; width: 84%; max-width: 270px; aspect-ratio: 3 / 1; transform: translateX(-50%); border-radius: 50%; background: var(--plinth); box-shadow: inset 0 -8px 0 rgba(106, 61, 94, .12), 0 20px 30px -12px rgba(60, 28, 50, .25); }
.sc-label { display: grid; justify-items: center; gap: 2px; text-align: center; }
.sc-name { font-family: var(--font-display); font-size: clamp(1.25rem, 2.3vw, 1.9rem); line-height: 1.05; }
.sc-price { font-weight: 700; color: var(--grape); font-variant-numeric: tabular-nums; }
.sc-item:hover .sc-cookie { transform: scale(1.06) rotate(-8deg); }
.sc-item:focus-visible { outline-offset: 6px; border-radius: 20px; }
.batch.is-active .sc-item { opacity: 1; transform: rotate(0deg); transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-spring); transition-delay: calc(250ms + var(--k) * 110ms); }
.batch.is-leaving .sc-item { opacity: 0; transform: translateY(-50px) scale(1.12); filter: blur(8px) brightness(1.6); transition: opacity 500ms ease-in, transform 600ms ease-in, filter 500ms ease-in; transition-delay: calc(var(--k) * 60ms); }
.showcase-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; position: absolute; right: clamp(14px, 3vw, 36px); top: 50%; transform: translateY(-50%); flex-direction: column; }
.showcase-dots li { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--lilac); transition: background-color var(--t-med), transform var(--t-med) var(--ease-spring); }
.showcase-dots li.is-on { background: var(--lilac); transform: scale(1.3); }
.showcase-hint { font-size: .9rem; font-weight: 600; color: var(--ink-soft); display: inline-flex; gap: 8px; align-items: center; transition: opacity 400ms; }
.showcase-hint::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); animation: hint-bob 1.6s ease-in-out infinite; }
@keyframes hint-bob { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 3px; } }
.showcase-hint.is-done { opacity: 0; }
.showcase.is-static { height: auto; }
.showcase.is-static .showcase-stage { position: relative; height: auto; padding-block: 72px; }
.showcase.is-static .batch { position: relative; inset: auto; margin-bottom: 24px; }
.showcase.is-static .sc-item { opacity: 1; transform: none; }
.showcase.is-static .showcase-dots, .showcase.is-static .showcase-hint { display: none; }
@media (max-width: 760px) {
  .showcase { height: calc((var(--batches, 3) * 60 + 40) * 1vh); }
  .batch { grid-auto-flow: row; grid-auto-rows: 1fr; grid-auto-columns: auto; justify-items: center; }
  .sc-item:nth-child(2) { margin-top: 0; }
  .sc-item { grid-template-columns: auto auto; align-items: center; gap: 14px; }
  .sc-item:nth-child(2) { direction: rtl; }
  .sc-item:nth-child(2) > * { direction: ltr; }
  .sc-cookie { width: min(44vw, 26vh); }
  .sc-label { justify-items: start; text-align: left; }
  .sc-item:nth-child(2) .sc-label { justify-items: end; text-align: right; }
  .sc-plinth { top: 58%; left: 25%; width: 46vw; }
  .sc-item:nth-child(2) .sc-plinth { left: auto; right: 25%; transform: translateX(50%); }
  .showcase-dots { right: 8px; }
}

/* ---------- Cakes: flavors board, gallery, request form ---------- */
.flavor-board { margin-top: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: clamp(16px, 2.5vw, 28px); }
.fb-col { background: var(--surface); border-radius: var(--radius); padding: 24px 24px 26px; border: 1.5px solid rgba(143, 118, 169, .25); }
.fb-col h3 { font-size: 1.6rem; margin-bottom: 14px; }
.fb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fb-list li { padding: 6px 13px; border-radius: 999px; background: var(--fantasy); border: 1.5px solid rgba(143, 118, 169, .3); font-size: .93rem; font-weight: 500; }
.fb-list.is-plain { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.fb-list.is-plain li { background: none; border: 0; padding: 0 0 0 18px; position: relative; border-radius: 0; }
.fb-list.is-plain li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset -3px 0 0 0 var(--lilac); transform: rotate(-20deg); }
.fb-more { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.fb-more h3 { color: var(--on-accent); }
.fb-more .fb-list.is-plain li::before { box-shadow: inset -3px 0 0 0 var(--moon-mist); }
@media (max-width: 900px) { .flavor-board { grid-template-columns: 1fr 1fr; } .fb-more { grid-column: 1 / -1; } }
@media (max-width: 560px) { .flavor-board { grid-template-columns: 1fr; } }

/* gallery: exactly two rows */
.cake-gallery { columns: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cake-shot { margin: 0; }
.cake-shot figure { aspect-ratio: 4 / 5; }
.cake-shot img { width: 100%; height: 100%; object-fit: cover; }
.cake-shot:nth-child(4n+1) figure { border-radius: 18px; }
.cake-shot:nth-child(1) figure, .cake-shot:nth-child(6) figure { border-radius: 999px 999px 18px 18px; }
@media (max-width: 760px) { .cake-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.cake-request { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: start; scroll-margin-top: calc(var(--header-h) + var(--bar-h) + 16px); }
.cr-intro { position: sticky; top: calc(var(--header-h) + var(--bar-h) + 24px); display: grid; gap: 14px; color: var(--ink-soft); }
.cr-quill { width: 132px; height: 110px; color: var(--grape); }
.cr-title { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--ink); }
.cr-title em { font-family: var(--font-accent); font-style: italic; font-weight: 600; color: var(--grape); }
.cr-custom { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1.5px dashed rgba(143, 118, 169, .5); }
.cr-custom a { color: var(--grape); font-weight: 600; text-underline-offset: 3px; }
.cr-form, .cr-sent { background: var(--surface); border-radius: calc(var(--radius) + 6px); padding: clamp(20px, 3.5vw, 36px); box-shadow: var(--shadow-md); border: 1.5px solid rgba(143, 118, 169, .22); position: relative; }
.cr-form::before { /* the page edge of the book */ content: ""; position: absolute; inset: 8px; border: 1px solid rgba(143, 118, 169, .25); border-radius: var(--radius); pointer-events: none; }
.cr-group { border: 0; margin: 0 0 18px; padding: 0; display: grid; gap: 2px; }
.cr-group legend { font-family: var(--font-display); font-size: 1.5rem; padding: 0; margin-bottom: 12px; color: var(--ink); }
.cr-group + .cr-group { padding-top: 18px; border-top: 1px dashed rgba(143, 118, 169, .4); }
.field .label { font-weight: 600; font-size: .95rem; }
.req { color: #A12B4F; }
.field-hint { font-size: .86rem; color: var(--ink-soft); }
.type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.type-card { position: relative; cursor: pointer; }
.type-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tc-face { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 14px 10px 12px; border-radius: 16px; background: var(--fantasy); border: 1.5px solid var(--field-line); transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast); min-height: 112px; }
.tc-face img { width: 44px; height: 44px; object-fit: contain; transition: transform var(--t-med) var(--ease-spring); }
.tc-name { font-weight: 700; line-height: 1.2; }
.tc-from { font-size: .82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.type-card:hover .tc-face { border-color: var(--lilac); transform: translateY(-2px); }
.type-card input:checked + .tc-face { border-color: var(--accent); background: var(--lilac-soft); box-shadow: 0 0 0 3px rgba(143, 118, 169, .3); }
.type-card input:checked + .tc-face img { transform: rotate(-10deg) scale(1.12); }
.type-card input:focus-visible + .tc-face { outline: 3px solid var(--grape); outline-offset: 3px; }
.type-card input[aria-invalid="true"] + .tc-face { border-color: #A12B4F; }
.photo-drop { position: relative; display: grid; place-items: center; min-height: 120px; padding: 16px; border-radius: 16px; border: 2px dashed rgba(143, 118, 169, .6); background: var(--fantasy); cursor: pointer; text-align: center; transition: background-color var(--t-fast), border-color var(--t-fast); }
.photo-drop:hover, .photo-drop.is-over { background: var(--lilac-soft); border-color: var(--grape); }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.photo-drop:focus-within { outline: 3px solid var(--grape); outline-offset: 3px; }
.pd-empty { display: grid; justify-items: center; gap: 6px; color: var(--ink-soft); }
.pd-empty svg { font-size: 1.8rem; color: var(--grape); }
.pd-empty strong { color: var(--grape); }
.photo-drop.has-photo .pd-empty { display: none; }
.pd-preview { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; }
.pd-preview img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; }
.pd-preview span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .92rem; }
.pd-preview .link-btn { margin: 0; }
.cr-error-summary { border: 2px solid #A12B4F; background: #FDF0F3; color: #6B1730; border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; }
.cr-error-summary ul { margin: 6px 0 0; padding-left: 18px; }
.cr-error-summary a { color: inherit; font-weight: 600; }
.cr-error-summary:focus { outline: 3px solid #A12B4F; outline-offset: 3px; }
.btn-quill { width: 100%; min-height: 56px; font-size: 1.08rem; }
.btn-quill svg { font-size: 1.5em; transition: transform var(--t-med) var(--ease-spring); }
.btn-quill:hover svg { transform: rotate(-12deg) translateY(-2px); }
.btn-quill.is-sending svg { animation: quill-write 900ms ease-in-out infinite; }
@keyframes quill-write { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(2px, -1px) rotate(-8deg); } 75% { transform: translate(-2px, 1px) rotate(6deg); } }
.cr-sent { text-align: center; display: grid; justify-items: center; gap: 14px; }
.cr-sent:focus { outline: none; }
.cr-sent h3 { font-size: 2rem; }
.cr-sent a { color: var(--grape); font-weight: 600; }
@media (max-width: 900px) { .cake-request { grid-template-columns: 1fr; } .cr-intro { position: static; } .cr-quill { width: 64px; height: 64px; } }
.cake-cta { display: none; }

/* ---------- Sweet Spot: map of the area ---------- */
.spot-map { position: relative; width: 100%; max-width: 560px; justify-self: center; }
.map-frame { position: relative; aspect-ratio: 1 / 1.02; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: var(--lilac-soft); box-shadow: 0 0 0 8px var(--surface), 0 0 0 10px rgba(143, 118, 169, .35), var(--shadow-md); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.75) sepia(.12) hue-rotate(-12deg); }
.map-cover { position: absolute; inset: 0; cursor: pointer; }
.map-card { position: absolute; left: -4%; bottom: 7%; z-index: 2; display: grid; gap: 2px; max-width: min(78%, 300px); background: var(--surface); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow-md); }
.map-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grape); }
.map-card strong { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.05; }
.map-when { color: var(--ink-soft); font-size: .93rem; }
.map-dir { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin-top: 2px; color: var(--grape); font-weight: 700; text-underline-offset: 3px; }
.map-photo { position: absolute; right: -5%; top: 6%; z-index: 2; width: 30%; margin: 0; padding: 6px 6px 22px; background: var(--paper); border-radius: 3px; box-shadow: var(--shadow-md); transform: rotate(6deg); }
.map-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.ev-map { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0; border: 0; background: none; color: var(--grape); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ev-map svg { color: var(--lilac); }
.event.is-next .ev-map { color: var(--moon-mist); }
.event.is-shown:not(.is-next) { border-color: var(--lilac); }
@media (max-width: 860px) { .map-card { left: 4%; } .map-photo { right: 2%; width: 26%; } }

/* ---------- Instagram: grid on the left, opened cookie on the right ---------- */
.insta { overflow: hidden; }
.insta-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.insta-left .section-head { margin-bottom: 28px; }
.insta-handle { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--grape); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.insta-handle svg { font-size: .9em; }
.insta-art { --p: 0; position: relative; aspect-ratio: 1 / 1.2; width: 100%; max-width: 480px; justify-self: center; }
.ia-blob { position: absolute; border-radius: 50%; }
.ia-blob-1 { inset: 6% -6% 12% 4%; background: radial-gradient(circle at 40% 35%, #F7D9E6, #EBC3D8 70%); border-radius: 58% 42% 50% 50% / 50% 46% 54% 50%; transform: translateY(calc(var(--p) * 24px)) rotate(-8deg); }
.ia-blob-2 { width: 44%; aspect-ratio: 1; right: -12%; bottom: 0; background: var(--lilac-soft); transform: translateY(calc(var(--p) * -30px)); }
.ia-cookie { position: absolute; left: 50%; top: 50%; width: 78%; height: auto; transform: translate(-50%, calc(-50% + var(--p) * -20px)) rotate(-6deg); filter: drop-shadow(0 30px 30px rgba(60, 28, 50, .3)); transition: transform 600ms var(--ease-out); }
.insta-art:hover .ia-cookie { transform: translate(-50%, calc(-52% + var(--p) * -20px)) rotate(-2deg) scale(1.03); }
.ia-bits { position: absolute; inset: 0; pointer-events: none; }
.ia-bit { position: absolute; left: var(--x); top: var(--y); width: var(--s); transform: translate(-50%, calc(-50% + var(--p) * var(--depth) * -1px)) rotate(var(--r)); }
.ia-bit svg { width: 100%; height: auto; display: block; animation: bit-float 6s ease-in-out var(--delay) infinite; filter: drop-shadow(0 6px 6px rgba(60, 28, 50, .25)); }
@keyframes bit-float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -8px; rotate: 10deg; } }
.insta-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .insta-layout { grid-template-columns: 1fr; }
  .insta-art { order: -1; max-width: 360px; margin-bottom: -10px; }
}

/* ---------- small fixes ---------- */
.cart-item img.is-cutout { object-fit: contain; background: var(--lilac-soft); }
.ci-left { color: #7A3E0A; font-weight: 700; }
.stock-alert { background: #FBE3C8; color: #6A3408; border-radius: 12px; padding: 10px 14px; font-size: .92rem; font-weight: 500; margin-bottom: 12px; }
.castle { display: none; }

/* =====================================================================
   NIGHT COURT (dark theme): midnight velvet, antique silver, violet light
   ===================================================================== */
[data-theme="dark"] {
  color-scheme: dark;
  --midnight: #090810; --shadow-purple: #211A2B; --amethyst: #60466E; --silver: #C1B5C9;
  --fantasy: #15111D;          /* cards, chips */
  --fantasy-2: #1B1524;
  --surface: #0E0B15;          /* section backgrounds */
  --bg: var(--midnight);
  --ink: #ECE6F1;
  --ink-soft: #B8ADC3;
  --grape: #C6AEDB;            /* accent text (light amethyst so it reads on black) */
  --lilac: #9D82B6;
  --lilac-soft: var(--shadow-purple);
  --baltic: #ECE6F1;           /* dark ink in light mode becomes moonlight */
  --moon-mist: #DCD3E5;
  --lemongrass: #8E7AA5;
  --accent: var(--amethyst);
  --on-accent: #F4EFF7;
  --deep: #050409;
  --chip-bg: #2A2036;
  --field-bg: #100C17;
  --field-line: rgba(193, 181, 201, .28);
  --paper: #EDE6F1;
  --line: rgba(193, 181, 201, .16);
  --halo: radial-gradient(circle, #2B2138, #1A1422);
  --plinth: linear-gradient(180deg, #3A2E48, #211A2B);
  --shadow-sm: 0 1px 0 rgba(193, 181, 201, .06) inset, 0 8px 20px rgba(0, 0, 0, .5);
  --shadow-md: 0 1px 0 rgba(193, 181, 201, .08) inset, 0 18px 44px rgba(0, 0, 0, .6);
  --shadow-glow: 0 0 0 1px rgba(193, 181, 201, .25), 0 18px 50px rgba(96, 70, 110, .45);
  --pill-1-bg: #C1B5C9; --pill-1-fg: #090810;
  --pill-2-bg: #60466E; --pill-2-fg: #F4EFF7;
  --pill-3-bg: #211A2B; --pill-3-fg: #C1B5C9;
  --pill-4-bg: #F4EFF7; --pill-4-fg: #211A2B;
  --font-display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24'%3E%3Cg fill='none' stroke='%23C1B5C9' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M6 12h76M158 12h76'/%3E%3Cpath d='M82 12c10 0 14-8 22-8 6 0 8 5 4 7-3 1-5-2-3-3M158 12c-10 0-14-8-22-8-6 0-8 5-4 7 3 1 5-2 3-3M82 12c10 0 14 8 22 8 6 0 8-5 4-7-3-1-5 2-3 3M158 12c-10 0-14 8-22 8-6 0-8-5-4-7 3-1 5 2 3 3'/%3E%3C/g%3E%3Cpath d='M120 3l5 9-5 9-5-9z' fill='%23C1B5C9'/%3E%3Ccircle cx='4' cy='12' r='1.6' fill='%23C1B5C9'/%3E%3Ccircle cx='236' cy='12' r='1.6' fill='%23C1B5C9'/%3E%3C/svg%3E");
}
[data-theme="dark"] body {
  background-color: var(--midnight);
  background-image:
    radial-gradient(60% 40% at 15% 0%, rgba(96, 70, 110, .22), transparent 70%),
    radial-gradient(50% 40% at 90% 30%, rgba(96, 70, 110, .14), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .76 0 0 0 0 .71 0 0 0 0 .79 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, scroll;
}
/* sections sit on the velvet instead of flat colour blocks */
[data-theme="dark"] .menu, [data-theme="dark"] .marquee, [data-theme="dark"] .about, [data-theme="dark"] .insta, [data-theme="dark"] .sweet-spot { background: transparent; }
[data-theme="dark"] .cakes { background: linear-gradient(180deg, transparent, rgba(33, 26, 43, .7) 30%, rgba(33, 26, 43, .7) 70%, transparent); }
[data-theme="dark"] .cakes-bg, [data-theme="dark"] .card-media.is-cutout::before { background-image: url("../assets/img/brand/pattern-dark.webp"); opacity: .05; }
[data-theme="dark"] .kind-words { background: radial-gradient(60% 60% at 50% 0%, rgba(96, 70, 110, .35), transparent 70%); }
[data-theme="dark"] .scallop { background: var(--midnight); }

/* typography: carved serif titles, silver ornaments */
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { letter-spacing: .02em; font-weight: 500; }
[data-theme="dark"] h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
[data-theme="dark"] h2 em, [data-theme="dark"] .cr-title em { color: #D9C6EA; text-shadow: 0 0 24px rgba(157, 130, 182, .55); font-size: 1.12em; }
[data-theme="dark"] .section-head h2::after, [data-theme="dark"] .showcase-head h2::after {
  content: ""; display: block; width: min(240px, 70%); height: 24px; margin: 16px auto 0; background: var(--ornament) center / contain no-repeat; opacity: .85;
}
[data-theme="dark"] .section-head.left h2::after { margin-left: 0; }
[data-theme="dark"] .eyebrow { color: var(--silver); letter-spacing: .26em; }
[data-theme="dark"] .flavor-name { font-size: clamp(1.8rem, 3.9vw, 2.9rem); line-height: 1.08; }
[data-theme="dark"] .flavor-price, [data-theme="dark"] .cake-from strong, [data-theme="dark"] .subtotal strong { color: var(--silver); font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }
[data-theme="dark"] .marquee-track { color: var(--silver); font-family: "Cinzel", serif; font-size: clamp(1.1rem, 2.4vw, 1.7rem); letter-spacing: .08em; }
[data-theme="dark"] .marquee-track svg { color: var(--lilac); }

/* header + bar */
[data-theme="dark"] .site-header.is-scrolled { background: rgba(9, 8, 16, .82); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
[data-theme="dark"] .brand .logo-dark { opacity: 0; }
[data-theme="dark"] .brand .logo-light { opacity: 1; }
[data-theme="dark"] .icon-btn { color: var(--ink); }
[data-theme="dark"] .primary-nav a:hover, [data-theme="dark"] .primary-nav a[aria-current="true"] { color: #fff; }
[data-theme="dark"] .stop-bar { background: linear-gradient(90deg, #120E1A, #211A2B 50%, #120E1A); border-bottom: 1px solid rgba(193, 181, 201, .2); }
[data-theme="dark"] .stop-label { color: var(--silver); }
[data-theme="dark"] .stop-dot { background: #D9C6EA; }
[data-theme="dark"] .ts-track { background: #211A2B; box-shadow: inset 0 0 0 1.5px rgba(193, 181, 201, .35); }

/* hero: a moonlit sky over the castle */
[data-theme="dark"] .hero {
  color: var(--ink);
  background:
    radial-gradient(circle at 64% 13%, rgba(236, 230, 241, .95) 0 34px, rgba(193, 181, 201, .35) 36px, rgba(96, 70, 110, .18) 100px, transparent 220px),
    radial-gradient(60% 50% at 50% 100%, rgba(96, 70, 110, .55), transparent 70%),
    linear-gradient(180deg, #050409 0%, #120E1A 55%, #211A2B 100%);
}
[data-theme="dark"] .hero::before { /* stars */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .8;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 46% 22%, #fff, transparent), radial-gradient(1px 1px at 62% 12%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 70% 40%, #E8E1EE, transparent), radial-gradient(1px 1px at 90% 52%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 6% 48%, #fff, transparent), radial-gradient(1px 1px at 36% 38%, #E8E1EE, transparent),
    radial-gradient(1px 1px at 54% 6%, #fff, transparent), radial-gradient(1.3px 1.3px at 22% 60%, #fff, transparent);
}
[data-theme="dark"] .castle { display: block; position: absolute; left: 0; right: 0; bottom: 30px; width: 100%; height: clamp(110px, 18vw, 240px); z-index: 1; fill: #050409; pointer-events: none; }
[data-theme="dark"] .castle-windows rect { fill: #B99AD6; filter: drop-shadow(0 0 4px rgba(185, 154, 214, .9)); animation: bulb 4s ease-in-out infinite; }
[data-theme="dark"] .castle-windows rect:nth-child(2n) { animation-delay: -1.7s; }
[data-theme="dark"] .burst-title { color: var(--ink); font-size: clamp(3rem, 10.5vw, 8.6rem); text-shadow: 0 0 40px rgba(157, 130, 182, .35), 0 10px 40px rgba(0, 0, 0, .6); }
[data-theme="dark"] .burst-title .bt-2 em { color: #D9C6EA; font-size: 1.2em; }
[data-theme="dark"] .hero-eyebrow { color: var(--silver); }
[data-theme="dark"] .hero-eyebrow::before { box-shadow: inset -4px 0 0 0 var(--silver); }
[data-theme="dark"] .hero-lede { color: rgba(236, 230, 241, .9); }
[data-theme="dark"] .moon { color: rgba(193, 181, 201, .1); }
[data-theme="dark"] .sparkle { color: var(--silver); }
[data-theme="dark"] .ck img { filter: drop-shadow(0 0 22px rgba(157, 130, 182, .35)); }
[data-theme="dark"] .btn-cream { --b-bg: var(--silver); --b-ink: #090810; }
[data-theme="dark"] .btn-cream:hover { --b-bg: #fff; }
[data-theme="dark"] .order-badge { background: var(--silver); color: #090810; }
[data-theme="dark"] .ob-ring { fill: #090810; }
[data-theme="dark"] .ob-core { background: #211A2B; color: var(--silver); }

/* buttons, chips, cards: amethyst fills, silver hairlines */
[data-theme="dark"] .btn-primary { box-shadow: 0 0 0 1px rgba(193, 181, 201, .35), 0 8px 26px rgba(96, 70, 110, .55); }
[data-theme="dark"] .btn-primary:hover { --b-bg: #7A5A8C; box-shadow: 0 0 0 1px rgba(193, 181, 201, .6), 0 10px 34px rgba(157, 130, 182, .45); }
[data-theme="dark"] .btn-ghost { --b-ink: var(--silver); }
[data-theme="dark"] .btn-ghost:hover { --b-bg: rgba(193, 181, 201, .1); }
[data-theme="dark"] .chip-btn { background: transparent; border-color: rgba(193, 181, 201, .3); }
[data-theme="dark"] .cake-card, [data-theme="dark"] .fb-col, [data-theme="dark"] .event, [data-theme="dark"] .cr-form, [data-theme="dark"] .cr-sent, [data-theme="dark"] .map-card, [data-theme="dark"] .quote, [data-theme="dark"] .cr-custom {
  background: linear-gradient(180deg, rgba(33, 26, 43, .92), rgba(18, 14, 26, .92)); border: 1px solid rgba(193, 181, 201, .2);
}
[data-theme="dark"] .cake-card.is-featured, [data-theme="dark"] .event.is-next, [data-theme="dark"] .fb-more { background: linear-gradient(160deg, #60466E, #3A2A47); border-color: rgba(193, 181, 201, .4); }
[data-theme="dark"] .cake-card.is-featured::before, [data-theme="dark"] .next-pill { background: var(--silver); color: #090810; }
[data-theme="dark"] .event.is-next .event-date { background: rgba(9, 8, 16, .5); }
[data-theme="dark"] .event.is-next .event-date .d { color: #fff; }
[data-theme="dark"] .cake-icon, [data-theme="dark"] .tc-face img, [data-theme="dark"] .cart-empty img { filter: brightness(1.6) saturate(.4) drop-shadow(0 0 8px rgba(157, 130, 182, .4)); }
[data-theme="dark"] .fb-list li { background: transparent; border-color: rgba(193, 181, 201, .3); }
[data-theme="dark"] .quote::before { background: rgba(193, 181, 201, .35); }
[data-theme="dark"] .quote blockquote { color: var(--ink); }
[data-theme="dark"] .tag { color: var(--silver); border: 1px solid rgba(193, 181, 201, .25); }
[data-theme="dark"] .stock-note.is-low { background: #3A2A47; color: #F1D7F0; }
[data-theme="dark"] .stock-alert, [data-theme="dark"] .ci-left { background: #3A2A47; color: #F1D7F0; }
[data-theme="dark"] .ci-left { background: none; }
[data-theme="dark"] .cr-error-summary { background: #2A1420; color: #F6C9D6; border-color: #E07B9A; }
[data-theme="dark"] .req, [data-theme="dark"] .field-error { color: #F08FAD; }
[data-theme="dark"] .field [aria-invalid="true"] { border-color: #F08FAD; }
[data-theme="dark"] .type-card input:checked + .tc-face { background: #2A2036; border-color: var(--silver); box-shadow: 0 0 0 3px rgba(193, 181, 201, .25), 0 0 24px rgba(157, 130, 182, .35); }
[data-theme="dark"] :focus-visible { outline-color: #D9C6EA; }

/* cookies and photos glow faintly, like they're lit by the moon */
[data-theme="dark"] .fm-halo { background: var(--halo); box-shadow: 0 0 60px rgba(96, 70, 110, .45), inset 0 0 0 1px rgba(193, 181, 201, .18); border-radius: 50%; }
[data-theme="dark"] .fm-halo::after { border-color: rgba(193, 181, 201, .35); }
[data-theme="dark"] .fm-cookie { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)) drop-shadow(0 0 18px rgba(157, 130, 182, .25)); }
[data-theme="dark"] .fm-shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); }
[data-theme="dark"] .fm-inside, [data-theme="dark"] .fm-cookie.is-photo { box-shadow: 0 0 0 4px #2A2036, 0 0 0 5px rgba(193, 181, 201, .4), var(--shadow-md); }
[data-theme="dark"] .showcase { background: transparent; }
[data-theme="dark"] .showcase-stage::before { background: radial-gradient(36% 46% at 50% 58%, rgba(157, 130, 182, .28), transparent 70%), radial-gradient(70% 60% at 50% 62%, rgba(33, 26, 43, .9), transparent 75%); }
[data-theme="dark"] .sc-cookie { filter: drop-shadow(0 26px 24px rgba(0, 0, 0, .6)) drop-shadow(0 0 24px rgba(157, 130, 182, .3)); }
[data-theme="dark"] .sc-plinth { box-shadow: inset 0 1px 0 rgba(193, 181, 201, .35), 0 20px 40px -10px rgba(0, 0, 0, .8); }
[data-theme="dark"] .showcase-dots li { border-color: var(--silver); }
[data-theme="dark"] .showcase-dots li.is-on { background: var(--silver); }
[data-theme="dark"] .cake-shot figure, [data-theme="dark"] .insta-tile, [data-theme="dark"] .map-frame { box-shadow: 0 0 0 1px rgba(193, 181, 201, .25), var(--shadow-md); }
[data-theme="dark"] .cake-shot figcaption { background: rgba(9, 8, 16, .85); color: var(--ink); }
[data-theme="dark"] .map-frame { box-shadow: 0 0 0 6px #120E1A, 0 0 0 7px rgba(193, 181, 201, .4), var(--shadow-md); }
[data-theme="dark"] .map-frame iframe { filter: invert(.9) hue-rotate(185deg) saturate(.55) brightness(.9) contrast(.95); }
[data-theme="dark"] .map-photo { background: #E9E2EE; }
[data-theme="dark"] .portrait-frame { box-shadow: 0 0 0 8px #120E1A, 0 0 0 9px rgba(193, 181, 201, .45), 0 0 60px rgba(96, 70, 110, .5); }
[data-theme="dark"] .portrait-frame::after { background: radial-gradient(70% 60% at 50% 55%, rgba(193, 181, 201, .2), rgba(9, 8, 16, .45) 85%); }
[data-theme="dark"] .years-badge { color: #090810; }
[data-theme="dark"] .years-badge::before { background: var(--silver); }
[data-theme="dark"] .chips li { background: transparent; border-color: rgba(193, 181, 201, .3); }
[data-theme="dark"] .ia-blob-1 { background: radial-gradient(circle at 40% 35%, #3A2A47, #211A2B 70%); box-shadow: 0 0 80px rgba(96, 70, 110, .5); }
[data-theme="dark"] .ia-blob-2 { background: rgba(193, 181, 201, .12); }
[data-theme="dark"] .insta-handle { color: var(--silver); }

/* footer, drawer, toast, floating button */
[data-theme="dark"] .site-footer { background: #050409; border-top: 1px solid rgba(193, 181, 201, .15); }
[data-theme="dark"] .footer-pattern { opacity: .25; }
[data-theme="dark"] .footer-tag { color: var(--silver); }
[data-theme="dark"] .drawer-head { background: #120E1A; }
[data-theme="dark"] .cart-drawer { box-shadow: -20px 0 60px rgba(0, 0, 0, .7), -1px 0 0 rgba(193, 181, 201, .2); }
[data-theme="dark"] .cart-drawer::backdrop { background: rgba(5, 4, 9, .7); }
[data-theme="dark"] .toast { border: 1px solid rgba(193, 181, 201, .25); }
[data-theme="dark"] .dm-fab { box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 0 3px rgba(193, 181, 201, .4); }
[data-theme="dark"] .dm-heart { color: #E6B8D8; }
[data-theme="dark"] .order-text { color: var(--ink); }
[data-theme="dark"] .sent-badge { color: #090810; background: var(--silver); }
[data-theme="dark"] .skip-link { color: var(--on-accent); }

@media (prefers-reduced-motion: reduce) {
  .sc-cookie, .ia-bit svg, .stop-dot { animation: none; }
  ::view-transition-new(root) { animation: none; }
}

/* the heading wipe also reveals the silver ornament under it */
.js .section-head.wand-ready h2 { clip-path: inset(-20% 100% -140% -2%); }
.js .section-head.wand-go h2 { clip-path: inset(-20% -2% -140% -2%); }
@media (max-width: 760px) {
  [data-theme="dark"] .hero {
    background:
      radial-gradient(circle at 82% 30%, rgba(236, 230, 241, .95) 0 24px, rgba(193, 181, 201, .35) 26px, rgba(96, 70, 110, .18) 70px, transparent 160px),
      radial-gradient(60% 50% at 50% 100%, rgba(96, 70, 110, .55), transparent 70%),
      linear-gradient(180deg, #050409 0%, #120E1A 55%, #211A2B 100%);
  }
}
