/* builtbymeli design tokens: the one place for colors, type, spacing, radii, shadows and motion. The editor uses
   only these; the public site builtbymeli.com copies the same file. Documented in docs/design-tokens.md.
   Client sites never use them: each client's design has its own palette. Calm by restraint: warm
   stone surfaces, one teal accent (the founder's brand, 2026-11-01), subtle lines, a 4px spacing grid. Every text
   pair meets WCAG AA. */
:root {
  /* Surfaces */
  --bbm-color-bg: #f6f4f1;
  --bbm-color-surface: #ffffff;
  --bbm-color-surface-2: #efebe5;
  --bbm-color-surface-3: #e6e1d9;
  /* Text on surface: ink 17.2:1, ink-2 9.7:1, ink-3 6.2:1 (5.6:1 on bg, 5.2:1 on surface-2) */
  --bbm-color-ink: #1c1b19;
  --bbm-color-ink-2: #47443f;
  --bbm-color-ink-3: #65615b;
  --bbm-color-on-ink: #ffffff;
  --bbm-color-on-ink-line: rgba(255, 255, 255, 0.42);
  --bbm-color-on-ink-hover: rgba(255, 255, 255, 0.14);
  /* Lines: decorative dividers; input borders use --bbm-color-control (3.6:1, WCAG 1.4.11) */
  --bbm-color-line: #e5e0d8;
  --bbm-color-line-strong: #d4cdc2;
  --bbm-color-control: #8c867d;
  /* The accent: one teal for primary buttons, links, focus rings and the current item (6.7:1 on white) */
  --bbm-color-accent: #2a6565;
  --bbm-color-accent-hover: #235757;
  --bbm-color-accent-press: #1c4848;
  --bbm-color-accent-soft: #e6f0ee;
  --bbm-color-accent-soft-2: #cfe2df;
  --bbm-color-on-accent: #ffffff;
  --bbm-color-focus: #2a6565;
  --bbm-color-selection: #cde3e0;
  /* States: each text color on its soft background: ok 5.7:1, warn 5.6:1, danger 6.3:1 */
  --bbm-color-ok: #1d6b44;
  --bbm-color-ok-soft: #e6f3ec;
  --bbm-color-warn: #8a5300;
  --bbm-color-warn-soft: #fbf1de;
  --bbm-color-danger: #a3271f;
  --bbm-color-danger-soft: #fbeae8;
  --bbm-color-backdrop: rgba(28, 27, 25, 0.32);

  /* Type: one sans (Inter, self-hosted, SIL OFL), a tight 1.125-ish scale, 16px body */
  --bbm-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bbm-text-xs: 0.8125rem;
  --bbm-text-sm: 0.875rem;
  --bbm-text-md: 1rem;
  --bbm-text-lg: 1.125rem;
  --bbm-text-xl: 1.3125rem;
  --bbm-text-2xl: 1.625rem;
  --bbm-leading: 1.5;
  --bbm-leading-tight: 1.25;
  --bbm-weight-regular: 400;
  --bbm-weight-medium: 520;
  --bbm-weight-semibold: 600;
  --bbm-weight-bold: 660;
  --bbm-tracking-tight: -0.011em;

  /* Spacing: a 4px grid */
  --bbm-space-1: 0.25rem;
  --bbm-space-2: 0.5rem;
  --bbm-space-3: 0.75rem;
  --bbm-space-4: 1rem;
  --bbm-space-5: 1.5rem;
  --bbm-space-6: 2rem;
  --bbm-space-7: 3rem;

  /* Radii */
  --bbm-radius-sm: 6px;
  --bbm-radius-md: 8px;
  --bbm-radius-lg: 12px;
  --bbm-radius-pill: 999px;

  /* Shadows: only for things that float (toasts, the menu sheet, dialogs); boxes use lines */
  --bbm-shadow-xs: 0 1px 2px rgba(26, 27, 30, 0.05);
  --bbm-shadow-raised: 0 10px 30px rgba(26, 27, 30, 0.16), 0 2px 6px rgba(26, 27, 30, 0.08);

  /* Motion: short and gentle; off under prefers-reduced-motion */
  --bbm-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --bbm-duration: 160ms;
  --bbm-duration-slow: 200ms;

  /* Sizes */
  --bbm-tap: 44px;
  --bbm-control-small: 36px;
  --bbm-control-compact: 2.125rem;
  --bbm-bar: 56px;
  --bbm-side: 16.5rem;
  --bbm-measure: 46rem;
  --bbm-thumb: 48px;
}
