/* ==========================================================================
   ABOUT PAGE STYLES
   ========================================================================== */

/* Page Layout */
body:has(.page) {
    background: var(--background-cream);
    color: var(--text-color);
}

.page-container {
    display: flex;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20rem 2rem 2rem;
    min-height: calc(100vh - 10rem);
    align-items: flex-start;
}

.page-navigation {
    position: sticky;
    top: 8rem;
    height: fit-content;
    /* flex: 0 0 200px; */
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: calc(var(--base-font-size) * 0.875);
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}


/* Story Column */
.story-column {
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below its content size */
}


/* Essay */
.essay {
    max-width: 680px;
}

.essay header {
    margin-bottom: 2rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .page-container {
        flex-direction: column;
        gap: 2rem;
        padding: 12rem 2rem 3rem;
        max-width: 100%;
    }
    
    .page-navigation {
        display: none;
    }
    
    .story-column {
        flex: none;
        order: 2;
    }
    
    .essay {
        max-width: 100%;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 10rem 1rem 3rem;
        gap: 1.5rem;
    }
    
    .page-navigation {
        width: 100%;
    }
    
    .nav-links {
        width: 100%;
        gap: 1rem;
    }
    
    .nav-links a {
        padding: 0.75rem 1.25rem;
        text-align: center;
        min-width: 120px;
    }
}
