/* The Byte Club — shared design tokens and primitives (storefront + staff) */
:root {
  --ink: #0f1b3d;
  --ink-soft: #4a5578;
  --ink-faint: #7d86a6;
  --cream: #fdfef8;
  --paper: #ffffff;
  --line: #dfe3ee;
  --chili: #1e4bb8;        /* brand blue (kept name: used as the primary colour everywhere) */
  --chili-dark: #153a96;
  --turmeric: #ffc83d;
  --leaf: #1f8a4c;
  --leaf-soft: #e3f4ea;
  --warn-soft: #fff1d6;
  --bad: #c1281c;
  --bad-soft: #fde8e5;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 61, 0.06), 0 8px 22px rgba(15, 27, 61, 0.09);
  --font: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', 'Nunito', 'Segoe UI Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tap: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--cream);
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 900; letter-spacing: -.015em; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: var(--chili-dark); }
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--chili); color: #fff; font-weight: 800; cursor: pointer;
  text-decoration: none; transition: transform .06s ease, background .15s ease;
}
.btn:hover { background: var(--chili-dark); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { background: rgba(0,0,0,.04); }
.btn.green { background: var(--leaf); }
.btn.block { width: 100%; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .9rem; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.field .hint { font-size: .8rem; color: var(--ink-faint); }
input[type=text], input[type=tel], input[type=number], input[type=password], input[type=url], input[type=date],
select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  outline: none;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--chili); box-shadow: 0 0 0 3px rgba(30, 75, 184, .18); }

.veg-dot {
  display: inline-grid; place-items: center; flex: none;
  width: 16px; height: 16px; border: 1.5px solid var(--leaf); border-radius: 3px; background: #fff;
}
.veg-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.veg-dot.non { border-color: var(--bad); }
.veg-dot.non::after { background: var(--bad); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--line); color: var(--ink-soft);
}
.chip.ok { background: var(--leaf-soft); color: var(--leaf); }
.chip.warn { background: var(--warn-soft); color: #8a5a00; }
.chip.bad { background: var(--bad-soft); color: var(--bad); }

.toast-wrap { position: fixed; left: 0; right: 0; bottom: 18px; display: grid; justify-items: center; gap: 8px; z-index: 100; pointer-events: none; padding: 0 16px; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  box-shadow: var(--shadow); font-weight: 600; max-width: 520px;
  animation: toast-in .18s ease-out;
}
.toast.bad { background: var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* brand logo (JPG with off-white background blends into the page) */
.logo-img { display: block; mix-blend-mode: multiply; height: auto; }
