:root {
    --roast-golden-ratio: 1.618034;
    /* Math Constants */
    --roast-perfect-fourth: 1.3333;

    /* Base Scale */
    --roast-base-font-size: 1rem;

    /* Brand Colors */
    --roast-primary: oklch(0.5500 0.0576 239.19);
    --roast-primary-light: oklch(0.5900 0.0576 239.19);
    --roast-primary-highlight: oklch(0.6400 0.0576 239.19);
    --roast-primary-hover: oklch(0.5000 0.0576 239.19);
    --roast-primary-active: oklch(0.4600 0.0576 239.19);
    --roast-primary-subtle: oklch(0.2400 0.0500 239.19);

    --roast-secondary: oklch(0.5500 0.1126 89.19);
    --roast-secondary-light: oklch(0.6000 0.1228 89.19);
    --roast-secondary-highlight: oklch(0.6400 0.1300 89.19);

    --roast-tertiary: oklch(0.5500 0.1300 29.19);
    --roast-tertiary-light: oklch(0.6000 0.1300 29.19);
    --roast-tertiary-highlight: oklch(0.6400 0.1300 29.19);

    /* Semantic Colors */
    --roast-danger: oklch(0.6500 0.1200 27.00);
    --roast-danger-light: oklch(0.7700 0.1200 27.00);

    --roast-success: oklch(0.6500 0.1200 148.00);
    --roast-success-light: oklch(0.7400 0.1200 148.00);

    --roast-warning: oklch(0.7900 0.1200 59.19);
    --roast-warning-light: oklch(0.8400 0.1076 59.19);

    --roast-info: oklch(0.6700 0.1200 269.19);
    --roast-info-light: oklch(0.7600 0.1200 269.19);

    /* Neutral Color */
    --roast-neutral: oklch(0.1400 0.0060 239.19);

    /* Surface Colors */
    --roast-surface-background: oklch(0.0900 0.0050 239.19);
    --roast-surface: oklch(0.1400 0.0060 239.19);
    --roast-surface-dark: oklch(0.1800 0.0070 239.19);
    --roast-surface-light: oklch(0.2300 0.0080 239.19);
    --roast-surface-highlight: oklch(0.2900 0.0090 239.19);

    /* Primary Surface Colors */
    --roast-surface-primary: oklch(0.1650 0.0220 239.19);
    --roast-surface-primary-highlight: oklch(0.5000 0.0576 239.19);

    /* Secondary Surface Colors */
    --roast-surface-secondary: oklch(0.1650 0.0220 89.19);
    --roast-surface-secondary-highlight: oklch(0.5500 0.1126 89.19);

    /* Borders */
    --roast-border-size: 1px;
    --roast-border-radius: var(--roast-radius-tight);
    --roast-border-color: oklch(0.4400 0.0120 239.19);

    /* Border Radii */
    --roast-radius-tight: 0.25rem;
    --roast-radius-sm: 0.375rem;
    --roast-radius-md: 1rem;
    --roast-radius-lg: 0.8125rem;
    --roast-radius-xl: 1.3125rem;
    --roast-radius-full: 50%;

    /* Shadows */
    --roast-shadow-1: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    --roast-shadow-2: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.08);
    --roast-shadow-3: 0 0.5rem 0.75rem rgba(0, 0, 0, 0.13);
    --roast-shadow-4: 0 0.8125rem 1rem rgba(0, 0, 0, 0.21);
    --roast-shadow-5: 0 1.3125rem 1.625rem rgba(0, 0, 0, 0.34);
    --roast-shadow-6: 0 2.125rem 2.75rem rgba(0, 0, 0, 0.55);

    /* Durations */
    --roast-duration-micro: 100ms;
    --roast-duration-fast: 150ms;
    --roast-duration-base: 250ms;
    --roast-duration-slow: 400ms;
    --roast-duration-slower: 650ms;

    /* Easing */
    --roast-easing-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --roast-easing-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --roast-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
    --roast-easing-spring: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1);

    /* Continuous motion (kept under reduced motion) */
    --roast-duration-spin: 400ms;

    /* Component Sizes */
    --roast-checkbox-size-base: 1.125rem;
    --roast-toggle-height-base: 1.5rem;

}

@media (prefers-reduced-motion: reduce) {
    :root {
        --roast-duration-micro: 1ms;
        --roast-duration-fast: 1ms;
        --roast-duration-base: 1ms;
        --roast-duration-slow: 1ms;
        --roast-duration-slower: 1ms;
    }
}

body {
    color: var(--roast-font-color-on-surface);
    background-color: var(--roast-surface);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --roast-primary: oklch(0.4300 0.0576 239.19);
        --roast-primary-light: oklch(0.4700 0.0576 239.19);
        --roast-primary-highlight: oklch(0.5200 0.0576 239.19);
        --roast-primary-hover: oklch(0.3800 0.0576 239.19);
        --roast-primary-active: oklch(0.3400 0.0576 239.19);
        --roast-primary-subtle: oklch(0.9600 0.0214 239.19);

        --roast-neutral: oklch(0.9800 0.0020 239.19);

        --roast-surface-background: oklch(0.9950 0.0010 239.19);
        --roast-surface: oklch(0.9800 0.0020 239.19);
        --roast-surface-dark: oklch(0.9300 0.0040 239.19);
        --roast-surface-light: oklch(0.9950 0.0020 239.19);
        --roast-surface-highlight: oklch(0.9450 0.0050 239.19);

        --roast-surface-primary: oklch(0.9450 0.0150 239.19);
        --roast-surface-primary-highlight: oklch(0.3800 0.0576 239.19);

        --roast-border-color: oklch(0.8600 0.0080 239.19);

        --roast-secondary: oklch(0.4500 0.0922 89.19);
        --roast-secondary-light: oklch(0.5000 0.1024 89.19);
        --roast-secondary-highlight: oklch(0.5400 0.1105 89.19);

        --roast-tertiary: oklch(0.4500 0.1300 29.19);
        --roast-tertiary-light: oklch(0.5000 0.1300 29.19);
        --roast-tertiary-highlight: oklch(0.5400 0.1300 29.19);

        --roast-surface-secondary: oklch(0.9450 0.0150 89.19);
        --roast-surface-secondary-highlight: oklch(0.4500 0.0922 89.19);

        --roast-danger: oklch(0.5500 0.1200 27.00);
        --roast-danger-light: oklch(0.6000 0.1200 27.00);
        --roast-success: oklch(0.5500 0.1200 148.00);
        --roast-success-light: oklch(0.6000 0.1200 148.00);
        --roast-warning: oklch(0.6700 0.1200 59.19);
        --roast-warning-light: oklch(0.7600 0.1200 59.19);
        --roast-info: oklch(0.5500 0.1200 269.19);
        --roast-info-light: oklch(0.6000 0.1200 269.19);

        --roast-shadow-1: 0 0.125rem 0.25rem oklch(from var(--roast-primary) 0.15 0.06 h / 0.05);
        --roast-shadow-2: 0 0.25rem 0.375rem oklch(from var(--roast-primary) 0.15 0.06 h / 0.08);
        --roast-shadow-3: 0 0.5rem 0.75rem oklch(from var(--roast-primary) 0.15 0.06 h / 0.13);
        --roast-shadow-4: 0 0.8125rem 1rem oklch(from var(--roast-primary) 0.15 0.06 h / 0.21);
        --roast-shadow-5: 0 1.3125rem 1.625rem oklch(from var(--roast-primary) 0.15 0.06 h / 0.34);
        --roast-shadow-6: 0 2.125rem 2.75rem oklch(from var(--roast-primary) 0.15 0.06 h / 0.55);
    }
}

:root[data-theme="light"] {
    --roast-primary: oklch(0.4300 0.0576 239.19);
    --roast-primary-light: oklch(0.4700 0.0576 239.19);
    --roast-primary-highlight: oklch(0.5200 0.0576 239.19);
    --roast-primary-hover: oklch(0.3800 0.0576 239.19);
    --roast-primary-active: oklch(0.3400 0.0576 239.19);
    --roast-primary-subtle: oklch(0.9600 0.0214 239.19);

    --roast-neutral: oklch(0.9800 0.0020 239.19);

    --roast-surface-background: oklch(0.9950 0.0010 239.19);
    --roast-surface: oklch(0.9800 0.0020 239.19);
    --roast-surface-dark: oklch(0.9300 0.0040 239.19);
    --roast-surface-light: oklch(0.9950 0.0020 239.19);
    --roast-surface-highlight: oklch(0.9450 0.0050 239.19);

    --roast-surface-primary: oklch(0.9450 0.0150 239.19);
    --roast-surface-primary-highlight: oklch(0.3800 0.0576 239.19);

    --roast-border-color: oklch(0.8600 0.0080 239.19);

    --roast-secondary: oklch(0.4500 0.0922 89.19);
    --roast-secondary-light: oklch(0.5000 0.1024 89.19);
    --roast-secondary-highlight: oklch(0.5400 0.1105 89.19);

    --roast-tertiary: oklch(0.4500 0.1300 29.19);
    --roast-tertiary-light: oklch(0.5000 0.1300 29.19);
    --roast-tertiary-highlight: oklch(0.5400 0.1300 29.19);

    --roast-surface-secondary: oklch(0.9450 0.0150 89.19);
    --roast-surface-secondary-highlight: oklch(0.4500 0.0922 89.19);

    --roast-danger: oklch(0.5500 0.1200 27.00);
    --roast-danger-light: oklch(0.6000 0.1200 27.00);
    --roast-success: oklch(0.5500 0.1200 148.00);
    --roast-success-light: oklch(0.6000 0.1200 148.00);
    --roast-warning: oklch(0.6700 0.1200 59.19);
    --roast-warning-light: oklch(0.7600 0.1200 59.19);
    --roast-info: oklch(0.5500 0.1200 269.19);
    --roast-info-light: oklch(0.6000 0.1200 269.19);

    --roast-shadow-1: 0 0.125rem 0.25rem oklch(from var(--roast-primary) 0.15 0.06 h / 0.05);
    --roast-shadow-2: 0 0.25rem 0.375rem oklch(from var(--roast-primary) 0.15 0.06 h / 0.08);
    --roast-shadow-3: 0 0.5rem 0.75rem oklch(from var(--roast-primary) 0.15 0.06 h / 0.13);
    --roast-shadow-4: 0 0.8125rem 1rem oklch(from var(--roast-primary) 0.15 0.06 h / 0.21);
    --roast-shadow-5: 0 1.3125rem 1.625rem oklch(from var(--roast-primary) 0.15 0.06 h / 0.34);
    --roast-shadow-6: 0 2.125rem 2.75rem oklch(from var(--roast-primary) 0.15 0.06 h / 0.55);
}

:root[data-theme="dark"] {
    --roast-primary: oklch(0.5500 0.0576 239.19);
    --roast-primary-light: oklch(0.5900 0.0576 239.19);
    --roast-primary-highlight: oklch(0.6400 0.0576 239.19);
    --roast-primary-hover: oklch(0.5000 0.0576 239.19);
    --roast-primary-active: oklch(0.4600 0.0576 239.19);
    --roast-primary-subtle: oklch(0.2400 0.0500 239.19);

    --roast-neutral: oklch(0.1400 0.0060 239.19);

    --roast-surface-background: oklch(0.0900 0.0050 239.19);
    --roast-surface-light: oklch(0.2300 0.0080 239.19);
    --roast-surface: oklch(0.1400 0.0060 239.19);
    --roast-surface-dark: oklch(0.1800 0.0070 239.19);
    --roast-surface-highlight: oklch(0.2900 0.0090 239.19);

    --roast-surface-primary: oklch(0.1650 0.0220 239.19);
    --roast-surface-primary-highlight: oklch(0.5000 0.0576 239.19);

    --roast-border-color: oklch(0.4400 0.0120 239.19);

    --roast-secondary: oklch(0.5500 0.1126 89.19);
    --roast-secondary-light: oklch(0.6000 0.1228 89.19);
    --roast-secondary-highlight: oklch(0.6400 0.1300 89.19);

    --roast-tertiary: oklch(0.5500 0.1300 29.19);
    --roast-tertiary-light: oklch(0.6000 0.1300 29.19);
    --roast-tertiary-highlight: oklch(0.6400 0.1300 29.19);

    --roast-surface-secondary: oklch(0.1650 0.0220 89.19);
    --roast-surface-secondary-highlight: oklch(0.5500 0.1126 89.19);

    --roast-danger: oklch(0.6500 0.1200 27.00);
    --roast-danger-light: oklch(0.7700 0.1200 27.00);
    --roast-success: oklch(0.6500 0.1200 148.00);
    --roast-success-light: oklch(0.7400 0.1200 148.00);
    --roast-warning: oklch(0.7900 0.1200 59.19);
    --roast-warning-light: oklch(0.8400 0.1076 59.19);
    --roast-info: oklch(0.6700 0.1200 269.19);
    --roast-info-light: oklch(0.7600 0.1200 269.19);
}

body{
    background-color: var(--roast-surface-background);
}

*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    cursor: grab;
    background: var(--roast-primary);
    border-radius: var(--roast-border-radius);
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: border-width var(--roast-duration-fast) var(--roast-easing-smooth);
}
*::-webkit-scrollbar-thumb:active {
    cursor:grabbing;
}

*::-webkit-scrollbar-thumb:hover {
    border-width: 1px;
}
