/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #FFFFFF;
    --gray: #666666;
    --light-gray: #E5E5E5;
    --mono: 'IBM Plex Mono', monospace;
    --sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    color-scheme: light;
}

html, body {
    background-color: var(--white);
}

body {
    font-family: var(--sans);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.nav-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.75rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    border-bottom: 1px solid var(--black);
    z-index: 1000;
    font-family: var(--mono);
}

.nav-mark {
    color: var(--black);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--black);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gray);
}

/* Shared Footer (used on index, projects, contact) */
footer {
    padding: 3rem 4rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

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

footer a:hover {
    color: var(--black);
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 1.5rem;
    }
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 4rem 4rem;
    min-height: 100vh;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-ribbon {
        padding: 1.5rem 2rem;
    }

    .container {
        padding: 10rem 2rem 2rem;
    }
}
