/* GENERATED — do not edit.
 * Copied from indietix-workspace/docs/design-system/tokens.css by scripts/sync-design-tokens.sh
 * Change tokens there, re-run the script, commit this repo.
 */

/* IndieTix Design System — Utility Neo
 * GENERATED / HAND-SYNCED FROM tokens.json. Do not edit downstream copies.
 * Source of truth: indietix-workspace/docs/design-system/tokens.json
 * Distribute with: scripts/sync-design-tokens.sh
 * v0.10.0 · 2026-10-31
 */

:root {
  /* brand — coral is the only accent: primary action, active tab/nav, links, progress meters, focus ring.
     Never status. #FF6B6B text and white-on-coral are 2.78:1 on white: an accepted trade-off (0.10.0). */
  --it-coral: #FF6B6B;
  --it-coral-hover: #E85555;
  --it-coral-active: #D84A4A;

  /* text */
  --it-text: #0F172A;
  --it-text-secondary: #475569;
  --it-text-muted: #64748B;
  --it-on-dark: #FFFFFF;
  --it-on-coral: #FFFFFF;

  /* surfaces — never use pure #FFF as the page background; canvas is #F8FAFC */
  --it-canvas: #F8FAFC;
  --it-raised: #FFFFFF;
  --it-sunken: #F1F5F9;
  --it-surface-dark: #0F172A;

  /* borders */
  --it-border: #E2E8F0;
  --it-border-strong: #CBD5E1;

  /* status — separate from the accent. Do not restyle these as coral. */
  --it-success-fg: #166534;
  --it-success-bg: #DCFCE7;
  --it-success-border: #BBF7D0;
  --it-warning-fg: #92400E;
  --it-warning-bg: #FEF3C7;
  --it-warning-border: #FDE68A;
  --it-danger-fg: #991B1B;
  --it-danger-bg: #FEE2E2;
  --it-danger-border: #FECACA;

  /* typography */
  --it-font-ui: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* headline face — a grotesque (Archivo), weight 600. Not a serif. */
  --it-font-display: "Archivo", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --it-font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --it-font-wordmark: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --it-weight-regular: 400;
  --it-weight-medium: 500;
  --it-weight-semibold: 600;

  --it-text-xs: 12px;
  --it-text-sm: 13px;
  --it-text-base: 14px;
  --it-text-md: 15px;
  --it-text-lg: 16px;
  --it-text-xl: 20px;
  --it-text-2xl: 26px;
  --it-text-3xl: 30px;

  --it-leading-tight: 1.25;
  --it-leading-snug: 1.4;
  --it-leading-normal: 1.5;
  --it-leading-relaxed: 1.55;

  --it-tracking-tight: -0.01em;
  --it-tracking-label: 0.05em;
  --it-tracking-wordmark: -0.03em;

  /* space — 4px base */
  --it-space-1: 2px;
  --it-space-2: 4px;
  --it-space-3: 6px;
  --it-space-4: 8px;
  --it-space-5: 12px;
  --it-space-6: 16px;
  --it-space-7: 20px;
  --it-space-8: 24px;
  --it-space-9: 32px;
  --it-space-10: 40px;
  --it-space-11: 48px;
  --it-space-12: 64px;

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

  --it-border-width: 1px;

  /* shadow — flat system; use sparingly */
  --it-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --it-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.10);
  --it-shadow-focus: 0 0 0 3px rgba(255, 107, 107, 0.35);

  /* motion */
  --it-duration-fast: 120ms;
  --it-duration-base: 200ms;
  --it-ease: cubic-bezier(0.2, 0, 0, 1);

  /* chart — data-viz only. Coral leads, then cyan, then plum (0.9.0). Slots are
     assigned in fixed order and never cycled; a 4th category folds into "Other".
     Coral is also the action colour, so every other hue clears CVD distance from it.
     That boundary is narrow and hue-angle driven: teal (~180°) fails it, cyan
     (~195-200°) passes. Measure the hex, never the colour's name. See CHANGELOG 0.9.0. */
  --it-chart-1: #FF6B6B;  /* coral — 2.78:1 on white, see contrast-note in tokens.json */
  --it-chart-2: #10B3C2;  /* cyan — 2.55:1 on white */
  --it-chart-3: #B84A8A;  /* plum */
  --it-chart-series: #FF6B6B;   /* single-series fill: ranked bars, ordered columns */
  --it-chart-neutral: #E2E8F0;  /* "Not answered" — as light as an empty track; outline it when it sits on one */
  --it-chart-grid: #E2E8F0;
  --it-chart-axis: #64748B;
  /* ordinal ramp, light->dark. Five steps; a sixth breaks the 2:1 light-end floor. */
  --it-chart-ordinal-1: #5BBBD8;
  --it-chart-ordinal-2: #35A8C9;
  --it-chart-ordinal-3: #0B8AA8;
  --it-chart-ordinal-4: #086A85;
  --it-chart-ordinal-5: #064F63;

  /* layout */
  --it-measure: 68ch;
  --it-container: 1120px;
  /* Reading width (--it-container) is too narrow for data-dense app screens:
     the dashboard orders table has eight columns and wraps its headers at
     1120px. --it-container-app is the shell width for those screens only. */
  --it-container-app: 1280px;
  --it-sidebar: 256px;
}

/* Dark mode — auto (system) unless an explicit light choice is set on :root */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --it-text: #F1F5F9;
    --it-text-secondary: #CBD5E1;
    --it-text-muted: #94A3B8;

    --it-canvas: #020617;
    --it-raised: #0F172A;
    --it-sunken: #1E293B;

    --it-border: #1E293B;
    --it-border-strong: #334155;

    --it-success-fg: #86EFAC;
    --it-success-bg: #052E16;
    --it-success-border: #14532D;
    --it-warning-fg: #FCD34D;
    --it-warning-bg: #451A03;
    --it-warning-border: #78350F;
    --it-danger-fg: #FCA5A5;
    --it-danger-bg: #450A0A;
    --it-danger-border: #7F1D1D;

    --it-chart-1: #E85555;  /* coral-hover: #FF6B6B is above the dark lightness band */
    --it-chart-2: #0F9FAE;
    --it-chart-3: #A8437E;
    --it-chart-series: #E85555;
    --it-chart-neutral: #1E293B;
    --it-chart-grid: #1E293B;
    --it-chart-axis: #94A3B8;
    /* ordinal anchor flips dark->light; five steps, symmetric with light */
    --it-chart-ordinal-1: #0A5F78;
    --it-chart-ordinal-2: #0891B2;
    --it-chart-ordinal-3: #45B4D2;
    --it-chart-ordinal-4: #7FCFE4;
    --it-chart-ordinal-5: #B7E4F0;

    --it-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --it-shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.5);
  }
}

/* Dark mode — explicit toggle wins in both directions */
:root[data-theme="dark"] {
  --it-text: #F1F5F9;
  --it-text-secondary: #CBD5E1;
  --it-text-muted: #94A3B8;

  --it-canvas: #020617;
  --it-raised: #0F172A;
  --it-sunken: #1E293B;

  --it-border: #1E293B;
  --it-border-strong: #334155;

  --it-chart-1: #E85555;  /* coral-hover: #FF6B6B is above the dark lightness band */
  --it-chart-2: #0F9FAE;
  --it-chart-3: #A8437E;
  --it-chart-series: #E85555;
  --it-chart-neutral: #1E293B;
  --it-chart-grid: #1E293B;
  --it-chart-axis: #94A3B8;
  /* ordinal anchor flips dark->light; five steps, symmetric with light */
  --it-chart-ordinal-1: #0A5F78;
  --it-chart-ordinal-2: #0891B2;
  --it-chart-ordinal-3: #45B4D2;
  --it-chart-ordinal-4: #7FCFE4;
  --it-chart-ordinal-5: #B7E4F0;

  --it-success-fg: #86EFAC;
  --it-success-bg: #052E16;
  --it-success-border: #14532D;
  --it-warning-fg: #FCD34D;
  --it-warning-bg: #451A03;
  --it-warning-border: #78350F;
  --it-danger-fg: #FCA5A5;
  --it-danger-bg: #450A0A;
  --it-danger-border: #7F1D1D;

  --it-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --it-shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.5);
}
