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

html {
    font-family: sans-serif;
}

body {
    background-color: #f6f6f6;
}

header {
    padding: 0 2rem;
    height: 150px;
    margin: auto;
    display: flex;
    align-items: center;
    max-width: 1200px;
}

.logo {
    margin-right: auto;
    display: flex;
    flex-direction: column;
}

.logo a {
    text-decoration: none;
    color: orangered;
    font-family: "akzidenz-grotesk-next-pro", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.25rem;

}

.logo p {
    color: #888;
    font-family: "akzidenz-grotesk-next-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav a {
    display: flex;
    margin-left: 2rem;
    color: #888;
    text-decoration: none;
    font-weight: 400;
    font-style: normal;
    font-family: "akzidenz-grotesk-next-pro", sans-serif;
    
}

nav a:hover {
    color: orangered;
}

.active-link {
    color: #111111;
    border-bottom: 1px solid #111;
}

button {
    background: none;
    border: none;
}

#open-sidebar-button {
    display: none;
}

#close-sidebar-button {
    display: none;
}

section {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;

}

section h2 {
    font-family: "akzidenz-grotesk-next-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 0 0 1rem 0;

}


.portfolio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 4rem;
}

.portfolio img {
    width: 100%;
}

footer {
    text-align: center;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    color: white;

}
.about {
    display: grid;
    grid-template-columns:1fr 4fr;
    gap: 2rem;
    margin-bottom: 4rem;
}
.about p {
    line-height: 1.5;
}


@media screen and (max-width:600px) {
    header {
        padding: 0 1rem;
        height: 100px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 60%;
        height: 100vh;
        background-color: white;
        transition: right 300ms ease-out;
    }

    nav.show {
        right: 0;
    }


    nav a {
        font-size: 1.5rem;
        margin: 2rem 1rem 0 1rem;
    }

    nav ul {
        flex-direction: column;
    }

    #open-sidebar-button,
    #close-sidebar-button {
        display: block;
    }

    .portfolio {
        grid-template-columns: 1fr;
    }

    section {
        padding: 0 1rem;
    }
    .about {
        grid-template-columns: 1fr;
        margin-bottom: 2rem;
    }
    .about img {
        padding: 2rem;
    }
}