/* ==========================================================================
   Barleti AI Assistant - Design Tokens
   Aligned with the Universiteti Barleti institutional identity (umb.edu.al):
   signature magenta (#B1005D) as the primary accent, near-black plum for
   dark surfaces, a warm orange used sparingly for highlights.
   ========================================================================== */
:root {
    color-scheme: light;

    /* ---- Brand: Universiteti Barleti magenta ---- */
    --brand-700: #7A0041;
    --brand-600: #8A0049;
    --brand-500: #B1005D; /* primary - buttons, links, active states */
    --brand-400: #C64084;
    --brand-300: #E687B0; /* on dark surfaces */
    --brand-100: #F7E1EC; /* tint backgrounds */

    /* ---- Accent: warm orange (use sparingly, e.g. highlights) ---- */
    --accent-600: #C9631F;
    --accent-500: #E37D39;
    --accent-100: #FBEBDD;

    /* ---- Dark surfaces (header block, footer, panels) ---- */
    --ink-900: #161016;
    --ink-800: #221926;
    --ink-700: #352A39;
    --ink-600: #4E4152;

    /* ---- Backwards-compatible accent aliases (were "gold") ---- */
    --gold-600: var(--brand-600);
    --gold-500: var(--brand-500);
    --gold-400: var(--brand-300);
    --gold-100: var(--brand-100);

    /* ---- Paper / neutral ---- */
    --paper-0: #FFFFFF;
    --paper-50: #F7F7F8;
    --paper-100: #EEECEF;
    --line-200: #E3E0E4;
    --line-300: #CBC6CD;
    --text-900: #1A161B;
    --text-700: #443E46;
    --text-500: #6C656E;
    --text-400: #928B94;

    /* ---- Semantic aliases ---- */
    --heading: var(--ink-800); /* strong display text - decoupled from dark surfaces */
    --focus-ring: var(--brand-500); /* single source of truth for focus outlines */

    /* ---- Status ---- */
    --success-600: #2E7D5B;
    --success-100: #E4F2EC;
    --danger-600: #B3423B;
    --danger-100: #FBEAE9;
    --warn-600: #A6721E;
    --warn-100: #FBF0DD;

    /* Type */
    --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Scale */
    --fs-h1: clamp(2rem, 1.5rem + 2vw, 3.25rem);
    --fs-h2: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
    --fs-h3: 1.375rem;
    --fs-h4: 1.125rem;
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-xs: 0.75rem;

    /* Radius (used deliberately, not uniformly) */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 14px;

    /* Shadow - quiet, layered elevation */
    --shadow-sm: 0 1px 2px rgba(22, 16, 22, 0.06);
    --shadow-md: 0 4px 16px rgba(22, 16, 22, 0.10);
    --shadow-lg: 0 16px 40px rgba(22, 16, 22, 0.14);
    --shadow-brand: 0 8px 22px rgba(177, 0, 93, 0.28);

    /* Motion */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --dur: 180ms;
    --dur-slow: 640ms;

    /* Layout */
    --header-h: 72px;
    --topstrip-h: 38px;
    --sidebar-w: 272px;
    --admin-sidebar-w: 248px;
    --content-max: 1200px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
