/*
 * Design tokens — calm, muted dark theme with powder / pastel accents.
 * Every color in the app should come from here. Tweak this file only.
 * Text contrast checked against --surface-2 (WCAG AA ≥ 4.5:1).
 */
:root {
  color-scheme: dark;

  /* Base palette */
  --c-bg: #1c1f26;
  --c-surface: #242833;
  --c-surface-2: #2b3040;
  --c-surface-3: #323849;
  --c-border: #353b4a;
  --c-border-strong: #444b5d;
  --c-text: #e6e8ee;
  --c-text-soft: #c8ccd6;
  --c-text-muted: #a3a9b8;
  --c-on-accent: #1c1f26;

  /* Pastel accents (low chroma) */
  --c-powder: #9db4d6;
  --c-powder-rgb: 157, 180, 214;
  --c-lavender: #b4a9d6;
  --c-sage: #a9c7b5;
  --c-rose: #d6a9b4;
  --c-sand: #d6c7a9;
  --c-slate: #8e95a6;

  /* Semantic aliases (used by components) */
  --canvas: var(--c-bg);
  --surface: var(--c-surface);
  --surface-2: var(--c-surface-2);
  --surface-3: var(--c-surface-3);
  --line: var(--c-border);
  --line-strong: var(--c-border-strong);
  --ink: var(--c-text);
  --ink-soft: var(--c-text-soft);
  --muted: var(--c-text-muted);
  --on-accent: var(--c-on-accent);
  --glass: rgba(36, 40, 51, 0.9);

  --primary: var(--c-powder);
  --primary-rgb: var(--c-powder-rgb);
  --primary-deep: #8ba4c9;
  --primary-soft: rgba(var(--c-powder-rgb), 0.14);
  --accent-text: #b8cae6;
  --accent-hover: #d2deef;
  --focus-ring: rgba(var(--c-powder-rgb), 0.55);
  --tiktok: var(--c-rose);

  --ok: var(--c-sage);
  --ok-soft: rgba(169, 199, 181, 0.14);
  --ok-ink: #c4dccd;
  --danger: var(--c-rose);
  --danger-soft: rgba(214, 169, 180, 0.14);
  --danger-ink: #e8c6ce;
  --warn: var(--c-sand);
  --warn-soft: rgba(214, 199, 169, 0.14);
  --warn-ink: #e8dcc4;

  /* Post states (high-contrast on dark surfaces) */
  --st-pending: #8b5cf6;
  --st-running: #a78bfa;
  --st-publishing: #38bdf8;
  --st-posted: #22c55e;
  --st-failed: #ef4444;
  --st-draft: #f59e0b;
  --st-cancelled: #64748b;

  /* Per-account colors (assigned in order) */
  --acct-1: var(--c-powder);
  --acct-2: var(--c-lavender);
  --acct-3: var(--c-sage);
  --acct-4: var(--c-sand);
  --acct-5: var(--c-rose);

  /* Type, radius, spacing, elevation */
  --font: "Instrument Sans", system-ui, sans-serif;
  --display: "Sora", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --space-page: clamp(16px, 2vw, 32px);
  --sidebar-w: 248px;
  --shadow: 0 18px 44px rgba(10, 12, 16, 0.35);
  --shadow-sm: 0 4px 14px rgba(10, 12, 16, 0.25);
  --backdrop: rgba(14, 16, 21, 0.6);
}
