/* MnuBio brand tokens. The single source: the brand site reads this file to draw itself,
   and products import it as is. One token per line, with a comment after it saying what it is for.
   The "@group" comments name the sections the site shows. */

:root {
  /* @group Color */
  --lime: #c7f41e; /* The one accent. Always carries ink text. */
  --lime-hover: #bdeb1a; /* Lime under the pointer. */
  --lime-tint: #f2fbcb; /* Selected, new, highlighted. */
  --ink: #162814; /* Does the job of black. */
  --canvas: #fffdfa; /* The page. A warm white. */
  --moss: #5a6457; /* Secondary text. */
  --linen: #e8e5dd; /* Lines and borders. */
  --window: #f3f4f1; /* Behind the canvas, around the app. */
  --bad: #c1121f; /* Errors and sold out. */
  --bad-tint: #fbe0e2; /* Behind an error. */
  --good: #15803d; /* Saved, paid, online. */

  /* @group Roles */
  --bg: var(--canvas); /* Page background. */
  --surface: #ffffff; /* Cards and fields on the page. */
  --fg: var(--ink); /* Text. */
  --muted: var(--moss); /* Quiet text. */
  --line: var(--linen); /* Borders. */
  --shell: var(--window); /* App frame. */
  --accent-tint: var(--lime-tint); /* Highlight behind text. */
  --danger: var(--bad); /* Error text. */
  --danger-tint: var(--bad-tint); /* Error background. */

  /* @group Type */
  --font-head: "Sora", system-ui, sans-serif; /* Headings, at weight 500. */
  --font-body: "Google Sans", system-ui, sans-serif; /* Text, labels, buttons. */
  --font-code: ui-monospace, "SF Mono", Menlo, monospace; /* Values and code. */
  --text-xs: 12px; /* Badges. */
  --text-sm: 14px; /* Labels and help text. */
  --text-base: 16px; /* Body. */
  --text-lg: 20px; /* Lead text and card titles. */
  --text-xl: 28px; /* Section titles. */
  --text-2xl: 40px; /* Page titles. */
  --text-3xl: 64px; /* One headline per page. */
  --weight-head: 500; /* Size makes the hierarchy, not weight. */
  --weight-strong: 500; /* Buttons and labels. */
  --track-tight: -0.04em; /* Headings from 28px up. */

  /* @group Space */
  --space-1: 4px; /* Icon to label. */
  --space-2: 8px; /* Between pills, inside the shell. */
  --space-3: 12px; /* Inside a row. */
  --space-4: 16px; /* Inside a card. */
  --space-6: 24px; /* Between groups. */
  --space-8: 32px; /* Between blocks. */
  --space-12: 48px; /* Between sections. */
  --space-16: 64px; /* Page breathing room. */

  /* @group Shape */
  --radius-sm: 8px; /* Nested inside a row. */
  --radius-md: 12px; /* Rows, fields, the logo chip. */
  --radius-lg: 20px; /* Cards and panels. */
  --radius-xl: 24px; /* Tiles and the page canvas. */
  --radius-pill: 64px; /* Buttons and badges. */
  --corner: superellipse(1.6); /* The squircle. Goes on corner-shape. */
  --control-h: 44px; /* Height of anything you tap. */
  --tilt: -4deg; /* The brick tilt. Once per screen at most. */

  /* @group Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); /* Fast start, soft landing. */
  --dur-fast: 150ms; /* Hover, press, color. */
  --dur-base: 250ms; /* Open, close, switch. */
  --dur-slow: 350ms; /* Panels and sheets. */
  --dur-show: 600ms; /* One moment per page, on load. */
}

/* Dark. Products add `.dark` on the root; the brand site sets data-theme. */
:root[data-theme="dark"], .dark {
  --bg: #0e1a0d;
  --surface: #162814;
  --fg: #fffdfa;
  --muted: #a9b3a5;
  --line: rgb(255 253 250 / 0.14);
  --shell: #0a140a;
  --accent-tint: #27361a;
  --danger: #ff9a9e;
  --danger-tint: #3d1417;
}

/* MnuPOS. Same brand, built for a finger on a counter screen. */
[data-product="pos"] {
  --control-h: 56px;
  --text-base: 18px;
  --text-sm: 16px;
}
