:root {
    /* Color palette */
    --bg: #f7f9fb;
    --surface: #ffffff;
    --muted: #6b7280;
    --text: #111827;
    --primary: #2563eb; /* blue-600 */
    --primary-600: #1d4ed8;
    --accent: #06b6d4; /* teal-400 */
    --success: #10b981;
    --danger: #ef4444;

    /* Spacing */
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;

    /* Typography */
    --font-sans: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-head: 600;
}

/* Base */
html,body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

/* Containers */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Header tweaks */
header.site-header {
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.9));
    box-shadow: 0 1px 0 rgba(16,24,40,0.04), 0 2px 8px rgba(15,23,42,0.04);
    padding: calc(var(--space-sm) + 4px) 0;
}

.brand {
    font-weight: var(--font-head);
    color: var(--primary-600);
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(180deg, var(--primary), var(--primary-600));
    color: white;
    box-shadow: 0 6px 18px rgba(37,99,235,0.12);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(15,23,42,0.06);
    color: var(--text);
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: 12px;
    padding: var(--space-md);
    box-shadow: 0 6px 20px rgba(15,23,42,0.04);
}

/* Forms */
input[type="text"], input[type="email"], textarea, select {
    border: 1px solid rgba(15,23,42,0.06);
    background: white;
    padding: 10px 12px;
    border-radius: 8px;
    outline: none;
}

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 4px rgba(37,99,235,0.06);
    border-color: var(--primary-600);
}

/* Dropdowns & menus */
.dropdown-menu {
    background: var(--surface);
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(2,6,23,0.08);
}

/* Utility */
.muted { color: var(--muted); }
.text-center { text-align: center; }

/* Responsive tweaks */
@media (max-width: 640px) {
    .container { padding: 0 12px; }
    .brand { font-size: 1rem; }
}

/* Small helpers for legacy pages */
.btn, a.button { text-decoration: none; }
