:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --noise-opacity: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Galvij', sans-serif;
    font-weight: bold;
    font-size: 18pt;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2vw;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body.fade-slow {
    transition: background-color 12s ease-in-out, color 12s ease-in-out;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: var(--noise-opacity);
    transition: opacity 0.2s ease;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

body.fade-slow::before {
    transition: opacity 12s ease-in-out;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

.nav-buttons {
    display: flex;
    gap: 3vw;
}

.nav-item {
    color: inherit;
    text-decoration: none;
    background: none;
    border: none;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.nav-item:hover, .nav-item:focus {
    opacity: 0.5;
}

/* Order control */
.btn-work { order: 1; }
.btn-about { order: 2; }
.btn-invert { order: 3; text-transform: uppercase; }

html.invert {
    --bg-color: #000000;
    --text-color: #ffffff;
}

.content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.content-container p {
    text-align: center;
    line-height: 1.2;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Mobile Styling */
@media (max-width: 768px) {
    .nav-container {
        align-items: flex-start;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
    }
    
    .nav-item {
        line-height: 1.1;
        padding-bottom: 0.2rem;
    }
}
