/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

:root {
    /* Colors — Light Mode */
    --surface: #FAF9F6;
    --surface-alt: #F0EDE8;
    --text-primary: #1C1917;
    --text-secondary: #78716C;
    --text-tertiary: #A8A29E;
    --accent: #4A7C59;
    --accent-hover: #3A6147;
    --secondary: #475569;
    --border: #E7E5E4;
    --border-strong: #D6D3D1;

    /* Semantic */
    --success: #4A7C59;
    --warning: #B45309;
    --error: #B91C1C;
    --info: #475569;

    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Layout */
    --max-width: 1200px;
    --narrow-width: 720px;
    --page-padding: 5vw;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
    --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.08);
    --shadow-lg: 0 8px 24px rgba(28, 25, 23, 0.1);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.25, 0.1, 0.25, 1.0);
    --transition-default: 200ms cubic-bezier(0.25, 0.1, 0.25, 1.0);
    --transition-slow: 300ms cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

@media (prefers-color-scheme: dark) {
    :root {
        --surface: #0C0A09;
        --surface-alt: #1C1917;
        --text-primary: #E7E5E4;
        --text-secondary: #A8A29E;
        --text-tertiary: #78716C;
        --accent: #6B9F7B;
        --accent-hover: #7DB58D;
        --secondary: #94A3B8;
        --border: #292524;
        --border-strong: #44403C;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
}
