/* Yummy Cak: styles shared by every page. The homepage scroll story keeps its own styles in index.html. */
:root {
  --bg: #221107;          /* same as the photo backgrounds */
  --glow: #6b3517;        /* spotlight behind the cake, changes per flavour */
  --cream: #FBF5EE;
  --cream-dim: #d9cabb;
  --rose: #C2456A;
  --rose-light: #E98AA5;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Jost", system-ui, sans-serif;
  --gutter: 16px;
  --cake-y: 53%;
}
@media (min-width: 900px) { :root { --gutter: 4vw; --cake-y: 57%; } }

* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); color: var(--cream); font: 400 1.0625rem/1.6 var(--body); }
body { background: var(--bg); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
/* Cormorant for headings (the logo keeps its Fraunces); italic marks the words that matter */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--rose-light); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose-light); outline-offset: 3px; }

/* liquid glass: a thick, even glass edge all the way round (no corner hot spots), light that glows
   a few pixels in from that edge, and a darker, deeper middle, like looking into a lens */
.glass { position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(14,6,2,.38), rgba(14,6,2,.52));
  -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
  box-shadow:
    inset 0 0 0 1px rgba(255,238,226,.30),        /* the rim */
    inset 0 0 0 4px rgba(255,238,226,.035),       /* the glass thickness just inside it */
    inset 0 0 18px 2px rgba(255,238,226,.17),     /* light caught in the edge, fading inward */
    0 0 0 1px rgba(0,0,0,.35),                    /* dark line that lifts it off the page */
    0 0 22px -4px rgba(255,238,226,.08),          /* faint halo outside the rim */
    0 18px 40px -18px rgba(0,0,0,.7); }
/* a slightly brighter top half of the rim, so it reads as lit from above without bright corners */
.glass::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 55%, rgba(255,255,255,.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.3em; border-radius: 999px;
  font: 500 .9375rem/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), background .25s, box-shadow .25s; }
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(.96); transition-duration: .15s; } /* the "liquid" squish on press */
.btn-rose { color: #fff; background: linear-gradient(180deg, #C9507A, #A8345A); /* brand rose: white text 4.8:1 and up */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.15), inset 0 0 0 1px rgba(255,255,255,.08),
              0 8px 22px -10px rgba(0,0,0,.7); }
.btn-glass { background: rgba(14,6,2,.3);
  box-shadow: inset 0 0 0 1px rgba(255,238,226,.26), inset 0 0 10px rgba(255,238,226,.1); }
.btn-glass:hover { background: rgba(255,238,226,.1); }

/* floating glass navigation */
.top { position: fixed; z-index: 10; top: 14px; left: var(--gutter); right: var(--gutter); max-width: 1180px; margin-inline: auto;
  display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 16px; border-radius: 999px; }
.top img { height: 32px; width: auto; }
.top nav { margin-left: auto; display: flex; gap: 6px; }
.top nav a:not(.btn) { display: none; }
@media (min-width: 700px) { .top nav a:not(.btn) { display: inline-flex; align-items: center; padding: 0 1em; text-decoration: none; color: var(--cream-dim); font-size: .9375rem; }
  .top nav a:not(.btn):hover { color: var(--cream); } }

/* fine film grain over everything */
body::after { content: ""; position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.menu h2 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); margin-bottom: .3em; }
/* flavour cards sit on soft pools of the flavour colours, so the glass has colour to catch */
.menu { padding: 8vh var(--gutter) 14vh;
  background: radial-gradient(38% 40% at 8% 45%, rgba(63,82,38,.5), transparent 70%),
              radial-gradient(34% 40% at 92% 42%, rgba(122,78,18,.45), transparent 70%),
              radial-gradient(40% 40% at 55% 78%, rgba(110,26,42,.45), transparent 70%), #221107; }
.menu > p { color: var(--cream-dim); max-width: 48ch; margin-bottom: 2.4rem; }
.menu ul { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); max-width: 1280px; }
.menu li { display: flex; flex-direction: column; padding: 14px 14px 22px; border-radius: 30px; }
.menu li img { aspect-ratio: 1; object-fit: cover; border-radius: 20px; margin-bottom: 16px;
  background: radial-gradient(circle closest-side at 50% 55%, var(--c), transparent); } /* closest-side: the glow fades out inside the square, no cut edge */
.menu h3 { font-size: 1.8rem; padding: 0 8px; }
.menu li p { color: var(--cream-dim); font-size: .9375rem; padding: 4px 8px 18px; flex: 1; }
.menu li .btn { align-self: flex-start; margin-left: 8px; }

/* why us + how to order: glass cards on the plain page colour */
.why, .steps, .idea-wrap { padding: 0 var(--gutter) 12vh; background: #221107; }
.why h2, .steps h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: .6em; }
.why ul, .steps ol { list-style: none; padding: 0; display: grid; gap: 16px; max-width: 1280px; }
.why ul { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps ol { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.why li, .steps li { padding: 28px 26px 30px; border-radius: 26px; }
.why svg { width: 28px; height: 28px; color: var(--rose-light); margin-bottom: 22px; }
.steps .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 22px; font: 500 1.35rem/1 var(--display); font-variant-numeric: lining-nums; }
.why h3, .steps h3 { font-size: 1.6rem; margin-bottom: .25em; }
.why p, .steps p { color: var(--cream-dim); font-size: .9375rem; line-height: 1.55; }

/* custom design band: the glass picks up a rose pool in its corner */
.idea { max-width: 1280px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between;
  padding: 36px clamp(24px, 4vw, 56px); border-radius: 32px; }
.idea.glass { background: radial-gradient(70% 140% at 0% 0%, rgba(194,69,106,.3), transparent 70%), linear-gradient(180deg, rgba(14,6,2,.38), rgba(14,6,2,.52)); }
.idea h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: .2em; }
.idea p { color: var(--cream-dim); }
.btn svg { width: 18px; height: 18px; margin-right: .55em; fill: currentColor; }

footer { padding: 10vh var(--gutter) 6rem; /* room for the floating WhatsApp button */ background: #1a0d05; color: var(--cream-dim); font-size: .9375rem; border-top: 1px solid rgba(255,245,235,.1); }
.foot { display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); max-width: 1280px; }
@media (min-width: 900px) { .foot { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
footer img { height: 38px; width: auto; margin-bottom: 18px; }
.foot p { max-width: 34ch; line-height: 1.6; }
.foot h3 { color: var(--cream); font-size: 1.4rem; margin-bottom: .6em; }
.foot nav a { display: block; padding: 7px 0; text-decoration: none; }
.foot nav a:hover { color: var(--cream); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: 1280px; margin-top: 56px; padding-top: 22px;
  border-top: 1px solid rgba(255,245,235,.1); font-size: .8125rem; }

/* floating WhatsApp button: WhatsApp green so it's known at a glance; arrives once the story is over */
.fab { position: fixed; z-index: 11; right: var(--gutter); bottom: 20px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  color: #fff; background: linear-gradient(180deg, #2BD46F, #1EA952);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 0 0 1px rgba(255,255,255,.12), 0 12px 28px -10px rgba(0,0,0,.8);
  opacity: 0; translate: 0 20px; pointer-events: none; transition: opacity .4s, translate .5s cubic-bezier(.34,1.56,.64,1), transform .45s cubic-bezier(.34,1.56,.64,1); }
.fab.on { opacity: 1; translate: 0 0; pointer-events: auto; }
.fab:hover { transform: scale(1.06); }
.fab:active { transform: scale(.94); }
.fab svg { width: 30px; height: 30px; fill: currentColor; }

/* inner pages: a title block under the floating nav, then the same sections as the homepage */
.page-head { padding: calc(110px + 7vh) var(--gutter) 8vh; }
.page-head h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: .95; margin-bottom: .3em; }
.page-head p { color: var(--cream-dim); font-size: 1.125rem; max-width: 46ch; }
.page-head .btn { margin-top: 1.6rem; }
.top nav a[aria-current] { color: var(--cream); }

/* policy text */
.prose-wrap { padding: 0 var(--gutter) 12vh; }
.prose { max-width: 48rem; padding: clamp(28px, 4vw, 52px); border-radius: 30px; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 1.6em 0 .45em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--cream-dim); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose :is(ul, p) + :is(p, ul) { margin-top: .8em; }
.prose a { color: var(--rose-light); }
.draft { display: inline-block; margin-bottom: 2rem; padding: .5em 1em; border-radius: 999px; font-size: .8125rem;
  color: var(--rose-light); box-shadow: inset 0 0 0 1px rgba(233,138,165,.4); }

/* questions: native <details>, one glass card each */
.faq { padding: 0 var(--gutter) 12vh; }
.faq h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: .6em; }
.faq div { display: grid; gap: 12px; max-width: 52rem; }
.faq details { padding: 20px 26px; border-radius: 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1em; font: 500 1.45rem/1.2 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rose-light); transition: rotate .3s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--cream-dim); margin-top: .6em; }

/* contact cards end in a button or link */
.why li .btn { margin-top: 1.2rem; }
.why li a:not(.btn) { color: var(--rose-light); }

/* finishing touches */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scrollbar-color: rgba(255,238,226,.22) #1a0d05; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgba(194,69,106,.6); color: #fff; }

/* small label above a heading, led by a hairline */
.eyebrow { display: block; margin-bottom: 1.4em; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-light); }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 12px; vertical-align: middle; background: currentColor; opacity: .7; }

/* Lenis smooth scroll (every page) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* pages fade into each other; the nav stays put */
@view-transition { navigation: auto; }
.top { view-transition-name: nav; }

/* cards lift and the cakes rise a little under the pointer */
.why li, .steps li, .menu li, .menu li img { transition: transform .6s cubic-bezier(.34,1.56,.64,1); }
@media (hover: hover) {
  .why li:hover, .steps li:hover, .menu li:hover { transform: translateY(-6px); }
  .menu li:hover img { transform: translateY(-8px) scale(1.03); }
}

/* sections rise in as they come into view (site.js adds .reveal; without JS everything simply shows) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; translate: 0 28px;
    transition: opacity 1s cubic-bezier(.2,.7,.2,1), translate 1.1s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.34,1.56,.64,1);
    transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s; }
  .reveal.in { opacity: 1; translate: 0 0; }
}

/* v5.12 ---------------------------------------------------------------- */

/* type: big Cormorant headings sit a touch tighter; the italic keeps its own spacing */
h1, h2 { letter-spacing: -0.02em; }
h1 em, h2 em { letter-spacing: -0.005em; }
html { font-kerning: normal; hanging-punctuation: first; }

/* rose buttons: a streak of light crosses on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn.btn-rose::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.32) 50%, transparent 70%);
  translate: -110% 0; transition: translate .9s cubic-bezier(.2,.7,.2,1); }
.btn.btn-rose:hover::after { translate: 110% 0; }

/* "Order this cake": an arrow that steps forward with the card */
.menu li .btn::after { content: "→"; margin-left: .55em; transition: translate .45s cubic-bezier(.34,1.56,.64,1); }
.menu li:hover .btn::after, .menu li .btn:focus-visible::after { translate: 4px 0; }

/* price line on each flavour */
.menu li .price { flex: 0; padding: 0 8px 18px; margin-top: -8px; font-size: .8125rem; letter-spacing: .04em; color: var(--cream-dim); }
.menu li .price b { display: block; margin-bottom: 6px; font: 500 1.45rem/1 var(--display); font-variant-numeric: lining-nums; color: var(--cream); letter-spacing: 0; }

/* phone: the menu becomes a swipe row, the next cake peeking in from the right */
@media (max-width: 699px) {
  .menu ul { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 24px; scroll-padding-inline: var(--gutter); }
  .menu ul::-webkit-scrollbar { display: none; }
  .menu li { scroll-snap-align: start; }
  .menu li img { margin-bottom: 8px; }
}

/* customer reviews */

/* footer sign-off: one big line before the links */
.signoff { max-width: 1280px; margin-bottom: 9vh; padding-bottom: 7vh; border-bottom: 1px solid rgba(255,245,235,.1);
  font: 400 clamp(3rem, 10vw, 8.5rem)/.95 var(--display); letter-spacing: -0.025em; color: var(--cream); text-wrap: balance; }
.signoff em { color: var(--rose-light); }

/* v5.14 ---------------------------------------------------------------- */

/* phone menu: a two-line button in the nav opens a glass panel under it (native popover) */
.menu-btn { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(14,6,2,.3); box-shadow: inset 0 0 0 1px rgba(255,238,226,.26); color: var(--cream); cursor: pointer; }
.menu-btn i { display: block; width: 18px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
body:has(#sheet:popover-open) .menu-btn i:first-child { transform: translateY(3.75px) rotate(45deg); }
body:has(#sheet:popover-open) .menu-btn i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (min-width: 700px) { .menu-btn, .sheet { display: none; } }

.sheet { position: fixed; inset: 84px var(--gutter) auto; width: auto; margin: 0; padding: 10px 10px 12px; border: 0; border-radius: 30px; color: var(--cream);
  flex-direction: column; opacity: 0; translate: 0 -10px;
  transition: opacity .35s, translate .5s cubic-bezier(.34,1.56,.64,1), display .5s allow-discrete, overlay .5s allow-discrete; }
.sheet:popover-open { display: flex; opacity: 1; translate: 0 0; }
@starting-style { .sheet:popover-open { opacity: 0; translate: 0 -10px; } }
.sheet::backdrop { top: 78px; /* the nav and its ✕ stay sharp */ background: rgba(10,4,1,.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet a:not(.btn) { padding: 14px 18px; font: 500 1.9rem/1.1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.sheet a:not(.btn) + a:not(.btn) { border-top: 1px solid rgba(255,245,235,.08); }
.sheet a[aria-current] { color: var(--rose-light); }
.sheet .btn { margin-top: 10px; min-height: 52px; }

/* laptop nav links: a hairline draws in under the hovered link */
.top nav a:not(.btn) { background: linear-gradient(currentColor, currentColor) 50% calc(100% - 10px) / 0 1px no-repeat; transition: background-size .4s cubic-bezier(.2,.7,.2,1), color .25s; }
.top nav a:not(.btn):hover, .top nav a[aria-current] { background-size: calc(100% - 2em) 1px; }

/* order planner: a glass card over the page (native <dialog>) */
.plan { position: fixed; width: min(560px, calc(100% - 2 * var(--gutter))); max-width: none; max-height: calc(100dvh - 32px); margin: auto;
  padding: 0; border: 0; border-radius: 30px; color: var(--cream); overflow: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, rgba(30,15,7,.88), rgba(22,10,4,.94));
  opacity: 0; translate: 0 16px; transition: opacity .35s, translate .5s cubic-bezier(.34,1.56,.64,1), display .5s allow-discrete, overlay .5s allow-discrete; }
.plan[open] { opacity: 1; translate: 0 0; }
@starting-style { .plan[open] { opacity: 0; translate: 0 16px; } }
.plan::backdrop { background: rgba(10,4,1,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.plan form { display: grid; gap: 22px; padding: 30px clamp(20px, 4.5vw, 38px) 24px; }
.plan .eyebrow { margin-bottom: -10px; }
.plan h2 { font-size: clamp(2.3rem, 7vw, 3rem); }
.plan-lead, .plan-note { color: var(--cream-dim); font-size: .9375rem; margin-top: -12px; }
.plan-note { margin-top: -8px; font-size: .8125rem; text-align: center; }
.plan-x { position: absolute; top: 18px; right: 18px; display: grid; place-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--cream); background: rgba(14,6,2,.3); box-shadow: inset 0 0 0 1px rgba(255,238,226,.26); }
.plan-x i { display: block; width: 16px; height: 1.5px; background: currentColor; rotate: 45deg; }
.plan-x i + i { margin-top: -1.5px; rotate: -45deg; }
.plan fieldset { border: 0; padding: 0; min-width: 0; }
.plan legend, .field > span { display: block; margin-bottom: 10px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-dim); }
.field i { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .7; }

/* choices are radio buttons dressed as chips; the picked one gets the rose ring */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font-size: .9375rem; background: rgba(255,238,226,.04); box-shadow: inset 0 0 0 1px rgba(255,238,226,.18); transition: box-shadow .25s, background .25s; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:hover { background: rgba(255,238,226,.08); }
.chips label:has(:checked) { background: rgba(194,69,106,.22); box-shadow: inset 0 0 0 1.5px var(--rose-light); }
.chips label:has(:focus-visible) { outline: 2px solid var(--rose-light); outline-offset: 3px; }
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.pics label { padding: 6px 14px 6px 6px; border-radius: 18px; line-height: 1.2; }
.pics img, .pics b { flex: none; width: 48px; height: 48px; border-radius: 12px; background: radial-gradient(circle closest-side, rgba(255,238,226,.08), transparent); }
.pics b { display: grid; place-items: center; font-weight: 400; font-size: 1.35rem; color: var(--rose-light); }

.field :is(input, textarea) { width: 100%; min-height: 50px; padding: 0 16px; border: 0; border-radius: 16px; color: var(--cream); font: inherit; color-scheme: dark;
  background: rgba(255,238,226,.05); box-shadow: inset 0 0 0 1px rgba(255,238,226,.18); }
.field :is(input, textarea)::placeholder { color: rgba(217,202,187,.5); }
.field :is(input, textarea):focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--rose-light); }
.plan:has([value="Pickup"]:checked) .area { display: none; }
.field textarea { display: block; padding: 14px 16px; resize: vertical; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--cream-dim); cursor: pointer; }
.agree input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--rose); }
.agree a { color: var(--rose-light); }
.prose .updated { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.6em; }
.ask { display: grid; gap: 20px; }
.ask h2 { margin: 0; }
.plan .btn { min-height: 54px; margin-top: 4px; }
.plan h2:focus { outline: none; } /* it takes focus on open (autofocus) so screen readers start at the title, not the ✕ */
