/*
 * MadiOps design tokens — Maditrones brand palette.
 * Product: madiops · Tagline: "Creative work, in motion."
 */

:root {
    /* Brand */
    --color-red-50: #fdecec;
    --color-red-100: #fad0cf;
    --color-red-200: #f3a4a2;
    --color-red-300: #e97572;
    --color-red-400: #dd4744;
    --color-red-500: #cc1f1f; /* primary brand red */
    --color-red-600: #ad1717;
    --color-red-700: #8b1212;
    --color-red-800: #690d0d;
    --color-red-900: #470909;

    --color-black: #0e0e10;
    --color-ink: #1a1a1d;
    --color-white: #ffffff;

    --color-grey-50: #f8f8f9;
    --color-grey-100: #f1f1f3;
    --color-grey-200: #e4e4e8;
    --color-grey-300: #d1d1d8;
    --color-grey-400: #aeaeb8;
    --color-grey-500: #86868f;
    --color-grey-600: #62626b;
    --color-grey-700: #47474f;
    --color-grey-800: #2e2e33;
    --color-grey-900: #1c1c1f;

    /* Semantic */
    --color-primary: var(--color-red-500);
    --color-primary-hover: var(--color-red-600);
    --color-primary-active: var(--color-red-700);
    --color-primary-soft: var(--color-red-50);

    --color-success: #1c8a4b;
    --color-success-soft: #e6f5ec;
    --color-warning: #b3760a;
    --color-warning-soft: #fbf0dd;
    --color-danger: var(--color-red-500);
    --color-danger-soft: var(--color-red-50);
    --color-info: #2563a8;
    --color-info-soft: #e8f0fa;

    --color-bg: var(--color-white);
    --color-bg-subtle: var(--color-grey-50);
    --color-surface: var(--color-white);
    --color-surface-raised: var(--color-white);
    --color-border: var(--color-grey-200);
    --color-border-strong: var(--color-grey-300);

    --color-text: var(--color-ink);
    --color-text-muted: var(--color-grey-600);
    --color-text-faint: var(--color-grey-500);
    --color-text-on-primary: var(--color-white);
    --color-text-link: var(--color-primary);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.8125rem;
    --font-size-base: 0.9375rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.375rem;
    --font-size-2xl: 1.75rem;
    --font-size-3xl: 2.25rem;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 999px;

    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(14, 14, 16, 0.06);
    --shadow-md: 0 4px 12px rgba(14, 14, 16, 0.08);
    --shadow-lg: 0 12px 32px rgba(14, 14, 16, 0.12);
    --shadow-focus: 0 0 0 3px rgba(204, 31, 31, 0.25);

    /* Layout */
    --sidebar-width: 260px;
    --sidebar-width-collapsed: 76px;
    --header-height: 64px;
    --bottom-nav-height: 64px;
    --content-max-width: 1280px;

    /* Motion */
    --transition-fast: 120ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 320ms ease;

    /* Z-index scale */
    --z-sidebar: 40;
    --z-header: 50;
    --z-dropdown: 60;
    --z-modal-backdrop: 70;
    --z-modal: 80;
    --z-toast: 90;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Reserved for future dark mode — light workspace is the Phase 0 default. */
    }
}
