.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgb(245, 241, 232);
    border-top: 1px solid rgba(156, 170, 135, 0.2);
    padding: 20px 24px;
    text-align: center;
    z-index: 99;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgb(107, 107, 107);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgb(61, 61, 61);
}

.footer-links .separator {
    color: rgb(156, 170, 135);
}

.footer-copyright {
    font-size: 13px;
    color: rgb(107, 107, 107);
    font-weight: 300;
}

.mobile-download {
    display: none !important;
}

@media (max-width: 640px) {
    body { padding-top: 120px; }
    
    /* Row 1: About | Philosophy | Blog */
    .nav {
        position: fixed;
        top: 16px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
        width: max-content;
        max-width: calc(100vw - 24px);
        padding: 0 12px;
        z-index: 1000;
    }
    
    .nav a:not(.nav-download),
    .nav .separator {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Hide nav Download and last separator */
    .nav .nav-download,
    .nav .separator:last-of-type {
        display: none !important;
    }
    
    /* Row 2: Home + Download */
    .home-link {
        position: fixed !important;
        top: 56px !important;
        left: 24px !important;
        transform: none !important;
        z-index: 1001;
    }
    
    .mobile-download {
        display: inline-flex !important;
        position: fixed !important;
        top: 56px !important;
        right: 24px !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 16px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: white !important;
        background-color: rgb(61, 61, 61) !important;
        border-radius: 10px !important;
        box-shadow: 0px 4px 14px rgba(0,0,0,0.12) !important;
        z-index: 1001;
        text-decoration: none !important;
    }
    
    .mobile-download svg {
        fill: white;
    }
}
