/* variables.css - GradsPro design tokens. */

:root {
    color-scheme: light;

    /* Brand colors */
    --brand: #ff4500;
    --brand-hover: #e03d00;
    --brand-active: #b33000;
    --brand-soft: #ffead6;
    --brand-soft-mix: #fff7f0;

    --danger: #ff4500;
    --warn: #f0a500;
    --ok: #0079d3;
    --muted-soft: #e7ecf0;

    --bg-page: #dae0e6;
    --bg-card: #ffffff;
    --bg-soft: #f3f6f8;
    --text-primary: #000000;
    --text-secondary: #4b5158;
    --text-muted: #747c84;
    --border: #ccd6dd;
    --border-strong: #b7c3cd;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-3: 0 8px 24px rgba(0, 0, 0, 0.12);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;

    --max-feed: 700px;
    --max-page: 1200px;
    --header-h: 64px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 120ms;
    --t-med: 220ms;

    --z-menu: 800;
    --z-toast: 900;

    /* Touch targets */
    --touch-target: 44px;
    --touch-target-sm: 40px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

html[data-theme="dark"] {
    color-scheme: dark;

    --brand: #ff4500;
    --brand-hover: #ff5700;
    --brand-active: #ff6b00;
    --brand-soft: #3a1a00;
    --brand-soft-mix: #2a1500;

    --danger: #ff4500;
    --warn: #f0a500;
    --ok: #00c2ff;

    --bg-page: #121212;
    --bg-card: #1a1a1e;
    --bg-soft: #23272d;
    --text-primary: #e6e6e6;
    --text-secondary: #b9bbc1;
    --text-muted: #747c84;
    --border: #2b2f36;
    --border-strong: #3a3f47;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-3: 0 8px 24px rgba(0, 0, 0, 0.6);
}

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

@media (prefers-contrast: more) {
    :root {
        --border: currentColor;
        --border-strong: currentColor;
    }
}
