@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600&family=Young+Serif&display=swap');

:root {
  --bg: #f2f3ed;
  --card: #fdfdf9;
  --raised: #e8eae0;
  --ink: #1b1f17;
  --ink-2: #4c5245;
  --ink-3: #656b5c;
  --line: rgba(27, 31, 23, 0.1);
  --line-2: rgba(27, 31, 23, 0.16);
  --leaf: #2d6236;
  --leaf-hover: #26552e;
  --leaf-deep: #1d4124;
  --on-leaf: #f3f1e4;
  --turmeric: #dca51f;
  --turmeric-ink: #3b2a04;
  --turmeric-soft: #f6e7bd;
  --chilli: #b23f27;
  --chilli-soft: #f7e1da;
  --ok: #2f7a45;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Young Serif', Georgia, serif;
  --r-sm: 6px;
  --r: 10px;
  --r-card: 14px;
  --r-panel: 18px;
  color-scheme: light;
}

.dark {
  --bg: #121411;
  --card: #1a1d18;
  --raised: #242820;
  --ink: #edeee6;
  --ink-2: #a9ae9f;
  --ink-3: #8b9082;
  --line: rgba(237, 238, 230, 0.09);
  --line-2: rgba(237, 238, 230, 0.16);
  --leaf: #5fa36a;
  --leaf-hover: #6db378;
  --on-leaf: #0f1a10;
  --turmeric: #e2ad2a;
  --turmeric-soft: rgba(226, 173, 42, 0.14);
  --chilli: #e0664b;
  --chilli-soft: rgba(224, 102, 75, 0.14);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/22px var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--turmeric-soft); color: var(--ink); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; border-radius: var(--r-sm); }
.ic { flex: none; display: block; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--r);
  border: 1px solid transparent; font-weight: 500; white-space: nowrap;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 120ms var(--ease), opacity 150ms var(--ease);
  user-select: none;
}
.btn:active { transform: scale(0.97); }
a.btn { text-decoration: none; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-primary { background: var(--leaf); color: var(--on-leaf); }
.btn-primary:hover { background: var(--leaf-hover); }
.btn-quiet { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn-quiet:hover { background: var(--raised); }
.btn-danger { background: transparent; border-color: var(--line-2); color: var(--chilli); }
.btn-danger:hover { background: var(--chilli-soft); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }

/* Veg / non-veg mark (Indian food labelling convention) */
.vegmark { display: inline-grid; place-items: center; width: 14px; height: 14px; border: 1.5px solid; border-radius: 3px; flex: none; }
.vegmark i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vegmark.is-veg { color: #2f7a3a; }
.vegmark.is-non { color: #8a3a1c; }
.vegmark.is-non i { border-radius: 0; width: 8px; height: 7px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* The signature: the table code as a turmeric seal */
.seal {
  display: inline-flex; align-items: center; gap: 0;
  padding: 4px 10px; border-radius: 8px;
  background: var(--turmeric); color: var(--turmeric-ink);
  font: 600 15px/20px var(--sans); letter-spacing: 0.14em; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1.5px rgba(59, 42, 4, 0.35), inset 0 0 0 4px var(--turmeric), inset 0 0 0 5px rgba(59, 42, 4, 0.22);
}
.seal.lg { font-size: 30px; line-height: 36px; padding: 10px 18px; border-radius: 12px; letter-spacing: 0.2em; }

.empty { color: var(--ink-3); text-align: center; padding: 32px 16px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
