@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=DM+Mono:wght@300;400&display=swap');

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

body,
.page,
.portfolio-wrap {
    background: #0D0D0D;
    color: #F2EFE9;
    font-family: 'DM Mono', monospace;
}

/* ── NAV ── */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 2.5rem;
    z-index: 200;
    transition: background 0.4s;
}

.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.nav-sticky {
    position: sticky;
    top: 0;
    background: #0D0D0D;
    border-bottom: 0.5px solid rgba(242, 239, 233, 0.12);
}

.nav.scrolled {
    background: rgba(13, 13, 13, 0.92);
    border-bottom: 0.5px solid rgba(242, 239, 233, 0.1);
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #F2EFE9;
}

a.nav-logo {
    text-decoration: none;
    color: inherit;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a,
.nav-links a {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(242, 239, 233, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links li a:hover,
.nav-links a:hover,
.nav-links a.active {
    color: #C8935A;
}

.color-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #C8935A;
    margin-right: 5px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* ── JOURNAL PAGES ── */

.page-wrap {
    padding-top: 10rem;
    min-height: 100vh;
}

.page-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    font-style: italic;
    color: #F2EFE9;
    padding: 0 2.5rem 2rem;
    border-bottom: 0.5px solid rgba(242, 239, 233, 0.08);
}

.page-hero-title span {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-style: normal;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(242, 239, 233, 0.3);
    margin-bottom: 1rem;
}

/* ── FOOTER ── */
.footer {
    padding: 2.5rem 2.5rem;
    border-top: 0.5px solid rgba(242, 239, 233, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.08em;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(242, 239, 233, 0.25);
    text-decoration: none;
}

.footer-links a:hover {
    color: #C8935A;
}

.footer-copy {
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(242, 239, 233, 0.15);
}


.footer-line {
    padding: 2rem 2.5rem;
    border-top: 0.5px solid rgba(242, 239, 233, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3px;
}

.footer-line span {
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(242, 239, 233, 0.2);
}

/* ── LIGHTBOX (Global) ── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.97);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.open {
    display: flex;
}

.lightbox-img-wrap {
    max-width: 80vw;
    max-height: 78vh;
    position: relative;
    text-align: center;
}

.lightbox-img-wrap img {
    display: block;
    max-width: 80vw;
    max-height: 78vh;
    object-fit: contain;
    border: 0.5px solid rgba(242, 239, 233, 0.1);
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

.lightbox-img-wrap img.fading {
    opacity: 0;
}

.lightbox-info {
    margin-top: 1.2rem;
    text-align: center;
}

.lightbox-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 300;
    font-style: italic;
    color: #F2EFE9;
    margin-bottom: 4px;
}

.lightbox-sub {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(242, 239, 233, 0.35);
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: rgba(242, 239, 233, 0.4);
    font-size: 22px;
    cursor: pointer;
    font-family: 'DM Mono', monospace;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #F2EFE9;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(242, 239, 233, 0.3);
    font-size: 24px;
    cursor: pointer;
    font-family: 'DM Mono', monospace;
    transition: color 0.2s;
    padding: 1rem;
}

.lightbox-nav:hover {
    color: #F2EFE9;
}

.lb-prev {
    left: 1rem;
}

.lb-next {
    right: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-wrap {
        padding-top: 10rem;
    }

    .page-hero-title {
        padding: 0 1.5rem 1.5rem;
        font-size: 2.8rem;
    }

    .footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 3rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}