@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter/inter-latin-ext-wght-normal.1ad231aac0a8.woff2")
        format("woff2-variations");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
        U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
        U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
        U+A720-A7FF;
}

@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter/inter-latin-wght-normal.260c81a4759b.woff2")
        format("woff2-variations");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
        U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;

    --font-sans:
        "Inter Variable", Inter, ui-sans-serif, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;

    --color-brand-50: #eef2ff;
    --color-brand-100: #e0e7ff;
    --color-brand-200: #c7d2fe;
    --color-brand-300: #a5b4fc;
    --color-brand-400: #818cf8;
    --color-brand-500: #6366f1;
    --color-brand-600: #4f46e5;
    --color-brand-700: #4338ca;
    --color-brand-800: #3730a3;
    --color-brand-900: #312e81;
    --color-brand-950: #1e1b4b;

    --color-bg: #f6f7fb;
    --color-surface: #ffffff;
    --color-surface-subtle: #f8f9fc;
    --color-surface-muted: #eef1f6;
    --color-border: #dfe3eb;
    --color-border-strong: #c8cfda;

    --color-text: #111827;
    --color-text-soft: #374151;
    --color-text-muted: #4b5563;
    --color-text-faint: #6b7280;
    --color-text-inverse: #f8fafc;

    --color-sidebar: #111831;
    --color-sidebar-raised: #19233f;
    --color-sidebar-border: rgba(255, 255, 255, 0.1);
    --color-sidebar-text: #f1f5f9;
    --color-sidebar-muted: #aeb9cb;

    --color-accent: var(--color-brand-700);
    --color-accent-hover: var(--color-brand-800);
    --color-accent-soft: var(--color-brand-50);
    --color-accent-border: var(--color-brand-200);

    --color-success: #147548;
    --color-success-soft: #ecfdf3;
    --color-success-border: #a7e2bf;
    --color-warning: #995200;
    --color-warning-soft: #fff7e6;
    --color-warning-border: #eccb8f;
    --color-danger: #b42318;
    --color-danger-soft: #fff1f0;
    --color-danger-border: #f0b4af;
    --color-info: #1d4ed8;
    --color-info-soft: #eff6ff;
    --color-info-border: #bfdbfe;
    --color-focus: #4f46e5;
    --color-overlay: rgba(15, 23, 42, 0.48);

    --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-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-card:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.035);
    --shadow-md:
        0 12px 28px rgba(15, 23, 42, 0.1),
        0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-focus: 0 0 0 3px rgba(79, 70, 229, 0.2);

    --sidebar-width: 272px;
    --sidebar-collapsed-width: 76px;
    --topbar-height: 64px;
    --content-max-width: 1480px;
    --control-height-sm: 38px;
    --control-height: 44px;
    --control-height-lg: 48px;

    --duration-fast: 140ms;
    --duration-standard: 200ms;
    --ease-standard: cubic-bezier(0.2, 0, 0, 1);
    --transition-fast: var(--duration-fast) var(--ease-standard);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--color-bg);
}

body {
    margin: 0;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 14px;
    font-optical-sizing: auto;
    font-synthesis: none;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[hidden] {
    display: none !important;
}

:where(
        a,
        button,
        input,
        select,
        textarea,
        summary,
        [tabindex]:not([tabindex="-1"])
    ):focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

::selection {
    background: var(--color-brand-200);
    color: var(--color-brand-950);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: var(--space-3);
    left: var(--space-3);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--color-brand-800);
    color: var(--color-text-inverse);
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transform: translateY(calc(-100% - var(--space-6)));
    transition: transform var(--transition-fast);
}

.skip-link:focus {
    transform: translateY(0);
}
