@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400..700&display=swap');

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 12px;
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    background-color: #F0EEE9;
    color: #53687C;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { -webkit-user-drag: none; }
a { color: inherit; text-decoration: none !important; }

/* --- STRUCTURAL LAYOUT --- */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* --- TOP NAVIGATION --- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 2.5rem 4rem;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #F0EEE9;
}

.site-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    flex-shrink: 0;
}

.top-nav-links {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-nav-links a {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    transition: color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.top-nav-links a:hover,
.top-nav-links a.current {
    color: #53687C;
}

.top-nav-links a.current {
    font-weight: 700;
}

/* --- CONTENT AREA & MATBOARD --- */
.content-area {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem 4rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-area section {
    display: none;
    width: 100%;
}

.content-area section.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    animation: pureFade 0.5s ease-in-out forwards;
}

/* --- STATIC BOUNDING BOX GALLERY --- */
.gallery {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    width: 75vh;
    max-width: 100%;
    margin: 0 auto;
}

.gallery img {
    display: none;
    height: 100%;
    width: auto;
}

.gallery img.active-slide {
    display: block;
}

/* --- FIXED WIDTH NAVIGATION --- */
.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
    margin: 0;
}

.nav-btn {
    pointer-events: auto;
    background: transparent; 
    border: none; 
    width: 40px;
    height: 40px;
    transform: translateX(calc(-100% - 1rem));
}

.nav-btn:last-child {
    transform: translateX(calc(100% + 1rem));
}

.nav-btn:hover { opacity: 0.6; }
.nav-btn svg { width: 16px; height: 16px; }
.nav-btn:disabled { opacity: 0.2; cursor: not-allowed; }

/* --- SECTION DESCRIPTION --- */
.section-desc {
    width: 100%;
    line-height: 1.8;
    text-align: center;
    font-size: 0.85rem;
    margin: 0.5rem auto 0 auto;
    color: #666;
}

.section-desc a {
    text-decoration: none !important;
    font-weight: 700;
    color: #3a3a3c;
    transition: opacity 0.2s ease;
}

.section-desc a:hover {
    opacity: 0.7;
}

/* --- ABOUT PAGE TYPOGRAPHY --- */
.about-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 50vh;
    width: 75vh;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.8;
    gap: 1.5rem;
}

.about-container a {
    font-weight: 700;
    color: #3a3a3c;
    transition: opacity 0.2s ease;
}

.about-container a:hover {
    opacity: 0.7;
}

@keyframes pureFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 2px;
}

/* --- RESPONSIVE TOGGLES --- */
@media (min-width: 901px) {
    .mobile-header, .sidebar, .overlay { display: none !important; }
}

/* --- RESPONSIVE ADJUSTMENTS & MOBILE STACK --- */
@media (max-width: 900px) {
    .top-nav { display: none !important; }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 1rem;
        width: 100%;
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: #F0EEE9;
    }

    .content-area {
        padding: 0 1rem 2rem 1rem;
    }

    .gallery {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        height: auto;
    }
    
    .gallery img {
        display: block !important;
        width: 100%;
        height: auto;
    }
    
    .gallery-nav { display: none; }

    .about-container {
        height: auto;
        justify-content: flex-start;
    }

    .sidebar {
        display: flex;
        position: fixed;
        left: -100%;
        top: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: #F0EEE9;
        z-index: 2000;
        padding: 4rem 2rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }

    .sidebar.open { left: 0; }

    .overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1500;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .overlay.active { opacity: 1; pointer-events: auto; }
}

/* --- HAMBURGER RESET --- */
.hamburger {
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    color: #53687C;
}

.hamburger:focus, 
.hamburger:active {
    outline: none !important;
    background: transparent !important;
}

/* --- MOBILE SIDEBAR STACKING --- */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.sidebar-nav a {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #53687C;
}