/* ---------- BASIC RESET ---------- */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;

    background: #f7f6f2;
    color: #171717;

    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.5;
}


/* ---------- LINKS ---------- */

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

a:hover {
    opacity: 0.55;
}


/* ---------- HEADER ---------- */

header {
    max-width: 1500px;
    margin: 0 auto;

    padding: 32px 40px;

    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.name {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    font-size: 0.9rem;
}

nav .current {
    border-bottom: 1px solid;
}


/* ---------- MAIN ---------- */

main {
    max-width: 1500px;

    margin: 70px auto 150px;
    padding: 0 40px;
}

h1 {
    margin: 0 0 90px;

    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 0.95;
}


/* ---------- YEARS ---------- */

.year {
    margin-bottom: 140px;
}

.year > h2 {
    margin: 0 0 30px;

    font-size: 1rem;
    font-weight: 400;
}


/* ---------- GALLERY ---------- */

.gallery {
    display: grid;

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

    gap: 80px 32px;
}

.work img {
    display: block;

    width: 100%;
    height: auto;

    margin-bottom: 18px;
}

.work h3 {
    margin: 0 0 5px;

    font-size: 1rem;
    font-weight: 500;
}

.work p {
    margin: 2px 0;

    font-size: 0.85rem;
}

.price {
    margin-top: 12px !important;
}

.sold {
    margin-top: 12px !important;

    font-style: italic;
    opacity: 0.55;
}


/* ---------- BUY LINK ---------- */

.buy {
    display: inline-block;

    margin-top: 12px;

    border-bottom: 1px solid;

    font-size: 0.85rem;
}


/* ---------- ABOUT ---------- */

.about {
    max-width: 1100px;
}

.about-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;
}

.bio {
    max-width: 500px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 1.25rem;
    line-height: 1.6;
}

.bio p:first-child {
    margin-top: 0;
}

.portrait {
    width: 100%;
}

.links {
    margin-top: 50px;
}

.links a {
    border-bottom: 1px solid;
}


/* ---------- FOOTER ---------- */

footer {
    max-width: 1500px;

    margin: 0 auto;
    padding: 30px 40px;

    font-size: 0.75rem;

    opacity: 0.5;
}


/* ---------- TABLET ---------- */

@media (max-width: 900px) {

    .gallery {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .about-content {
        grid-template-columns: 1fr;
    }

}


/* ---------- PHONE ---------- */

@media (max-width: 600px) {

    header {
        padding: 24px 20px;
    }

    main {
        margin-top: 45px;
        padding: 0 20px;
    }

    h1 {
        margin-bottom: 60px;
    }

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

        gap: 65px;
    }

    nav {
        gap: 18px;
    }

    footer {
        padding: 25px 20px;
    }

}