/* sparq-base.css — Shared design system for all sparQ properties
   Load order: Bootstrap 5.3.2 → sparq-base.css → site main.css */

:root {
    /* Text */
    --text: #1a1a2e;
    --text-muted: #64748b;

    /* Backgrounds */
    --bg: #FFFFFF;
    --bg-secondary: #F6F7F9;
    --bg-tertiary: #EBEDF0;
    --code-bg: #F3F4F6;

    /* Accent */
    --accent: #3b82f6;
    --accent-hover: #2563eb;

    /* Borders */
    --border: #e2e0dc;

    /* Functional */
    --success: #10b981;
    --warning: #d97706;
    --error: #dc2626;

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Fira Code', monospace;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

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

a:hover {
    color: var(--accent-hover);
}

code {
    background: var(--code-bg);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.875em;
}

pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
}
