:root {
    --brand-50: #fdf2fb;
    --brand-100: #fbe5f7;
    --brand-200: #f5c2eb;
    --brand-300: #ec92da;
    --brand-400: #d95ebf;
    --brand-500: #b72c9b;
    --brand-600: #8b0a72;
    --brand-700: #72095e;
    --brand-800: #5c0848;
    --brand-900: #4a073b;
    --ink-900: #1f1230;
    --ink-700: #4b3f5e;
    --ink-500: #766b86;
    --ink-400: #9c93a8;
    --ink-200: #e6e1ec;
    --ink-100: #f2eff6;
    --ink-50: #f9f7fc;
    --success: #12805c;
    --success-bg: #e6f6f0;
    --warning: #b45309;
    --warning-bg: #fef3e2;
    --danger: #c2263c;
    --danger-bg: #fdeaee;
    --info: #1d4ed8;
    --info-bg: #e8effd;
    --sidebar-width: 264px;
    --topbar-height: 68px;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-xs: 0 1px 2px rgba(31, 18, 48, 0.06);
    --shadow-sm: 0 2px 8px rgba(31, 18, 48, 0.06);
    --shadow: 0 10px 30px rgba(31, 18, 48, 0.08);
    --shadow-lg: 0 24px 60px rgba(31, 18, 48, 0.16);
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink-900);
    background: var(--ink-50);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0;
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.25;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
}

p {
    margin: 0;
}

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

img {
    max-width: 100%;
    display: block;
}

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

button {
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--ink-200);
    border-radius: 999px;
    border: 2px solid var(--ink-50);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ink-400);
}

.font-display {
    font-family: var(--font-display);
}

.text-brand {
    color: var(--brand-600);
}

.text-muted {
    color: var(--ink-500);
}

.bg-brand-gradient {
    background-image: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 55%, #a5188a 100%);
}

.link-brand {
    color: var(--brand-600);
    font-weight: 600;
}

.link-brand:hover {
    color: var(--brand-700);
    text-decoration: underline;
}

.fade-in {
    animation: fadeIn 0.35s ease both;
}

.rise-in {
    animation: riseIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@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;
    }
}
