/* Darcy's Bakery - cute-editorial (Japanese-Hawaiian) design system.
   Cream + ink field, guava accent, rose demoted, matcha/gold support.
   See docs/cute-editorial-direction.md + docs/design-review-1.md. */

:root {
  /* --- palette: cream + ink are the field; pastels are garnish --- */
  --cream: #fbf6ee;          /* primary surface (the field) */
  --cream-2: #f6eee1;        /* second cream band */
  --card: #ffffff;           /* card / panel fill */
  --paper: #fffdfb;          /* warm near-white (back-compat alias use) */
  --ink: #3a2a2f;            /* body + headline text, warm near-black */
  --plum: #5e3a47;           /* secondary text, footer ground */
  --muted: #6f5b61;          /* meta / secondary copy on cream (AA) */

  --guava: #e8745c;          /* signature accent - non-text fills, marks, underlines, beads */
  --guava-deep: #c2532f;     /* CTA fill bearing white text (4.7:1) + accents on cream */
  --deep-rose: #a85772;      /* secondary accent (demoted) */
  --rose-press: #8f4660;     /* darker rose */
  --rose: #d98ba3;           /* tertiary pastel, garnish only */
  --rose-soft: #f3d9e1;      /* soft chip fill */
  --matcha: #a8b89b;         /* cool counterweight - dietary tags, "ready" step */
  --matcha-deep: #5f6e54;    /* matcha that bears text on cream */
  --gold: #c9a86a;           /* champagne metallic - hairline / edge only */
  --butter: #f6c96b;         /* optional warm secondary */

  /* back-compat aliases (older inline var() refs keep resolving) */
  --rose-deep: var(--deep-rose);
  --blush: var(--cream);
  --blush-2: var(--cream-2);

  /* --- lines & shadows --- */
  --line: rgba(58, 42, 47, 0.12);        /* decorative dividers only */
  --field-line: rgba(58, 42, 47, 0.34);  /* form-control borders (~3:1) */
  --shadow: 0 24px 60px rgba(94, 58, 71, 0.16);
  --shadow-soft: 0 14px 40px rgba(94, 58, 71, 0.10);
  --shadow-lift: 0 1px 2px rgba(58, 42, 47, 0.06), 0 12px 30px -10px rgba(232, 116, 92, 0.34); /* coral frosting lift */

  /* --- type --- */
  --serif: Fraunces, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-display: clamp(3.25rem, 9vw, 7.5rem);
  --fs-h1: clamp(2.6rem, 6vw, 5rem);
  --fs-h2: clamp(2.05rem, 5vw, 3.7rem);
  --fs-h3: clamp(1.2rem, 2.6vw, 1.85rem);
  --fs-lead: clamp(1.1rem, 2vw, 1.4rem);
  --fs-body: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  --fs-label: 0.74rem;
  --ls-label: 0.12em;

  /* --- measures (collapsed to two running-copy widths) --- */
  --shell: 1200px;
  --shell-text: 720px;
  --measure-lede: 54ch;

  /* --- radius scale (never deviate) --- */
  --r-sm: 8px;     /* tags, chips, inputs */
  --r-md: 14px;    /* cards, panels, masks */
  --r-lg: 22px;    /* hero photo + one featured frame only */
  --r-pill: 999px; /* buttons + status beads only */
  --r-blob: 56% 44% 60% 40% / 46% 52% 48% 54%; /* one organic blob, hero only */
  --radius: var(--r-md);    /* back-compat alias */
  --radius-pill: var(--r-pill);

  /* --- motion --- */
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-squish: cubic-bezier(0.34, 1.56, 0.64, 1);

  --section-y: clamp(4rem, 9vw, 7.5rem);
  --section-x: clamp(1.2rem, 5vw, 5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* paper-grain wash - ties the page into one risograph-ish surface (static, buildless) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: 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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--guava-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.section.deep a:focus-visible,
.section.deep button:focus-visible,
.site-footer a:focus-visible { outline-color: var(--cream); }

.skip-link {
  position: fixed;
  left: 1rem; top: 1rem;
  z-index: 30;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  border-radius: var(--r-pill);
  background: var(--plum);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

/* shared micro-label role (sans, uppercase, tracked) - one source of truth */
.label, .eyebrow,
.quote h3, .contact-aside h3, .site-footer h4 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(251, 246, 238, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  flex: 0 0 auto;
  color: var(--guava); /* the mark inherits this */
}
.wordmark svg { width: 30px; height: 30px; }
.wordmark span {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 40, "SOFT" 50;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.header-end { display: flex; align-items: center; gap: clamp(0.6rem, 1.6vw, 1.1rem); }

.nav {
  display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.6rem);
  font-family: var(--sans);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(58, 42, 47, 0.74);
}
.nav a { position: relative; padding: 0.55rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--guava-deep); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem;
  height: 2px; background: var(--guava);
}
.nav .nav-cta {
  padding: 0.55rem 1rem;
  border-radius: var(--r-pill);
  background: var(--guava-deep);
  color: #fff;
}
.nav .nav-cta:hover { background: var(--rose-press); color: #fff; }
.nav .nav-cta::after { display: none; }
/* keep the pill white-on-guava even on its own page (beats the aria-current color rule) */
.nav .nav-cta[aria-current="page"] { color: #fff; }
.nav .nav-cta[aria-current="page"]::after { display: none; }

/* language toggle - cute pill, swaps to same page in the other language */
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--card); overflow: hidden;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
}
.lang-toggle a {
  padding: 0.55rem 0.85rem; min-height: 44px; display: inline-flex; align-items: center;
  color: var(--muted);
}
.lang-toggle a[aria-current="true"] { background: var(--guava-deep); color: #fff; }
.lang-toggle a:not([aria-current="true"]):hover { color: var(--guava-deep); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: transparent; color: var(--guava-deep); cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; }

/* ---------- Hero (asymmetric, headline anchored low) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 82% 4%, rgba(232, 116, 92, 0.12), transparent 52%),
    var(--cream);
}
.hero-inner {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3.5rem, 8vw, 6rem) var(--section-x) clamp(4rem, 9vw, 7rem);
  min-height: calc(88svh - 72px);
}
.hero-copy { max-width: 38rem; }
.hero-art { display: grid; place-items: center; align-self: center; position: relative; }
.hero-rosette { position: absolute; top: 4%; right: 6%; width: clamp(34px, 6vw, 54px); height: auto; color: var(--guava); transform: rotate(-8deg); }
@media (max-width: 1000px) { .hero-rosette { right: 20%; top: -4%; } }
.hero-art .blob {
  width: min(86%, 420px); aspect-ratio: 1; border-radius: var(--r-blob);
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.6), transparent 46%),
    linear-gradient(150deg, var(--rose-soft), var(--cream-2));
  box-shadow: var(--shadow-soft);
  animation: settle 1100ms var(--ease-settle) both;
}
.hero-art .blob svg { width: 52%; opacity: 0.85; color: var(--guava); }

/* hero copy entrance: stepped settle so the headline breathes in */
.js .hero-copy > * { animation: settle 800ms var(--ease-settle) both; }
.js .hero-copy > .eyebrow { animation-delay: 60ms; }
.js .hero-copy > h1 { animation-delay: 140ms; }
.js .hero-copy > .lede { animation-delay: 240ms; }
.js .hero-copy > .actions { animation-delay: 340ms; }

/* headline letter-reveal (scripts.js wraps words + chars; words stay intact) */
[data-split] .word { display: inline-block; white-space: nowrap; }
[data-split] .char { display: inline-block; }
.js [data-split] .char { animation: settle 680ms var(--ease-settle) both; animation-delay: calc(120ms + var(--char-index, 0) * 22ms); }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--plum);
  display: inline-flex; flex-direction: column; gap: 0.45rem;
}
.eyebrow::after { content: ""; width: 2.1rem; height: 1px; background: var(--gold); }
.section.deep .eyebrow { color: var(--rose-soft); }
.section.deep .eyebrow::after { background: var(--gold); }

h1, h2, h3 {
  margin: 0; font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "wght" 600, "SOFT" 72;
  line-height: 1.04; letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-h1); max-width: 14ch; }
.hero h1 {
  font-size: var(--fs-display); max-width: 18ch;
  font-variation-settings: "opsz" 144, "wght" 660, "SOFT" 78;
  letter-spacing: -0.035em; line-height: 0.98;
}
h2 { font-size: var(--fs-h2); color: var(--ink); }
h3 { font-size: var(--fs-h3); color: var(--ink); }
/* relax tracking on small h3 */
h3 { letter-spacing: -0.01em; }

.lede {
  max-width: var(--measure-lede);
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}
[data-balance] { text-wrap: balance; }

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
/* hero: the order path is the money path, so let its CTA carry more weight than the gallery ghost */
.hero .actions .button:not(.ghost) { padding: 1.15rem 2.4rem; font-size: 1.2rem; min-height: 56px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.85rem 1.35rem;
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--guava-deep); color: #fff;
  font: inherit; font-weight: 800; letter-spacing: 0.04em;
  box-shadow: 0 12px 26px -8px rgba(194, 83, 47, 0.5);
  cursor: pointer;
  transition: transform 220ms var(--ease-settle), box-shadow 220ms ease, background 220ms ease;
}
.button:hover { transform: translateY(-2px); background: var(--rose-press); }
.button.ghost {
  background: transparent; color: var(--guava-deep);
  border-color: rgba(194, 83, 47, 0.45); box-shadow: none;
}
.button.ghost:hover { background: rgba(232, 116, 92, 0.08); }
.button.cream { background: var(--card); color: var(--guava-deep); box-shadow: none; }
.section.deep .button.cream:hover { transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) var(--section-x); }
.section-inner { max-width: var(--shell); margin-inline: auto; }
.section.alt { background: var(--card); }
.section.tint { background: var(--cream-2); }
.section.deep { background: var(--plum); color: #fff; }
.section.deep h2, .section.deep h3 { color: #fff; }

.section-header { max-width: var(--shell-text); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-header p {
  margin: 1rem 0 0; color: var(--muted); font-size: var(--fs-lead); line-height: 1.55;
  max-width: var(--measure-lede);
}
.section.deep .section-header p { color: rgba(255, 255, 255, 0.82); }

/* ---------- Editorial / story grids ---------- */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.story-grid.flip > :first-child { order: 2; }

/* shared 4:5 media role - cards + about portrait behave identically */
.media-4x5 {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}
.gallery-grid.preview { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cake-card { display: grid; gap: 0.85rem; }
.cake-card figure {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  transition: transform 250ms var(--ease-settle), box-shadow 250ms ease;
}
.cake-card:hover figure { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.cake-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-settle); }
.cake-card:hover img { transform: scale(1.04); }
.cake-card:hover .ph svg { transform: scale(1.06); }
/* one feature cake on the gallery page - editorial focal, not uniform catalog */
.cake-card.feature { grid-column: span 2; }
.cake-card.feature figure { aspect-ratio: 16 / 11; border-radius: var(--r-lg); }
@media (max-width: 640px) { .cake-card.feature { grid-column: auto; } .cake-card.feature figure { aspect-ratio: 4 / 5; } }
/* keep the featured card legible as "featured" even when it collapses on mobile */
.cake-card.feature .tag { background: var(--guava); border-color: var(--guava); color: #fff; }

.cake-card .tag {
  position: absolute; left: 0.7rem; top: 0.7rem;
  padding: 0.3rem 0.65rem; border-radius: var(--r-pill);
  background: rgba(255, 253, 251, 0.92); color: var(--guava-deep);
  border: 1px solid rgba(194, 83, 47, 0.2);
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.cake-card .tag.special { color: var(--plum); border-color: var(--gold); }
.cake-card h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.cake-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* Placeholder state: intentional surface (light source + grain), never a broken image */
.ph {
  position: relative;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.7), transparent 42%),
    linear-gradient(150deg, var(--rose-soft), var(--cream-2));
  color: var(--guava);
}
.ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.ph svg { width: clamp(64px, 30%, 120px); opacity: 0.75; transition: transform 600ms var(--ease-settle); }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(1.2rem, 3vw, 2.4rem); }
.step { border-top: 1px solid var(--gold); padding-top: 1.2rem; }
.step .num {
  font-family: var(--serif); font-size: 1.6rem; color: var(--guava-deep); font-weight: 600;
}
.step h3 { margin: 0.5rem 0 0.4rem; font-family: var(--sans); font-size: 1.2rem; font-weight: 700; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Occasion tiles ---------- */
.tile-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.tile {
  position: relative; min-height: 280px; display: grid; align-content: end;
  padding: 1.2rem; color: #fff; isolation: isolate;
  background: var(--plum);
  transition: transform 220ms var(--ease-settle);
}
.tile:hover { transform: translateY(-3px); }
.tile:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.tile .ph { position: absolute; inset: 0; z-index: -2; }
/* floor gradient strong enough for white labels over a LIGHT placeholder, feathered by 66% */
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(46, 30, 35, 0.86) 0%, rgba(46, 30, 35, 0.4) 36%, transparent 66%); }
.tile span { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.tile strong { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; }

/* ---------- CTA band (the one deep exhale above the footer) ---------- */
.cta-band {
  max-width: var(--shell); margin-inline: auto;
  display: grid; place-items: center; text-align: center; gap: 1.2rem;
  padding: clamp(2.5rem, 6vw, 5rem);
  border-radius: calc(var(--r-md) + 8px);
  background:
    radial-gradient(circle at 15% 20%, rgba(232, 116, 92, 0.26), transparent 42%),
    var(--plum);
  color: #fff;
}
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { max-width: var(--measure-lede); color: rgba(255, 255, 255, 0.85); margin: 0; }

/* ---------- Inner-page hero ---------- */
.page-hero {
  background:
    radial-gradient(ellipse at 84% -20%, rgba(232, 116, 92, 0.12), transparent 55%),
    var(--cream);
}
.page-hero h1 { margin-top: 0.4rem; }
.page-hero .lede { max-width: var(--measure-lede); }

/* ---------- Order builder ---------- */
.builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.builder-step { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.builder-step:first-child { border-top: 0; padding-top: 0; }
.builder-step > legend, .builder-step > .legend {
  padding: 0; margin-bottom: clamp(0.9rem, 2vw, 1.2rem); font-family: var(--serif); font-size: clamp(1.1rem, 2.8vw, 1.35rem); font-weight: 600;
  font-variation-settings: "opsz" 80, "SOFT" 60;
}
.builder-step .hint { color: var(--muted); font-size: 0.92rem; margin: -0.4rem 0 0.9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { position: relative; }
.chip input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; overflow: hidden;
}
.chip label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1rem; min-height: 44px;
  border: 1px solid var(--field-line); border-radius: var(--r-sm);
  background: var(--card); color: var(--ink); font-weight: 600; cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 180ms var(--ease-squish);
}
.chip label small { color: var(--muted); font-weight: 600; }
.chip label:hover { border-color: var(--rose); }
.chip label:active { transform: scale(0.93, 0.9); } /* the one allowed squish - a physical press */
/* selected: non-color affordance (weight + inset ring + check) on top of the tint */
.chip input:checked + label {
  background: var(--rose-soft); border-color: var(--deep-rose); color: var(--rose-press);
  font-weight: 700; box-shadow: inset 0 0 0 2px var(--deep-rose);
}
.chip input:checked + label::before { content: "\2713"; font-weight: 800; color: var(--deep-rose); }
.chip input:checked + label small { color: var(--rose-press); }
.chip input:focus-visible + label { outline: 3px solid var(--guava-deep); outline-offset: 2px; }

.quote {
  position: sticky; top: 88px;
  padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card); box-shadow: var(--shadow-soft);
}
.quote h3 { color: var(--muted); margin: 0; }
.quote .total {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.6rem); color: var(--guava-deep);
  margin: 0.3rem 0 0.2rem; font-variation-settings: "opsz" 110, "SOFT" 70;
  font-variant-numeric: tabular-nums;
}
.quote .total.bump { animation: bump 280ms var(--ease-settle); }
.quote .est { color: var(--muted); font-size: 0.84rem; margin: 0 0 1rem; }
.quote ul { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.45rem; }
.quote li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; color: var(--muted); }
.quote li span:last-child { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.quote li.included span:last-child { color: var(--muted); font-weight: 600; }
.quote .button { width: 100%; }
.quote .wa-note { margin: 0.7rem 0 0; text-align: center; color: var(--muted); font-size: 0.84rem; }
.quote-deposit { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.quote-deposit strong { color: var(--ink); }
.quote-fine { margin: 0 0 1rem; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.quote details { margin: 0 0 1rem; }
.quote summary { cursor: pointer; color: var(--muted); font-size: 0.86rem; font-weight: 700; }
.order-bar { display: none; } /* mobile-only; flips to flex under 1000px */

/* ---------- Gallery filter ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.filter-bar button {
  min-height: 44px; padding: 0.6rem 1.05rem;
  border: 1px solid var(--field-line); border-radius: var(--r-pill);
  background: var(--card); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.filter-bar button:hover { border-color: var(--rose); }
.filter-bar button[aria-pressed="true"] { background: var(--deep-rose); border-color: var(--deep-rose); color: #fff; }
.gallery-empty { margin: 1rem 0 0; color: var(--muted); }

/* ---------- About / prose ---------- */
.prose { max-width: var(--shell-text); }
.prose p { margin: 0 0 1.2rem; color: var(--ink); font-size: var(--fs-body); line-height: 1.6; }
.prose p.lede { color: var(--muted); line-height: 1.55; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-aside { display: grid; gap: 1.4rem; }
.contact-aside h3 { color: var(--muted); margin: 0 0 0.4rem; }
.contact-aside a { color: var(--guava-deep); font-weight: 600; }
.contact-aside p { margin: 0; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Status journey (horizontal beads - "how every order moves", honest) ---------- */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin: 2rem 0 0; }
.journey-step { position: relative; display: grid; justify-items: center; text-align: center; gap: 0.7rem; }
.journey-step::before {
  content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 3px;
  background: var(--line); z-index: 0;
}
.journey-step:first-child::before { display: none; }
.journey-step .bead {
  position: relative; z-index: 1;
  width: 36px; height: 36px; border-radius: var(--r-pill);
  display: grid; place-items: center; color: #fff;
  background: var(--step, var(--guava)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--step, var(--guava)) 22%, transparent);
}
.journey-step[data-step="received"]  { --step: var(--ink); }
.journey-step[data-step="baking"]    { --step: var(--guava); }
.journey-step[data-step="decorating"]{ --step: var(--deep-rose); }
.journey-step[data-step="ready"]     { --step: var(--matcha-deep); }
.journey-step h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; }
.journey-step p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
@media (max-width: 720px) {
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey-step { grid-template-columns: 36px 1fr; justify-items: start; text-align: left; gap: 0.5rem 1rem; padding-bottom: 1.5rem; align-items: start; }
  .journey-step::before { top: 36px; right: auto; left: 17px; width: 3px; height: 100%; }
  .journey-step:first-child::before { display: block; top: 36px; }
  .journey-step:last-child::before { display: none; }
  .journey-step h3, .journey-step p { grid-column: 2; }
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-weight: 700; font-size: 0.92rem; }
/* visual required marker (the required attr already conveys to assistive tech) */
.field:has(> input:required, > textarea:required) > label::after { content: " *"; color: var(--guava-deep); font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 0.8rem 1rem;
  border: 1px solid var(--field-line); border-radius: var(--r-sm); background: var(--card);
  font: inherit; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-consent { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.form-status {
  margin: 0 0 1.2rem; padding: 1rem 1.2rem; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--matcha) 22%, var(--cream));
  border: 1px solid var(--matcha); color: var(--ink); font-weight: 600;
}

/* ---------- Footer (scalloped cake-board top edge) ---------- */
.site-footer {
  position: relative;
  display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(130px, 0.5fr));
  gap: 2rem;
  padding: clamp(3.4rem, 7vw, 5rem) var(--section-x) clamp(3rem, 7vw, 5rem);
  background: var(--plum); color: rgba(255, 255, 255, 0.82);
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -11px; height: 12px;
  background: var(--plum);
  -webkit-mask: radial-gradient(circle at 12px 12px, transparent 11px, #000 12px) repeat-x;
  mask: radial-gradient(circle at 12px 12px, transparent 11px, #000 12px) repeat-x;
  -webkit-mask-size: 24px 12px; mask-size: 24px 12px;
}
.site-footer .wordmark { color: var(--gold); }
.site-footer .wordmark span { color: #fff; }
.site-footer h4 { margin: 0 0 1rem; color: #fff; }
.site-footer a { color: rgba(255, 255, 255, 0.82); }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 0.5rem; }
.footer-links a { position: relative; padding-left: 1rem; }
.footer-links a::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: var(--r-pill); background: var(--gold); }
.footer-brand p { max-width: 32ch; }
.footer-fine { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.16); font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ---------- Reveal motion (staggered settle) ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-settle), transform 700ms var(--ease-settle); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.visible { opacity: 1; transform: none; }

@keyframes settle {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes bump { 0%, 100% { transform: none; } 40% { transform: scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .reveal, .js .hero-copy > *, .js [data-split] .char { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav {
    position: fixed; inset: 72px 1rem auto 1rem; z-index: 25;
    display: none; flex-direction: column; align-items: stretch; gap: 0.4rem;
    padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--card); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0.4rem; }
  .nav .nav-cta { text-align: center; }
  .menu-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { order: -1; }
  .hero-art .blob { width: min(58%, 240px); }
  .story-grid, .story-grid.flip > :first-child { grid-template-columns: 1fr; order: 0; }
  .builder { grid-template-columns: 1fr; }
  .tile-row { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: repeat(2, 1fr); }

  /* full quote returns to normal flow at the end; slim bar carries the live price */
  .quote { position: static; top: auto; box-shadow: var(--shadow-soft); }
  .section.alt { padding-bottom: calc(96px + env(safe-area-inset-bottom) + 1rem); }
  .order-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 19;
    display: flex; align-items: center; gap: 1rem;
    padding: 0.7rem clamp(1rem, 4vw, 2rem);
    padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
    background: rgba(251, 246, 238, 0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 28px rgba(94, 58, 71, 0.14);
  }
  .order-bar-total { display: flex; flex-direction: column; line-height: 1.1; }
  .order-bar-total span { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
  .order-bar-total strong { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--guava-deep); font-variant-numeric: tabular-nums; }
  .order-bar .button { margin-left: auto; white-space: nowrap; }
}
@media (max-width: 640px) {
  .tile-row { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}
