@import url("https://use.typekit.net/fwu2ryy.css");

html{
    font-family: "owners", sans-serif;
    font-weight: 200;
    font-style: normal;
    letter-spacing: .1rem;
    overflow-x: hidden;
}

body{
    background-color: white;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

header{
    width: 100%;
    height: 88px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px 24px;
    justify-content: space-between;
    box-sizing: border-box;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    border-bottom: 1px solid gray;
}

.logo{
    width: auto;
    height: 50px;
    display: block;
}

.logo-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.logo-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1.5px;
    background-color: black;
    opacity: 0;
}

.logo-link:hover::after {
    opacity: 1;
}

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

nav a{
    font-size: 16px;
    font-weight: 200;
    letter-spacing: 3;
    color: black;
    text-decoration: none;
}

a:hover{
    text-decoration: underline;
}

header p{
    font-size: 50px;
}

nav a.active{
    font-weight: 500;
}

.content{
    width: 100%;
    padding: 88px 0px 0px 0px;
    display: flex;
    flex-direction: row;
    gap: 24px;
}

section{
    min-width: 200px;
}

.intro{
    flex: 1;
    position: fixed;
    width: 325px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    line-height: 1.2;
    color: black;
    top: 88px;
    left: 20px;
    padding: 0px;
    opacity: 0;
    transform: translateX(-30px);
    transition: 1s ease-out;
}

.intro > p.hello{
    font-size: 50px;
    font-weight: 500;
    margin: 20px 0px 0px 0px;
}

.intro p{
    font-size: 24px;
    margin: 0;
}

.selected-works{
    flex: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-left: calc(325px + 40px);
    margin-right: calc(325px + 40px);
    border-left: 1px solid gray;
    border-right: 1px solid gray;
}

.section-title p{
    font-size: 24px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
    padding: 20px 20px 5px 20px;
}

.image-row{
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px 20px;
    opacity: 0;
    border-top: 1px solid gray;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out,
                transform 0.8s ease-out;
}

.image-row.reveal{
    opacity: 1;
    transform: translateY(0px);
}

.image-row a{
    display: block;
    text-decoration: none;
}

.image-row a:hover{
    text-decoration: underline;
}

.image-row img{
    width: 100%;
    transition: filter 0.4s ease-out;
}

.image-row img:hover{
    filter: brightness(70%);
}

.description{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    font-size: 15px;
    font-weight: 400;
    color: black;
    line-height: 0;
    letter-spacing: 1.5px;
}

.project-name{
    color: black;
    text-decoration: none;
}

.text{
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: baseline;
}

.work-type{
    color: gray;
    font-weight: 200;
}

.about{
    flex: 1;
    position: fixed;
    width: 325px;
    top: 88px;
    right: 20px;
    opacity: 0;
    padding: 0px;
    transform: translateX(30px);
    transition: 1s ease-out;
}

.about img{
    width: 100%;
    padding: 20px 0;
}

.about-info{
    display: flex;
    flex-direction: column;
    justify-content: top;
}

.about p{
    font-size: 24px;
    margin: 0;
}

.about a{
    font-size: 24px;
    margin: 0;
    text-decoration: none;
    color: black;
}

.about a:hover{
    text-decoration: underline;
}

.intro.loaded,
.about.loaded {
    opacity: 1;
    transform: translateX(0);
}

.footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 80px 20px 20px 20px;
    border-top: 1px solid gray;
}

.contact-icons{
    display: flex;
    gap: 20px;
}

.contact-icons a{
    color: black;
    text-decoration: none;
    font-size: 20px;
}

.contact-icons a:hover{
    color: gray;
}

.design-tag p{
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: black;
}

footer{
    display: none;
    border-top: 1px solid gray;
    padding: 20px 24px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 88px;
    box-sizing: border-box;
    background-color: white;
}

footer .contact-icons{
    display: flex;
    gap: 20px;
}

footer .contact-icons a{
    color: black;
    text-decoration: none;
    font-size: 20px;
}

footer .design-tag p{
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: black;
}

@media (max-width: 1100px){
    .content{
        flex-direction: column;
        padding: 88px 0px 0px 0px;
        gap: 40px;
    }

    .intro,
    .about{
        position: static;
        width: 100%;
        max-width: 100%;
        left: auto;
        right: auto;
        box-sizing: border-box;
        opacity: 1;
        transform: none;
        text-align: left;
        padding: 0px 20px 0px 20px;
    }

    .about{
        display: flex;
        flex-direction: row;
        gap: 32px;
    }

    .about img{
        width: 50%;
        padding: 0px;
    }

    .section-title p{
        padding: 20px 20px 5px 20px;
    }

    .selected-works{
        margin: 0;
        border-left: none;
        border-right: none;
        border-top: 1px solid gray;
        border-bottom: 1px solid gray;
    }

    .image-row{
        padding: 20px;
    }

    .about{
        padding-bottom: 40px;
    }

    .footer{
        display: none;
    }

    footer{
        display: flex;
    }
}

@media (max-width: 700px){
    header{
        height: 70px;
        padding: 15px 16px;
    }

    .logo{
        height: 40px;
    }

    header p{
        font-size: 32px;
    }

    nav a{
        font-size: 14px;
        gap: 20px;
    }

    .intro > p.hello{
        margin: 0;
    }

    .intro p{
        font-size: 18px;
    }

    .about{
        gap: 20px;
    }

    .about p,
    .about a{
        font-size: 18px;
    }

    .description{
        font-size: 13px;
        flex-direction: row;
        align-items: flex-start;
        gap: 4px;
        line-height: 1.2;
    }

    .text{
        gap: 6px;
    }

    .image-row{
        gap: 0px;
    }

    .image-row img{
        width: 100%;
    }
}

@media (max-width: 480px){
    nav{
        gap: 16px;
    }

    .intro{
        gap: 20px;
    }

    .intro p{
        font-size: 16px;
    }
    
    .image-row{
        gap: 0px;
    }

    .about{
        gap: 10px;
    }

    .about-info p,
    .about-info a{
        font-size: 16px;
    }

    .description{
        font-size: 12px;
    }

    footer{
        gap: 50px;
    }

    footer > .contact-icons a, 
    footer > .design-tag p{
        font-size: 14px;
    }

    footer > .design-tag p{
        text-align: right;
    }
}

@media (max-width: 370px){
    .intro > p.hello{
        font-size: 44px;
    }

    .description{
        gap: 12px;
    }

    .text{
        flex-wrap: wrap;
        align-items: baseline;
    }

    .text p{
        margin-bottom: 0;
        white-space: nowrap;
    }

    .work-type{
        white-space: nowrap;
        margin: 0;
    }

    .about-info p,
    .about-info a{
        font-size: 14px;
    }
}