/* ============================================================
   Dzenity 2026 — design tokens
   World: "Golden hour workbench" (Getharvest reference, pinned)
   Cream canvas, white floating cards, one vivid orange.
   ============================================================ */

:root {
  /* ---- Brand ---- */
  --flame: #fa5d00;            /* the single chromatic decision */
  --flame-hover: #e05300;
  --flame-press: #c94b00;
  --flame-soft: #ffe9d9;       /* tinted wash for active nav / selection */
  --flame-soft-2: #fee3b5;     /* marigold glow, atmospheric only */

  /* ---- Surfaces ---- */
  --canvas: #fff8f1;           /* page + sidebar backdrop */
  --card: #ffffff;             /* floating panels */
  --card-sunken: #fdf4ea;      /* wells inside cards (meters, code, rows) */
  --scrim: rgba(29, 30, 28, 0.4);

  /* ---- Ink ---- */
  --ink: #1d1e1c;              /* warm near-black */
  --ink-2: #5c5955;            /* secondary text */
  --ink-3: #6b6862;            /* tertiary / metadata — 4.5:1+ on cream */
  --ink-disabled: #a5a19c;

  /* ---- Lines ---- */
  --line-canvas: #efe3d3;      /* hairlines on cream */
  --line-card: #f0e9df;        /* hairlines on white */
  --line-input: #c0bbb6;       /* form control rest border */

  /* ---- Status (functional; always paired with icon + text) ---- */
  --ok: #1e6f45;
  --ok-bg: #e7f4ec;
  --warn: #7a5306;
  --warn-bg: #faf0d7;
  --danger: #c03d21;
  --danger-bg: #fcebe4;
  --info: #4a5f8a;
  --info-bg: #eaeef7;

  /* ---- Elevation (warm-tinted, never cold gray) ---- */
  --shadow-card: 0 1px 2px rgba(120, 77, 20, 0.05), 0 4px 16px rgba(120, 77, 20, 0.07);
  --shadow-raised: 0 2px 6px rgba(120, 77, 20, 0.08), 0 12px 32px rgba(120, 77, 20, 0.12);
  --shadow-btn: 0 1px 3px rgba(29, 30, 28, 0.18);
  --shadow-glow: 6px 4px 24px rgba(250, 166, 0, 0.25);

  /* ---- Typography ---- */
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --track: 0.015em;

  --fs-caption: 13px;   --lh-caption: 1.35;
  --fs-body: 14px;      --lh-body: 1.5;
  --fs-md: 15px;
  --fs-subheading: 16px;--lh-subheading: 1.4;
  --fs-heading-sm: 18px;--lh-heading-sm: 1.3;
  --fs-heading: 22px;   --lh-heading: 1.26;
  --fs-heading-lg: 26px;--lh-heading-lg: 1.2;

  /* ---- Shape ---- */
  --r-card: 20px;
  --r-input: 12px;
  --r-btn: 12px;
  --r-btn-lg: 14px;
  --r-chip: 999px;

  /* ---- Motion (spec §13: utilitarian, transform/opacity only) ---- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-fast: 140ms;
  --t-med: 200ms;

  /* ---- Layout ---- */
  --sidebar-w: 264px;
  --sidebar-rail: 68px;
  --content-max: 1240px;

  color-scheme: light;
}

/* ============ Dark theme — same warmth, ember register ============ */
[data-theme="dark"] {
  --flame: #fb6a14;
  --flame-hover: #ff7c2e;
  --flame-press: #e35d0b;
  --flame-soft: rgba(251, 106, 20, 0.14);
  --flame-soft-2: rgba(254, 227, 181, 0.08);

  --canvas: #191411;
  --card: #221c17;
  --card-sunken: #1d1713;
  --scrim: rgba(10, 8, 6, 0.6);

  --ink: #f4ece1;
  --ink-2: #beb2a0;
  --ink-3: #9c9282;
  --ink-disabled: #6b6255;

  --line-canvas: #2c241d;
  --line-card: #322a22;
  --line-input: #4d423a;

  --ok: #74ce9a;
  --ok-bg: rgba(58, 158, 101, 0.16);
  --warn: #e3b341;
  --warn-bg: rgba(196, 145, 34, 0.14);
  --danger: #ff8a6b;
  --danger-bg: rgba(220, 76, 42, 0.16);
  --info: #9fb4e0;
  --info-bg: rgba(110, 137, 196, 0.16);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-raised: 0 2px 6px rgba(0, 0, 0, 0.45), 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-btn: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-glow: 6px 4px 24px rgba(250, 120, 0, 0.12);

  color-scheme: dark;
}
