/* Design tokens. Brand colors come from the GWTasks logo:
   sky #0EA2DE (mark) and charcoal #37464B (wordmark). */
:root {
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Brand */
  --brand: #0ea2de;
  --brand-strong: #0786ba;      /* hover / pressed */
  --brand-text: #066e99;        /* brand-colored text on light surfaces (AA) */
  --brand-soft: #e4f5fc;        /* tinted backgrounds */
  --brand-soft-2: #c9ebf8;
  --brand-ring: rgba(14, 162, 222, .35);
  --ink: #37464b;               /* wordmark charcoal */

  /* Surfaces & text (light) */
  --bg: #f3f6f7;
  --surface: #ffffff;
  --surface-2: #f6f9fa;
  --surface-3: #edf2f4;
  --hover: #eef3f5;
  --line: #e1e8eb;
  --line-strong: #cfd9dd;
  --text: #1d2a2f;
  --text-2: #51636a;
  --text-3: #85969c;
  --on-brand: #ffffff;

  /* Sidebar uses the wordmark charcoal */
  --side-bg: #2c393e;
  --side-bg-2: #34444a;
  --side-hover: rgba(255, 255, 255, .07);
  --side-active: rgba(14, 162, 222, .18);
  --side-text: #c9d6da;
  --side-text-2: #8fa2a8;
  --side-line: rgba(255, 255, 255, .08);

  /* Status */
  --success: #12a372;  --success-soft: #e2f6ee;
  --warning: #d98a0b;  --warning-soft: #fdf2dc;
  --danger: #e5484d;   --danger-soft: #fde8e8;
  --info: var(--brand); --info-soft: var(--brand-soft);

  /* Priority */
  --p-urgent: #e5484d; --p-high: #f07a1a; --p-medium: #0ea2de; --p-low: #8a9aa0;

  /* Eisenhower quadrants (design-guidelines §1) */
  --q-do: #f43f5e; --q-schedule: #3b82f6; --q-delegate: #f59e0b; --q-drop: #94a3b8;

  /* Shape & depth */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(29, 42, 47, .06), 0 1px 1px rgba(29, 42, 47, .04);
  --shadow-2: 0 4px 12px -2px rgba(29, 42, 47, .10), 0 2px 4px rgba(29, 42, 47, .05);
  --shadow-3: 0 18px 40px -12px rgba(29, 42, 47, .28), 0 4px 10px rgba(29, 42, 47, .06);
  --shadow-drag: 0 22px 44px -10px rgba(7, 112, 155, .35), 0 6px 14px rgba(29, 42, 47, .12);

  /* Layout */
  --side-w: 256px; --side-w-collapsed: 64px; --top-h: 56px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: 160ms;
  color-scheme: light;
}

/* Dark theme: follows OS unless the user picked a theme explicitly. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-text: #4cc2ef; --brand-soft: rgba(14, 162, 222, .14); --brand-soft-2: rgba(14, 162, 222, .26);
    --bg: #12191c; --surface: #182226; --surface-2: #1d282d; --surface-3: #233036;
    --hover: #223036; --line: #2a383e; --line-strong: #364850;
    --text: #e6eef0; --text-2: #a5b6bb; --text-3: #71858c;
    --side-bg: #0f1619; --side-bg-2: #172124; --side-line: rgba(255, 255, 255, .06);
    --success-soft: rgba(18, 163, 114, .16); --warning-soft: rgba(217, 138, 11, .16); --danger-soft: rgba(229, 72, 77, .16);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 6px 16px -4px rgba(0, 0, 0, .5);
    --shadow-3: 0 24px 48px -12px rgba(0, 0, 0, .65); --shadow-drag: 0 22px 44px -10px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand-text: #4cc2ef; --brand-soft: rgba(14, 162, 222, .14); --brand-soft-2: rgba(14, 162, 222, .26);
  --bg: #12191c; --surface: #182226; --surface-2: #1d282d; --surface-3: #233036;
  --hover: #223036; --line: #2a383e; --line-strong: #364850;
  --text: #e6eef0; --text-2: #a5b6bb; --text-3: #71858c;
  --side-bg: #0f1619; --side-bg-2: #172124; --side-line: rgba(255, 255, 255, .06);
  --success-soft: rgba(18, 163, 114, .16); --warning-soft: rgba(217, 138, 11, .16); --danger-soft: rgba(229, 72, 77, .16);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 6px 16px -4px rgba(0, 0, 0, .5);
  --shadow-3: 0 24px 48px -12px rgba(0, 0, 0, .65); --shadow-drag: 0 22px 44px -10px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* 12 fixed tag colors (feature-specifications §5.1) */
:root {
  --tag-red: #e5484d; --tag-orange: #f07a1a; --tag-amber: #d98a0b; --tag-lime: #65a30d;
  --tag-green: #12a372; --tag-teal: #0d9488; --tag-sky: #0ea2de; --tag-blue: #3b6fe0;
  --tag-violet: #7c5ce6; --tag-pink: #db4b9a; --tag-slate: #64748b; --tag-brown: #a16a3c;
}
