@import '@fontsource-variable/plus-jakarta-sans';

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    :root {
        --bg-canvas: 248 250 252;
        --bg-surface: 255 255 255;
        --bg-surface-muted: 241 245 249;
        --text-primary: 15 23 42;
        --text-secondary: 71 85 105;
        --text-muted: 100 116 139;
        --border-subtle: 226 232 240;
        --border-strong: 203 213 225;
        --brand: 79 70 229;
        --brand-hover: 67 56 202;
        --brand-soft: 238 242 255;
        --radius-sm: 0.5rem;
        --radius-md: 0.75rem;
        --radius-lg: 1rem;
        --shadow-card: 0 1px 2px 0 rgb(15 23 42 / 0.05), 0 1px 3px 0 rgb(15 23 42 / 0.04);
        --shadow-elevated: 0 10px 25px -5px rgb(15 23 42 / 0.1), 0 8px 10px -6px rgb(15 23 42 / 0.08);
    }

    .dark {
        --bg-canvas: 9 13 22;
        --bg-surface: 15 23 42;
        --bg-surface-muted: 30 41 59;
        --text-primary: 248 250 252;
        --text-secondary: 203 213 225;
        --text-muted: 148 163 184;
        --border-subtle: 30 41 59;
        --border-strong: 51 65 85;
        --brand: 99 102 241;
        --brand-hover: 129 140 248;
        --brand-soft: 30 27 75;
        --shadow-card: 0 1px 2px 0 rgb(0 0 0 / 0.35), 0 1px 3px 0 rgb(0 0 0 / 0.25);
        --shadow-elevated: 0 20px 35px -10px rgb(0 0 0 / 0.6);
    }

    html {
        color-scheme: light;
    }

    html.dark {
        color-scheme: dark;
    }

    body {
        @apply bg-canvas text-ink font-sans antialiased selection:bg-brand/20 selection:text-brand;
    }

    :focus-visible {
        @apply outline-none ring-2 ring-brand ring-offset-2 ring-offset-surface;
    }
}

[x-cloak] {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
