/*
 * Design tokens - original sci-fi console design language (n2-kanban ADR 00014).
 * Dark panels, rounded elbow frames, pill buttons, monospace readouts, restrained accents.
 * Inspired by the genre; NOT an LCARS copy (no LCARS layouts, fonts, sounds or palette).
 *
 * PLACEHOLDER VALUES. Contrast target is WCAG 2.2 AA:
 *   - text >= 4.5:1, large text and UI component boundaries >= 3:1.
 * Ratios noted below are computed against --color-bg (#0b0e14); confirm with axe-core in CI.
 * Never convey state by color alone: pair status colors with an icon, shape and text.
 */

:root {
    color-scheme: dark;

    /* Surfaces */
    --color-bg: #0b0e14;
    --color-surface: #141a24;
    --color-surface-raised: #1c2431;
    --color-border: #2e3a4d;          /* decorative only, ~1.7:1 */
    --color-border-strong: #5b6b82;   /* component boundaries, ~3.6:1 */

    /* Text */
    --color-text: #e6edf5;            /* ~16:1 */
    --color-text-muted: #9aa8bb;      /* ~8.0:1 (~6.5:1 on --color-surface-raised) */
    --color-on-accent: #0b0e14;       /* text on accent-filled pills */

    /* Accents */
    --color-accent-primary: #f2a65a;  /* amber, ~9.5:1 */
    --color-accent-secondary: #7cc4f0;/* sky, ~9.9:1 */
    --color-accent-tertiary: #c3a6f2; /* lilac, ~9.3:1 */

    /* Status (always with icon + text) */
    --color-success: #6fd08c;
    --color-warning: #f2c94c;
    --color-danger: #ff7a7a;          /* ~7.7:1 */
    --color-info: var(--color-accent-secondary);
    --color-unknown: var(--color-text-muted);

    /* Focus */
    --color-focus-ring: #ffd166;
    --focus-ring-width: 3px;
    --focus-ring-offset: 2px;

    /* Typography */
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.75rem;
    --line-height: 1.5;
    --letter-spacing-readout: 0.08em;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;

    /* Shape */
    --radius-sm: 0.375rem;
    --radius-panel: 0.75rem;
    --radius-elbow: 2rem;
    --radius-pill: 999px;

    /* Layout */
    --status-bar-height: 2.75rem;     /* fixed bottom status bar; .console-main pads by this */

    /* Motion (respect prefers-reduced-motion in components) */
    --duration-fast: 120ms;
    --duration-normal: 200ms;
}
