/* SugarPlumJelly Miami: every style for the website in one file (v15 joined the six older files, same order). */

/* ===== Base: colors, type, layout, every section ===== */
/* =====================================================================
   SugarPlumJelly Miami — styles
   ===================================================================== */

@font-face {
  font-family: "Gambarino";
  src: url("../assets/fonts/Gambarino-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette */
  --fantasy: #FCF5E8;      /* light beige */
  --fantasy-2: #F6EBD6;
  --lemongrass: #8AA183;   /* green */
  --grape: #6A3D5E;        /* purple */
  --moon-mist: #D5E3AE;    /* light green */
  --lilac: #8F76A9;        /* light purple */
  --lilac-soft: #E9E1F0;
  --baltic: #3C1C32;       /* dark purple */

  /* Semantic tokens */
  --bg: var(--fantasy);
  --surface: #FFFBF3;
  --ink: var(--baltic);
  --ink-soft: #5B3F52;
  --accent: var(--grape);
  --on-accent: var(--fantasy);   /* text on accent / dark fills */
  --deep: var(--baltic);         /* darkest fill: footer, toast */
  --chip-bg: var(--moon-mist);   /* little labels and badges */
  --field-bg: #fff;
  --field-line: rgba(60, 28, 50, .22);
  --paper: #fffdf6;
  --accent-ink: var(--on-accent);
  --line: rgba(60, 28, 50, .14);
  --focus: var(--lilac);

  --font-display: "Gambarino", "Cormorant Garamond", Georgia, serif;
  --font-accent: "Cormorant Garamond", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --arch: 999px 999px 22px 22px;
  --shadow-sm: 0 2px 6px rgba(60, 28, 50, .06), 0 8px 18px rgba(60, 28, 50, .06);
  --shadow-md: 0 6px 14px rgba(60, 28, 50, .08), 0 22px 44px rgba(60, 28, 50, .12);
  --shadow-glow: 0 0 0 1px rgba(143, 118, 169, .25), 0 18px 50px rgba(106, 61, 94, .25);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.25, 1, .5, 1);   /* calm settle, no overshoot (everyday motion) */
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1); /* overshoot: only when something was thrown */
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 700ms;

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);

  --z-header: 40;
  --z-fab: 50;
  --z-toast: 60;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h2 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
h2 em, h1 em { font-family: var(--font-accent); font-style: italic; font-weight: 600; color: var(--grape); letter-spacing: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.container { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 12px; text-decoration: none; transition: top var(--t-fast); }
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grape);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 10px; height: 10px;
  background: var(--lemongrass);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--accent); --b-ink: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.5em;
  border-radius: 999px; border: 2px solid transparent;
  background: var(--b-bg); color: var(--b-ink);
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-med) var(--ease-out), background-color var(--t-med);
  touch-action: manipulation;
  position: relative; isolation: isolate;
}
.btn svg { font-size: 1.15em; }
.btn-primary { box-shadow: 0 6px 20px rgba(106, 61, 94, .28); }
.btn-primary:hover { background: var(--deep); box-shadow: 0 10px 28px rgba(60, 28, 50, .35); transform: translateY(-2px); }
.btn-primary:hover svg use[href="#i-arrow"] { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-ghost { --b-bg: transparent; --b-ink: var(--grape); border-color: currentColor; }
.btn-ghost:hover { --b-bg: var(--lilac-soft); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.link-btn { background: none; border: 0; color: var(--grape); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px; margin-top: 4px; }

.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: transparent; color: var(--baltic); cursor: pointer;
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.icon-btn svg { font-size: 1.5rem; }
.icon-btn:hover { background: var(--lilac-soft); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  transition: background-color var(--t-med), box-shadow var(--t-med), backdrop-filter var(--t-med);
}
.site-header.is-scrolled {
  background: rgba(252, 245, 232, .86);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(60, 28, 50, .06);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; margin-right: auto; border-radius: 8px; }
.brand img { height: 46px; width: auto; transition: transform var(--t-med) var(--ease-spring); }
.brand:hover img { transform: rotate(-2deg) scale(1.03); }
.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; font-weight: 500; border-radius: 999px; position: relative;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.primary-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 6px; height: 6px;
  background: var(--lilac); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  transform: translateX(-50%) scale(0); transition: transform var(--t-med) var(--ease-spring);
}
.primary-nav a:hover { color: var(--grape); }
.primary-nav a:hover::after, .primary-nav a[aria-current="true"]::after { transform: translateX(-50%) scale(1.6); }
.primary-nav a[aria-current="true"] { color: var(--grape); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 700;
  transform: scale(0); transition: transform var(--t-med) var(--ease-bounce);
}
.cart-count.has-items { transform: scale(1); }
.cart-toggle.bump { animation: bump 500ms var(--ease-bounce); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95) rotate(4deg); } 100% { transform: scale(1); } }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .primary-nav {
    position: absolute; top: calc(var(--header-h) - 6px); left: var(--gutter); right: var(--gutter);
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-md);
    padding: 10px; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top right;
    transition: opacity var(--t-fast), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav a { width: 100%; min-height: 48px; font-size: 1.1rem; }
  .primary-nav a::after { left: auto; right: 18px; bottom: 50%; transform: translateY(50%) scale(0); }
  .primary-nav a:hover::after { transform: translateY(50%) scale(1.6); }
  .brand img { height: 38px; }
}

/* ---------- Hero: cookie burst ---------- */
.hero {
  --px: 0; --py: 0;                     /* pointer parallax, -0.5..0.5 (set by JS) */
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(18px, 4vw, 40px));
  padding-bottom: clamp(70px, 9vw, 120px);
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column; justify-content: center;
  color: var(--on-accent);
  background:
    radial-gradient(42% 46% at 50% 46%, rgba(213, 227, 174, .28), transparent 70%),
    radial-gradient(70% 70% at 50% 42%, #A48DC0 0%, var(--lilac) 32%, var(--grape) 72%, var(--baltic) 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero-stage { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; }
.hero-eyebrow { color: var(--moon-mist); }
.hero-eyebrow::before, .hero-eyebrow::after { background: var(--chip-bg); }

.burst-wrap { position: relative; width: 100%; max-width: 1180px; margin: clamp(6px, 2vw, 18px) auto 0; }
.burst-title {
  position: relative; z-index: 1;
  display: grid; justify-items: center;
  font-size: clamp(3.6rem, 13.5vw, 11.5rem);
  line-height: .86; letter-spacing: -.01em;
  color: var(--on-accent);
  text-shadow: 0 6px 0 rgba(60, 28, 50, .18), 0 24px 60px rgba(60, 28, 50, .35);
}
.burst-title .bt { display: block; }
.burst-title .bt-1 { justify-self: start; margin-left: 4%; }
.burst-title .bt-2 { font-size: 1.04em; }
.burst-title .bt-2 em { color: var(--moon-mist); font-weight: 600; }

/* cookie layer: .ck (position) > .ck-enter (entrance) > .ck-move (parallax/scroll) > .ck-float (idle) > img */
.cookie-burst { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ck { position: absolute; width: var(--w); left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.ck-move {
  transform: translate3d(calc(var(--px) * var(--depth) * 1px), calc(var(--py) * var(--depth) * 1px + var(--sy, 0px)), 0) rotate(var(--sr, 0deg));
  transition: transform 700ms var(--ease-out);
  will-change: transform;
}
.ck-float { animation: ck-float var(--dur, 6s) ease-in-out var(--delay, 0s) infinite; will-change: transform; }
.ck-shadow { position: absolute; left: 12%; right: 12%; bottom: -10%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(30, 10, 25, .38), transparent); filter: blur(2px); }
.ck img { position: relative; width: 100%; height: auto; display: block; transform: rotate(var(--r, 0deg)); }
@keyframes ck-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(4deg); } }
.crumb {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: calc(var(--s) * .8);
  background: var(--c); border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .15);
  animation: crumb var(--dur) ease-in-out var(--delay) infinite;
}
@keyframes crumb { 0%, 100% { transform: translate(-50%, -50%) rotate(0); } 50% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(160deg); } }

.pill {
  position: absolute; left: var(--x); top: var(--y); z-index: 3;
  font-family: var(--font-body); font-weight: 800; font-size: clamp(.7rem, 1.3vw, 1rem); letter-spacing: .08em; text-transform: uppercase;
  padding: .55em 1.1em; border-radius: 999px; white-space: nowrap;
  background: var(--bg-c); color: var(--fg-c);
  box-shadow: 0 8px 20px rgba(30, 10, 25, .25);
  transform: translate(calc(-50% + var(--px) * 26px), calc(-50% + var(--py) * 26px)) rotate(var(--r));
  transition: transform 700ms var(--ease-out), opacity 500ms;
}
.pill-in { display: inline-block; animation: pill-bob 4.5s ease-in-out var(--delay, 0s) infinite; }
@keyframes pill-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.order-badge {
  position: absolute; z-index: 4; right: 2%; top: 2%;
  width: clamp(92px, 11vw, 132px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
  background: var(--chip-bg); color: var(--baltic);
  box-shadow: 0 12px 30px rgba(30, 10, 25, .3);
  transition: transform var(--t-med) var(--ease-spring), opacity 600ms;
}
.order-badge:hover { transform: scale(1.08) rotate(-6deg); }

.hero-foot { position: relative; z-index: 3; margin-top: clamp(22px, 3vw, 36px); display: grid; justify-items: center; gap: 22px; }
.hero-lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 46ch; color: rgba(252, 245, 232, .94); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-cream { --b-bg: var(--fantasy); --b-ink: var(--grape); box-shadow: 0 10px 26px rgba(30, 10, 25, .3); }
.btn-cream:hover { --b-bg: var(--chip-bg); --b-ink: var(--baltic); transform: translateY(-2px); }
.btn-ghost-cream { --b-bg: transparent; --b-ink: var(--on-accent); border-color: rgba(252, 245, 232, .7); }
.btn-ghost-cream:hover { --b-bg: rgba(252, 245, 232, .14); transform: translateY(-2px); }

.hero-sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.sparkle { position: absolute; color: var(--moon-mist); animation: twinkle 3.6s ease-in-out infinite; }
.s1 { width: 18px; height: 18px; left: 7%; top: 24%; }
.s2 { width: 12px; height: 12px; left: 44%; top: 13%; color: var(--on-accent); animation-delay: -1s; }
.s3 { width: 22px; height: 22px; left: 88%; top: 62%; animation-delay: -2.2s; }
.s4 { width: 14px; height: 14px; right: 9%; top: 20%; color: var(--on-accent); animation-delay: -.6s; }
.s5 { width: 10px; height: 10px; left: 18%; bottom: 22%; animation-delay: -1.7s; }
.s6 { width: 16px; height: 16px; left: 62%; top: 9%; color: #F3D58A; animation-delay: -3s; }
.moon { position: absolute; color: rgba(252, 245, 232, .12); }
.m1 { width: 140px; height: 140px; left: -36px; top: 30%; transform: rotate(-20deg); }
.m2 { width: 90px; height: 90px; right: 3%; bottom: 16%; transform: rotate(150deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .25; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, -6deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, -6deg) * -1)); } }

/* scalloped edge into the next section */
.scallop {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 44px; z-index: 3;
  background: var(--surface);
  -webkit-mask: radial-gradient(circle at 36px 0, transparent 35px, #000 36px) 0 0 / 72px 44px repeat-x;
  mask: radial-gradient(circle at 36px 0, transparent 35px, #000 36px) 0 0 / 72px 44px repeat-x;
}

/* Entrance (is-loaded added by JS once fonts are ready) */
.js .burst-title .bt { opacity: 0; transform: translateY(40%) scale(.9); }
.js .hero-eyebrow, .js .hero-foot { opacity: 0; transform: translateY(18px); }
.js .order-badge, .js .pill { opacity: 0; }
.js.is-loaded .burst-title .bt { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-spring); }
.js.is-loaded .burst-title .bt-2 { transition-delay: 120ms; }

.js.is-loaded .hero-eyebrow { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js.is-loaded .hero-foot { opacity: 1; transform: none; transition: opacity 800ms var(--ease-out) 900ms, transform 800ms var(--ease-out) 900ms; }
.js.is-loaded .order-badge { opacity: 1; transition-delay: 1100ms; }
.js.is-loaded .pill { opacity: 1; transition-delay: var(--pd, 1000ms); }

@media (max-width: 760px) {
  .hero { min-height: auto; }
  .burst-title { font-size: clamp(3.3rem, 17vw, 5.4rem); line-height: .92; }
  .burst-title .bt-1 { margin-left: 0; }
  
  .burst-wrap { padding-block: 8px 210px; }
  .order-badge { display: none; }
  .m1 { width: 90px; height: 90px; }
  .scallop { height: 30px; -webkit-mask: radial-gradient(circle at 24px 0, transparent 23px, #000 24px) 0 0 / 48px 30px repeat-x; mask: radial-gradient(circle at 24px 0, transparent 23px, #000 24px) 0 0 / 48px 30px repeat-x; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--surface); padding: 6px 0 28px; overflow: hidden; }
.marquee-track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--lilac);
  animation: marquee 38s linear infinite;
}
.marquee-track svg { width: .6em; height: .6em; color: var(--lemongrass); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); display: grid; gap: 14px; justify-items: center; }
.section-head.left { text-align: left; justify-items: start; margin-inline: 0; }
.section-lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 56ch; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Menu ---------- */
.menu { background: var(--surface); padding-top: clamp(40px, 6vw, 72px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.filters:empty { display: none; }
.chip-btn {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--fantasy); cursor: pointer; font-weight: 600; color: var(--ink-soft);
  transition: all var(--t-fast);
}
.chip-btn:hover { border-color: var(--lilac); color: var(--grape); }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.card {
  --rx: 0deg; --ry: 0deg;
  position: relative;
  background: var(--fantasy);
  border-radius: var(--radius);
  padding: 14px 14px 20px;
  box-shadow: var(--shadow-sm);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
  display: flex; flex-direction: column;
}
.card:hover, .card:focus-within { box-shadow: var(--shadow-glow); }

.card:hover .img-main { transform: scale(1.06); }

@keyframes pop { 0% { opacity: 0; transform: scale(0) rotate(0); } 40% { opacity: 1; transform: scale(1.2) rotate(45deg); } 100% { opacity: 0; transform: scale(.6) rotate(90deg) translateY(-10px); } }

.tag { background: var(--chip-bg); color: var(--baltic); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }

.card-actions { margin-top: 14px; min-height: 48px; display: flex; align-items: center; }
.add-btn { width: 100%; }
.stepper { display: flex; align-items: center; justify-content: space-between; width: 100%; background: var(--lilac-soft); border-radius: 999px; padding: 4px; }
.stepper .icon-btn { width: 44px; height: 44px; background: var(--surface); box-shadow: var(--shadow-sm); }
.stepper .icon-btn svg { font-size: 1.15rem; }
.stepper output { font-weight: 700; font-size: 1.05rem; min-width: 7ch; text-align: center; }

.menu-note { margin-top: 36px; display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--ink-soft); text-align: center; }
.menu-note svg { color: var(--lilac); font-size: 1.2rem; }
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* Flying cookie into cart */
.fly { position: fixed; z-index: 70; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: var(--shadow-md); }

/* ---------- Cakes ---------- */
.cakes { background: linear-gradient(180deg, var(--surface), var(--lilac-soft) 40%, var(--lilac-soft) 70%, var(--fantasy)); overflow: hidden; }
.cakes-bg { position: absolute; inset: 0; background: url("../assets/img/brand/pattern-light.webp") center / 540px auto repeat; opacity: .35; -webkit-mask: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); pointer-events: none; }
.cakes .container { position: relative; }

/* ---------- Sweet Spot cart ---------- */
.sweet-spot { background: var(--fantasy); }
.spot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

.events-title { font-size: 1.6rem; margin: 6px 0 16px; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.event {
  display: grid; grid-template-columns: 78px 1fr; gap: 18px; align-items: center;
  background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent; transition: transform var(--t-med) var(--ease-out), border-color var(--t-med);
}
.event:hover { transform: translateX(6px); border-color: rgba(143, 118, 169, .4); }
.event-date { display: grid; place-items: center; text-align: center; background: var(--lilac-soft); border-radius: 16px; padding: 10px 4px; line-height: 1.05; }
.event-date .m { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--grape); }
.event-date .d { font-family: var(--font-display); font-size: 2rem; color: var(--baltic); }
.event-date .w { font-size: .75rem; color: var(--ink-soft); }
.event h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin: 0 0 4px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-soft); font-size: .93rem; }
.event-meta span, .event-meta a { display: inline-flex; align-items: center; gap: 5px; }
.event-meta svg { color: var(--lilac); }
.event-meta a { color: var(--grape); font-weight: 600; text-underline-offset: 3px; min-height: 32px; }
.event-note { font-size: .9rem; color: var(--ink-soft); margin-top: 2px; font-style: italic; font-family: var(--font-accent); font-size: 1.05rem; }
.event.is-next { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-glow); }
.event.is-next .event-date { background: var(--chip-bg); }
.event.is-next .event-meta, .event.is-next .event-note { color: rgba(252, 245, 232, .82); }
.event.is-next .event-meta svg { color: var(--moon-mist); }
.event.is-next .event-meta a { color: var(--moon-mist); }
.next-pill { display: inline-block; font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--chip-bg); color: var(--baltic); padding: 3px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; position: relative; }
.next-pill::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(213, 227, 174, .8); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(213, 227, 174, .7); } 100% { box-shadow: 0 0 0 10px rgba(213, 227, 174, 0); } }
.events-empty { background: var(--surface); border-radius: var(--radius); padding: 22px; color: var(--ink-soft); }
.events-empty a { color: var(--grape); font-weight: 600; }
@media (max-width: 860px) { .spot-grid { grid-template-columns: 1fr; }  }

/* ---------- About ---------- */
.about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-portrait { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.portrait-frame { aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; background: url("../assets/img/brand/pattern-dark.webp") center / 360px auto; box-shadow: 0 0 0 10px var(--fantasy), 0 0 0 12px rgba(143, 118, 169, .35), var(--shadow-md); display: grid; place-items: center; }
.portrait-frame img.photo { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame img.badge { width: 62%; background: var(--fantasy); border-radius: 50%; padding: 6%; box-shadow: var(--shadow-md); animation: spin 40s linear infinite; }
.years-badge { position: absolute; right: -6%; bottom: 8%; width: 132px; height: 132px; display: grid; place-content: center; text-align: center; color: var(--baltic); }
.years-badge::before { content: ""; position: absolute; inset: 0; background: var(--chip-bg); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 2c6 0 9 6 14 8s11 0 15 4 2 10 4 15 8 8 8 14-6 9-8 14 0 11-4 15-10 2-15 4-8 8-14 8-9-6-14-8-11 0-15-4-2-10-4-15-8-8-8-14 6-9 8-14 0-11 4-15 10-2 15-4 8-8 14-8Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 2c6 0 9 6 14 8s11 0 15 4 2 10 4 15 8 8 8 14-6 9-8 14 0 11-4 15-10 2-15 4-8 8-14 8-9-6-14-8-11 0-15-4-2-10-4-15-8-8-8-14 6-9 8-14 0-11 4-15 10-2 15-4 8-8 14-8Z'/%3E%3C/svg%3E") center / contain no-repeat; animation: spin 24s linear infinite; z-index: -1; }
.years-badge { isolation: isolate; }
.years-badge strong { font-family: var(--font-display); font-weight: 400; font-size: 2.8rem; line-height: .9; }
.years-badge span { font-size: .78rem; font-weight: 600; line-height: 1.2; }
.about-text { display: grid; gap: 16px; font-size: 1.1rem; color: var(--ink-soft); max-width: 58ch; }
.about-text p:last-child { font-family: var(--font-accent); font-style: italic; font-size: 1.4rem; color: var(--grape); line-height: 1.35; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--fantasy); border: 1.5px solid rgba(143, 118, 169, .35); padding: 7px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .years-badge { right: 0; } }

/* ---------- Kind words ---------- */
.kind-words { background: radial-gradient(60% 60% at 50% 0%, rgba(213, 227, 174, .45), transparent 70%), var(--fantasy); }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); }
.quote {
  position: relative; background: var(--surface); border-radius: var(--radius); padding: 44px 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.quote:nth-child(3n+1) { transform: rotate(-1.2deg); }
.quote:nth-child(3n+3) { transform: rotate(1deg); }
.quote:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-glow); }
.quote::before { content: "“"; position: absolute; top: -10px; left: 22px; font-family: var(--font-accent); font-size: 6rem; line-height: 1; color: var(--lilac); }
.quote blockquote { margin: 0; font-family: var(--font-accent); font-style: italic; font-weight: 500; font-size: 1.35rem; line-height: 1.4; color: var(--baltic); }
.quote figcaption { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.quote figcaption svg { color: var(--lemongrass); }
.quote .handle { color: var(--ink-soft); font-weight: 400; }
.sample-tag { margin-left: auto; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); border: 1px dashed var(--lilac); padding: 2px 8px; border-radius: 999px; }
@media (max-width: 900px) {
  .quotes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 4px 24px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { scroll-snap-align: center; }
}

/* ---------- Instagram ---------- */
.insta { background: var(--surface); }
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.4vw, 16px); }
.insta-tile { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--lilac-soft); }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.insta-tile::after { content: ""; position: absolute; inset: 0; background: rgba(60, 28, 50, .45); opacity: 0; transition: opacity var(--t-med); }
.insta-tile svg { position: absolute; z-index: 2; left: 50%; top: 50%; font-size: 2.2rem; color: var(--on-accent); transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: all var(--t-med) var(--ease-spring); }
.insta-tile:hover img { transform: scale(1.08); }
.insta-tile:hover::after { opacity: 1; }
.insta-tile:hover svg { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (max-width: 640px) { .insta-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-accent); position: relative; }
.footer-pattern { height: 64px; background: url("../assets/img/brand/pattern-dark.webp") center / 360px auto repeat-x; opacity: .9; }
.footer-inner { padding-block: 56px 120px; display: grid; justify-items: center; gap: 18px; text-align: center; }
.footer-logo { width: min(300px, 80%); height: auto; }
.footer-tag { font-family: var(--font-accent); font-style: italic; font-size: 1.3rem; color: var(--moon-mist); }
.footer-links { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; border-radius: 999px; transition: background-color var(--t-fast); }
.footer-links a:hover { background: rgba(252, 245, 232, .12); }
.footer-small { font-size: .88rem; color: rgba(252, 245, 232, .7); }

/* ---------- Floating DM button (heartbeat) ---------- */
.dm-fab {
  position: fixed; z-index: var(--z-fab);
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 18px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600;
  box-shadow: 0 10px 30px rgba(60, 28, 50, .35), 0 0 0 4px rgba(252, 245, 232, .9);
  isolation: isolate;
  transition: background-color var(--t-med), box-shadow var(--t-med), transform var(--t-med) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.dm-fab:hover, .dm-fab:focus-visible { background: var(--deep); }
.dm-heart { font-size: 1.45rem; color: #F3B6CF; transform-origin: center; }
.dm-fab.is-beating { animation: fab-beat 1.1s ease-in-out infinite; }
.dm-fab.is-beating .dm-heart { animation: heartbeat 1.1s ease-in-out infinite; }
.dm-fab.idle-beat .dm-heart { animation: heartbeat 1.1s ease-in-out 2; }
.dm-rings { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.dm-ring {
  position: absolute; left: var(--x); top: var(--y);
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 2px solid var(--lilac);
  background: radial-gradient(circle, rgba(143, 118, 169, .28), transparent 70%);
  animation: ring-out 1.2s cubic-bezier(.2, .7, .3, 1) forwards;
}
.dm-ring.dub { border-color: #F3B6CF; animation-duration: 1.05s; }
@keyframes ring-out { 0% { transform: scale(.3); opacity: .95; } 100% { transform: scale(7); opacity: 0; } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.28); } 28% { transform: scale(1); } 42% { transform: scale(1.2); } 60% { transform: scale(1); } }
@keyframes fab-beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.06); } 28% { transform: scale(1); } 42% { transform: scale(1.04); } 60% { transform: scale(1); } }
@media (max-width: 420px) { .dm-fab { padding: 0 18px 0 16px; } }

/* ---------- Cart drawer ---------- */
.cart-drawer {
  margin: 0 0 0 auto; padding: 0; border: 0;
  width: min(460px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh;
  background: var(--surface); color: var(--ink);
  box-shadow: -20px 0 60px rgba(60, 28, 50, .25);
}
.cart-drawer { touch-action: pan-y; }  /* sideways swipes go to the drawer, up/down still scrolls */
.cart-drawer.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.cart-drawer::backdrop { background: rgba(60, 28, 50, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: var(--scrim, 1); }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 24px; border-bottom: 1px solid var(--line); background: var(--fantasy); }
.drawer-head h2 { font-size: 2rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px 32px; overscroll-behavior: contain; }
.cart-items { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-sm); background: var(--fantasy); }
.cart-item img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.cart-item .ci-name { font-weight: 600; line-height: 1.25; }
.cart-item .ci-price { color: var(--ink-soft); font-size: .9rem; }
.cart-item .stepper { width: auto; gap: 2px; padding: 3px; }
.cart-item .stepper .icon-btn { width: 36px; height: 36px; }
.cart-item .stepper output { min-width: 2.2ch; }
.cart-empty { text-align: center; padding: 40px 10px; display: grid; justify-items: center; gap: 16px; color: var(--ink-soft); }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px dashed rgba(143, 118, 169, .5); margin-top: 4px; }
.subtotal strong { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; color: var(--grape); }
.form-hint { font-size: .92rem; color: var(--ink-soft); margin-bottom: 14px; }
.form-hint.small { font-size: .85rem; margin: 10px 0 0; text-align: center; }
.order-form { display: grid; gap: 4px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--field-line); background: var(--field-bg); font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(143, 118, 169, .22); }
.field [aria-invalid="true"] { border-color: #A12B4F; }
.field-error { color: #A12B4F; font-size: .88rem; font-weight: 500; }
.sent { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sent-badge { width: 72px; height: 72px; border-radius: 50%; background: var(--chip-bg); display: grid; place-items: center; color: var(--baltic); font-size: 2.2rem; animation: pop-in 600ms var(--ease-spring); margin-top: 10px; }
@keyframes pop-in { from { transform: scale(0) rotate(-30deg); } to { transform: none; } }
.sent h3 { font-size: 2rem; }
.sent h3:focus { outline: none; }
.order-text { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; border-radius: 12px; border: 1.5px solid var(--line); padding: 12px; background: var(--fantasy); resize: none; }
.sent-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } .drawer-body { padding-inline: 16px; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: var(--z-toast); left: 50%; bottom: 92px;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--deep); color: var(--on-accent); padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-md);
  font-weight: 500; max-width: calc(100% - 32px); text-align: center;
  transition: opacity var(--t-med), transform var(--t-med) var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .card { transform: none !important; }
  .marquee-track { animation: none; }
  
}

/* =====================================================================
   v2 additions: cut-out cookie cards, photo strip, 3D cart, baker photo,
   fairy glitter
   ===================================================================== */

/* ---------- Cut-out cookie cards ---------- */

/* on cut-out cards the hover keeps the floating cookie; the inside photo is a tap/click away */

/* ---------- Baker photo (background removed) ---------- */
.portrait-frame { position: relative; }
.portrait-frame::after { /* soften the pattern so she pops */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 55%, rgba(252, 245, 232, .55), rgba(106, 61, 94, .25) 80%);
  pointer-events: none;
}
.portrait-frame img.photo { position: absolute; z-index: 1; left: 52%; bottom: 0; width: 94%; height: auto; max-width: none; transform: translateX(-50%); object-fit: contain; }
.portrait-sparkles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.portrait-sparkles svg { position: absolute; color: #F3D58A; animation: twinkle 2.8s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255, 246, 216, .9)); }
.portrait-sparkles svg:nth-child(1) { width: 22px; height: 22px; right: 10%; top: 40%; }
.portrait-sparkles svg:nth-child(2) { width: 14px; height: 14px; right: 26%; top: 34%; animation-delay: -.9s; color: var(--on-accent); }
.portrait-sparkles svg:nth-child(3) { width: 16px; height: 16px; right: 6%; top: 56%; animation-delay: -1.6s; color: var(--moon-mist); }
.portrait-sparkles svg:nth-child(4) { width: 12px; height: 12px; left: 12%; top: 22%; animation-delay: -2.2s; color: var(--on-accent); }

/* ---------- Fairy glitter ---------- */
.glitter { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 45; pointer-events: none; }
.js .section-head.wand-ready h2 { clip-path: inset(-20% 100% -20% -2%); }
.js .section-head.wand-go h2 { clip-path: inset(-20% -2% -20% -2%); transition: clip-path 1000ms cubic-bezier(.45, .05, .25, 1); }

@media (prefers-reduced-motion: reduce) {
  .glitter { display: none; }
  .js .section-head.wand-ready h2 { clip-path: none; }
  .ck-move { transform: none !important; }
}

/* Header sitting on the purple hero (before scrolling) */
.brand { position: relative; }
.brand .logo-light { position: absolute; inset: 0; opacity: 0; transition: opacity var(--t-med); }
.brand .logo-dark { transition: opacity var(--t-med); }
.site-header:not(.is-scrolled) .brand .logo-light { opacity: 1; }
.site-header:not(.is-scrolled) .brand .logo-dark { opacity: 0; }
.site-header:not(.is-scrolled) .icon-btn { color: var(--on-accent); }
.site-header:not(.is-scrolled) .icon-btn:hover { background: rgba(252, 245, 232, .14); }
@media (min-width: 901px) {
  .site-header:not(.is-scrolled) .primary-nav a { color: var(--on-accent); }
  .site-header:not(.is-scrolled) .primary-nav a::after { background: var(--chip-bg); }
}

.years-badge { z-index: 3; }

/* =====================================================================
   v2 fixes
   ===================================================================== */

/* The "hidden" attribute must always win. Before this, .cart-empty
   (display:grid) stayed visible even with items in the order. */
[hidden] { display: none !important; }

/* Marquee: spacing lives on each item (not flex gap), so the duplicated
   half is exactly 50% wide and the loop restarts without a jump. */
.marquee-track { gap: 0; animation-duration: 42s; }
.marquee-track > * { margin-inline-end: 32px; }

/* Cookie cards: hover (or tap) swaps the floating cookie for its second photo */

/* cookies with only one photo just lift and turn */

/* Baker photo: fill the arch exactly, anchored to the bottom edge */
.portrait-frame img.photo { inset: 0; left: 0; bottom: 0; width: 100%; height: 100%; transform: none; object-fit: cover; object-position: 50% 100%; }

/* ---------- Cake gallery ---------- */
.cake-gallery-wrap { margin-top: clamp(48px, 7vw, 80px); }

.cake-gallery { list-style: none; margin: 0; padding: 0; columns: 4 220px; column-gap: 16px; }
.cake-shot { break-inside: avoid; margin-bottom: 16px; }
.cake-shot figure { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--lilac-soft); box-shadow: var(--shadow-sm); }
.cake-shot:nth-child(4n+1) figure { border-radius: 999px 999px 18px 18px; }
.cake-shot img { width: 100%; height: auto; display: block; transition: transform 900ms var(--ease-out); }
.cake-shot figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 7px 12px; border-radius: 12px;
  background: rgba(255, 251, 243, .94); color: var(--baltic); font-weight: 600; font-size: .9rem;
  transform: translateY(6px); opacity: .0; transition: opacity var(--t-med), transform var(--t-med) var(--ease-out);
}
.cake-shot:hover img { transform: scale(1.05); }
.cake-shot:hover figcaption, .cake-shot:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .cake-shot figcaption { opacity: 1; transform: none; } }

@media (max-width: 640px) { .cake-gallery { columns: 2; column-gap: 10px; } .cake-shot { margin-bottom: 10px; } }

/* =====================================================================
   Polish pass (from the generic-pattern audit)
   ===================================================================== */
/* 1. Eyebrows: drop the stock sparkle bullets; one small crescent instead */
.eyebrow::after { display: none; }
.eyebrow::before {
  width: 12px; height: 12px; clip-path: none; border-radius: 50%;
  background: transparent; box-shadow: inset -4px 0 0 0 currentColor; transform: rotate(-20deg);
}
.hero-eyebrow::before { box-shadow: inset -4px 0 0 0 var(--moon-mist); background: transparent; }
/* 2. Numbers that change line up */
 .subtotal strong, .stepper output, .cart-count, .event-date .d { font-variant-numeric: tabular-nums lining-nums; }
/* 3. Reviews read as handwritten notes taped up, not floating cards */
.quote { background: var(--paper); border-radius: 4px; box-shadow: 0 1px 2px rgba(60,28,50,.08), 0 12px 24px rgba(60,28,50,.08); padding-top: 38px; }
.quote::before { content: ""; top: -12px; left: 50%; width: 96px; height: 26px; margin-left: -48px; background: rgba(213, 227, 174, .8); font-size: 0; transform: rotate(-3deg); border-radius: 2px; }
.quote blockquote::before { content: "“"; font-size: 1.4em; line-height: 0; color: var(--lilac); margin-right: 2px; }
/* 4. One focus style everywhere, visible on purple and cream */
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--moon-mist); }
/* 5. Cards: a single shadow scale instead of a glow on every hover */
.card:hover, .card:focus-within { box-shadow: var(--shadow-md); }
 .quote:hover, .event:hover { box-shadow: var(--shadow-md); }

/* ===== Look and feel: showcase, dark mode, ornaments ===== */
/* =====================================================================
   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 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 5vw, 72px); }

.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; }

/* 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; }

.flavor .fm:hover .fm-inside, .flavor.show-inside .fm-inside { transform: none; opacity: 1; transition-delay: 120ms; }

 
 
 

.flavor.show-inside .fm-cookie { transform: rotate(calc(var(--tilt) - 8deg)) scale(.94); }
button.fm:focus-visible { outline-offset: -6px; border-radius: 50%; }

.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 .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); }

.stepper .icon-btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }

.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-tags { justify-content: center; }
  .fm { width: min(78vw, 300px); }
  
  .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 ---------- */

/* 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; } }

/* ---------- 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-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 { 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"] .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; }

/* 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"] .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"] .event.is-next { background: linear-gradient(160deg, #60466E, #3A2A47); border-color: rgba(193, 181, 201, .4); }
 [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"] .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"] .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%);
  }
}

/* ===== Cake request page and cookie pages ===== */
/* =====================================================================
   SugarPlumJelly Miami — v5 additions
   (cookie grid, a page for each cookie, the cake request page,
   same-shape cake photos, kind words with photos)
   ===================================================================== */

/* ---------- Cookie menu: a grid, 4 across on computers, 2 on phones ---------- */
.treat-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 44px) clamp(16px, 2.4vw, 32px); }
@media (max-width: 1024px) { .treat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .treat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; } }

.treat { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 10px; text-align: center; }
.treat .fm { width: min(100%, 220px); margin-inline: auto; cursor: pointer; text-decoration: none; }
.treat .fm-cookie { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.treat .fm-cookie.is-photo { inset: 13%; width: 74%; height: 74%; object-fit: cover; }
.treat .fm-inside { width: 44%; right: -2%; bottom: 0; box-shadow: 0 0 0 4px var(--surface), var(--shadow-md); }
 
 
 
/* hover: the halo swells softly behind the cookie */
.treat .fm:hover .fm-halo { transform: scale(1.04); }
/* one calm movement for every cookie, the same as "This week’s batch": grow a little and tilt */
.treat .fm-cookie { transition: transform 500ms var(--ease-spring), filter 500ms; }
.treat .fm:hover .fm-cookie, .treat .fm:focus-visible .fm-cookie { transform: rotate(calc(var(--tilt) - 8deg)) scale(1.06); animation: none; }
.treat .fm:hover .fm-inside { transform: none; opacity: 1; transition-delay: 120ms; }
.treat.is-soldout .fm-cookie { filter: grayscale(.6) brightness(1.05); }

.treat-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.treat .flavor-tags { justify-content: center; min-height: 0; }
.treat .tag, .treat .stock-note { font-size: .72rem; padding: 3px 9px; }
.treat-name { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.12; text-wrap: balance; }
.treat-name a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-position: 50% 100%; background-repeat: no-repeat; transition: background-size var(--t-med) var(--ease-out); }
.treat-name a:hover { background-size: 100% 1.5px; }
.treat-name a::after { /* the words area opens the cookie page too (the picture is its own link) */ content: ""; position: absolute; inset: 0; z-index: 1; }
.treat-desc { color: var(--ink-soft); font-size: .92rem; line-height: 1.45; max-width: 30ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.treat-buy { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; min-height: 54px; }
.treat-price { font-family: var(--font-display); font-size: 1.45rem; color: var(--grape); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.treat .card-actions { margin: 0; }
.treat .add-btn { width: auto; min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.treat .stepper { width: auto; min-width: 136px; gap: 4px; }
.treat .stepper output { min-width: 2.4ch; font-variant-numeric: tabular-nums; }
.treat.is-soldout .treat-price { opacity: .5; }
.js .treat.reveal { transform: translateY(28px); }
.js .treat.reveal.is-in { transform: none; }
@media (max-width: 760px) {
  .treat .fm { width: min(100%, 170px); }
  .treat-desc { font-size: .86rem; }
  .treat-buy { gap: 8px; }
  .treat-price { font-size: 1.25rem; }
  .treat .add-btn { padding: 10px 14px; }
  .treat .stepper { min-width: 0; }
}
[data-theme="dark"] .treat-name { font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.2; }
[data-theme="dark"] .treat-price { color: var(--silver); font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }

/* ---------- This week's batch: few cookies no longer float up over the line ---------- */
.showcase-stage { grid-template-rows: auto minmax(0, 1fr) auto; row-gap: 12px; }
.batch { align-items: center; align-content: center; }
.sc-item:nth-child(2) { margin-top: 0; }
.batch .sc-item:nth-child(3n+2) { transform-origin: 50% 60%; }
.batch.is-leaving .sc-item { filter: none; transform: translateY(-24px) scale(.96); }
.showcase.is-static .showcase-stage { padding-block: clamp(56px, 7vw, 88px); row-gap: clamp(20px, 3vw, 36px); }
.showcase.is-static .showcase-batches { align-self: auto; }
.showcase.is-static .batch { margin: 0; padding-top: 12px; }
.showcase.is-static .sc-cookie { width: min(100%, 240px); }
.showcase.is-static .sc-plinth { top: 58%; }

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

/* ---------- Main page: the button to the cake request page ---------- */

/* ---------- Pages other than the main one ---------- */
.sub-header .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; }
.sub-header .brand { margin: 0; justify-self: center; }
.sub-header .header-actions { justify-self: end; }
.back-link { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px 8px 10px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; background: color-mix(in srgb, var(--lilac-soft) 70%, transparent); transition: background-color var(--t-med), transform var(--t-med) var(--ease-spring); }
.back-link svg { width: 20px; height: 20px; transition: transform var(--t-med) var(--ease-spring); }
.back-link:hover { background: var(--lilac-soft); }
.back-link:hover svg { transform: translateX(-3px); }
.back-link:active { transform: scale(.97); }
@media (max-width: 640px) { .back-link .bl-long { display: none; } .sub-header .brand img { height: 32px; } }
[data-theme="dark"] .back-link { color: var(--ink); background: rgba(96, 70, 110, .35); box-shadow: inset 0 0 0 1px rgba(193, 181, 201, .2); }
[data-theme="dark"] .back-link:hover { background: rgba(96, 70, 110, .55); }

.subpage { position: relative; padding-block: clamp(14px, 2vw, 24px) clamp(64px, 9vw, 110px); min-height: 70vh; }
.subpage .cakes-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .16; }
[data-theme="dark"] .subpage .cakes-bg { opacity: .05; }
.subpage > .container { position: relative; z-index: 1; }
.crumbs ol { list-style: none; margin: 0 0 clamp(18px, 3vw, 32px); padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .55; }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--grape); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Cake request page ---------- */
.cake-request.is-page { margin-top: 0; position: relative; }
.cake-request.is-page .cr-title { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: .98; color: var(--ink); }
.cr-paused { display: grid; justify-items: center; text-align: center; gap: 14px; max-width: 560px; margin: clamp(20px, 5vw, 60px) auto 0; color: var(--ink-soft); }
.cr-paused .cr-quill { width: 110px; height: auto; color: var(--grape); }
.cr-paused .cr-title { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--ink); }
.page-gallery { margin-top: clamp(64px, 9vw, 110px); position: relative; }
.page-gallery .section-head { margin-bottom: clamp(22px, 3vw, 36px); }

/* ---------- A cookie's own page ---------- */
.cp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.cp-gallery { position: relative; display: grid; gap: 14px; border-radius: 28px; }
.cp-gallery:focus-visible { outline: 3px solid var(--grape); outline-offset: 6px; }
.cp-stage { position: relative; aspect-ratio: 1; border-radius: 28px; background: var(--paper); box-shadow: var(--shadow-sm); overflow: hidden; touch-action: pan-y; }
.cp-track { display: flex; height: 100%; }
.cp-slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; display: grid; place-items: center; }
.cp-stage.is-draggable { cursor: grab; }
.cp-stage.is-dragging { cursor: grabbing; }
.cp-stage img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.cp-nav:disabled { opacity: .35; cursor: default; transform: none; }
.cp-slide .cp-img { width: 100%; height: 100%; object-fit: cover; }
.cp-slide.is-cut { background: radial-gradient(60% 60% at 50% 55%, var(--lilac-soft), transparent 72%); }
.cp-slide.is-cut .fm-halo { inset: 14%; }
.cp-slide.is-cut .cp-img { position: relative; width: 78%; height: auto; object-fit: contain; filter: drop-shadow(0 26px 26px rgba(60, 28, 50, .22)); }
.cp-nav { position: absolute; top: calc(50% - 30px); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-md); cursor: pointer; transition: transform var(--t-med) var(--ease-spring), background-color var(--t-med); }
.cp-nav svg { width: 22px; height: 22px; }
.cp-nav:hover { transform: scale(1.06); }
.cp-nav:active { transform: scale(.95); }
.cp-prev { left: 12px; } .cp-next { right: 12px; }
.cp-count { position: absolute; top: 14px; right: 16px; z-index: 2; margin: 0; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cp-count:empty { display: none; }
.cp-thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cp-thumb { width: 72px; height: 72px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--paper); box-shadow: 0 0 0 1px rgba(106, 61, 94, .14); opacity: .7; transition: opacity var(--t-med), box-shadow var(--t-med), transform var(--t-med) var(--ease-spring); }
.cp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cp-thumb.is-cut img { object-fit: contain; padding: 6px; }
.cp-thumb:hover { opacity: 1; transform: translateY(-2px); }
.cp-thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--grape); }

.cp-info { display: grid; gap: 16px; justify-items: start; padding-top: clamp(0px, 2vw, 24px); }
.cp-name { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: .98; text-wrap: balance; }
.cp-desc { font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; margin: 0; }
.cp-buy { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 0; border-block: 1px dashed rgba(106, 61, 94, .22); width: 100%; }
.cp-price { font-family: var(--font-display); font-size: 2.4rem; color: var(--grape); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.cp .card-actions { margin: 0; min-width: 220px; }
.cp .add-btn { width: auto; }
.cp .stepper { width: 240px; }
.cp.is-soldout .cp-price { opacity: .5; }
.cp-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ink-soft); font-size: .95rem; }
.cp-facts li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.cp-facts svg { width: 20px; height: 20px; color: var(--grape); margin-top: 1px; }
.cp-missing { display: grid; justify-items: center; text-align: center; gap: 14px; padding-block: clamp(40px, 8vw, 90px); color: var(--ink-soft); }
.cp-missing h1 { font-size: clamp(2rem, 4.4vw, 3rem); color: var(--ink); }
.cp-more { margin-top: clamp(64px, 9vw, 110px); }
.cp-more-title { text-align: center; font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: clamp(24px, 3vw, 40px); }
@media (max-width: 860px) {
  .cp { grid-template-columns: 1fr; }
  .cp-info { padding-top: 0; }
  .cp-nav { width: 44px; height: 44px; }
  .cp .card-actions { min-width: 0; flex: 1; }
  .cp .add-btn, .cp .stepper { width: 100%; }
}
[data-theme="dark"] .cp-stage, [data-theme="dark"] .cp-thumb { background: rgba(33, 26, 43, .85); box-shadow: 0 0 0 1px rgba(193, 181, 201, .22), var(--shadow-md); }
[data-theme="dark"] .cp-slide.is-cut { background: radial-gradient(60% 60% at 50% 55%, rgba(96, 70, 110, .45), transparent 72%); }
[data-theme="dark"] .cp-slide.is-cut .cp-img { filter: drop-shadow(0 26px 26px rgba(0, 0, 0, .6)) drop-shadow(0 0 22px rgba(157, 130, 182, .3)); }
[data-theme="dark"] .cp-thumb[aria-current="true"] { box-shadow: 0 0 0 3px var(--silver); }
[data-theme="dark"] .cp-nav { background: #211A2B; color: var(--ink); box-shadow: 0 0 0 1px rgba(193, 181, 201, .3), var(--shadow-md); }
[data-theme="dark"] .cp-price { color: var(--silver); font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }
[data-theme="dark"] .cp-buy { border-color: rgba(193, 181, 201, .22); }
[data-theme="dark"] .cp-facts svg { color: var(--silver); }
[data-theme="dark"] .cp-name { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; }

/* ---------- Kind words: a photo (or initials) of who said it ---------- */
.quote figcaption { align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.q-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--lilac-soft); color: var(--grape); font-weight: 700; font-size: 1rem; letter-spacing: .02em; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px rgba(143, 118, 169, .35); }
.q-avatar img { width: 100%; height: 100%; object-fit: cover; }
.q-who { display: grid; gap: 1px; line-height: 1.25; min-width: 0; flex: 1 1 9ch; }
.q-name { font-weight: 700; }
.q-detail, .q-who .handle { font-size: .85rem; color: var(--ink-soft); font-weight: 400; overflow-wrap: anywhere; }
.quote .sample-tag { margin-left: auto; }
[data-theme="dark"] .q-avatar { background: rgba(96, 70, 110, .5); color: var(--silver); box-shadow: 0 0 0 3px #211A2B, 0 0 0 4px rgba(193, 181, 201, .4); }

/* =====================================================================
   Apple-style polish
   ===================================================================== */

/* ---------- Everything you can press answers on the press ---------- */
.treat .fm, .sc-item, .cake-shot figure, .cp-thumb, .type-card .tc-face, .chip-btn, .insta-tile, .ev-map, .map-dir, .treat-name a { -webkit-tap-highlight-color: transparent; }
.treat .fm:active { transform: scale(.96); transition: transform 100ms ease-out; }
.cake-shot figure { transition: transform 160ms ease-out; }
.cake-shot:active figure { transform: scale(.97); transition-duration: 100ms; }
.batch.is-active .sc-item:active, .showcase.is-static .sc-item:active { transform: scale(.96); transition: transform 100ms ease-out; transition-delay: 0ms; }
.cp-thumb:active { transform: scale(.94); transition-duration: 100ms; }
.type-card:active .tc-face { transform: scale(.97); transition-duration: 100ms; }
.chip-btn:active, .ev-map:active, .map-dir:active { transform: scale(.96); }
.insta-tile:active { transform: scale(.97); }
.cp-nav:disabled:hover, .cp-nav:disabled:active { transform: none; }

/* ---------- Big headings: tighter letter spacing as type grows ----------
   (storybook theme only: the Night Court capitals keep their own spacing) */
:root:not([data-theme="dark"]) h1, :root:not([data-theme="dark"]) h2, :root:not([data-theme="dark"]) .cp-name { letter-spacing: -.015em; }
:root:not([data-theme="dark"]) h2 em, :root:not([data-theme="dark"]) h1 em { letter-spacing: -.01em; }

/* ---------- Visitors who turn transparency down: solid surfaces ---------- */
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  [data-theme="dark"] .site-header.is-scrolled { background: #090810; }
  .cart-drawer::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(60, 28, 50, .6); }
  .back-link, .cp-count { background: var(--lilac-soft); }
   [data-theme="dark"] .cp-stage { background: #211A2B; }
}

/* ---------- Visitors who ask for more contrast: clear edges ---------- */
@media (prefers-contrast: more) {
  .site-header.is-scrolled { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--ink); }
  .treat-desc, .cp-desc, .cp-facts, .crumbs ol, .q-detail, .section-lede { color: var(--ink); }
  .cp-stage, .cr-form, .quote, .event, .map-card, .cp-thumb, .back-link { box-shadow: 0 0 0 1.5px var(--ink); }
  input, select, textarea { border-color: var(--ink) !important; }
  .tag, .stock-note { box-shadow: inset 0 0 0 1px currentColor; }
}

/* ---------- v6: scrolling words loop seamlessly at any screen width ---------- */
.marquee-track { gap: 0; animation-duration: var(--mq-dur, 42s); }
.marquee-track > .mq-set { display: flex; align-items: center; flex: none; margin: 0; }
.mq-set > * { flex: none; margin-inline-end: 32px; }

/* ---------- v6: Instagram photo (the chalkboard cookie spread) ---------- */
.ia-photo { position: absolute; left: 50%; top: 50%; z-index: 1; width: 66%; margin: 0; padding: 10px 10px 34px; background: var(--paper); border-radius: 6px; box-shadow: 0 2px 4px rgba(60, 28, 50, .08), 0 28px 50px -12px rgba(60, 28, 50, .35); transform: translate(-50%, calc(-50% + var(--p) * -20px)) rotate(-4deg); transition: transform 600ms var(--ease-spring); }
.ia-photo img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; }
.insta-art:hover .ia-photo { transform: translate(-50%, calc(-51% + var(--p) * -20px)) rotate(-1.5deg) scale(1.02); }
.ia-bits { z-index: 2; }
[data-theme="dark"] .ia-photo { background: #E9E2EE; box-shadow: 0 0 0 1px rgba(193, 181, 201, .3), 0 30px 60px -10px rgba(0, 0, 0, .7); }
@media (max-width: 860px) { .ia-photo { width: 62%; } }

/* ---------- v6: the "next stop" card and the cart photo hang off the map's edges ---------- */
.spot-map { margin-bottom: clamp(56px, 7vw, 76px); }
.map-card { left: -6%; bottom: 0; transform: translateY(58%); }
.map-photo { right: -9%; top: 0; transform: translateY(-38%) rotate(6deg); width: 27%; }
@media (max-width: 860px) {
  .spot-map { margin-bottom: 104px; }
  .map-card { left: 0; max-width: min(84%, 300px); }
  .map-photo { right: -1%; width: 24%; transform: translateY(-30%) rotate(6deg); }
}

/* ===== Small fixes ===== */
/* =====================================================================
   SugarPlumJelly Miami — v7 additions
   (two-way scroll reveals, the cookie turning into its inside,
   the chalkboard Instagram section)
   ===================================================================== */

/* ---------- Scroll reveals work both ways; leaving is quicker than arriving ---------- */
.js .reveal:not(.is-in) { transition-duration: 450ms; transition-delay: 0ms; transition-timing-function: cubic-bezier(.4, 0, 1, 1); }

/* ---------- Cookie menu: the cookie turns into its inside ---------- */
.treat { container-type: inline-size; }
.treat .fm-inside {
  inset: 9%; right: 9%; bottom: 9%; width: auto; aspect-ratio: auto; border-radius: 50%;
  box-shadow: 0 0 0 5px var(--surface), var(--shadow-md);
  opacity: 0; transform: scale(.78) rotate(-14deg); transform-origin: 50% 50%;
  transition: transform 520ms var(--ease-spring), opacity 260ms ease; transition-delay: 0ms;
}
.treat .fm-cookie { transition: transform 520ms var(--ease-spring), opacity 300ms ease, filter 500ms; }
.treat .fm:hover .fm-cookie, .treat.show-inside .fm-cookie { transform: rotate(calc(var(--tilt) + 22deg)) scale(1.1); opacity: 0; }
.treat .fm:hover .fm-inside, .treat.show-inside .fm-inside { opacity: 1; transform: none; transition-delay: 60ms; }
.treat .fm:hover .fm-halo, .treat.show-inside .fm-halo { transform: scale(1.04); }
@media (hover: none) {
  /* a tap on the picture opens the cookie page, so a lingering :hover must not swap it */
  .treat:not(.show-inside) .fm:hover .fm-cookie { transform: rotate(var(--tilt)); opacity: 1; }
  .treat:not(.show-inside) .fm:hover .fm-inside { opacity: 0; transform: scale(.78) rotate(-14deg); }
}

.inside-btn {
  --size: min(100cqw, 220px);
  position: absolute; z-index: 3; top: calc(var(--size) - 42px); right: calc(50cqw - var(--size) / 2 - 2px);
  display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px 0 9px; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--grape); font: 600 .78rem/1 var(--font-body, inherit); letter-spacing: .01em;
  box-shadow: 0 0 0 1px rgba(143, 118, 169, .25), 0 6px 14px -6px rgba(60, 28, 50, .35);
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background 200ms ease, color 200ms ease, transform 160ms ease, opacity 200ms ease;
}
.inside-btn::before { /* 44px touch target around the small pill */ content: ""; position: absolute; inset: -5px -4px; }
.inside-btn svg { width: 18px; height: 18px; flex: none; transition: transform 400ms var(--ease-spring); }
.inside-btn:active { transform: scale(.94); }
.inside-btn[aria-pressed="true"] { background: var(--grape); color: var(--on-accent, #fff); }
.inside-btn[aria-pressed="true"] svg { transform: rotate(-30deg); }
.inside-btn:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; }
/* with a mouse the hover does the work; the button only shows for keyboard focus */
@media (hover: hover) and (pointer: fine) {
  .inside-btn { opacity: 0; pointer-events: none; }
  .inside-btn:focus-visible { opacity: 1; pointer-events: auto; }
}
@media (max-width: 760px) { .inside-btn { --size: min(100cqw, 170px); top: calc(var(--size) - 36px); height: 32px; } }
[data-theme="dark"] .inside-btn { background: #2A2036; color: var(--silver); box-shadow: 0 0 0 1px rgba(193, 181, 201, .35), 0 6px 16px -6px rgba(0, 0, 0, .7); }
[data-theme="dark"] .inside-btn[aria-pressed="true"] { background: var(--silver); color: #211A2B; }
@media (prefers-reduced-motion: reduce) {
  .treat .fm-inside { transform: none; transition: opacity 200ms; }
  .treat .fm:hover .fm-cookie, .treat.show-inside .fm-cookie { transform: rotate(var(--tilt)); }
}

/* ---------- Instagram: the v6 framed photo, a little larger and tilted slightly to the right ---------- */
.insta-art { max-width: 520px; }
.ia-photo { width: 70%; transform: translate(-50%, calc(-50% + var(--p) * -20px)) rotate(8deg); }
.insta-art:hover .ia-photo { transform: translate(-50%, calc(-51% + var(--p) * -20px)) rotate(5deg) scale(1.02); }
@media (max-width: 860px) {
  .insta-art { max-width: 380px; margin-block: 24px 6px; }
  .ia-photo { width: 58%; }
}

/* ===== Cake tour and kind words ===== */
/* =====================================================================
   SugarPlumJelly Miami — v8 additions (phone layout)
   Pop-up cart without the map, a smaller baker photo, kind words as a
   list, and a shorter Instagram section. Computers look the same as v7.
   ===================================================================== */

/* The address button and the "Open in…" sheet only exist on phones */
.ev-addr { display: none; }

@media (max-width: 760px) {

  /* ---------- Pop-up cart: no map; the cart photo sits beside the title ---------- */
  .spot-grid { grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 0; align-items: start; }
  .spot-copy { display: contents; }
  .spot-copy .section-head { grid-column: 1; grid-row: 1; margin-bottom: 20px; }
  .spot-map { grid-column: 2; grid-row: 1; width: 96px; max-width: none; margin: 4px 4px 0 0; }
  .spot-map .map-frame, .spot-map .map-card { display: none; }
  .spot-map .map-photo { position: static; width: 100%; transform: rotate(5deg); padding: 5px 5px 16px; }
  .events-title, .events, .events-empty { grid-column: 1 / -1; }

  /* each stop: time, then its address, which opens the maps-app sheet */
  .event { align-items: start; grid-template-columns: 68px 1fr; gap: 14px; }
  .event:hover { transform: none; }
  .ev-map, .ev-dir { display: none !important; }
  .ev-addr {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 2px 0 -6px; padding: 0;
    border: 0; background: none; color: var(--grape); font: 600 .95rem/1.3 var(--font-body, inherit); text-align: left;
    text-decoration: underline; text-decoration-color: rgba(143, 118, 169, .45); text-underline-offset: 3px;
    cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: opacity 120ms ease;
  }
  .ev-addr svg { width: 1.05em; height: 1.05em; flex: none; color: var(--lilac); }
  .ev-addr:active { opacity: .55; }
  .event.is-next .ev-addr { color: var(--moon-mist); text-decoration-color: rgba(252, 245, 232, .4); }
  .event.is-next .ev-addr svg { color: var(--moon-mist); }

  /* ---------- Meet the baker: photo at half size, next to the heading; no treat chips ---------- */
  .about-grid { grid-template-columns: minmax(0, 42%) 1fr; column-gap: 20px; row-gap: 0; align-items: center; }
  .about-copy { display: contents; }
  .about-portrait { grid-column: 1; grid-row: 1; max-width: 190px; justify-self: start; margin: 8px 0 26px 6px; }
  .about-copy .section-head { grid-column: 2; grid-row: 1; margin: 0 0 26px; }
  .about-copy .section-head h2 { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
  .about-text { grid-column: 1 / -1; }
  .portrait-frame { box-shadow: 0 0 0 6px var(--fantasy), 0 0 0 7px rgba(143, 118, 169, .35), var(--shadow-md); }
  .years-badge { width: 84px; height: 84px; right: -20%; bottom: -6%; }
  .years-badge strong { font-size: 1.75rem; }
  .years-badge span { font-size: .6rem; line-height: 1.15; }
  .about .chips { display: none; }
  [data-theme="dark"] .portrait-frame { box-shadow: 0 0 0 5px #120E1A, 0 0 0 6px rgba(193, 181, 201, .45), 0 0 40px rgba(96, 70, 110, .5); }

  /* ---------- Kind words: one list going down the page ---------- */
  .quotes {
    grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; overflow: visible; scroll-snap-type: none;
    margin-inline: 0; padding: 0; gap: 0;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  }
  .quotes > li + li { border-top: 1px solid rgba(143, 118, 169, .2); }
  .quotes > li.q-more { display: none; }
  .quotes.is-all > li.q-more { display: block; }
  .quote, .quote:nth-child(n), .quote:hover { transform: none; background: none; box-shadow: none; border-radius: 0; margin: 0; padding: 20px 20px 18px; }
  .quote::before { display: none; }
  .quote blockquote { font-size: 1.12rem; line-height: 1.45; }
  .quote figcaption { margin-top: 12px; }
  .q-avatar { width: 40px; height: 40px; }
  .q-toggle { display: flex; margin: 18px auto 0; min-height: 44px; }
  [data-theme="dark"] .quotes { background: #1A1424; box-shadow: 0 0 0 1px rgba(193, 181, 201, .22); }
  [data-theme="dark"] .quotes > li + li { border-top-color: rgba(193, 181, 201, .16); }
  [data-theme="dark"] .quote { background: none; box-shadow: none; border: 0; }

  /* ---------- Instagram: three photos, then the big photo underneath ---------- */
  .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .insta-grid .insta-tile:nth-child(n + 4) { display: none; }
  .insta-art { order: 1; max-width: 300px; margin-block: 8px 0; }
  .ia-photo { width: 62%; }
}
@media (min-width: 761px) { .q-toggle { display: none; } }

/* ---------- "Open in…" sheet: rises from the bottom, like a phone's own menu ---------- */
.maps-sheet {
  position: fixed; inset: auto 0 0 0; width: 100%; max-width: 460px; max-height: none; margin: 0 auto; padding: 0 10px calc(10px + env(safe-area-inset-bottom));
  border: 0; background: none; color: var(--ink); overflow: visible;
}
.maps-sheet::backdrop { background: rgba(20, 12, 28, 0); transition: background 240ms ease; }
.maps-sheet.is-open::backdrop { background: rgba(20, 12, 28, .4); }
.ms-panel { display: grid; gap: 8px; transform: translateY(110%); transition: transform 240ms cubic-bezier(.4, 0, 1, 1); }
.maps-sheet.is-open .ms-panel { transform: none; transition: transform 380ms cubic-bezier(.22, 1, .36, 1); }
.ms-head, .ms-group, .ms-cancel { background: var(--surface); border-radius: 16px; }
.ms-group { display: grid; overflow: hidden; }
.ms-head { padding: 14px 18px 12px; text-align: center; border-radius: 16px 16px 0 0; margin-bottom: -8px; border-bottom: 1px solid rgba(143, 118, 169, .2); }
.ms-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
.ms-head p { margin: 2px 0 0; font-size: .85rem; color: var(--ink-soft); }
.ms-head + .ms-group { border-radius: 0 0 16px 16px; }
.ms-group a, .ms-group button, .ms-cancel {
  display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 18px; border: 0; background: none;
  color: var(--grape); font: 500 1.05rem/1.2 var(--font-body, inherit); text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background 120ms ease;
}
.ms-group > * + * { border-top: 1px solid rgba(143, 118, 169, .2); }
.ms-cancel { width: 100%; font-weight: 700; background: var(--surface); }
.ms-group a:active, .ms-group button:active, .ms-cancel:active { background: rgba(143, 118, 169, .14); }
.ms-group a:focus-visible, .ms-group button:focus-visible, .ms-cancel:focus-visible { outline: 3px solid var(--grape); outline-offset: -3px; }
[data-theme="dark"] .ms-head, [data-theme="dark"] .ms-group, [data-theme="dark"] .ms-cancel { background: #221A2E; }
[data-theme="dark"] .ms-group a, [data-theme="dark"] .ms-group button, [data-theme="dark"] .ms-cancel { color: var(--silver); }
[data-theme="dark"] .ms-head, [data-theme="dark"] .ms-group > * + * { border-color: rgba(193, 181, 201, .16); }
@media (prefers-reduced-motion: reduce) {
  .ms-panel, .maps-sheet.is-open .ms-panel { transform: none; transition: opacity 200ms ease; opacity: 0; }
  .maps-sheet.is-open .ms-panel { opacity: 1; }
}

/* ---------- Hide the "Powered by Netlify" badge Netlify adds to free sites ---------- */
#nl-badge-frame, #nl-badge, #netlify-badge, .netlify-badge { display: none !important; }

/* ===== Hero, forest, moon, cart drawer, animations (newest; add new styles at the end) ===== */
/* =====================================================================
   SugarPlumJelly Miami — v9 additions
   A shorter top section, the shop cards on the main page, the cookies
   and treats pages, the treat tiles, and a showcase phones scroll past.
   ===================================================================== */

/* ---------- Top section: shorter, so the menus are one scroll away ---------- */
.hero { --hero-h: min(64svh, 600px); min-height: var(--hero-h); padding-top: calc(var(--header-h) + var(--bar-h) + clamp(8px, 1.6vw, 20px)); padding-bottom: clamp(48px, 5.5vw, 72px); }
/* --bt-fs is the main page's title size; every page's title area is that tall, so all three tops match */
.hero { --bt-fs: clamp(3.4rem, 9.6vw, 8rem); --bt-lines: 1.82; }
.hero-lede { min-height: 3.2em; } /* two lines on every page, even when the words are short */
[data-theme="dark"] .hero { --bt-fs: clamp(3rem, 8.4vw, 7rem); }
.burst-wrap { padding-bottom: clamp(10px, 2vw, 26px); min-height: calc(var(--bt-fs) * var(--bt-lines) + clamp(10px, 2vw, 26px)); display: grid; align-content: center; }
.burst-title { font-size: var(--bt-fs); }
.burst-title .bt-1 { justify-self: start; margin-left: 8%; }
.burst-title .bt-2 { justify-self: end; margin-right: 8%; font-size: 1.04em; }
.hero-foot { margin-top: clamp(10px, 1.6vw, 20px); gap: 18px; }
.hero-lede { max-width: 66ch; }
[data-theme="dark"] .burst-title { font-size: var(--bt-fs); }

/* the cookies and treats pages: three words on two lines, same height as the main page */
.hero-page .burst-title { font-size: clamp(2.8rem, 7.2vw, 6.4rem); line-height: .95; }
.hero-page .burst-title .bt-1 { margin-left: 4%; }
.hero-page .burst-title .bt-1 em { color: var(--moon-mist); font-weight: 600; }
.hero-page .burst-title .bt-2 { font-size: 1.32em; margin-right: 8%; }
[data-theme="dark"] .hero-page .burst-title { font-size: clamp(2.6rem, 6.6vw, 5.8rem); }
[data-theme="dark"] .hero-page .burst-title .bt-1 em { color: #D9C6EA; }

/* the cookies / treats titles always sit in front of the floating pictures */
.hero-page .burst-title { z-index: 3; }

/* Night court: a thin dark outline keeps the title readable where it crosses the moon */
[data-theme="dark"] .burst-title {
  text-shadow:
    -2px -2px 0 #0B0912, 2px -2px 0 #0B0912, -2px 2px 0 #0B0912, 2px 2px 0 #0B0912,
    0 -2px 0 #0B0912, 0 2px 0 #0B0912, -2px 0 0 #0B0912, 2px 0 0 #0B0912,
    0 0 40px rgba(157, 130, 182, .35), 0 10px 40px rgba(0, 0, 0, .6);
}
[data-theme="dark"] .hero-eyebrow, [data-theme="dark"] .hero-lede {
  text-shadow: -1px -1px 0 #0B0912, 1px -1px 0 #0B0912, -1px 1px 0 #0B0912, 1px 1px 0 #0B0912, 0 0 12px rgba(5, 4, 9, .8);
}

/* Night court: the moon sits up top, between the logo and the menu.
   js/app.js measures the gap and sets --moon-x, --moon-y and --moon-r (its size), so it fits at any width.
   The glow is kept short so it never washes over the menu words. */
[data-theme="dark"] .hero {
  --moon-r: 28px;
  background:
    radial-gradient(circle at var(--moon-x, 22%) var(--moon-y, 72px),
      rgba(236, 230, 241, .95) 0 var(--moon-r), rgba(193, 181, 201, .3) calc(var(--moon-r) + 2px),
      rgba(96, 70, 110, .14) calc(var(--moon-r) * 2.2), transparent calc(var(--moon-r) * 4)),
    radial-gradient(60% 50% at 50% 100%, rgba(96, 70, 110, .55), transparent 70%),
    linear-gradient(180deg, #050409 0%, #120E1A 55%, #211A2B 100%);
}
@media (max-width: 760px) {
  [data-theme="dark"] .hero { --moon-r: 18px; }
}

/* treat photos floating around the treats page title */
.ck.is-photo img { aspect-ratio: 1; object-fit: cover; border-radius: 24%; border: 5px solid var(--surface); box-shadow: 0 18px 34px -10px rgba(30, 10, 25, .45); }
.ck.is-photo .ck-shadow { display: none; }
[data-theme="dark"] .ck.is-photo img { border-color: #2A2036; filter: none; box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .7), 0 0 26px rgba(157, 130, 182, .3); }

.primary-nav a[aria-current="page"] { color: var(--grape); }
.primary-nav a[aria-current="page"]::after { transform: translateX(-50%) scale(1.6); }

@media (max-width: 760px) {
  .hero { --hero-h: 0px; min-height: 0; padding-bottom: 40px; --bt-fs: clamp(3.3rem, 18vw, 5.2rem); --bt-lines: 1.86; }
  [data-theme="dark"] .hero { --bt-fs: clamp(3rem, 16vw, 4.6rem); }
  .burst-title .bt-1, .burst-title .bt-2 { margin-inline: 0; }
  .burst-wrap { padding-block: 4px 150px; min-height: calc(var(--bt-fs) * var(--bt-lines) + 154px); align-content: start; }
  .hero-foot { gap: 14px; margin-top: 4px; }
  .hero-lede { font-size: .98rem; line-height: 1.5; min-height: 4.5em; }
  .hero-ctas { flex-wrap: nowrap; gap: 10px; width: 100%; justify-content: center; }
  .hero-ctas .btn { min-height: 48px; padding: .7em 1.1em; font-size: .95rem; white-space: nowrap; }
  .hero-page .burst-title { font-size: clamp(2.3rem, 11vw, 3.2rem); line-height: 1; }
  .hero-page .burst-title .bt-2 { font-size: 1.5em; }
}

/* main page: three buttons (cookies, treats, a cake); phones put the two order buttons side by side */
@media (max-width: 760px) {
  .hero-ctas-3 { flex-wrap: wrap; }
  .hero-ctas-3 .btn { flex: 1 1 40%; justify-content: center; }
  .hero-ctas-3 .btn-ghost-cream { flex-basis: 100%; }
}

/* the cake request page: links to the other two menus */
.cr-also { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cr-also .btn { min-height: 44px; padding: .6em 1.1em; font-size: .95rem; }
.cr-also .btn svg { width: 1em; height: 1em; }

/* ---------- Main page: shop the bakery ---------- */
.shop { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.shop .section-head { margin-bottom: clamp(24px, 3.5vw, 40px); }
.shop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 32px); }
.shop-card { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.shop-photo { grid-column: 1 / -1; display: block; aspect-ratio: 5 / 4; border-radius: 30px; overflow: hidden; background: var(--lilac-soft); box-shadow: var(--shadow-sm); transition: transform 450ms var(--ease-spring), box-shadow 450ms var(--ease-out); margin-bottom: 12px; }
.shop-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.shop-text { display: grid; gap: 2px; }
.shop-name { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.05; }
.shop-sub { color: var(--ink-soft); font-size: .95rem; }
.shop-go { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grape); color: var(--on-accent); transition: transform 350ms var(--ease-spring); }
.shop-go svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .shop-card:hover .shop-photo { transform: translateY(-8px) rotate(-1.5deg); box-shadow: var(--shadow-md); }
  .shop-card:hover .shop-photo img { transform: scale(1.06); }
  .shop-card:hover .shop-go { transform: translateX(4px); }
}
.shop-card:active .shop-photo { transform: scale(.97); transition-duration: 120ms; }
.shop-card:focus-visible { outline: none; }
.shop-card:focus-visible .shop-photo { outline: 3px solid var(--grape); outline-offset: 4px; }
[data-theme="dark"] .shop-go { background: var(--silver); color: #090810; }
[data-theme="dark"] .shop-photo { box-shadow: 0 0 0 1px rgba(193, 181, 201, .25), 0 20px 40px -12px rgba(0, 0, 0, .7); }
@media (max-width: 760px) {
  .shop-grid { gap: 12px; }
  .shop-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .shop-photo { width: 100%; aspect-ratio: 1; border-radius: 22px; margin-bottom: 8px; }
  .shop-name { font-size: 1.2rem; }
  .shop-sub, .shop-go { display: none; }
}

/* ---------- Treat tiles (the treats page) ---------- */
.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 2.6vw, 32px) clamp(16px, 2.2vw, 28px); }
.tile { position: relative; display: flex; flex-direction: column; }
.tile-media { text-decoration: none; position: relative; display: block; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: var(--lilac-soft); box-shadow: var(--shadow-sm); transition: transform 450ms var(--ease-spring), box-shadow 450ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.tile-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out), filter 400ms; }
.tile-cat { position: absolute; left: 12px; top: 12px; padding: 7px 10px; border-radius: 999px; background: rgba(255, 251, 243, .92); color: var(--grape); font: 700 .66rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.tile-ph { display: grid; place-items: center; align-content: center; gap: 10px; width: 100%; height: 100%; background: radial-gradient(circle at 50% 42%, #fff 0, var(--lilac-soft) 72%); }
.tile-ph img { width: 44%; height: auto; opacity: .5; }
.tile-ph span { font: 600 .68rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--grape); opacity: .75; }
.tile-body { display: flex; flex-direction: column; flex: 1; padding-top: 14px; }
.tile-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tile-name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.12; text-wrap: balance; }
.tile-name a { color: inherit; text-decoration: none; }
.tile-name a::after { /* the words open the treat's page too */ content: ""; position: absolute; inset: 0; z-index: 1; }
.tile-price { font-family: var(--font-display); font-size: 1.3rem; color: var(--grape); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.tile-desc { margin: 6px 0 0; font-size: .9rem; line-height: 1.45; color: var(--ink-soft); }
.tile-stock:empty { display: none; }
.tile-stock { margin-top: 6px; }
.tile .card-actions { position: relative; z-index: 2; margin-top: auto; padding-top: 14px; min-height: 0; }
.tile .add-btn, .tile .stepper { width: 100%; }
.tile .add-btn { min-height: 46px; padding: 0 14px; gap: 6px; white-space: nowrap; font-size: .95rem; }
.tile .add-btn svg { width: 1.05em; height: 1.05em; flex: none; }
.tile.is-soldout .tile-media > img { filter: grayscale(.6) opacity(.75); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-media { transform: translateY(-6px) rotate(-1.5deg); box-shadow: var(--shadow-md); }
  .tile:hover .tile-media > img { transform: scale(1.06); }
}
.tile:has(.tile-name a:active) .tile-media { transform: scale(.97); transition-duration: 120ms; }
.tile-name a:focus-visible { outline: none; }
.tile:has(.tile-name a:focus-visible) .tile-media { outline: 3px solid var(--grape); outline-offset: 4px; }
[data-theme="dark"] .tile-cat { background: rgba(33, 26, 43, .9); color: var(--silver); }
[data-theme="dark"] .tile-media { box-shadow: 0 0 0 1px rgba(193, 181, 201, .22), 0 16px 34px -12px rgba(0, 0, 0, .7); }
[data-theme="dark"] .tile-ph { background: radial-gradient(circle at 50% 42%, #3A2E4A 0, #221A2E 72%); }
[data-theme="dark"] .tile-ph span { color: var(--silver); }
[data-theme="dark"] .tile-price { color: var(--silver); }
@media (max-width: 1024px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .tile-media { border-radius: 22px; }
  .tile-cat { left: 8px; top: 8px; padding: 6px 8px; font-size: .6rem; }
  .tile-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .tile-name { font-size: 1.12rem; }
  .tile-price { font-size: 1.15rem; }
  .tile-desc { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tile-media, .tile-media > img, .shop-photo, .shop-photo img { transition: none; }
}

/* nothing on the menu yet */
.menu-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; text-align: center; padding: clamp(28px, 5vw, 48px) 20px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-sm); list-style: none; }
.menu-empty img { width: 72px; height: auto; opacity: .6; }
.menu-empty strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; text-wrap: balance; }
.menu-empty span { color: var(--ink-soft); max-width: 44ch; }
.menu-empty .btn { margin-top: 8px; }
[data-theme="dark"] .menu-empty { background: #1A1424; box-shadow: 0 0 0 1px rgba(193, 181, 201, .2); }

/* "More treats to try" on a treat's own page */
.cp-more .tile-grid { margin-top: 8px; }

/* ---------- Cookies / treats pages: a link to the other menu ---------- */
.other-menu { padding-block: 0 clamp(56px, 8vw, 96px); }
.other-card { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; padding: clamp(22px, 3vw, 34px) clamp(22px, 3.5vw, 44px); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; transition: transform 400ms var(--ease-spring), box-shadow 400ms; }
.oc-text { display: grid; gap: 4px; }
.oc-text strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; }
.oc-text span { color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .other-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } }
.other-card:active { transform: scale(.98); }
[data-theme="dark"] .other-card { background: #1A1424; box-shadow: 0 0 0 1px rgba(193, 181, 201, .2); }
@media (max-width: 760px) { .other-card .btn { width: 100%; justify-content: center; } }

/* ---------- This week's batch on phones: no pause, every cookie in a grid ---------- */
@media (max-width: 760px) {
  .showcase.is-static .showcase-stage { padding-block: 56px 40px; }
  .showcase.is-static .showcase-batches { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 12px; margin-top: 22px; }
  .showcase.is-static .batch { display: contents; }
  .showcase.is-static .sc-item, .showcase.is-static .sc-item:nth-child(2) { grid-template-columns: none; direction: ltr; gap: 8px; }
  .showcase.is-static .sc-cookie { width: 100%; max-width: 170px; }
  .showcase.is-static .sc-label, .showcase.is-static .sc-item:nth-child(2) .sc-label { justify-items: center; text-align: center; }
  .showcase.is-static .sc-plinth, .showcase.is-static .sc-item:nth-child(2) .sc-plinth { top: 46%; left: 50%; right: auto; width: 90%; transform: translateX(-50%); }
}

/* ---------- A fairy tale forest, just out of sight behind the fog ----------
   Painted in assets/img/brand/forest.webp. "luminosity" keeps the page's own plum colors and borrows only
   the forest's light and shade, so it reads as a misty shape, not a green photo. */
.hero-forest, .page-forest {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../assets/img/brand/forest.webp") center bottom / cover no-repeat;
  mix-blend-mode: luminosity; opacity: .42; filter: blur(1px);
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 18%, #000 86%, transparent 100%);
  mask: linear-gradient(180deg, transparent 0%, #000 18%, #000 86%, transparent 100%);
}
[data-theme="dark"] .hero-forest { opacity: .42; filter: blur(1px) brightness(.85); }
/* the cake request page: the forest fades in behind the heading only */
.page-forest { bottom: auto; height: min(620px, 80vh); opacity: .3;
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 20%, #000 55%, transparent 100%);
  mask: linear-gradient(180deg, transparent 0%, #000 20%, #000 55%, transparent 100%); }
[data-theme="dark"] .page-forest { opacity: .2; }
@media (max-width: 760px) {
  .hero-forest { background-position: 50% 100%; opacity: .4; }
}
@media (prefers-reduced-transparency: reduce) { .hero-forest, .page-forest { opacity: .2; } }

/* "Baked fresh" bubble: lilac with white text, so it can't be mistaken for the cream order buttons */
:root { --pill-3-bg: #7A5F96; --pill-3-fg: #FFFFFF; }
[data-theme="dark"] { --pill-3-bg: #211A2B; --pill-3-fg: #C1B5C9; }

/* Night court: no castle skyline, so the forest shows through */
[data-theme="dark"] .castle { display: none; }

/* Hero "Request a cake" / "Order a cake": a solid button so it reads clearly over the forest */
.hero .btn-ghost-cream { --b-bg: #3C1C32; --b-ink: #FCF5E8; border-color: rgba(252, 245, 232, .55); box-shadow: 0 8px 20px rgba(30, 10, 25, .25); }
.hero .btn-ghost-cream:hover { --b-bg: #4E2642; }
[data-theme="dark"] .hero .btn-ghost-cream { --b-bg: #2A2136; --b-ink: #ECE6F1; border-color: rgba(193, 181, 201, .55); }
[data-theme="dark"] .hero .btn-ghost-cream:hover { --b-bg: #362B45; }

/* Menu bar while scrolling: a lighter frosted blur (8px instead of 12px) on a slightly more solid bar,
   and the blur no longer animates, so scrolling stays smooth on slower phones */
.site-header { transition: background-color var(--t-med), box-shadow var(--t-med); }
.site-header.is-scrolled { background: rgba(252, 245, 232, .92); backdrop-filter: blur(8px) saturate(1.2); -webkit-backdrop-filter: blur(8px) saturate(1.2); }
/* …but visitors who turn transparency down or ask for more contrast still get a solid bar */
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .site-header.is-scrolled { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--ink); }
}

/* ---------- Main page: the kinds of cakes ----------
   Computers: the list stays on the left while big photos scroll by on the right; the cake in view lights up.
   Phones: one photo card per cake with its name, line and price underneath. */
.cake-tour { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(20px, 3vw, 36px); }
.ct-list { list-style: none; margin: 0; padding: 0; position: sticky; top: calc(var(--header-h) + 48px); align-self: start; display: grid; gap: 4px; }
.ct-item { border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); padding: 14px 0 16px; }
.ct-name { display: flex; align-items: baseline; gap: 14px; text-decoration: none; color: var(--ink-soft);
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.1; letter-spacing: -.01em;
  transition: color 300ms var(--ease-out), transform 300ms var(--ease-out); }
.ct-num { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); opacity: .7; }
.ct-item.is-on .ct-name { color: var(--ink); transform: translateX(6px); }
.ct-name:hover { color: var(--ink); }
.ct-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.ct-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 420ms var(--ease-out), opacity 300ms; }
.ct-more > * { min-height: 0; overflow: hidden; }
.ct-more > p:first-child { margin: 0; }
.ct-item.is-on .ct-more { grid-template-rows: 1fr; opacity: 1; }
.ct-blurb { padding: 10px 0 0 2.2em; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; max-width: 38ch; }
.ct-meta { margin: 6px 0 0; padding-left: 2.2em; color: var(--accent); font-size: .95rem; }
.ct-meta strong { font-size: 1.1rem; }
.ct-photos { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 6vh, 64px); }
.ct-photo figure { margin: 0; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--lilac-soft, #E9E1F0); }
.ct-photo img { display: block; width: 100%; height: min(72vh, 640px); object-fit: cover; }
.ct-cap { display: none; }
@media (prefers-reduced-motion: reduce) { .ct-name, .ct-more { transition: none; } .ct-item.is-on .ct-name { transform: none; } }

@media (max-width: 760px) {
  .cake-tour { grid-template-columns: 1fr; gap: 0; }
  .ct-list { display: none; }
  .ct-photos { gap: 22px; }
  .ct-photo figure { border-radius: 24px; background: var(--paper, #fffdf6); }
  .ct-photo img { height: auto; aspect-ratio: 5 / 4; }
  .ct-cap { display: grid; gap: 4px; padding: 14px 18px 18px; }
  .ct-cap strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; color: var(--ink); }
  .ct-cap span { color: var(--ink-soft); font-size: .98rem; line-height: 1.5; }
  .ct-cap em { font-style: normal; color: var(--accent); font-weight: 600; font-size: .95rem; }
  [data-theme="dark"] .ct-photo figure { background: #15111D; }
}
/* "hidden" would stop the cake list from staying in view; "clip" trims the edges the same way without that side effect */
.section.cakes { overflow: clip; }

/* ---------- Cake request page: form on the left, cake guide on the right (stays in view) ---------- */
.cake-request.is-page { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); grid-template-areas: "intro guide" "form guide" "sent guide"; row-gap: clamp(20px, 3vw, 32px); }
.cake-request.is-page .cr-intro { grid-area: intro; position: static; }
.cake-request.is-page .cr-form { grid-area: form; }
.cake-request.is-page .cr-sent { grid-area: sent; }
.cr-guide { grid-area: guide; position: sticky; top: calc(var(--header-h) + 24px); align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; overscroll-behavior: contain;
  background: var(--paper, #fffdf6); border-radius: 26px; padding: 22px 22px 14px; box-shadow: var(--shadow-md); }
[data-theme="dark"] .cr-guide { background: #15111D; }
.cg-title { margin: 0; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); }
.cg-lede { margin: 4px 0 10px; color: var(--ink-soft); font-size: .95rem; }
.cg-sec { border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.cg-sec summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; cursor: pointer;
  font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.cg-sec summary::-webkit-details-marker { display: none; }
.cg-sec summary svg { width: 18px; height: 18px; color: var(--accent); transform: rotate(90deg); transition: transform 260ms var(--ease-out); flex: none; }
.cg-sec[open] summary svg { transform: rotate(-90deg); }
.cg-sec summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.cg-body { padding: 0 0 16px; color: var(--ink-soft); }
.cg-type + .cg-type { margin-top: 16px; padding-top: 16px; border-top: 1px dashed color-mix(in srgb, var(--ink) 14%, transparent); }
.cg-type-head { display: flex; align-items: center; gap: 12px; }
.cg-type-head img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: none; }
.cg-type h3 { margin: 0; font-size: 1.05rem; color: var(--ink); font-family: var(--font-body); font-weight: 700; }
.cg-type-head p { margin: 2px 0 0; color: var(--accent); font-size: .92rem; }
.cg-sizes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: .94rem; }
.cg-sizes li { display: flex; align-items: baseline; gap: 8px; }
.cg-sizes .dots { flex: 1; border-bottom: 1px dotted color-mix(in srgb, var(--ink) 30%, transparent); transform: translateY(-3px); }
.cg-type-note { margin: 8px 0 0; font-size: .9rem; font-style: italic; }
.cg-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cg-chips li { padding: 7px 12px; border-radius: 999px; background: var(--lilac-soft, #E9E1F0); color: var(--ink); font-size: .92rem; }
[data-theme="dark"] .cg-chips li { background: #241D30; }
.cg-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; line-height: 1.5; }
.cg-note { margin: 10px 0 0; font-size: .92rem; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .cg-sec summary svg { transition: none; } }

@media (max-width: 900px) {
  .cake-request.is-page { grid-template-columns: 1fr; grid-template-areas: "intro" "guide" "form" "sent"; }
  .cr-guide { position: static; max-height: none; overflow: visible; padding: 18px 18px 8px; border-radius: 22px; }
}

/* v10: step 06 of the cake list, "Ready to plan your cake?" (same words as the card at the end of the cakes section) */
.ct-plan-card { min-height: min(72vh, 640px); display: grid; align-content: center; justify-items: center; gap: 12px; text-align: center;
  padding: clamp(28px, 4vw, 56px); border-radius: 30px; background: var(--paper); box-shadow: var(--shadow-md); color: var(--ink-soft); }
.ct-plan-card .cr-quill { width: clamp(80px, 9vw, 120px); height: auto; color: var(--grape); }
.ct-plan-card .eyebrow { margin: 0; }
.ct-plan-card .cr-title { margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--ink); line-height: 1.05; }
.ct-plan-lede { margin: 0 0 8px; max-width: 40ch; line-height: 1.55; }
.ct-plan-card .btn { white-space: nowrap; }
[data-theme="dark"] .ct-plan-card { background: rgba(33, 26, 43, .82); box-shadow: 0 0 0 1px rgba(193, 181, 201, .22), var(--shadow-md); }
[data-theme="dark"] .ct-plan-card .cr-quill { color: var(--silver); }
@media (max-width: 760px) {
  .ct-plan-card { min-height: 0; border-radius: 24px; padding: 28px 20px; }
  .ct-plan-card .cr-quill { width: 72px; }
  .ct-plan-card .btn { width: 100%; justify-content: center; }
}

/* v10: dark mode, the cake list's numbers and prices were dark plum on dark; use silver so they read clearly */
[data-theme="dark"] .ct-num { color: var(--silver); opacity: .9; }
[data-theme="dark"] .ct-meta, [data-theme="dark"] .ct-cap em, [data-theme="dark"] .cg-type-head p { color: var(--silver); }
[data-theme="dark"] .ct-name:focus-visible { outline-color: var(--silver); }

/* ---------- v11 ---------- */
/* Cake guide (computers): the title stays put and the sections scroll in an inner area, so the
   scroll bar sits inside the rounded box with room above and below it (it used to run into the corners).
   A wider lilac bar on a soft track. Chrome, Edge and Firefox use scrollbar-color; Safari the -webkit- rules. */
.cr-guide { overflow: hidden; display: flex; flex-direction: column; padding: 22px 10px 16px 22px; }
.cr-guide > .cg-title, .cr-guide > .cg-lede { padding-right: 12px; flex: none; }
.cg-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 12px;
  --sb-thumb: var(--lilac); --sb-track: var(--lilac-soft, #E9E1F0);
  scrollbar-width: auto; scrollbar-color: var(--sb-thumb) var(--sb-track); }
[data-theme="dark"] .cg-scroll { --sb-thumb: #9D82B6; --sb-track: #241D30; }
@supports not (scrollbar-color: red blue) {
  .cg-scroll::-webkit-scrollbar { width: 12px; }
  .cg-scroll::-webkit-scrollbar-track { background: var(--sb-track); border-radius: 999px; }
  .cg-scroll::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 999px; border: 3px solid var(--sb-track); }
  .cg-scroll::-webkit-scrollbar-thumb:hover { background: var(--grape); }
}
/* the guide stops above the floating "Message us" button (16px from the bottom + 56px tall + its glow),
   so the button never covers the guide's bottom corner or the end of its scroll bar */
@media (min-width: 901px) { .cr-guide { max-height: calc(100vh - var(--header-h) - 24px - 96px); } }
/* a soft fade and "Scroll for more" at the bottom while there's more to see */
.cg-more { position: sticky; bottom: 0; margin: -12px -12px 0 0; padding: 30px 12px 2px 0; pointer-events: none;
  display: flex; justify-content: center; align-items: center; gap: 6px;
  background: linear-gradient(to bottom, transparent, var(--paper, #fffdf6) 60%);
  color: var(--grape); font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  opacity: 0; transition: opacity 240ms var(--ease-out); }
.cg-more svg { width: 14px; height: 14px; transform: rotate(90deg); }
.cr-guide.has-more .cg-more { opacity: 1; }
[data-theme="dark"] .cg-more { background: linear-gradient(to bottom, transparent, #15111D 60%); color: var(--silver); }
@media (max-width: 900px) {
  .cr-guide { display: block; overflow: visible; padding: 18px 18px 8px; }
  .cr-guide > .cg-title, .cr-guide > .cg-lede { padding-right: 0; }
  .cg-scroll { overflow: visible; padding-right: 0; }
  .cg-more { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cg-more { transition: none; } }

/* dark mode: the guide's open/close arrows and focus ring were dark plum on dark */
[data-theme="dark"] .cg-sec summary svg { color: var(--silver); }
[data-theme="dark"] .cg-sec summary:focus-visible { outline-color: var(--silver); }

/* ---------- Instagram reels under "Follow us on Instagram" ---------- */

/* before Instagram's player arrives: a soft placeholder card with the link */

/* ---------- Kind words: Spotlight (one at a time) ----------
   The same taped paper note as the cards, but one at a time in the middle. Every note sits in the same
   grid cell, so the box is as tall as the longest one and never jumps when it changes. */
.spot { max-width: 760px; margin: clamp(8px, 2vw, 18px) auto 0; }
.spot-stage { display: grid; position: relative; background: var(--paper, #fffdf6); border-radius: 6px; padding: 46px clamp(22px, 5vw, 56px) 28px;
  box-shadow: 0 1px 2px rgba(60,28,50,.08), 0 16px 34px rgba(60,28,50,.10); touch-action: pan-y; }
.spot-stage::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; margin-left: -55px; background: rgba(213, 227, 174, .85); transform: rotate(-3deg); border-radius: 2px; }
.spot-slide { grid-area: 1 / 1; margin: 0; display: grid; align-content: center; justify-items: center; text-align: center; gap: 16px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out), visibility 0s 520ms; }
.spot-slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out), visibility 0s; }
.spot-slide blockquote { margin: 0; font-family: var(--font-accent); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.4; color: var(--baltic); max-width: 34ch; text-wrap: balance; }
.spot-slide blockquote::before { content: "“"; color: var(--lilac); margin-right: 2px; }
.spot-slide blockquote::after { content: "”"; color: var(--lilac); margin-left: 1px; }
.spot-slide figcaption { display: flex; align-items: center; justify-content: center; gap: 10px 12px; flex-wrap: wrap; font-weight: 600; font-size: .95rem; }
.spot-slide .q-who { display: grid; text-align: left; }
.spot-slide .q-anon { text-align: center; }
.spot-slide .q-avatar { width: 44px; height: 44px; }

.spot-nav { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.spot-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--grape) 35%, transparent); background: var(--paper, #fffdf6); color: var(--grape); display: grid; place-items: center; cursor: pointer; transition: background-color 200ms, transform 160ms; }
.spot-btn svg { width: 18px; height: 18px; }
.spot-btn[data-spot-prev] svg { transform: rotate(180deg); }
.spot-btn:hover { background: var(--lilac-soft, #E9E1F0); }
.spot-btn:active { transform: scale(.94); }
.spot-dots { display: flex; align-items: center; }
.spot-dot { width: 24px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.spot-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--grape) 28%, transparent); transition: transform 200ms, background-color 200ms; }
.spot-dot[aria-current]::after { background: var(--grape); transform: scale(1.35); }
.spot-count { display: none; min-width: 64px; text-align: center; color: var(--ink-soft); font-size: .95rem; }
.spot-count b { color: var(--ink); }
.spot-pause { margin-left: 8px; min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.spot-btn:focus-visible, .spot-dot:focus-visible, .spot-pause:focus-visible { outline: 2px solid var(--grape); outline-offset: 2px; border-radius: 12px; }
[data-theme="dark"] .spot-stage { background: #1B1624; box-shadow: 0 18px 44px rgba(0,0,0,.5); }
[data-theme="dark"] .spot-stage::before { background: rgba(193, 181, 201, .35); }
[data-theme="dark"] .spot-slide blockquote { color: var(--ink); }
[data-theme="dark"] .spot-btn { background: #1B1624; color: var(--silver, #C1B5C9); border-color: rgba(193,181,201,.4); }
[data-theme="dark"] .spot-btn:hover { background: #241D30; }
[data-theme="dark"] .spot-dot::after { background: rgba(193,181,201,.35); }
[data-theme="dark"] .spot-dot[aria-current]::after { background: var(--silver, #C1B5C9); }
[data-theme="dark"] .spot-btn:focus-visible, [data-theme="dark"] .spot-dot:focus-visible, [data-theme="dark"] .spot-pause:focus-visible { outline-color: var(--silver, #C1B5C9); }
@media (prefers-reduced-motion: reduce) { .spot-slide, .spot-slide.is-on { transition: none; transform: none; } }
/* phones: a "3 / 13" counter instead of 13 dots */
@media (max-width: 640px) {
  .spot-stage { padding: 40px 20px 22px; }
  .spot-dots { display: none; }
  .spot-count { display: inline-block; }
  .spot-pause { margin-left: 0; }
}
/* the spotlight is one note, so the section needs less room around it */
.kind-words.is-spotlight { padding-block: clamp(56px, 7vw, 92px); }
.kind-words.is-spotlight .section-head { margin-bottom: clamp(18px, 2.4vw, 28px); }

/* ---------- Phones: the kinds of cakes in two columns ----------
   Square photo, the cake's name and "from $…" (the one-line description stays on computers).
   "Ready to plan your cake?" spans both columns underneath. */
@media (max-width: 760px) {
  .ct-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
  .ct-photo { min-width: 0; }
  .ct-photo.ct-plan { grid-column: 1 / -1; margin-top: 8px; }
  .ct-photo figure { height: 100%; display: flex; flex-direction: column; border-radius: 20px; }
  .ct-photo img { aspect-ratio: 1 / 1; }
  .ct-cap { flex: 1; gap: 2px; padding: 10px 12px 12px; align-content: start; }
  .ct-cap strong { font-size: 1.12rem; line-height: 1.15; overflow-wrap: anywhere; }
  .ct-cap span { display: none; }
  .ct-cap em { font-size: .9rem; margin-top: 2px; }
}

/* =====================================================================
   v13 polish: readable small labels and easier-to-tap small links
   ===================================================================== */
/* category chip on treat tiles, tags and stock notes: never smaller than 12px */
.tile-cat { font-size: .75rem; }
.flavor-tags .tag, .stock-note { font-size: .75rem; }
.map-kicker { font-size: .75rem; }
/* breadcrumb and inline links: at least a 24px-tall tap area without moving the text */
nav[aria-label="Breadcrumb"] a, .cr-custom a { display: inline-block; padding-block: 4px; margin-block: -4px; }

/* v13: a lilac circle behind every cookie on the menu, so pale cookies (Berry White, Biscoff)
   stand out from the cream background. Slightly larger than the cookie, inside the dashed ring. */
.treat .fm-halo {
  inset: 1%;
  background: radial-gradient(closest-side, #DCCDEA 0 80%, #E4D9EF 93%, rgba(228, 217, 239, 0) 100%);
}
.treat .fm-halo::after { inset: -3%; border-color: rgba(143, 118, 169, .5); }
[data-theme="dark"] .treat .fm-halo { inset: 1%; background: var(--halo); } /* dark mode keeps its own night-purple circle */

/* ---------- v13 audit fixes (Nov 2026) ---------- */
/* hero words stay readable over the bright middle of the forest picture */
.hero-lede { text-shadow: 0 1px 2px rgba(40, 14, 44, .55), 0 0 22px rgba(40, 14, 44, .5); }
.hero-eyebrow { text-shadow: 0 1px 2px rgba(40, 14, 44, .6), 0 0 14px rgba(40, 14, 44, .55); }
/* a sold-out price is muted but still readable (it was 2.5:1) */
.treat.is-soldout .treat-price, .tile.is-soldout .tile-price, .cp.is-soldout .cp-price { opacity: 1; color: var(--ink-soft); }
/* cookie cards: the names line up across a row. The "Sold out" button already says it,
   so the extra sold-out chip is dropped on the cards, and one chip row is always kept */
.treat .flavor-tags, .treat .flavor-tags:empty, .treat .flavor-tags:has(> [data-stock-note]:only-child:empty) { display: flex; min-height: 26px; align-items: center; }
.treat .stock-note.is-out { display: none; }
/* the top bar's place name ends in "…" on a phone instead of being cut mid-word */
.stop-text { max-width: 100%; }
.stop-text .sb-place { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* pop-up stops never push the page sideways on a small phone */
.event { grid-template-columns: 78px minmax(0, 1fr); }
.event h4, .event-meta a, .ev-addr { overflow-wrap: anywhere; }
@media (max-width: 760px) { .event { grid-template-columns: 68px minmax(0, 1fr); } }
/* the map: Google's own address box sat half cut off in the arch; it now sits above the frame, out of sight */
.map-frame iframe { height: calc(100% + 120px); margin-top: -120px; }
/* form fields: a clear focus ring (the old one was a faint lilac haze) */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
.cr-form input:not([type=radio]):not([type=checkbox]):not([type=file]):focus-visible, .cr-form select:focus-visible, .cr-form textarea:focus-visible {
  outline: none; border-color: var(--grape); box-shadow: 0 0 0 3px rgba(106, 61, 94, .45);
}
[data-theme="dark"] .field input:focus-visible, [data-theme="dark"] .field select:focus-visible, [data-theme="dark"] .field textarea:focus-visible,
[data-theme="dark"] .cr-form input:not([type=radio]):not([type=checkbox]):not([type=file]):focus-visible, [data-theme="dark"] .cr-form select:focus-visible, [data-theme="dark"] .cr-form textarea:focus-visible {
  border-color: #D9C6EA; box-shadow: 0 0 0 3px rgba(217, 198, 234, .45);
}
/* small phones (≤380px): "SugarPlumJelly" and the cart photo fit side by side without pushing the page sideways */
@media (max-width: 760px) { .spot-grid { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 380px) {
  #sweet-spot .section-head h2 { font-size: 1.9rem; }
  .spot-map { width: 76px; }
}
/* the hero's words get a soft plum shade behind them, so they read on the bright glow */
.hero-foot, .hero-eyebrow { position: relative; isolation: isolate; }
.hero-foot::before, .hero-eyebrow::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(42, 16, 46, .5), rgba(42, 16, 46, .28) 60%, transparent);
}
.hero-foot::before { inset: -18% -8% 20% -8%; }
.hero-eyebrow::after { display: block; inset: -14px -40px; }
[data-theme="dark"] .hero-foot::before, [data-theme="dark"] .hero-eyebrow::after { background: radial-gradient(closest-side, rgba(5, 4, 10, .55), rgba(5, 4, 10, .3) 60%, transparent); }

/* ---------- anime.js touches (v14) ---------- */
/* the curve the cookie follows into the bag (invisible; only used for the path) */
.fly-path { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; visibility: hidden; z-index: -1; }
/* order placed / cake request sent: sprinkles drawn above everything, then removed */
.sprinkles { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: visible; }
.sprinkles span { position: absolute; margin: -3px 0 0 -6px; opacity: 0; will-change: transform, opacity; }
/* the hero title: when anime.js writes it in letter by letter, the whole word doesn't also rise in */
.js .burst-title .bt.bt-split, .js.is-loaded .burst-title .bt.bt-split { opacity: 1; transform: none; transition: none; }
.burst-title .bt-split > *, .burst-title .bt-split em > * { display: inline-block; }

/* =================================================================
   ALLERGEN GUIDE (allergens.html) — filled in from the bakery's recipes
   ================================================================= */
.allergen-page .al-head { display: grid; gap: 12px; max-width: 720px; }
.allergen-page .cr-title { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: .98; }
.al-lede { color: var(--ink-soft); font-size: 1.08rem; max-width: 60ch; }
.al-key { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-soft); font-size: .95rem; }
.al-key li { display: inline-flex; align-items: center; gap: 8px; }
.al-key span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 700; }
.al-chart { margin-top: 26px; }
.al-status { padding: 40px 0; color: var(--ink-soft); }
.al-status a { color: var(--grape); }
.al-filter { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px 18px; }
.al-filter-label { margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.al-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.al-chips .chip-btn { min-height: 44px; }
.al-note { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--lilac-soft); color: var(--ink); }
.al-table-wrap { margin-top: 18px; overflow-x: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.al-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.al-table th, .al-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.al-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 600; vertical-align: bottom; background: var(--fantasy-2); position: sticky; top: 0; }
.al-table thead th:first-child, .al-table tbody th { text-align: left; }
.al-table thead th.al-avoid { color: var(--grape); box-shadow: inset 0 -3px 0 var(--grape); }
.al-table tbody th { font-weight: 600; color: var(--ink); min-width: 190px; }
.al-table tbody tr:last-child > * { border-bottom: 0; }
.al-name { display: inline; }
.al-cat { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-soft); }
.al-badge { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--chip-bg); color: var(--ink); vertical-align: 2px; }
td.al-yes, span.al-yes { color: var(--grape); font-size: 1.15rem; }
span.al-yes { background: var(--lilac-soft); }
td.al-no, span.al-no { color: var(--ink-soft); }
span.al-no { background: var(--fantasy-2); }
td.al-unknown, span.al-unknown { color: #8A5A00; font-weight: 700; }
span.al-unknown { background: #FFF1D0; }
[data-theme="dark"] td.al-unknown, [data-theme="dark"] span.al-unknown { color: #F2C66D; }
[data-theme="dark"] span.al-unknown { background: #33260F; }
.al-cards { display: none; list-style: none; padding: 0; margin: 18px 0 0; gap: 10px; }
.al-card { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 14px 16px; display: grid; gap: 4px; color: var(--ink-soft); }
.al-card strong { color: var(--ink); font-size: 1.05rem; }
.al-card.is-unsure { box-shadow: inset 4px 0 0 #E0A93A, var(--shadow-sm); }
.al-empty { margin-top: 18px; color: var(--ink-soft); }
.al-care { margin-top: 34px; max-width: 760px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink-soft); display: grid; gap: 8px; }
.al-care h2 { font-size: 1.3rem; color: var(--ink); }
.al-care a { color: var(--grape); font-weight: 600; }
.menu-allergens { margin-top: 10px; }
.menu-allergens a { color: var(--grape); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-underline-offset: 3px; }
.menu-allergens svg { width: 1em; height: 1em; }
/* Phones: one card per treat instead of a 10-column table. */
@media (max-width: 760px) {
  .al-table-wrap { display: none; }
  .al-cards { display: grid; }
}
.al-card .al-badge { justify-self: start; margin-left: 0; }

/* plain menu links for visitors (and crawlers) without JavaScript; js/app.js replaces them */
.js .seo-static { display: none; }
