/* =========================================================
   BASIC RESET
========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.4;

    color: #111;
    background: #fff;
}


img {
    max-width: 100%;
}


a {
    color: inherit;
    text-decoration: none;
}



/* =========================================================
   HEADER
========================================================= */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 20px;
}


.site-name {
    font-size: 14px;
    font-weight: 400;
}


.site-nav {
    display: flex;

    gap: 22px;
}


.site-name,
.site-nav a {
    transition: opacity 0.2s ease;
}


.site-name:hover,
.site-nav a:hover {
    opacity: 0.5;
}



/* =========================================================
   HOMEPAGE
========================================================= */

.project-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 16px;
    row-gap: 55px;

    padding: 20px 20px 100px;
}



/* HOMEPAGE PROJECT */

.project {
    display: block;
}


.project-image {
    width: 100%;

    overflow: hidden;

    background: #f2f2f2;
}


.project-image img {
    display: block;

    width: 100%;
    height: auto;

    transition: opacity 0.25s ease;
}


.project:hover .project-image img {
    opacity: 0.85;
}



/* HOMEPAGE PROJECT INFORMATION */

.project-info {
    display: flex;

    justify-content: space-between;
    align-items: baseline;

    gap: 20px;

    padding-top: 8px;
}


.project-info h2,
.project-info p {
    margin: 0;

    font-size: 14px;
    font-weight: 400;
}


.project-info p {
    flex-shrink: 0;
}



/* =========================================================
   INDIVIDUAL PROJECT PAGE
========================================================= */

.project-page {
    padding: 20px 20px 100px;
}



/* =========================================================
   PROJECT INTRO
========================================================= */

.project-intro {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 16px;

    margin-bottom: 100px;
}



/* HERO IMAGE */

.project-hero {
    width: 100%;
}


.project-hero img {
    display: block;

    width: 100%;
    height: auto;
}



/* PROJECT TEXT */

.project-text {
    padding-left: 10px;

    max-width: 600px;
}



/* TITLE + YEAR */

.project-heading {
    display: flex;

    justify-content: space-between;
    align-items: baseline;

    gap: 20px;

    margin-bottom: 45px;
}


.project-heading h1,
.project-heading p {
    margin: 0;

    font-size: 14px;
    font-weight: 400;
}


.project-year {
    flex-shrink: 0;
}



/* MEDIUM / META INFORMATION */

.project-meta {
    margin-bottom: 35px;
}


.project-meta p {
    margin: 0;

    font-size: 14px;
}



/* DESCRIPTION */

.project-description {
    max-width: 520px;
}


.project-description p {
    margin: 0 0 18px;

    font-size: 14px;
    line-height: 1.45;
}



/* =========================================================
   PROJECT GALLERY
========================================================= */

.project-gallery {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 120px;
}


.project-gallery img {
    display: block;

    width: 100%;
    height: auto;
}



/* =========================================================
   PROJECT NAVIGATION
========================================================= */

.project-navigation {
    display: flex;

    justify-content: space-between;

    border-top: 1px solid #ccc;

    padding-top: 12px;
}


.project-navigation a {
    transition: opacity 0.2s ease;
}


.project-navigation a:hover {
    opacity: 0.5;
}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {


    /* HEADER */

    .site-header {
        padding: 16px 15px;
    }


    .site-nav {
        gap: 16px;
    }



    /* HOMEPAGE */

    .project-grid {
        grid-template-columns: 1fr;

        padding: 15px 15px 70px;

        row-gap: 45px;
    }



    /* PROJECT PAGE */

    .project-page {
        padding: 15px 15px 70px;
    }



    /* HERO + TEXT */

    .project-intro {
        grid-template-columns: 1fr;

        row-gap: 25px;

        margin-bottom: 70px;
    }


    .project-text {
        padding-left: 0;

        max-width: none;
    }


    .project-heading {
        margin-bottom: 30px;
    }


    .project-meta {
        margin-bottom: 25px;
    }


    .project-description {
        max-width: none;
    }



    /* GALLERY */

    .project-gallery {
        grid-template-columns: 1fr;

        gap: 15px;

        margin-bottom: 80px;
    }

}

/* =========================================================
   INFO PAGE
========================================================= */

.info-page {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 16px;

    padding: 60px 20px 120px;
}


/* COLUMNS */

.info-column {
    min-width: 0;
}


.info-right {
    padding-left: 10px;
}


/* HEADINGS */

.info-heading {
    margin: 0 0 18px;

    font-size: 14px;
    font-weight: 400;

    color: #777;
}


/* TEXT */

.info-text {
    max-width: 500px;
}


.info-text p {
    margin: 0 0 18px;

    font-size: 16px;
    line-height: 1.5;
}


/* BIO */

.info-block {
    margin-bottom: 80px;
}


/* CONTACT */

.info-contact {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 40px 16px;
}


.info-section p,
.info-section a {
    margin: 0;

    font-size: 14px;
}


.info-section .info-heading {
    margin-bottom: 8px;
}


.info-section a {
    transition: opacity 0.2s ease;
}


.info-section a:hover {
    opacity: 0.5;
}



/* =========================================================
   INFO PAGE MOBILE
========================================================= */

@media (max-width: 700px) {

    .info-page {
        grid-template-columns: 1fr;

        row-gap: 70px;

        padding: 40px 15px 80px;
    }


    .info-right {
        padding-left: 0;
    }


    .info-text {
        max-width: none;
    }


    .info-text p {
        font-size: 16px;
    }


    .info-block {
        margin-bottom: 60px;
    }


    .info-contact {
        grid-template-columns: 1fr;

        gap: 30px;
    }

}