/* Design System: The Architectural Ledger — Neo-Brutalist Precision */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Primary */
    --primary: #0049e6;
    --primary-dim: #003bbd;
    --primary-container: #d0deff;
    --on-primary: #f2f1ff;

    /* Secondary */
    --secondary-container: #e1e3e3;
    --on-secondary-container: #2d2f2f;
    --on-secondary-fixed: #3f3f3f;

    /* Tertiary */
    --tertiary: #bb0009;
    --tertiary-container: #ffd9d9;
    --on-tertiary: #ffffff;
    --on-tertiary-container: #4a0004;

    /* Error */
    --error: #b41340;
    --error-container: #ffd9e2;
    --on-error: #ffffff;
    --on-error-container: #5c0020;

    /* Surfaces — Tonal Stacking */
    --background: #f6f6f6;
    --surface: #f6f6f6;
    --surface-container-low: #f0f1f1;
    --surface-container: #eaebeb;
    --surface-container-high: #e1e3e3;
    --surface-container-highest: #d5d7d7;
    --surface-container-lowest: #ffffff;

    /* Text */
    --on-surface: #2d2f2f;
    --outline: #767777;
    --outline-variant: #c0c2c2;

    /* Typography */
    --font-display: 'Manrope', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-technical: 'Space Grotesk', monospace;

    /* Type scale */
    --display-lg: 3.5rem;
    --display-md: 2.5rem;
    --headline-lg: 2rem;
    --headline-sm: 1.5rem;
    --title-lg: 1.25rem;
    --title-md: 1.125rem;
    --body-lg: 1rem;
    --body-md: 0.875rem;
    --label-md: 0.75rem;
    --label-sm: 0.6875rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Radii — 0px mandate */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;

    /* Sidebar */
    --sidebar-width: 200px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--body-lg);
    color: var(--on-surface);
    background: var(--background);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography utilities */
.display-lg {
    font-family: var(--font-display);
    font-size: var(--display-lg);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.display-md {
    font-family: var(--font-display);
    font-size: var(--display-md);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.headline-lg {
    font-family: var(--font-display);
    font-size: var(--headline-lg);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.headline-sm {
    font-family: var(--font-display);
    font-size: var(--headline-sm);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.title-lg {
    font-family: var(--font-display);
    font-size: var(--title-lg);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.title-md {
    font-family: var(--font-display);
    font-size: var(--title-md);
    font-weight: 600;
    line-height: 1.3;
}

.body-lg {
    font-size: var(--body-lg);
    line-height: 1.6;
}

.body-md {
    font-size: var(--body-md);
    line-height: 1.5;
}

.label-md {
    font-family: var(--font-technical);
    font-size: var(--label-md);
    font-weight: 500;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: var(--outline);
}

.label-sm {
    font-family: var(--font-technical);
    font-size: var(--label-sm);
    font-weight: 500;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

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

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
