* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #370505;
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

main {
    display: flex;
    flex-direction: column;
}

header {
    background-color: #590909;
    width: 100%;
}

.section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(100% - 2rem, 70rem);
    margin-inline: auto;
    padding: 1rem;
}

.links {
    display: flex;
    gap: clamp(1rem, 4vw, 3rem);
}

h1, h2, h3, p {
    margin: 0;
}

a {
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(1rem, 2vw, 1.375rem);
    color: #3957ff;
}

.text {
    color: #fffdfa;
}

#hero-section {
    background-color: #fffdfa;
    width: 100%;
}

#hero {
    min-height: 400px;
    gap: clamp(2rem, 8vw, 6rem);
}

#hero .text {
    display: flex;
    color: #17181a;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

#hero .text p {
    font-size: 18px;
}

#hero .text h1 {
    font-size: 40px;
}

#headshot {
    max-width: 30%;
    border-radius: 50%;
    border: clamp(2px, 0.5vw, 8px) solid #590909;
    flex: 0 0 100px;
    aspect-ratio: 1;
}


#projects-list {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #590909 transparent;
    padding-bottom: 1rem;
}


#projects-section {
    width: 100%;
}

#projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-top: .75rem;
    margin-bottom: 3rem;
}

.project-card {
    background-color: #fffdfa;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    width: 400px;
    min-width: 400px;
    max-width: 400px;;
    flex: 0 0 min(400px, 85%);
    position: relative;
}

.project-card img {
    width: 20%;
    flex-shrink: 0;
    aspect-ratio: 1;
    object-fit: contain;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
}

.card-content #year {
    font-weight: 800;
}

#more {
    display: flex;
    align-items: center;
}

#see-more {
    font-size: 2rem;
    text-decoration: none;
    color: #17181a;
}


#see-more::after {
    content: "";
    position: absolute;
    inset: 0; 
}


.card-content .title-and-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-content #tag {
    font-weight: 0;
    color: rgb(50, 47, 47);
    font-size: 14px;
}


h2 {
    width: 100%;
    text-align: center;
    font-size: 2rem;
}

footer .section {
    align-items: center;
    flex-direction: column;
}

footer {
    background-color: #590909;
}

footer .links {
    flex-direction: column;
    background-color:#370505;
    padding:1rem 3rem;
    gap: 1rem;
}

footer a {
    display: flex;
    gap: 0.4rem;
}


@media (max-width: 45rem) {
    #hero {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 1rem;
        padding-block: 2rem;
    }

    #headshot {
        flex-basis: auto;
        width: min(100%, 12.5rem);
    }

    #hero .text h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .project-card {
        width: 300px;
        min-width: 300px;
        max-width: 300px;;
    }

}

