/* Majahua order screen: the site's look (truck black, framed walls in its mint, pink and gold), sized for a tablet
   read at arm's length in a busy truck. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/fonts/archivo.woff2') format('woff2-variations');
}

:root {
  --black: #0c0b0b;
  --black-lift: #1d1a19;
  --ivory: #f4eee2;
  --ivory-dim: #c7bdad;
  --rule: rgba(244, 238, 226, 0.26);
  --menta: #45e0a0;
  --rosa: #ff4fa3;
  --oro: #f5c03a;
  --ink-rule: rgba(12, 11, 11, 0.55);
  --font: 'Archivo', system-ui, sans-serif;
  color-scheme: dark;
  accent-color: var(--menta);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--black); color: var(--ivory); font-family: var(--font); font-size: 18px; line-height: 1.4; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }
.pad { padding: 24px; }

.display { font-stretch: 62%; font-weight: 900; text-transform: uppercase; line-height: 0.88; letter-spacing: 0.01em; margin: 0; }
.wall { position: relative; padding: 26px 24px 28px; color: var(--black); background: var(--wall); outline: 1px solid var(--ink-rule); outline-offset: -4px; }
.wall::after { content: ''; position: absolute; inset: 10px; border: 1px solid var(--ink-rule); pointer-events: none; }
.wall > * { position: relative; z-index: 1; }
.wall--menta { --wall: var(--menta); }
.wall--rosa { --wall: var(--rosa); }
.wall--oro { --wall: var(--oro); }
.wall .display { font-size: clamp(2.6rem, 9vw, 5rem); }
.lead { margin: 0.6em 0 0; font-weight: 650; font-size: 1.15rem; max-width: 34rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px; border: 0; font-weight: 800; letter-spacing: 0.01em; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--menta { background: var(--menta); color: var(--black); }
.btn--oro { background: var(--oro); color: var(--black); }
.btn--black { background: var(--black); color: var(--ivory); }
.btn--quiet { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 2px var(--rule); }
.btn--quiet-dark { background: transparent; color: var(--black); box-shadow: inset 0 0 0 2px var(--ink-rule); margin-top: 14px; }
.btn--big { min-height: 64px; font-size: 1.2rem; padding: 14px 28px; }
.btn--huge { min-height: 96px; font-size: 2rem; width: 100%; margin-top: 18px; text-transform: uppercase; font-stretch: 75%; font-weight: 900; }

/* sign in */
.solo { display: grid; gap: 22px; max-width: 560px; margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 18px 40px; }
.stack { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 700; }
.field input { font: inherit; font-size: 1.2rem; padding: 14px; background: var(--black-lift); color: var(--ivory); border: 2px solid var(--rule); border-radius: 0; }
.field input:focus { border-color: var(--menta); outline: none; }
.check { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.check input { width: 26px; height: 26px; }
.error { color: var(--rosa); font-weight: 700; margin: 0; min-height: 1.4em; }
.big { font-size: 1.5rem; font-weight: 800; margin: 0; }

/* order screen */
.screen { min-height: 100vh; padding: 0 0 40px; }
.bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 12px 18px; background: var(--black); border-bottom: 1px solid var(--rule); }
.bar__name { margin: 0; font-weight: 700; font-size: 1.1rem; }
.bar__name .display { font-size: 1.9rem; color: var(--menta); margin-right: 4px; }
.bar__actions { margin-left: auto; display: flex; gap: 10px; }
.pill { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--rule); }
.pill__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ivory-dim); }
.pill[data-state='on'] .pill__dot { background: var(--menta); box-shadow: 0 0 0 4px rgba(69, 224, 160, 0.25); }
.pill[data-state='off'] .pill__dot { background: var(--oro); }
.pill[data-state='down'] { background: var(--rosa); color: var(--black); }
.pill[data-state='down'] .pill__dot { background: var(--black); }
.menu { position: absolute; right: 18px; top: 100%; display: grid; min-width: 220px; background: var(--black-lift); box-shadow: inset 0 0 0 1px var(--rule); }
.menu button { text-align: left; padding: 16px 18px; background: none; color: var(--ivory); border: 0; border-bottom: 1px solid var(--rule); cursor: pointer; font-weight: 650; }
.banner { margin: 0; padding: 16px 18px; background: var(--rosa); color: var(--black); font-weight: 800; font-size: 1.15rem; }
.ordering { margin: 14px 18px 0; font-weight: 700; color: var(--ivory-dim); }
.ordering[data-state='open'] { color: var(--menta); }
.ordering[data-state='paused'] { color: var(--black); background: var(--oro); padding: 10px 14px; display: inline-block; }
.empty { margin: 40px 18px; color: var(--ivory-dim); font-size: 1.2rem; }

.orders { list-style: none; margin: 16px 0 0; padding: 0 18px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.order { padding: 18px; background: var(--black-lift); box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 6px; align-content: start; }
.order[data-status='COMPLETED'], .order[data-status='CANCELED'] { opacity: 0.55; }
.order__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order__ref { font-stretch: 75%; font-weight: 900; font-size: 1.3rem; letter-spacing: 0.02em; }
.chip { padding: 4px 10px; font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: inset 0 0 0 1px var(--rule); }
.chip[data-status='NEW'] { background: var(--menta); color: var(--black); box-shadow: none; }
.chip[data-status='PREPARED'] { background: var(--oro); color: var(--black); box-shadow: none; }
.chip[data-status='CANCELED'] { background: var(--rosa); color: var(--black); box-shadow: none; }
.order__name { margin: 0; font-size: 1.5rem; font-weight: 800; }
.order__meta { margin: 0; color: var(--ivory-dim); }
.order__items { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 1.15rem; font-weight: 600; }
.order__note { color: var(--oro); }
.order__foot { margin: 8px 0 0; display: flex; justify-content: space-between; color: var(--ivory-dim); font-weight: 700; }

/* covers: start, new order, pause */
.cover { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px; background: rgba(12, 11, 11, 0.86); }
.cover__card { width: min(760px, 100%); max-height: calc(100vh - 36px); overflow: auto; }
.cover__card .btn--big { margin-top: 18px; }
.cover--alert { background: var(--black); }
.alert { animation: flash 1.2s steps(2, jump-none) infinite; }
@keyframes flash { 50% { --wall: #7aeebe; } }
@media (prefers-reduced-motion: reduce) { .alert { animation: none; } }
.alert__kicker { margin: 0 0 8px; display: flex; justify-content: space-between; font-weight: 900; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.06em; }
.alert__name { font-size: clamp(3rem, 11vw, 6.5rem) !important; overflow-wrap: anywhere; }
.alert__meta { margin: 10px 0 0; font-weight: 700; font-size: 1.15rem; }
.alert__items { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 1.5rem; font-weight: 800; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; }
