:root {
  /* Primary: light pink. Secondary: cream. Both editable in admin → Website. */
  --pink: #f4c3d2;
  --cream: #fdf8ec;
  --pink-strong: color-mix(in srgb, var(--pink), #b04a74 30%);
  --bg: var(--cream);
  --bg-alt: color-mix(in srgb, var(--pink) 30%, var(--cream));
  --surface: #fffdf9;
  --ink: #4a2c1d;
  --muted: #84695b;
  --gold: #b07a2c;
  --line: #eedfd3;
  /* Deep rose derived from the pink, for readable text (prices, links). */
  --accent: color-mix(in srgb, var(--pink) 28%, #5e1233);
  --accent-dark: color-mix(in srgb, var(--accent) 80%, #000);
  --accent-soft: color-mix(in srgb, var(--pink) 40%, #fff);
  --butter: #f6e7c1;
  --sage: #5f7d63;
  --sage-soft: #e1ecdf;
  --warn: #a8661b;
  --warn-soft: #fbebd0;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(150, 60, 95, 0.08);
  /* Type pairing from thevanillabeanblog.com: Amiri (serif) + Overpass (sans). */
  --font-head: "Amiri", Georgia, serif;
  --font-read: "Amiri", Georgia, serif;
  --font-body: "Overpass", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.4em; font-weight: 400; }
body:not(.admin) p { font-family: var(--font-read); font-size: 1.12em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.script {
  font-family: var(--font-body); color: var(--gold); font-size: 0.8rem; font-weight: 400; letter-spacing: 2px;
  text-transform: uppercase; line-height: 1.4; display: block; margin-bottom: 8px;
}
.muted { color: var(--muted); }
.center { text-align: center; }
[hidden] { display: none !important; }

/* Buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 24px;
  font: 700 0.85rem var(--font-body); letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; text-decoration: none;
  background: var(--pink); color: var(--ink); transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--pink-strong); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-small { padding: 8px 14px; font-size: 0.72rem; letter-spacing: 1px; }
.btn-danger { background: transparent; color: var(--accent-dark); border: 1.5px solid var(--accent-soft); }
.btn-danger:hover { background: var(--accent-soft); }
.btn-sage { background: var(--sage); }
.btn-sage:hover { background: #4b6650; }

label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 14px; }
label .hint { font-weight: 400; color: var(--muted); }
input, textarea, select {
  display: block; width: 100%; margin-top: 6px;
  font: 1rem var(--font-body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { resize: vertical; min-height: 70px; }
.row { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--ink); text-decoration: none; font-style: italic; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 400; font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; }
.nav a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
}

.demo-banner { background: var(--butter); color: var(--ink); text-align: center; font-size: 0.88rem; padding: 6px 16px; }

/* Hero */
.hero { padding: clamp(48px, 9vw, 96px) 0 clamp(40px, 6vw, 64px); text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 60%); opacity: 0.6; z-index: -1;
}
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); margin-bottom: 14px; }
.hero h1 em { color: var(--accent); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-weight: 700; font-size: 0.85rem; background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.pill.closed .dot { background: var(--muted); box-shadow: none; }

.verse { margin: 40px auto 0; max-width: 520px; }
.verse blockquote { margin: 0; font-family: var(--font-head); font-style: italic; font-size: clamp(1.1rem, 2.6vw, 1.35rem); line-height: 1.5; color: var(--ink); }
.verse figcaption { margin-top: 10px; font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.verse::before { content: ""; display: block; width: 60px; height: 1px; background: var(--gold); margin: 0 auto 18px; opacity: 0.6; }

/* Logo (transparent PNG). The footer is dark, so it sits on a cream badge there. */
.site-header .logo-img { height: 52px; width: auto; }
.hero-logo { width: min(380px, 80vw); height: auto; margin: 0 auto 18px; }
footer .logo-img { height: 90px; width: auto; margin: 0 auto 6px; background: var(--cream); border-radius: 12px; padding: 8px 12px; }
.footer-verse { font-size: 0.9rem; opacity: 0.85; max-width: 480px; margin: 10px auto; }

/* Sections */
section { padding: clamp(48px, 7vw, 80px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 36px; }

/* Drop card */
.drop { margin-bottom: 56px; }
.drop:last-child { margin-bottom: 0; }
.drop-info {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 26px; margin-bottom: 26px; display: grid; gap: 14px 30px; grid-template-columns: 1.4fr 1fr;
}
@media (max-width: 760px) { .drop-info { grid-template-columns: 1fr; } }
.drop-info h3 { font-size: 1.7rem; }
.drop-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.drop-meta li { display: flex; gap: 10px; }
.drop-meta b { min-width: 74px; color: var(--muted); font-weight: 700; }
.status-chip {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; background: var(--sage-soft); color: var(--sage); margin-bottom: 8px;
}
.status-chip.upcoming { background: var(--butter); color: var(--warn); }
.status-chip.closed, .status-chip.archived { background: var(--bg-alt); color: var(--muted); }
.status-chip.draft { background: #eee; color: #666; }

/* Items grid */
.items { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.item {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; position: relative;
}
.item-photo { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--bg-alt); }
.photo-placeholder { display: grid; place-items: center; font-size: 4rem; background: linear-gradient(135deg, var(--butter), var(--accent-soft)); }
.item-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.item-head h4 { font-size: 1.4rem; line-height: 1.15; margin: 0; }
.price { font-weight: 800; color: var(--accent); white-space: nowrap; }
.item .desc { color: var(--muted); font-size: 0.95rem; margin: 6px 0 4px; }
.item .allergens { font-size: 0.8rem; color: var(--muted); margin: 0 0 10px; }
.item .spacer { flex: 1; }
.stock { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 700; margin: 8px 0 12px; }
.bar { flex: 1; height: 6px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--pink-strong); border-radius: 99px; }
.stock.low { color: var(--warn); }
.stock.low .bar span { background: var(--warn); }
.ribbon {
  position: absolute; top: 14px; left: 14px; background: var(--ink); color: #fff;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px;
}
.ribbon.warn { background: var(--warn); }
.item.soldout .item-photo { filter: grayscale(0.6) opacity(0.7); }

.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stepper .qty-ctrl { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button.q {
  width: 40px; height: 38px; border: 0; background: var(--surface); font-size: 1.2rem; cursor: pointer; color: var(--ink);
}
.stepper button.q:hover:not(:disabled) { background: var(--bg-alt); }
.stepper button.q:disabled { color: #ccc; cursor: not-allowed; }
.stepper .qty { min-width: 32px; text-align: center; font-weight: 800; }
.stepper .limit { font-size: 0.8rem; color: var(--muted); }

/* Order bar */
.order-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30;
  width: min(560px, 100% - 24px); background: var(--ink); color: #fff; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 24px;
  box-shadow: 0 10px 30px rgba(58, 42, 36, 0.3);
}
.order-bar .btn { background: var(--pink); }

/* Steps */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px;
  background: var(--pink); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
}
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); margin: 0; }

/* Past bakes */
.past { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.past-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.past-card .collage { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; aspect-ratio: 4 / 3; }
.past-card .collage > * { width: 100%; height: 100%; object-fit: cover; font-size: 2.2rem; }
.past-card .collage > :only-child { grid-column: span 2; font-size: 3.5rem; }
.past-card .body { padding: 14px 18px 18px; }
.past-card h4 { font-size: 1.1rem; margin-bottom: 2px; }
.past-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* About */
.about { display: grid; gap: 40px; grid-template-columns: 1fr 1.3fr; align-items: center; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }
.about-art {
  aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, var(--butter), var(--accent-soft));
  display: grid; place-items: center; font-size: clamp(5rem, 14vw, 9rem); max-width: 360px; margin-inline: auto; width: 100%;
}

.about-art.has-photo { overflow: hidden; background: none; }
.about-art.has-photo img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { background: var(--surface); border-radius: 12px; padding: 4px 22px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-size: 1.25rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

footer { background: var(--ink); color: #e9ddd3; padding: 40px 0 120px; text-align: center; font-size: 0.92rem; }
footer a { color: #fff; }
footer .logo { color: #fff; }
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }

/* Dialog */
dialog {
  border: 0; border-radius: 20px; padding: 0; width: min(520px, 100% - 24px); max-height: calc(100% - 24px);
  background: var(--bg); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
dialog::backdrop { background: rgba(58, 42, 36, 0.45); }
.dialog-inner { padding: 26px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }
.dialog-head h3 { font-size: 1.6rem; margin: 0; }
.close-x { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.summary { background: var(--surface); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: 0.95rem; }
.summary .line { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.summary .total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; font-weight: 800; }
.cash-note {
  display: flex; gap: 10px; align-items: center; background: var(--sage-soft); color: #3f5a43;
  border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; font-weight: 700; margin-bottom: 18px;
}
.form-error { background: var(--accent-soft); color: var(--accent-dark); border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 0.92rem; margin-bottom: 14px; }
.confirm-code {
  font-family: var(--font-head); font-size: 2.6rem; letter-spacing: 0.15em; font-weight: 700; color: var(--accent);
  background: var(--surface); border: 2px dashed var(--accent-soft); border-radius: 14px; padding: 10px; text-align: center; margin: 8px 0 16px;
}

/* Toasts */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(420px, 100% - 32px); }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; box-shadow: var(--shadow); animation: pop 0.2s ease; }
.toast-error { background: var(--accent-dark); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

/* Calendar */
.cal { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; max-width: 340px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-family: var(--font-head); }
.cal-nav { background: none; border: 0; font-size: 1.4rem; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--ink); }
.cal-nav:hover { background: var(--bg-alt); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-wd { font-size: 0.72rem; font-weight: 800; color: var(--muted); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; border: 0; border-radius: 50%; background: none; font: 700 0.92rem var(--font-body);
  color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.cal-day:disabled { color: #cdbfb6; cursor: default; font-weight: 400; }
.cal-day.out { opacity: 0.45; }
.cal-day.avail { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--pink-strong); }
.cal-day.ok:hover { background: var(--bg-alt); }
.cal-day.sel, .cal-day.sel:hover { background: var(--pink); box-shadow: inset 0 0 0 2px var(--accent); color: var(--ink); }
.cal-day.today:not(.sel) { text-decoration: underline; text-underline-offset: 3px; }

/* Maps & pickup */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-alt); }
.map-wrap:empty { display: none; }
.map { display: block; width: 100%; height: 320px; border: 0; }
.map-wrap.small .map { height: 180px; }
.find-us {
  margin-top: 36px; display: grid; gap: 26px; grid-template-columns: 1fr 1.4fr; align-items: center;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px;
}
@media (max-width: 760px) { .find-us { grid-template-columns: 1fr; } }
.find-us h3 { font-size: 1.5rem; }
.find-address { font-weight: 800; font-size: 1.1rem; }
.pickup-pick { background: var(--surface); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.pick-label { display: block; margin-bottom: 8px; }
.pick-chosen { margin: 10px 0 12px; font-size: 0.95rem; }
.pick-where { display: grid; gap: 8px; font-size: 0.92rem; }
.add-cal { margin-bottom: 14px; }
.small-label { display: block; font-size: 0.85rem; margin-bottom: 6px; }
.add-cal-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.empty { text-align: center; padding: 40px 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty .big { font-size: 3rem; }
