/* ===== CSS VARIABLES ===== */
:root {
    --primary: #b91c1c;
    --primary-hover: #991b1b;
    --primary-light: #fef2f2;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-color: #111827;
    --muted-text: #6b7280;
    --border-color: #e5e7eb;
    --hover-bg: rgba(0, 0, 0, 0.04);
    --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;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', system-ui, sans-serif;
}

body[data-theme="dark"] {
    --bg-color: #111827;
    --card-bg: #1f2937;
    --text-color: #f9fafb;
    --muted-text: #9ca3af;
    --border-color: #374151;
    --hover-bg: rgba(255, 255, 255, 0.06);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* ===== GLOBAL UI ===== */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-radius: 0.5rem;
    z-index: 1070;
}

.skip-to-content:focus {
    top: 1rem;
    left: 1rem;
}

/* Mobile menu button hidden by default */
.mobile-menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}