@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600&display=swap');

:root {
    --ivory: #f7f3ea;
    --ink: #201c1a;
    --wine: #7a1f3d;
    --teal: #1b4b43;
    --gold: #b8892b;
    --line: rgba(32,28,26,0.14);
    --serif: 'Fraunces', serif;
    --sans: 'Work Sans', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Nav ---------- */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 6vw;
    border-bottom: 1px solid var(--line);
}

    .site-nav .logo {
        font-family: var(--serif);
        font-weight: 600;
        font-size: 1.35rem;
        letter-spacing: 0.01em;
    }

    .site-nav .links {
        display: flex;
        gap: 2.2rem;
        font-size: 0.95rem;
    }

        .site-nav .links a {
            position: relative;
            padding-bottom: 2px;
        }

            .site-nav .links a:hover {
                color: var(--wine);
            }

            .site-nav .links a.current {
                color: var(--wine);
            }

/* ---------- Footer ---------- */
footer {
    padding: 3rem 6vw 4rem;
    border-top: 1px solid var(--line);
    margin-top: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.88rem;
    color: rgba(32,28,26,0.65);
}

    footer a:hover {
        color: var(--wine);
    }

/* ---------- Home hero ---------- */
.hero {
    padding: 5vw 6vw 4vw;
    max-width: 980px;
}

    .hero h1 {
        font-family: var(--serif);
        font-weight: 700;
        font-size: clamp(2.6rem,7vw,5.2rem);
        line-height: 0.98;
        margin: 0 0 1.1rem;
    }

    .hero .role {
        font-family: var(--serif);
        font-style: italic;
        font-weight: 500;
        font-size: clamp(1.2rem,2.4vw,1.6rem);
        color: var(--wine);
        margin: 0 0 1.4rem;
    }

    .hero .tagline {
        max-width: 520px;
        font-size: 1.05rem;
        color: rgba(32,28,26,0.75);
        margin: 0;
    }

/* ---------- Work grid ---------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    grid-auto-rows: 14vw;
    gap: 14px;
    padding: 2vw 6vw 6vw;
}

.work-card {
    position: relative;
    overflow: hidden;
    display: block;
    background: var(--ink);
}

    .work-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

    .work-card:hover img {
        transform: scale(1.045);
    }

    .work-card .label {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 1.1rem 1.2rem;
        background: linear-gradient(to top, rgba(20,17,15,0.82), rgba(20,17,15,0));
        color: #f7f3ea;
    }

        .work-card .label .name {
            font-family: var(--serif);
            font-weight: 600;
            font-size: 1.15rem;
        }

        .work-card .label .date {
            font-size: 0.78rem;
            opacity: 0.8;
            margin-top: 2px;
        }

    .work-card.c1 {
        grid-column: 1/4;
        grid-row: 1/3;
    }

    .work-card.c2 {
        grid-column: 4/7;
        grid-row: 1/2;
    }

    .work-card.c3 {
        grid-column: 4/6;
        grid-row: 2/3;
    }

    .work-card.c4 {
        grid-column: 6/7;
        grid-row: 2/3;
    }

    .work-card.c5 {
        grid-column: 1/3;
        grid-row: 3/5;
    }

    .work-card.c6 {
        grid-column: 3/7;
        grid-row: 3/5;
    }

@media (max-width:860px) {
    .work-grid {
        grid-template-columns: repeat(2,1fr);
        grid-auto-rows: 52vw;
    }

    .work-card.c1, .work-card.c2, .work-card.c3, .work-card.c4, .work-card.c5, .work-card.c6 {
        grid-column: auto;
        grid-row: auto;
    }

    .site-nav .links {
        gap: 1.2rem;
        font-size: 0.85rem;
    }
}

/* ---------- Project page ---------- */
.project-head {
    padding: 4vw 6vw 1.5vw;
    max-width: 760px;
}

.back-link {
    font-size: 0.85rem;
    color: rgba(32,28,26,0.6);
    display: inline-block;
    margin-bottom: 1.6rem;
}

    .back-link:hover {
        color: var(--wine);
    }

.project-head h1 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2.2rem,5vw,3.4rem);
    margin: 0 0 0.4rem;
}

.project-head .date {
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    color: var(--wine);
    margin-bottom: 1.6rem;
}

.project-head p {
    font-size: 1.05rem;
    color: rgba(32,28,26,0.85);
    max-width: 640px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 16px;
    padding: 1vw 6vw 6vw;
}

    .gallery img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: zoom-in;
        aspect-ratio: 2/3;
    }

/* lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20,17,15,0.94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 4vw;
}

    .lightbox.open {
        display: flex;
    }

    .lightbox img {
        max-width: 90vw;
        max-height: 88vh;
        width: auto;
        object-fit: contain;
    }

    .lightbox .close {
        position: absolute;
        top: 24px;
        right: 6vw;
        color: #f7f3ea;
        font-family: var(--sans);
        font-size: 0.95rem;
        cursor: pointer;
    }

/* ---------- About ---------- */
.about-wrap {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 4vw;
    padding: 4vw 6vw 6vw;
    max-width: 1100px;
    align-items: start;
}

    .about-wrap img {
        width: 100%;
    }

    .about-wrap h1 {
        font-family: var(--serif);
        font-weight: 700;
        font-size: clamp(2.2rem,5vw,3.2rem);
        margin: 0 0 1.2rem;
    }

    .about-wrap p {
        font-size: 1.05rem;
        color: rgba(32,28,26,0.85);
        margin: 0 0 1.1rem;
        max-width: 60ch;
    }

@media (max-width:760px) {
    .about-wrap {
        grid-template-columns: 1fr;
    }
}

/* ---------- Contact ---------- */
.contact-wrap {
    padding: 6vw 6vw 8vw;
    max-width: 640px;
}

    .contact-wrap h1 {
        font-family: var(--serif);
        font-weight: 700;
        font-size: clamp(2.4rem,6vw,3.8rem);
        margin: 0 0 1.2rem;
        line-height: 1.05;
    }

    .contact-wrap .lede {
        font-size: 1.1rem;
        color: rgba(32,28,26,0.8);
        margin-bottom: 2.4rem;
    }

    .contact-wrap .email-link {
        display: inline-block;
        font-family: var(--serif);
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--wine);
        border-bottom: 2px solid var(--wine);
        padding-bottom: 4px;
    }

        .contact-wrap .email-link:hover {
            color: var(--teal);
            border-color: var(--teal);
        }
