/* RaaCha.com: custom layer on top of Tailwind (CDN) */

:root {
  --pandan: #0E3B2C;
  --pandan-deep: #08241B;
  --pandan-soft: #1F5A45;
  --rice: #FBFBF7;
  --steel: #DCE3E0;
  --steel-soft: #EEF2F0;
  --ink: #14201B;
  --chili: #E0352B;
  --broth: #F2B705;
  --leaf: #2F9E5B;
  --radius-lg: 28px;
  --radius-md: 14px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--rice);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "tnum" 0;
}
.tabular { font-variant-numeric: tabular-nums; }

/* Display type: Anybody, set wide and heavy like shop signage */
.font-display {
  font-family: "Anybody", "Instrument Sans", sans-serif;
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.font-display.is-wider { font-stretch: 140%; }
.hero-title { font-size: clamp(2.4rem, 4.9vw, 4.4rem); line-height: .98; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-stretch: 115%; line-height: 1.15; }
.measure { max-width: 62ch; }

/* Wordmark */
.wordmark {
  font-family: "Anybody", sans-serif;
  font-stretch: 140%;
  font-weight: 850;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.wordmark span { font-weight: 500; font-stretch: 100%; opacity: .7; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.4rem; border-radius: 999px;
  font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-broth { background: var(--broth); color: var(--pandan-deep); }
.btn-broth:hover { background: #FFCB2E; }
.btn-pandan { background: var(--pandan); color: var(--rice); }
.btn-pandan:hover { background: var(--pandan-soft); }
.btn-line-light { border: 1.5px solid rgba(251,251,247,.45); color: var(--rice); }
.btn-line-light:hover { border-color: var(--rice); background: rgba(251,251,247,.08); }
.btn-line { border: 1.5px solid rgba(20,32,27,.25); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

/* Visible keyboard focus everywhere */
:focus-visible { outline: 3px solid var(--broth); outline-offset: 3px; border-radius: 6px; }
.bg-pandan :focus-visible, .bg-pandan-deep :focus-visible { outline-color: var(--broth); }

/* Links in prose */
.prose-link { color: var(--pandan); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose-link:hover { color: var(--chili); }
.on-dark .prose-link { color: var(--broth); }

/* Photo frames: a warm fill shows while a photo loads or if a slot is still empty */
.photo { background: var(--pandan-soft); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Receipt (hero sample + tray calculator) ---------- */
.receipt {
  background: #fff;
  color: var(--ink);
  border-radius: 6px 6px 0 0;
  padding: 1.4rem 1.4rem 1.6rem;
  box-shadow: 0 24px 50px -18px rgba(8, 36, 27, .55);
  position: relative;
  font-variant-numeric: tabular-nums;
}
.receipt::after { /* torn paper edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background:
    linear-gradient(-45deg, transparent 6px, #fff 0) 0 0 / 14px 10px repeat-x,
    linear-gradient(45deg, transparent 6px, #fff 0) 0 0 / 14px 10px repeat-x;
}
.receipt-rule { border-top: 1.5px dashed #C9D2CE; }
.receipt-line { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: baseline; padding: .28rem 0; }
.receipt-line .qty { color: #5B6B64; font-size: .9em; }

.receipt-print .receipt-line { opacity: 0; transform: translateY(-4px); }
.receipt-print.is-printing .receipt-line { animation: printLine .32s ease forwards; }
@keyframes printLine { to { opacity: 1; transform: none; } }

/* Container dots: the colour is the price tier */
.tier-dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); flex: none; transform: translateY(1px); }
.tier-white { background: #fff; border-color: #B9C4BF; }
.tier-red { background: var(--chili); }
.tier-yellow { background: var(--broth); }
.tier-green { background: var(--leaf); }

/* Big container bowls on the home page */
.bowl {
  width: clamp(4.6rem, 11vw, 7.5rem); aspect-ratio: 1; border-radius: 50%;
  position: relative; margin-inline: auto;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.08), 0 10px 18px -10px rgba(8,36,27,.45);
}
.bowl::after { content: ""; position: absolute; inset: 15%; border-radius: 50%; box-shadow: inset 0 4px 10px rgba(0,0,0,.14); }
.bowl.tier-white { border: 2px solid #C9D2CE; }
.tray-surface { background: linear-gradient(180deg, #E6ECE9, #CFD8D4); border-radius: var(--radius-lg); }

/* Steps */
.step-num { font-family: "Anybody", sans-serif; font-stretch: 140%; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--pandan); }

/* Menu */
.cat-nav a[aria-current="true"] { background: var(--pandan); color: var(--rice); border-color: var(--pandan); }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--steel); }
@media (max-width: 639px) {
  .menu-item { grid-template-columns: 1fr; gap: .6rem; }
  .menu-item > div:last-child { justify-content: space-between; }
}
.menu-item.in-tray { background: linear-gradient(90deg, rgba(242,183,5,.12), transparent 70%); }
.qty-ctl { display: inline-flex; align-items: center; border: 1.5px solid var(--steel); border-radius: 999px; overflow: hidden; background: #fff; }
.qty-ctl button { width: 2.6rem; height: 2.6rem; font-size: 1.25rem; line-height: 1; color: var(--pandan); font-weight: 700; }
.qty-ctl button:hover { background: var(--steel-soft); }
.qty-ctl button:disabled { color: #B5C0BB; cursor: not-allowed; background: transparent; }
.qty-ctl output { min-width: 1.8rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* City chips on the outlets page */
.chip { border: 1.5px solid rgba(20,32,27,.18); border-radius: 999px; padding: .45rem 1rem; font-weight: 500; font-size: .95rem; background: #fff; }
.chip:hover { border-color: var(--pandan); }
.chip[aria-pressed="true"] { background: var(--pandan); border-color: var(--pandan); color: var(--rice); }

/* FAQ */
details.faq { border-bottom: 1px solid var(--steel); }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-weight: 600; font-size: 1.1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .plus { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; transition: transform .2s ease; font-weight: 500; }
details.faq[open] summary .plus { transform: rotate(45deg); }
details.faq .answer { padding: 0 0 1.25rem; max-width: 66ch; color: #34443D; }

/* Timeline */
.timeline li { position: relative; padding-left: 2rem; }
.timeline li::before { content: ""; position: absolute; left: .35rem; top: .55rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--broth); box-shadow: 0 0 0 4px rgba(242,183,5,.25); }
.timeline li::after { content: ""; position: absolute; left: .68rem; top: 1.6rem; bottom: -1.4rem; width: 2px; background: var(--steel); }
.timeline li:last-child::after { display: none; }

/* Mobile tray bar */
.tray-bar { box-shadow: 0 -10px 30px -12px rgba(8,36,27,.35); }

/* Legal pages */
.legal h2 { font-family: "Anybody", sans-serif; font-stretch: 115%; font-weight: 750; font-size: 1.45rem; margin: 2.2rem 0 .6rem; line-height: 1.2; }
.legal p, .legal li { color: #2B3A34; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: .5rem 0 1rem; }
.legal p { margin: .6rem 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .receipt-print .receipt-line { opacity: 1; transform: none; }
}

/* Elements toggled with the hidden attribute must stay hidden even with display utilities */
[hidden] { display: none !important; }

/* Listing freshness on outlet cards and pages */
.status-dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--leaf); flex: none; box-shadow: 0 0 0 3px rgba(47,158,91,.18); }
.status-dot.older { background: var(--broth); box-shadow: 0 0 0 3px rgba(242,183,5,.22); }
