/*
 * The design tokens of the whole product: the dashboard and the public site
 * read every colour, font, size, space, radius and shadow from here
 * (docs/DESIGN-SYSTEM.md section 2). Screens use var(--...) and never a
 * literal value. Loaded before any other stylesheet in both layouts.
 *
 * The dashboard's settings screen may still override the brand through
 * --bs-primary; everything here derives from --brand-600 otherwise.
 */

:root {
    /* Brand */
    --brand-50: #fdf2f3;
    --brand-100: #fbe4e6;
    --brand-200: #f6c7cc;
    --brand-500: #c5283a;
    --brand-600: #9b1321;
    --brand-700: #82101c;
    --brand-800: #6a0d17;
    --brand-600-rgb: 155, 19, 33;
    /* The accent the components use: the brand, unless the dashboard's
       settings screen chose another (its layout redefines these two). */
    --accent: var(--brand-600);
    --accent-hover: var(--brand-700);

    /* Neutrals, warmed slightly towards the brand */
    --n-0: #ffffff;
    --n-25: #fbfbfc;
    --n-50: #f6f6f8;
    --n-100: #eeeef2;
    --n-200: #e1e1e8;
    --n-300: #c9c9d3;
    --n-400: #9a9aa8;
    --n-500: #6e6e7d;
    --n-600: #535361;
    --n-700: #3d3d4a;
    --n-800: #26262f;
    --n-900: #16161d;

    /* Status */
    --success: #067647;
    --success-bg: #ecfdf3;
    --success-line: #abefc6;
    --warning: #b54708;
    --warning-bg: #fffaeb;
    --warning-line: #fedf89;
    --danger: #d92d20;
    --danger-bg: #fef3f2;
    --danger-line: #fecdca;
    --info: #175cd3;
    --info-bg: #eff8ff;
    --info-line: #b2ddff;
    /* Text on the status backgrounds, and the pressed danger button */
    --success-ink: #085d3a;
    --warning-ink: #93370d;
    --danger-ink: #912018;
    --info-ink: #1849a9;
    --danger-700: #b42318;

    /* Booth states on a floor plan */
    --booth-available: #cfd2da;
    --booth-hold: #f5a524;
    --booth-reserved: var(--info);
    --booth-sold: var(--success);
    --booth-blocked: var(--n-700);

    /* Type */
    --font-en: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
    --font-ar: Tajawal, "Segoe UI", Tahoma, sans-serif;
    --font-ar-heading: Cairo, Tajawal, "Segoe UI", sans-serif;
    --font-serif: "EB Garamond", Georgia, "Times New Roman", serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --font-body: var(--font-en);
    --font-heading: var(--font-en);

    --text-12: 0.75rem;
    --text-13: 0.8125rem;
    --text-14: 0.875rem;
    --text-16: 1rem;
    --text-18: 1.125rem;
    --text-20: 1.25rem;
    --text-24: 1.5rem;
    --text-30: 1.875rem;
    --text-36: 2.25rem;
    --text-48: 3rem;

    /* Space, on a 4px grid */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Radius */
    --r-xs: 4px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-pill: 999px;

    /* Elevation and focus */
    --e1: 0 1px 2px rgba(22, 22, 29, 0.06);
    --e2: 0 4px 14px rgba(22, 22, 29, 0.08);
    --e3: 0 14px 36px rgba(22, 22, 29, 0.14);
    --focus: 0 0 0 3px rgba(var(--brand-600-rgb), 0.22);

    /* Sizes */
    --control: 40px;
    --control-sm: 32px;
    --control-lg: 48px;
    --touch: 40px;

    /* Motion */
    --ease: cubic-bezier(0.2, 0, 0, 1);
    --fast: 150ms;
    --base: 200ms;
}

/* Arabic pages read Arabic faces; numbers, emails and codes stay Latin. */
:root:lang(ar) {
    --font-body: var(--font-ar);
    --font-heading: var(--font-ar-heading);
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --fast: 0ms;
        --base: 0ms;
    }
}
