:root {
  /* brand colours, taken from the Mamaput.ng logo */
  --enamel: #FBFBF6;      /* page background */
  --lime: #AEC737;        /* logo green */
  --pot: #D35A00;         /* the pot in the logo */
  --rim: #4A7418;         /* deep green for rules, links, footer */
  --pepper: #B04B00;      /* darker pot orange, readable with white text */
  --plantain: var(--lime);
  --leaf: #233A0B;
  --ink: #1A1814;
  --muted: #5C574E;
  --line: #E4E1D6;
  --paper: #FFFFFF;

  --font: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.75rem, 8vw, 5.5rem);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 5rem); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--enamel);
}
img { max-width: 100%; }
a { color: var(--rim); }
h1, h2, h3 { line-height: 1.1; margin: 0; }
:focus-visible { outline: 3px solid var(--rim); outline-offset: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 50; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem clamp(1rem, 4vw, 3rem);
  background: var(--enamel);
  border-bottom: 3px solid var(--rim);
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: var(--step-1); }
.brand .logo { height: 5rem; width: auto; display: block; }
@media (max-width: 420px) { .brand .logo { height: 3.25rem; } }
.tray-button {
  font: inherit; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--ink); color: var(--enamel);
  border: 0; border-radius: 999px; padding: .55rem 1rem;
}
.tray-count { background: var(--plantain); color: var(--ink); border-radius: 999px; min-width: 1.6rem; padding: 0 .4rem; text-align: center; font-weight: 800; }
.tray-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ---------- hero: the painted signboard ---------- */
.hero {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  max-width: 78rem; margin: 0 auto;
}
.signboard {
  position: relative;
  background: var(--pot);
  color: #fff;
  border: 6px solid var(--ink);
  border-radius: 6px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  transform: rotate(-1.5deg);
  box-shadow: 10px 10px 0 var(--rim);
  animation: hang .9s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes hang { from { transform: rotate(-6deg) translateY(-16px); opacity: 0; } }
.signboard[data-mode="closed"] { background: var(--paper); color: var(--ink); box-shadow: 10px 10px 0 var(--muted); }
.signboard[data-mode="chop"] { background: var(--lime); color: var(--leaf); box-shadow: 10px 10px 0 var(--pot); }
.sign-kicker { margin: 0 0 .5rem; font-weight: 600; font-size: var(--step-1); color: var(--ink); }
.signboard[data-mode="chop"] .sign-kicker { color: var(--ink); }
.sign-title {
  font-size: var(--step-4);
  font-weight: 800;
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.02em;
  line-height: .92;
}
.sign-sub { margin: .9rem 0 0; font-size: var(--step-1); font-weight: 600; color: var(--ink); }
.signboard[data-mode="chop"] .sign-sub { color: var(--leaf); }

.lede { font-size: var(--step-2); line-height: 1.3; margin: 0 0 1.5rem; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { color: var(--muted); margin: 1.25rem 0 0; max-width: 40ch; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: .8rem 1.4rem; border: 2px solid var(--ink);
}
.btn-red { background: var(--pepper); border-color: var(--pepper); color: #fff; }
.btn-red:hover { background: #A51816; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--enamel); }
.btn-small { padding: .45rem 1rem; font-size: var(--step--1); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- free drink band ---------- */
.offer { background: var(--lime); color: var(--leaf); border-top: 3px solid var(--leaf); border-bottom: 3px solid var(--leaf); }
.offer { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .75rem clamp(1rem, 4vw, 3rem); }
.offer p { max-width: 70rem; margin: 0; font-size: var(--step-1); }
.promo-band { background: var(--pot); color: #fff; text-align: center; }
.promo-band p { max-width: 78rem; margin: 0 auto; padding: .8rem clamp(1rem, 4vw, 3rem); font-size: var(--step-1); font-weight: 800; }
.section-head .promo-pill { margin: 0; background: var(--pepper); color: #fff; font-weight: 800; border-radius: 999px; padding: .25rem .9rem; }
.head-notes { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.price .was { color: var(--muted); font-weight: 600; font-size: .8em; margin-right: .15rem; }
.qty-input { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: var(--step--1); }
.qty-input input { width: 5.5rem; font: inherit; font-size: var(--step-0); padding: .4rem .5rem; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); }
.tray-items .qty-input { justify-self: start; }
.tray-items .pack-note { grid-column: 1 / -1; margin: 0; font-size: var(--step--1); color: var(--muted); }
.drink-picker { display: grid; gap: .4rem; }
.picker-title { margin: 0; font-weight: 700; }
.drink-buttons { display: flex; flex-wrap: wrap; gap: .4rem; }
.drink-btn { font: inherit; font-weight: 700; font-size: var(--step--1); border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 999px; padding: .45rem .9rem; cursor: pointer; }
.drink-btn:hover { background: var(--lime); border-color: var(--lime); }
.tray-items .promo-note { grid-column: 1 / -1; margin: 0; font-size: var(--step--1); font-weight: 700; color: var(--pepper); }
.offer-mark { width: 3.5rem; height: 3.5rem; flex: none; }
/* Belleful Hours mark: the plate-clock with the 11am to 4pm slice */
.sign-mark { position: absolute; top: -2.75rem; right: -2.25rem; width: clamp(5.5rem, 12vw, 8.5rem); height: auto; transform: rotate(8deg); filter: drop-shadow(4px 4px 0 var(--ink)); }
.with-mark { display: inline-flex; align-items: center; gap: .75rem; }
.with-mark img { width: 3.5rem; height: 3.5rem; flex: none; }
.menu-nav a img { width: 1.25rem; height: 1.25rem; margin-right: .4rem; }

/* ---------- menu ---------- */
.menu { max-width: 78rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem) 3rem; }
.menu-section { padding: 2.5rem 0; border-top: 3px solid var(--rim); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.5rem; }
.section-head h2 { font-size: var(--step-3); font-weight: 800; }
.section-head p { margin: 0; color: var(--muted); }
.section-head .live { color: var(--leaf); font-weight: 700; }
.section-head .shut { color: var(--pepper); font-weight: 700; }

.dishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.dish {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start;
  background: var(--paper); padding: 1rem; border-radius: 10px; border: 1px solid var(--line);
}
/* the enamel plate: white dish with the classic blue rim */
.plate {
  width: 4.5rem; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--enamel) 58%, var(--rim) 60%, var(--rim) 70%, var(--enamel) 72%);
  display: grid; place-items: center;
  font-weight: 800; font-size: var(--step-1); color: var(--pot);
}
.dish h3 { font-size: var(--step-1); font-weight: 700; }
.dish p { margin: .25rem 0 .75rem; color: var(--muted); font-size: var(--step--1); max-width: 45ch; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.price { font-weight: 800; font-size: var(--step-1); }
.dish.unavailable { opacity: .6; }
.dish .tag { font-size: var(--step--1); font-weight: 700; color: var(--pepper); }
.dish .hint { font-size: var(--step--1); color: var(--muted); margin: 0 0 .5rem; }
.pick { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: flex-end; }
.pick select { font: inherit; font-size: var(--step--1); padding: .45rem .5rem; border: 2px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.in-tray { font-size: var(--step--1); color: var(--rim); font-weight: 700; }
.dishes-compact .dish { grid-template-columns: 1fr; }
.dishes-compact .plate { display: none; }
.dishes-compact .dish p:empty { display: none; }
.dishes-compact .dish p { margin-top: .1rem; }

.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.stepper button { font: inherit; font-weight: 800; width: 2.3rem; height: 2.3rem; border: 0; background: transparent; cursor: pointer; }
.stepper button:hover { background: var(--plantain); }
.stepper output { min-width: 1.8rem; text-align: center; font-weight: 800; }
.add-btn { font: inherit; font-weight: 700; cursor: pointer; border: 2px solid var(--ink); background: var(--ink); color: var(--enamel); border-radius: 999px; padding: .45rem 1.1rem; }
.add-btn:hover { background: var(--pepper); border-color: var(--pepper); }

/* ---------- story & footer ---------- */
.story { max-width: 78rem; margin: 0 auto; padding: 3rem clamp(1rem, 4vw, 3rem); border-top: 3px solid var(--rim); }
.story h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.story p { font-size: var(--step-1); max-width: 60ch; margin: 0; }
.footer {
  background: var(--rim); color: var(--enamel);
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  padding: 3rem clamp(1rem, 4vw, 3rem) calc(3rem + env(safe-area-inset-bottom, 0px));
}
.footer h2 { font-size: var(--step-1); margin-bottom: .4rem; color: var(--lime); }
.footer p { margin: 0; }
.footer .directions { margin-top: .35rem; opacity: .85; font-size: var(--step--1); max-width: 34ch; }
.footer a { color: var(--enamel); }

/* ---------- tray (drawer on desktop, sheet on phones) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(26, 24, 20, .45); z-index: 30; }
.tray {
  position: fixed; z-index: 40; top: 0; right: 0; bottom: 0;
  width: min(100%, 27rem); background: var(--enamel);
  border-left: 3px solid var(--rim);
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1.25rem calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
}
.tray-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.tray-head h2 { font-size: var(--step-2); }
.icon-btn { font: inherit; font-size: 1.75rem; line-height: 1; border: 0; background: none; cursor: pointer; padding: .25rem .5rem; }
.tray-items { list-style: none; margin: 0 0 1rem; padding: 0; }
.tray-items li { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.tray-items .name { font-weight: 600; }
.tray-items .line-total { font-weight: 700; text-align: right; }
.tray-items .stepper { justify-self: start; }
.tray-items .warn { grid-column: 1 / -1; color: var(--pepper); font-size: var(--step--1); margin: 0; }
.tray-empty { color: var(--muted); }

.checkout { display: grid; gap: .9rem; }
.checkout label { display: block; font-weight: 600; font-size: var(--step--1); }
.checkout label > input:not([type=radio]), .checkout label > textarea, .checkout label > select { display: block; width: 100%; margin-top: .3rem; }
.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.when-note { margin: 0; font-size: var(--step--1); color: var(--muted); }
.when-note.good { color: var(--rim); font-weight: 700; }
.when-note.bad { color: var(--pepper); font-weight: 600; }
.checkout input:not([type=radio]), .checkout textarea, .checkout select {
  font: inherit; font-weight: 400; font-size: var(--step-0);
  padding: .65rem .8rem; border: 2px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink);
}
.checkout input:focus, .checkout textarea:focus { border-color: var(--rim); outline: none; }
.optional { color: var(--muted); font-weight: 400; }
.fulfilment { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.fulfilment legend { font-weight: 700; margin-bottom: .5rem; }
.checkout .fulfilment label { display: flex; align-items: center; gap: .5rem; border: 2px solid var(--line); border-radius: 8px; padding: .65rem; cursor: pointer; font-size: var(--step--1); }
.fulfilment label:has(input:checked) { border-color: var(--rim); background: #F1F6DF; }
.delivery-fields { display: grid; gap: .6rem; }
.quote-line { margin: 0; font-size: var(--step--1); color: var(--muted); }
.quote-line.ok { color: var(--leaf); font-weight: 600; }
.quote-line.bad { color: var(--pepper); }
.totals { margin: .5rem 0 0; border-top: 2px solid var(--ink); padding-top: .5rem; }
.totals div { display: flex; justify-content: space-between; padding: .2rem 0; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { font-weight: 800; font-size: var(--step-1); }
.form-error { color: var(--pepper); font-weight: 600; margin: 0; min-height: 1.2em; }
.fine { font-size: var(--step--1); color: var(--muted); margin: 0; }

/* ---------- order page ---------- */
.order-page { max-width: 40rem; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2rem) 4rem; }
.order-code { font-size: var(--step-4); font-weight: 800; color: var(--pepper); line-height: 1; margin: .25rem 0 1rem; }
.order-page h1 { font-size: var(--step-3); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0; display: grid; gap: .5rem; }
.steps li { counter-increment: step; display: flex; gap: .9rem; align-items: center; color: var(--muted); padding: .6rem 0; }
.steps li::before {
  content: counter(step); flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; border: 3px solid var(--line); background: var(--paper);
}
.steps li.done { color: var(--ink); }
.steps li.done::before { border-color: var(--rim); background: var(--rim); color: var(--enamel); }
.steps li.now { color: var(--ink); font-weight: 700; }
.steps li.now::before { border-color: var(--pepper); background: var(--plantain); color: var(--ink); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; margin-top: 1.25rem; }
.panel h2 { font-size: var(--step-1); margin-bottom: .5rem; }
.panel ul { list-style: none; padding: 0; margin: 0; }
.panel li { display: flex; justify-content: space-between; padding: .25rem 0; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .sign-mark { top: -2rem; right: -.75rem; }
  .lede { font-size: var(--step-1); }
  .tray { top: auto; width: 100%; max-height: 92%; border-left: 0; border-top: 3px solid var(--rim); border-radius: 16px 16px 0 0; }
}

.signboard[data-mode="launch"] .sign-title { font-size: clamp(2.5rem, 6.5vw, 4.5rem); }
.menu-nav { max-width: 78rem; margin: 0 auto; padding: 1.25rem clamp(1rem, 4vw, 3rem) 0; display: flex; gap: .5rem; overflow-x: auto; }
.menu-nav a { display: inline-flex; align-items: center; flex: none; text-decoration: none; font-weight: 700; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: .4rem 1rem; }
.menu-nav a:hover { background: var(--lime); border-color: var(--lime); }
.menu-nav + .menu .menu-section:first-child { border-top: 0; }
.signboard:has(.sign-mark:not([hidden])) .sign-kicker { padding-right: clamp(3.5rem, 9vw, 5.5rem); }
