/* =====================================================================
   Mel's — Bakery, Wine & Espresso · Soldotna, Alaska
   One stylesheet for every page.

   Quick map (search for these headings):
     COLORS + FONTS ........ the color schemes and fonts (Mel can try these in "Try a look")
     BASICS ................ page defaults
     HEADER ................ top bar, navigation
     BUTTONS
     HOME: HERO / TODAY / LOCATIONS / PASTRY CASE / COFFEE + FOOD / STORY / LAYERS / BAND
     INNER PAGES ........... menu, cakes, catering, rent, about, contact
     FORMS
     FOOTER / PHONE ACTION BAR
     MOTION ................ every animation lives here (and turns off cleanly)
   ===================================================================== */

/* ---------- COLORS + FONTS ---------- */
/* Each scheme is a short list of colors. The page reads them through var(--name).
   The scheme in use is set on the <html> tag: data-palette="fir" (and so on). */
:root {
  --bg: #FBF8F1;          /* flour */
  --bg-alt: #EFEBDE;      /* Mel's cream (from her current site) */
  --ink: #2A211B;         /* espresso */
  --ink-soft: #5E5249;
  --accent: #2F4A3A;      /* fir green: buttons and key highlights */
  --accent-hover: #233829;
  --on-accent: #FBF8F1;
  --wood: #C9A57B;        /* birch: details only, never text */
  --tint: #DFE5D8;
  --dark: #2F4A3A;
  --on-dark: #F4EFE3;
  --on-dark-soft: #C9D3C4;
  --line: rgba(42, 33, 27, .16);
  --shadow-rgb: 42 33 27;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --display-weight: 400;
  --display-tracking: -0.012em;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
  --step-3: clamp(1.85rem, 1.4rem + 1.9vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.6rem + 3vw, 3.9rem);
  --step-5: clamp(2.75rem, 1.7rem + 4.8vw, 5.4rem);

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius: 22px;
  --radius-sm: 12px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 900px) { :root { --header-h: 76px; } }

[data-palette="ink"] {
  --bg: #FFFFFF; --bg-alt: #F3EFE8; --ink: #1C1C1A; --ink-soft: #57534C;
  --accent: #1C1C1A; --accent-hover: #000000; --on-accent: #FFFFFF;
  --wood: #C9A57B; --tint: #ECE5D8; --dark: #1C1C1A; --on-dark: #F3EFE8; --on-dark-soft: #BDB6AA;
  --line: rgba(28, 28, 26, .16); --shadow-rgb: 28 28 26;
}
[data-palette="fireweed"] {
  --bg: #FCF7F4; --bg-alt: #F4E7E3; --ink: #2A211B; --ink-soft: #5E5048;
  --accent: #A3305B; --accent-hover: #86264A; --on-accent: #FFFFFF;
  --wood: #7E9C6B; --tint: #F3DAE2; --dark: #4A1A2E; --on-dark: #FBEFF2; --on-dark-soft: #E0BFCB;
}
[data-palette="wine"] {
  --bg: #FBF8F1; --bg-alt: #F2EAE1; --ink: #2A211B; --ink-soft: #5E5249;
  --accent: #6E2639; --accent-hover: #571D2C; --on-accent: #FBF8F1;
  --wood: #C9A57B; --tint: #EEDDDB; --dark: #4A1824; --on-dark: #F7EDE6; --on-dark-soft: #D9BFC0;
}
[data-font="quicksand"] { --font-display: "Quicksand", "Mulish", sans-serif; --display-weight: 700; --display-tracking: -0.015em; }
[data-font="figtree"]   { --font-display: "Figtree", "Mulish", sans-serif;   --display-weight: 800; --display-tracking: -0.03em; }

/* ---------- BASICS ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.08;
  text-wrap: balance;
}
h3 { line-height: 1.2; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--tint); color: var(--ink); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 880px; }
.section { padding-block: var(--section); }
.section-alt { background: var(--bg-alt); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.h-section { font-size: var(--step-4); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 38em; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); max-width: 46rem; }
.section-head p { margin: 0; }

/* The line drawings. Size them with width; color follows the text color. */
.ill { fill: none; stroke: currentColor; stroke-width: var(--sw, 1.25); stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

/* Small "tag" pills: drive-through, gluten-free, and so on */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--ink); font-size: var(--step--1); font-weight: 700; line-height: 1.4; }
.tag svg { width: 18px; height: 18px; }

/* Concept banner (removed automatically at launch) */
.concept-banner { padding: 7px 16px; background: var(--ink); color: var(--bg); font-size: var(--step--1); text-align: center; line-height: 1.4; }
.concept-banner a { color: inherit; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(var(--shadow-rgb) / .5); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand .badge { width: 52px; height: 52px; }
.brand-words { display: none; font-size: .75rem; line-height: 1.3; color: var(--ink-soft); font-weight: 600; }
@media (min-width: 900px) { .brand .badge { width: 60px; height: 60px; } }
@media (min-width: 1180px) { .brand-words { display: block; } }

.nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 2px; }
.nav-list a { display: block; padding: 10px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--ink); transition: background-color .2s; }
.nav-list a:hover { background: var(--bg-alt); }
.nav-list a[aria-current="page"] { background: var(--tint); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .header-actions { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 999px;
    background: transparent; color: var(--ink); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-toggle .icon-close { display: none; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; margin: 0;
    background: var(--bg); padding: 24px var(--gutter) 120px; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease), visibility 0s; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 2rem; padding: 10px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-list a:hover, .nav-list a[aria-current="page"] { background: none; }
  .nav-list a[aria-current="page"] { color: var(--accent); }
  .nav-open { overflow: hidden; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  border: 1.5px solid transparent;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.btn-ghost:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.btn-light { background: var(--on-dark); color: var(--dark); }
.btn-light:hover { background: #fff; }
.btn-outline-light { background: transparent; color: var(--on-dark); border-color: color-mix(in srgb, var(--on-dark) 45%, transparent); }
.btn-outline-light:hover { border-color: var(--on-dark); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 700; color: var(--accent); }
[data-palette="ink"] .text-link { color: var(--ink); }

/* ---------- HOME: HERO ---------- */
.hero { position: relative; padding: clamp(1.5rem, 1rem + 3vw, 4rem) 0 clamp(3rem, 2rem + 4vw, 5rem); overflow: clip; }
.hero-grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { font-size: var(--step-5); max-width: 11ch; }
.hero-sub { margin: 22px 0 30px; font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 31em; }
.hero-art { position: relative; justify-self: center; width: min(100%, 470px); }
@media (max-width: 899px) { .hero-art { width: min(58%, 230px); order: -1; margin: -6px 0 -14px; } .hero { padding-top: 12px; } }
.dome-art { width: 100%; height: auto; color: var(--ink); }
.dome-art .glass { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.dome-art .glint { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; opacity: .35; }
.dome-art .stand { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.dome-art .stand-top { fill: var(--bg-alt); }
.dome-art .glow { fill: var(--tint); }
.dome-lid { transform-box: view-box; transform-origin: 50% 80%; }

.badge text { fill: currentColor; font-family: var(--font-body); }
.badge .badge-words { font-size: 25px; font-weight: 600; letter-spacing: 6.5px; text-anchor: middle; }
.badge .badge-est { font-size: 23px; font-weight: 500; text-anchor: middle; letter-spacing: .5px; }
.badge .badge-ring { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.badge use { fill: currentColor; }
.badge .ring-spin { transform-box: view-box; transform-origin: 50% 50%; }

/* Hero, photo version (Mel can switch to this in "Try a look") */
.hero-photo { display: none; }
[data-hero="photo"] .hero-photo { display: block; }
[data-hero="photo"] .dome-art { display: none; }
.hero-photo .photo-slot { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); }

/* "Today at Mel's": both cafés, open or closed, tap to call */
.today { display: grid; gap: 10px; margin-top: 30px; max-width: 34rem; }
@media (min-width: 560px) { .today { grid-template-columns: 1fr 1fr; } }
.today-item { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--line); }
.today-name { font-weight: 800; font-size: .9375rem; }
.today-status { font-size: var(--step--1); color: var(--ink-soft); }
.today-phone { font-weight: 700; color: var(--accent); text-decoration: none; font-size: .9375rem; padding: 6px 0 0; }
[data-palette="ink"] .today-phone { color: var(--ink); }
.today-phone:hover { text-decoration: underline; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.status.is-open::before { background: #2E8B57; box-shadow: 0 0 0 4px rgba(46, 139, 87, .18); }
.status.is-closed::before { background: #B0453C; }

/* ---------- HOME: LOCATIONS ---------- */
.locations { display: grid; gap: 20px; }
@media (min-width: 860px) { .locations { grid-template-columns: 1fr 1fr; gap: 28px; } }
.loc-card {
  position: relative; display: grid; gap: 18px; align-content: start;
  padding: clamp(22px, 2vw + 12px, 38px); border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
}
.section-alt .loc-card { background: var(--bg); }
.loc-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.loc-name { font-size: var(--step-3); }
.loc-kicker { display: block; font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; letter-spacing: 0; color: var(--ink-soft); margin-bottom: 8px; }
.loc-head .ill { width: 74px; height: 74px; flex: none; color: var(--accent); --sw: 1.6; }
[data-palette="ink"] .loc-head .ill { color: var(--wood); }
.loc-address { font-style: normal; color: var(--ink-soft); }
.loc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hours { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.hours th, .hours td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today { background: var(--tint); }
.hours tr.is-today th { font-weight: 800; }
.hours tr.is-today th::after { content: " (today)"; font-weight: 600; color: var(--ink-soft); }
.hours tr.is-today th, .hours tr.is-today td { border-bottom-color: transparent; }
.hours tr.is-today th { border-radius: 10px 0 0 10px; }
.hours tr.is-today td { border-radius: 0 10px 10px 0; }

/* ---------- HOME: PASTRY CASE ---------- */
.case { position: relative; background: var(--bg-alt); }
.case-sticky { padding-block: var(--section); overflow: hidden; }
.case-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.case-head .section-head { margin: 0; }
.case-track {
  display: flex; gap: clamp(14px, 1vw + 8px, 26px);
  padding-inline: max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter))); padding-bottom: 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.case-track::-webkit-scrollbar { display: none; }
.case-item {
  flex: none; width: clamp(220px, 22vw + 120px, 330px); scroll-snap-align: start;
  display: grid; gap: 10px; align-content: start;
  padding: 18px 18px 22px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
}
.case-art { display: grid; place-items: center; aspect-ratio: 5 / 4; border-radius: 14px; background: linear-gradient(to bottom, transparent 78%, color-mix(in srgb, var(--wood) 55%, transparent) 78% 80%, transparent 80%), var(--bg-alt); }
.case-art .ill { width: 62%; color: var(--ink); --sw: 1.15; }
.case-item h3 { font-size: var(--step-2); }
.case-item p { margin: 0; color: var(--ink-soft); font-size: .9375rem; }
.case-end { background: var(--dark); color: var(--on-dark); border-color: transparent; align-content: center; gap: 18px; }
.case-end h3 { font-size: var(--step-3); }
.case-end p { color: var(--on-dark-soft); }
.case-hint { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- HOME: COFFEE + FOOD ---------- */
.split { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split-flip > :first-child { order: 2; } }
.cup-art { width: min(100%, 420px); margin-inline: auto; color: var(--ink); }
.cup-art .ill { --sw: 1; }
.cup-art .liquid { fill: var(--tint); }
.cup-art .liquid-line { fill: none; stroke: currentColor; stroke-width: 1; opacity: .5; }
.favorites { list-style: none; display: grid; gap: 0; margin: 26px 0 30px; }
.favorites li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.favorites li:first-child { border-top: 1px solid var(--line); }
.fav-name { font-weight: 700; }
.fav-note { font-size: var(--step--1); color: var(--ink-soft); text-align: right; }

.food-grid { display: grid; gap: 20px; margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
@media (min-width: 700px) { .food-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .food-grid { grid-template-columns: repeat(4, 1fr); } }
.food-card { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--bg-alt); }
.food-card .ill { width: 84px; height: 84px; margin-bottom: 6px; --sw: 1.4; }
.food-card h3 { font-size: var(--step-2); }
.food-card p { margin: 0; font-size: .9375rem; color: var(--ink-soft); }
.food-card .mi-tag { justify-self: start; }

/* ---------- HOME: STORY (words fill in as you scroll) ---------- */
.story { background: var(--bg); }
.story-inner { display: grid; gap: 34px; justify-items: start; }
.story-text { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: var(--step-3); line-height: 1.3; max-width: 26em; margin: 0; }
.story-text .w { transition: opacity .35s linear; }
.story-sign { display: flex; align-items: center; gap: 18px; }
.story-sign .badge { width: 92px; height: 92px; color: var(--accent); }
[data-palette="ink"] .story-sign .badge { color: var(--ink); }

/* ---------- HOME: LAYERS (stack like cake layers) ---------- */
.layers { display: grid; gap: 22px; }
.layer {
  position: relative; display: grid; gap: 22px; align-items: center;
  padding: clamp(24px, 3vw + 10px, 56px); border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 -18px 40px -32px rgb(var(--shadow-rgb) / .55);
}
@media (min-width: 860px) { .layer { grid-template-columns: 1.15fr .85fr; min-height: 420px; } }
.layer h3 { font-size: var(--step-4); }
.layer p { color: var(--ink-soft); max-width: 34em; }
.layer-list { list-style: none; display: grid; gap: 6px; margin: 0 0 26px; }
.layer-list li { display: flex; gap: 10px; align-items: baseline; }
.layer-list li::before { content: ""; width: 14px; height: 1.5px; background: currentColor; flex: none; transform: translateY(-4px); opacity: .5; }
.layer-art { display: grid; place-items: center; }
.layer-art .ill { width: min(70%, 260px); --sw: 1; }
.layer-1 { background: var(--bg-alt); }
.layer-2 { background: var(--tint); }
.layer-3 { background: var(--dark); color: var(--on-dark); border-color: transparent; }
.layer-3 p, .layer-3 .layer-list { color: var(--on-dark-soft); }
.layer-4 { background: var(--bg); }
.layer-price { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 24px; }
.layer-price div { display: grid; }
.layer-price strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-3); line-height: 1.1; }
.layer-price span { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- HOME: CLOSING BAND ---------- */
.band { background: var(--dark); color: var(--on-dark); text-align: center; overflow: hidden; }
.band-inner { display: grid; justify-items: center; gap: 26px; }
.band .ill { width: min(70vw, 360px); color: var(--on-dark-soft); --sw: .9; }
.band-title { font-size: var(--step-5); max-width: 13ch; }
.band p { color: var(--on-dark-soft); max-width: 34em; margin: 0; }
.band .btn-row { justify-content: center; }

/* ---------- INNER PAGES: PAGE HERO ---------- */
.page-hero { padding: clamp(2.5rem, 2rem + 4vw, 6rem) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .page-hero-grid { grid-template-columns: 1.3fr .7fr; } }
.page-hero h1 { font-size: var(--step-5); max-width: 14ch; }
.page-hero .lede { margin: 22px 0 28px; }
.page-hero-art { justify-self: center; width: min(62%, 300px); color: var(--accent); }
[data-palette="ink"] .page-hero-art { color: var(--ink); }
.page-hero-art .ill { width: 100%; height: auto; --sw: .85; }
.page-hero-art .badge { width: 100%; height: auto; }

/* ---------- MENU PAGE ---------- */
.menu-nav { position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.menu-nav ul { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding: 12px var(--gutter); scrollbar-width: none; max-width: 1240px; margin-inline: auto; }
.menu-nav ul::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; font-size: .9375rem; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.menu-section { padding-block: clamp(3rem, 2rem + 3vw, 5rem); border-bottom: 1px solid var(--line); }
.menu-section:last-of-type { border-bottom: 0; }
.menu-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; margin-bottom: 30px; }
.menu-head .ill { grid-row: span 2; width: 76px; height: 76px; color: var(--accent); --sw: 1.5; }
[data-palette="ink"] .menu-head .ill { color: var(--ink); }
.menu-head h2 { font-size: var(--step-4); }
.menu-head p { margin: 0; color: var(--ink-soft); }
.menu-list { list-style: none; display: grid; gap: 0 clamp(2rem, 4vw, 4rem); }
@media (min-width: 820px) { .menu-list { grid-template-columns: 1fr 1fr; } }
.menu-item { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.mi-top { display: flex; align-items: baseline; gap: 12px; }
.mi-name { font-weight: 800; font-size: 1.0625rem; }
.mi-top .price { margin-left: auto; }
.mi-desc { margin: 4px 0 0; color: var(--ink-soft); font-size: .9375rem; }
.mi-tag { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px; background: var(--tint); font-size: .8125rem; font-weight: 700; }
.price { font-weight: 800; font-variant-numeric: tabular-nums; }
.size .price { font-weight: 700; }
[data-prices="hidden"] .price, [data-prices="hidden"] .price-only { display: none; }
.price-note { display: none; font-size: var(--step--1); color: var(--ink-soft); }
[data-prices="shown"] .price-note { display: block; }
.menu-foot { margin-top: 26px; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- PHOTO SPOTS ----------
   A "photo spot" holds the place for one of Mel's real photos. When a photo arrives,
   swap the whole <figure class="photo-slot"> for an <img> (see HANDOFF.md). */
.photo-slot {
  position: relative; display: grid; place-items: center; align-content: center; gap: 12px; margin: 0;
  min-height: 200px; padding: 24px; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--wood) 22%, transparent), transparent 60%),
    var(--tint);
  color: var(--ink); text-align: center;
}
.photo-slot .ill { width: min(42%, 150px); --sw: 1.1; opacity: .9; }
.photo-slot figcaption { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); max-width: 22em; }
.photo-slot figcaption::before { content: "Photo spot: "; font-weight: 800; color: var(--ink); }
.photo-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ---------- CAKES PAGE ---------- */
.flavors { display: grid; gap: 20px; }
@media (min-width: 860px) { .flavors { grid-template-columns: repeat(3, 1fr); } }
.flavor { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2vw + 10px, 34px); border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.flavor .ill { width: 110px; height: 110px; color: var(--accent); --sw: 1.2; margin-bottom: 8px; }
[data-palette="ink"] .flavor .ill { color: var(--ink); }
.flavor h3 { font-size: var(--step-2); }
.flavor p { margin: 0; color: var(--ink-soft); }
.sizes { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .sizes { grid-template-columns: 1fr 1fr; } }
.size { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); }
.size-ring { flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid currentColor; font-weight: 800; color: var(--accent); }
[data-palette="ink"] .size-ring { color: var(--ink); }
.size-6 .size-ring { width: 52px; height: 52px; }
.size-8 .size-ring { width: 64px; height: 64px; }
.size strong { display: block; }
.size span { color: var(--ink-soft); font-size: .9375rem; }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; } .gallery .tall { grid-row: span 2; } .gallery .wide { grid-column: span 2; } }
.gallery .photo-slot { min-height: 180px; height: 100%; }
.gallery .arch { border-radius: 999px 999px var(--radius) var(--radius); }

/* ---------- CATERING PAGE ---------- */
.tiers { display: grid; gap: 20px; }
@media (min-width: 860px) { .tiers { grid-template-columns: 1fr 1fr; } }
.tier { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 2.5vw + 12px, 44px); border-radius: var(--radius); background: var(--bg-alt); text-decoration: none; transition: transform .35s var(--ease); }
.tier:hover { transform: translateY(-3px); }
.tier .ill { width: 92px; height: 92px; --sw: 1.3; }
.tier h2 { font-size: var(--step-3); }
.tier p { margin: 0; color: var(--ink-soft); }
.tier-dark { background: var(--dark); color: var(--on-dark); }
.tier-dark p { color: var(--on-dark-soft); }
.tier .text-link { margin-top: 6px; }
.tier-dark .text-link { color: var(--on-dark); }
.services { display: grid; gap: 18px; }
@media (min-width: 860px) { .services { grid-template-columns: 1fr 1fr; } }
.service { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2vw + 10px, 34px); border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.service h3 { font-size: var(--step-2); }
.service p { margin: 0; color: var(--ink-soft); }
.service ul { list-style: none; display: grid; gap: 4px; margin-top: 4px; }
.service li { display: flex; gap: 10px; }
.service li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .65em; border-radius: 50%; background: var(--wood); }
.service-price { margin-top: auto; padding-top: 10px; font-weight: 800; }
.pricing { width: 100%; border-collapse: collapse; }
.pricing th, .pricing td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pricing td { text-align: right; font-weight: 800; padding-left: 20px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 800; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--ink-soft); }
.faq .faq-body ul { list-style: none; display: grid; gap: 4px; }
.contact-card { display: grid; gap: 14px; padding: clamp(22px, 2vw + 10px, 34px); border-radius: var(--radius); background: var(--tint); }
.contact-card h3 { font-size: var(--step-2); }
.contact-card p { margin: 0; }

/* ---------- RENT PAGE ---------- */
.lamps { display: flex; justify-content: center; gap: clamp(18px, 5vw, 70px); margin: -10px auto 0; color: var(--ink); }
.lamps .lamp { width: clamp(64px, 9vw, 110px); }
.lamps .lamp .ill { width: 100%; height: auto; --sw: 1.1; }
.lamp:nth-child(2) { margin-top: 26px; } .lamp:nth-child(4) { margin-top: 14px; }
.lamp-glow { display: block; width: 46%; aspect-ratio: 1; margin: -6px auto 0; border-radius: 50%; background: radial-gradient(circle, #F6D58E 0 30%, rgba(246, 213, 142, 0) 70%); opacity: 0; transition: opacity .8s; }
.lamp.is-lit .lamp-glow { opacity: 1; }
html:not(.js) .lamp-glow { opacity: 1; }
.rent-options { display: grid; gap: 20px; }
@media (min-width: 860px) { .rent-options { grid-template-columns: 1fr 1fr; } }
.rent-card { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 2.5vw + 12px, 44px); border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.rent-card .ill { width: 96px; height: 96px; color: var(--accent); --sw: 1.3; }
[data-palette="ink"] .rent-card .ill { color: var(--ink); }
.rent-card h2 { font-size: var(--step-3); }
.rent-card p { margin: 0; color: var(--ink-soft); }
.rent-price { display: flex; align-items: baseline; gap: 10px; }
.rent-price strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-4); line-height: 1; }
.rent-price span { color: var(--ink-soft); font-weight: 700; }
.good-for { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- ABOUT PAGE ---------- */
.about-grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: .9fr 1.1fr; } }
.about-grid .photo-slot { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); }
.facts { list-style: none; display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts li:first-child { border-top: 1px solid var(--line); }
.facts .ill { width: 56px; height: 56px; color: var(--accent); --sw: 1.5; }
[data-palette="ink"] .facts .ill { color: var(--ink); }
.facts strong { display: block; font-size: 1.0625rem; }
.facts span { color: var(--ink-soft); font-size: .9375rem; }
.concept-note { position: relative; padding: 22px 24px; border-radius: 6px 22px 22px 22px; background: #FFF4C9; color: #3B3320; font-size: .9375rem; box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .45); max-width: 34em; }
.concept-note strong { display: block; margin-bottom: 4px; }

/* ---------- CONTACT PAGE ---------- */
.map-frame { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-alt); aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-frame .map-load { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; width: 100%; border: 0; background: transparent; color: var(--ink); font: 700 .9375rem var(--font-body); cursor: pointer; }
.map-frame .map-load .ill { width: 56px; height: 56px; --sw: 1.6; color: var(--accent); }
.contact-grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .85fr 1.15fr; } }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
.contact-list strong { display: block; }
.contact-list span { display: block; color: var(--ink-soft); font-size: .9375rem; }

/* ---------- FORMS ---------- */
.form-wrap { padding: clamp(22px, 3vw + 8px, 48px); border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.section-alt .form-wrap { background: var(--bg); }
.form { display: grid; gap: 18px; }
.form h2, .form h3 { font-size: var(--step-3); }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { font-weight: 700; font-size: .9375rem; }
.field .hint { font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); background: var(--bg);
  color: var(--ink); font: 500 1rem/1.4 var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); font-weight: 700; font-size: .9375rem; transition: background-color .2s, border-color .2s, color .2s; }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.form-status { padding: 14px 16px; border-radius: 12px; background: var(--tint); font-weight: 600; }
.form-status[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--bg-alt); padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: .8fr 1fr 1fr .8fr; gap: 48px; } }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand .badge { width: 120px; height: 120px; }
.footer-brand p { margin: 0; color: var(--ink-soft); font-size: .9375rem; }
.footer-loc h2, .footer-links h2 { font-size: var(--step-1); margin-bottom: 12px; }
.footer-loc address { font-style: normal; color: var(--ink-soft); font-size: .9375rem; margin-bottom: 8px; }
.footer-loc .hours { font-size: .875rem; }
.footer-loc .hours th, .footer-loc .hours td { padding: 5px 6px; }
.footer-loc .phone { display: inline-block; margin: 2px 0 10px; font-weight: 800; color: var(--ink); }
.footer-links ul { list-style: none; display: grid; gap: 4px; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-soft); }
.footer-bottom p { margin: 0; }

/* ---------- PHONE ACTION BAR ---------- */
.action-bar { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .action-bar .btn { min-height: 52px; padding: 0 12px; font-size: .9375rem; gap: 8px; }
}
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; background: rgb(var(--shadow-rgb) / .35); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.sheet.is-open { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
.sheet-panel { display: grid; gap: 10px; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--bg); transform: translateY(24px); transition: transform .35s var(--ease); }
.sheet.is-open .sheet-panel { transform: none; }
.sheet-panel h2 { font-size: var(--step-2); padding: 0 4px 4px; }
.sheet-option { display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--bg-alt); text-decoration: none; }
.sheet-option strong { font-size: 1.0625rem; }
.sheet-option span { font-size: .9375rem; color: var(--ink-soft); }
.sheet-close { min-height: 50px; border: 0; border-radius: 999px; background: transparent; font: 700 1rem var(--font-body); color: var(--ink); cursor: pointer; }
@media (min-width: 900px) { .sheet { align-items: center; justify-items: center; } .sheet-panel { width: 420px; border-radius: 22px; } }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--section); }
.not-found .ill { width: 140px; margin: 0 auto 22px; color: var(--accent); --sw: 1.2; }
.not-found h1 { font-size: var(--step-4); margin-bottom: 14px; }
.not-found .btn-row { justify-content: center; margin-top: 24px; }

/* =====================================================================
   MOTION
   Three levels, set on <html data-motion="...">:
     full   — everything: drawings draw in, pieces lift, the pastry case slides
     gentle — drawings draw in and sections fade in, nothing moves with the scroll
     off    — nothing animates (also used for anyone whose phone asks for less motion)
   Nothing is hidden unless JavaScript is running (html.js), so the page always works.
   ===================================================================== */

/* Drawings that draw themselves in */
.js:not([data-motion="off"]) .ill.draw { stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset 1.9s cubic-bezier(.55, .1, .25, 1); }
.js:not([data-motion="off"]) .ill.draw.is-drawn { stroke-dashoffset: 0; }

/* Sections and cards that fade (and in "full", rise) in */
.js:not([data-motion="off"]) [data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0s); }
.js[data-motion="full"] [data-reveal] { transform: translateY(26px); }
.js:not([data-motion="off"]) [data-reveal].is-in { opacity: 1; transform: none; }

/* Hero: the logo pipes itself in, then the glass dome lifts as you scroll */
@keyframes ring-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipe { from { transform: translateX(-560px); } to { transform: translateX(0); } }
.js:not([data-motion="off"]) .hero .glass,
.js:not([data-motion="off"]) .hero .stand,
.js:not([data-motion="off"]) .hero .badge-ring { stroke-dasharray: 1 2; animation: ring-draw 1.6s cubic-bezier(.55, .1, .25, 1) both; }
.js:not([data-motion="off"]) .hero .stand { animation-delay: .1s; }
.js:not([data-motion="off"]) .hero .glass { animation-delay: .35s; animation-duration: 1.9s; }
.js:not([data-motion="off"]) .hero .badge-ring { animation-delay: .6s; }
.js:not([data-motion="off"]) .hero .glint { animation: fade 1.2s 1.8s both; }
.js:not([data-motion="off"]) .hero .badge-words { animation: fade 1s 1.1s both; }
.js:not([data-motion="off"]) .hero .wipe-rect { animation: wipe 1.5s 1.15s cubic-bezier(.45, .05, .3, 1) both; }
.js:not([data-motion="off"]) .hero .badge-est { animation: fade .8s 2.3s both; }
.js:not([data-motion="off"]) .hero-copy > * { animation: fade-up 1s var(--ease) both; }
.js:not([data-motion="off"]) .hero-copy > :nth-child(2) { animation-delay: .12s; }
.js:not([data-motion="off"]) .hero-copy > :nth-child(3) { animation-delay: .24s; }
.js:not([data-motion="off"]) .hero-copy > :nth-child(4) { animation-delay: .36s; }
.js[data-motion="full"] .dome-lid { transform: translateY(calc(var(--p, 0) * -120px)) rotate(calc(var(--p, 0) * -7deg)); }
.js[data-motion="full"] .hero .ring-spin { transform: rotate(calc(var(--p, 0) * 160deg)); }
.js[data-motion="full"] .page-hero-art .ring-spin { transform: rotate(calc(var(--p, 0) * 160deg)); }

/* Pastry case: on wide screens the row slides sideways while you scroll down */
.js[data-motion="full"] .case.is-pinned { height: var(--case-h, auto); }
.js[data-motion="full"] .case.is-pinned .case-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 24px) 40px; }
.js[data-motion="full"] .case.is-pinned .case-track { overflow: visible; transform: translate3d(calc(var(--p, 0) * var(--case-shift, 0px) * -1), 0, 0); will-change: transform; }
.js[data-motion="full"] .case.is-pinned .case-hint { display: none; }

/* Coffee cup fills as you scroll past it */
.cup-art .liquid { transform-box: view-box; }
.js[data-motion="full"] .cup-art .liquid { transform: translateY(calc((1 - var(--p, 1)) * 150px)); }

/* Story: words fill in as you read down */
.js[data-motion="full"] .story-text .w { opacity: .18; }
.js[data-motion="full"] .story-text .w.on { opacity: 1; }

/* Cake layers stack on top of each other */
@media (min-width: 860px) {
  .js[data-motion="full"] .layers { gap: 34vh; padding-bottom: 6vh; }
  .js[data-motion="full"] .layer { position: sticky; top: calc(var(--header-h) + 24px + var(--i, 0) * 18px); }
}

/* Rent page lamps light up one by one (handled in script.js) */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.cup-art .liquid { stroke: none; }
.cup-art .liquid-line { stroke-dasharray: none !important; }

.menu-section { scroll-margin-top: 72px; }

/* ---------- Small fixes after review ---------- */
.section-alt .tier:not(.tier-dark) { background: var(--bg); border: 1px solid var(--line); }
@media (max-width: 859px) {
  .page-hero-art { order: -1; justify-self: start; width: 104px; margin-bottom: -6px; }
  .page-hero-art .ill { --sw: 1.3; }
  .band .ill { width: min(46vw, 220px); }
}
.gallery .photo-img { min-height: 180px; }
