/* ══════════════════════════════════════════════════════
   base.css
   Variables, reset, and typography foundations
   ══════════════════════════════════════════════════════ */

/* === VARIABLES & RESET === */
:root {
    /* DT-Plans Pro Palette */
    --bg-main: #1a1a1a;
    --bg-card: #2a2a2a;
    --text-primary: #f5f5f5;
    --text-secondary: #d4d4d4;
    --accent: #4a4a4a;
    --border: rgba(212, 212, 212, 0.1);
    /* Build plan C1 — single cool grey-blue accent (portfolio chrome) */
    --accent-colour: #C8D8E4;
}

/* Reset and base styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    overflow-x: hidden;
    /* Prevent fixed header “jump” when modals lock body scroll */
    scrollbar-gutter: stable;
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: scroll;
    font-size: 1rem;
    font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Optimize for smooth scrolling */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* ADD THIS LINE BELOW */
    letter-spacing: -0.03em; 
}

/* === LOADING & UTILITIES === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
    border: 1px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

::-webkit-scrollbar-corner {
    background: #1a1a1a;
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(212, 212, 212, 0.3);
    border-top: 4px solid #d4d4d4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

