/* ==========================================================================
   iara staff kit: tokens. Single source of truth for every app under
   staff.iara.nyc. Edit HERE, then run ./sync.sh. Never edit vendored copies.

   Theme: dark maroon only (Jay, 2026-10-13). No light theme.
   Every text pairing below is measured WCAG 2.1 on the painted ground
   (page / surface / raised). Do not add a colour without measuring it.
   ========================================================================== */
:root {
  color-scheme: dark;

  /* grounds */
  --k-page:    #391d1f;  /* maroon */
  --k-surface: #4a2528;  /* cards, inputs */
  --k-raised:  #55292f;  /* popovers, hovers, selected chips */
  --k-raised-hover: #62313a;

  /* text: 11.18+ / 6.62+ / 7.77+ on every ground */
  --k-ink:     #faf6f0;
  --k-muted:   #c9bfae;  /* de-emphasis. NEVER opacity. */
  --k-display: #e8cbab;  /* sand: lockup word, display headings */

  /* accent */
  --k-primary:      #e0633f;  /* fills only; as text 3.45-4.4, large only */
  --k-primary-ink:  #2a1206;  /* label on primary fill, 5.07 */
  --k-primary-hover: #e8795a;
  --k-accent-text:  #f4a88b;  /* orange-family TEXT/links, 6.2+ */
  --k-sun:          #fbbf56;  /* highlight text, 7.27+ */

  /* states (text-safe on every ground, 7.7+) */
  --k-good:     #bad7bc;
  --k-critical: #f6c8ca;
  --k-warning:  #fbbf56;
  --k-info:     #b9d3f0;  /* 9.96 page / 8.60 surface / 7.82 raised / 6.75 raised-hover */
  --k-ask:      #dcc4f7;  /* lavender, 9.70 / 8.37 / 7.61 / 6.58. Only "Ask To Confirm". */

  /* status: ONE colour per booking/message status (QA ux3 plan2 #2/#3, 2026-10-14).
     Badge ground is --k-raised. Ratios: page / surface / raised. All AA (4.5+) on every ground.
     Static: .k-badge-<status>.  Next: <Badge variant={STATUS_BADGE[status]}> (next/status.ts). */
  --k-status-inquiry:       var(--k-info);        /* 9.96 / 8.60 / 7.82 */
  --k-status-offered:       var(--k-accent-text); /* 7.90 / 6.82 / 6.20 */
  --k-status-hold:          var(--k-warning);     /* 9.27 / 8.00 / 7.27  On Hold */
  --k-status-ask:           var(--k-ask);         /* 9.70 / 8.37 / 7.61  Ask To Confirm (was #fbbf56, same as On Hold) */
  --k-status-confirmed:     var(--k-good);        /* 9.88 / 8.53 / 7.76 */
  --k-status-completed:     var(--k-muted);       /* 8.43 / 7.28 / 6.62 */
  --k-status-lost:          var(--k-critical);    /* 10.25 / 8.85 / 8.04 */
  --k-status-needs-answer:  var(--k-accent-text); /* 7.90 / 6.82 / 6.20  Needs an Answer */
  --k-status-private-dining: var(--k-display);    /* 9.90 / 8.55 / 7.77 */
  --k-status-vendor:        var(--k-muted);       /* 8.43 / 7.28 / 6.62 */
  --k-status-done:          var(--k-good);        /* 9.88 / 8.53 / 7.76 */
  --k-status-skipped:       var(--k-muted);       /* 8.43 / 7.28 / 6.62 */

  /* charts (kit v2, 2026-10-16): series colours, graphical objects need 3:1 (WCAG 1.4.11).
     Ratios page / surface / raised. Order = series order; never colour alone (legend + table fallback).
     Next: chart-1..5 (theme.css) via ChartConfig { color: "var(--chart-1)" }. Static: var(--k-chart-1). */
  --k-chart-1: var(--k-primary);  /* 4.40 / 3.80 / 3.45  orange */
  --k-chart-2: var(--k-info);     /* 9.96 / 8.60 / 7.82  blue */
  --k-chart-3: var(--k-sun);      /* 9.27 / 8.00 / 7.27  yellow */
  --k-chart-4: #f59cc4;            /* 8.33 / 7.29 / 6.40  rose (was lavender: too close to chart-2 blue, 2026-10-16) */
  --k-chart-5: var(--k-good);     /* 9.88 / 8.53 / 7.76  green */
  --k-chart-grid: var(--k-border); /* decorative gridlines only */

  /* lines */
  --k-border:       #5f3b3e;  /* decorative dividers only */
  --k-border-input: #a8807a;  /* input/control boundary, 3.46+ (WCAG 1.4.11) */
  --k-ring:         #f4a88b;

  /* type */
  --k-font-sans:    "peridot-pe-variable", "Instrument Sans", system-ui, -apple-system, sans-serif;
  --k-font-display: "forevs", "Fraunces", Georgia, serif;
  --k-font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* type scale (QA ux3 plan2 #6/#7, 2026-10-14). Display serif ONLY for page + section headings.
     Values are the most common measured ones across Inbox / PD / Analytics:
     page    32/1.15 forevs 400   (the only 32 in use: app h1s; PD display headings are forevs 400)
     section 20/1.25 forevs 400   (PD "Today"/"Upcoming", the plan2 pick; Inbox h2 14/600 + Lineup 19-23 migrate here)
     card    16/1.3  sans 600     (kit EmptyState/.k-empty h3, Inbox+PD card titles text-base semibold)
     body    15/1.45 sans 400     (subtitle 15/21, confirm body, menu items)
     small   14/1.4  sans 400     (text-sm: the commonest size in every Next app; rows, alerts, buttons)
     meta    12/1.4  sans 500     (badges 12, timestamps, palette group labels; muted colour)
     label   13/1.3  sans 600     (kit .k-label form labels, unchanged) */
  --k-text-page: 32px;     --k-text-page-lh: 1.15;    --k-text-page-w: 400;
  --k-text-section: 20px;  --k-text-section-lh: 1.25; --k-text-section-w: 400;
  --k-text-card: 16px;     --k-text-card-lh: 1.3;     --k-text-card-w: 600;
  --k-text-body: 15px;     --k-text-body-lh: 1.45;    --k-text-body-w: 400;
  --k-text-small: 14px;    --k-text-small-lh: 1.4;    --k-text-small-w: 400;
  --k-text-meta: 12px;     --k-text-meta-lh: 1.4;     --k-text-meta-w: 500;
  --k-text-label: 13px;    --k-text-label-lh: 1.3;    --k-text-label-w: 600;

  /* shape */
  --k-radius-sm: 6px;   /* badges */
  --k-radius:    8px;   /* buttons, inputs, tabs */
  --k-radius-lg: 12px;  /* cards, dialogs, alerts, list containers: EVERY card is 12px.
                           Tailwind: rounded-lg / rounded-xl / rounded-2xl = 12px; rounded-md = 8px (controls); rounded-sm = 6px (badges). */
  --k-radius-pill: 999px; /* chips */
  --k-tap: 44px;        /* min touch target */

  /* lockup: mark big, word small. 80/18 everywhere (Jay, 2026-10-13) */
  --k-lockup-mark: 80px;  /* WIDTH of the mark (about 24px tall). Never height: 80px tall is ~270px wide. */
  --k-lockup-word: 18px;
  --k-appbar-h: 61px;   /* app bar height (44 tap + 2x8 padding + 1 border). Sticky things below it use top: var(--k-appbar-h). */

  /* motion */
  --k-fast: 150ms;
  --k-base: 200ms;
  --k-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
