/* =====================================================
   MATT WHITE
   personal website
   ===================================================== */


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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: #f7f7f5;

    color: #222;

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

    font-size: 12px;

    line-height: 1.5;
}


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

a {
    color: #222;

    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


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

header {
    position: fixed;

    top: 0;
    left: 0;

    width: 150px;

    padding: 20px;

    z-index: 100;
}


.site-title {
    font-size: 12px;

    margin-bottom: 25px;
}

.site-title a {
    text-decoration: none;
}


nav {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


nav a {
    color: #777;

    font-size: 10px;
}

nav a:hover {
    color: #222;
}


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

main {
    margin-left: 150px;

    max-width: 1000px;

    padding: 70px 7vw 100px 5vw;
}


/* -------------------------
   HOME
   ------------------------- */

.home {
    min-height: 90vh;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 80px;
}


.home-left {
    max-width: 400px;
}


.tiny {
    color: #999;

    font-size: 9px;

    margin-bottom: 5px;
}


h1 {
    font-size: 48px;

    font-weight: normal;

    line-height: 1;

    margin: 0 0 15px 0;

    letter-spacing: -3px;
}


.intro {
    font-size: 14px;

    margin-bottom: 35px;
}


.home-text {
    color: #777;

    max-width: 250px;
}


.ascii {
    margin-top: 50px;

    font-size: 10px;
}


.home-right {
    width: 300px;
}


.fake-image {
    width: 300px;

    height: 380px;

    background: #ddd;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #999;

    font-size: 9px;
}


.caption {
    color: #999;

    font-size: 9px;

    margin-top: 7px;
}


/* -------------------------
   GENERAL SECTIONS
   ------------------------- */

.section {
    padding-top: 100px;

    margin-bottom: 180px;
}


.section-heading {
    margin-bottom: 80px;
}


.section-heading h2 {
    font-size: 42px;

    font-weight: normal;

    letter-spacing: -2px;

    margin: 0 0 10px 0;
}


.section-heading p {
    color: #999;

    font-size: 10px;
}


/* -------------------------
   PROJECTS
   ------------------------- */

.project {
    display: grid;

    grid-template-columns: 130px 1fr;

    gap: 30px;

    margin-bottom: 110px;

    align-items: start;
}


.project-info {
    font-size: 10px;

    color: #888;
}


.project-info h3 {
    color: #222;

    font-size: 11px;

    font-weight: normal;

    margin: 0 0 12px 0;
}


.project-info p {
    margin: 0 0 10px 0;
}


.project-info a {
    display: inline-block;

    margin-top: 10px;

    color: #222;
}


/* -------------------------
   IMAGE GRID
   ------------------------- */

.project-images {
    display: grid;

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

    gap: 4px;
}


.image {
    aspect-ratio: 1.6 / 1;

    background: #d5d5d0;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #999;

    font-size: 8px;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.image:hover {
    opacity: 0.7;

    transform: scale(0.99);

    cursor: pointer;
}


/* -------------------------
   INFORMATION
   ------------------------- */

.information-content {
    display: flex;

    align-items: center;

    gap: 80px;
}


.portrait {
    width: 300px;

    height: 350px;

    background: #ddd;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #999;

    font-size: 9px;
}


.bio {
    max-width: 300px;

    color: #777;

    font-size: 11px;
}


.bio p {
    margin-bottom: 25px;
}


/* -------------------------
   CONTACT
   ------------------------- */

.contact {
    min-height: 60vh;
}


.contact p {
    color: #777;

    max-width: 300px;

    margin-bottom: 15px;
}


.contact a {
    color: #222;
}


/* -------------------------
   PROJECT PAGES
   ------------------------- */

.project-page {
    min-height: 100vh;

    padding-top: 150px;

    margin-bottom: 200px;
}


.project-page > a {
    font-size: 10px;

    color: #888;
}


.project-page h2 {
    font-size: 50px;

    font-weight: normal;

    letter-spacing: -3px;

    margin-top: 50px;

    margin-bottom: 10px;
}


.project-page > p {
    color: #777;

    font-size: 10px;
}


.large-placeholder {
    width: 100%;

    max-width: 850px;

    height: 500px;

    background: #d5d5d0;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #999;

    font-size: 9px;

    margin-top: 60px;

    margin-bottom: 50px;
}


.project-description {
    max-width: 450px;

    color: #777;

    line-height: 1.7;
}


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

footer {
    margin-left: 150px;

    padding: 50px 7vw;

    border-top: 1px solid #ddd;

    color: #999;

    font-size: 9px;
}


footer p {
    margin: 5px 0;
}


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

@media (max-width: 700px) {

    header {
        position: relative;

        width: 100%;

        padding: 20px;
    }


    nav {
        flex-direction: row;

        flex-wrap: wrap;

        gap: 15px;
    }


    main {
        margin-left: 0;

        padding: 40px 20px 80px 20px;
    }


    .home {
        min-height: auto;

        padding: 60px 0;

        flex-direction: column;

        align-items: flex-start;

        gap: 50px;
    }


    h1 {
        font-size: 40px;
    }


    .home-right {
        width: 100%;
    }


    .fake-image {
        width: 100%;

        height: 400px;
    }


    .section {
        padding-top: 60px;

        margin-bottom: 100px;
    }


    .section-heading {
        margin-bottom: 50px;
    }


    .section-heading h2 {
        font-size: 35px;
    }


    .project {
        display: block;

        margin-bottom: 100px;
    }


    .project-info {
        margin-bottom: 20px;
    }


    .project-images {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .information-content {
        display: block;
    }


    .portrait {
        width: 100%;

        height: 400px;

        margin-bottom: 40px;
    }


    .bio {
        max-width: 100%;
    }


    .project-page h2 {
        font-size: 40px;
    }


    .large-placeholder {
        height: 300px;
    }


    footer {
        margin-left: 0;

        padding: 40px 20px;
    }

}

/* -------------------------
   SNOW
   ------------------------- */

.snow {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    pointer-events: none;
}

.snow span {
    position: absolute;
    top: -40px;

    color: #000000;
    opacity: 0.95;

    font-family: "Courier New", Courier, monospace;
    font-size: 16px;
    line-height: 1;

    animation-name: snowfall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.snow span:nth-child(1) {
    left: 4%;
    animation-duration: 11s;
    animation-delay: -2s;
}

.snow span:nth-child(2) {
    left: 10%;
    animation-duration: 16s;
    animation-delay: -10s;
    font-size: 10px;
}

.snow span:nth-child(3) {
    left: 17%;
    animation-duration: 13s;
    animation-delay: -5s;
    font-size: 13px;
}

.snow span:nth-child(4) {
    left: 24%;
    animation-duration: 19s;
    animation-delay: -14s;
}

.snow span:nth-child(5) {
    left: 30%;
    animation-duration: 12s;
    animation-delay: -8s;
    font-size: 9px;
}

.snow span:nth-child(6) {
    left: 37%;
    animation-duration: 17s;
    animation-delay: -4s;
    font-size: 14px;
}

.snow span:nth-child(7) {
    left: 43%;
    animation-duration: 14s;
    animation-delay: -11s;
    font-size: 8px;
}

.snow span:nth-child(8) {
    left: 49%;
    animation-duration: 20s;
    animation-delay: -6s;
}

.snow span:nth-child(9) {
    left: 55%;
    animation-duration: 12s;
    animation-delay: -16s;
    font-size: 11px;
}

.snow span:nth-child(10) {
    left: 61%;
    animation-duration: 15s;
    animation-delay: -3s;
    font-size: 15px;
}

.snow span:nth-child(11) {
    left: 68%;
    animation-duration: 18s;
    animation-delay: -13s;
    font-size: 9px;
}

.snow span:nth-child(12) {
    left: 73%;
    animation-duration: 11s;
    animation-delay: -7s;
}

.snow span:nth-child(13) {
    left: 78%;
    animation-duration: 16s;
    animation-delay: -1s;
    font-size: 12px;
}

.snow span:nth-child(14) {
    left: 83%;
    animation-duration: 14s;
    animation-delay: -9s;
    font-size: 8px;
}

.snow span:nth-child(15) {
    left: 89%;
    animation-duration: 19s;
    animation-delay: -15s;
    font-size: 14px;
}

.snow span:nth-child(16) {
    left: 94%;
    animation-duration: 12s;
    animation-delay: -4s;
}

.snow span:nth-child(17) {
    left: 7%;
    animation-duration: 22s;
    animation-delay: -17s;
    font-size: 8px;
}

.snow span:nth-child(18) {
    left: 34%;
    animation-duration: 21s;
    animation-delay: -12s;
    font-size: 12px;
}

.snow span:nth-child(19) {
    left: 47%;
    animation-duration: 23s;
    animation-delay: -19s;
    font-size: 9px;
}

.snow span:nth-child(20) {
    left: 65%;
    animation-duration: 18s;
    animation-delay: -2s;
    font-size: 11px;
}

.snow span:nth-child(21) {
    left: 76%;
    animation-duration: 24s;
    animation-delay: -20s;
    font-size: 8px;
}

.snow span:nth-child(22) {
    left: 92%;
    animation-duration: 17s;
    animation-delay: -8s;
    font-size: 13px;
}

.snow span:nth-child(23) {
    left: 20%;
    animation-duration: 25s;
    animation-delay: -22s;
    font-size: 9px;
}

.snow span:nth-child(24) {
    left: 57%;
    animation-duration: 20s;
    animation-delay: -10s;
    font-size: 10px;
}
.snow span:nth-child(25) {
    left: 2%;
    animation-duration: 15s;
    animation-delay: -6s;
    font-size: 9px;
}

.snow span:nth-child(26) {
    left: 13%;
    animation-duration: 21s;
    animation-delay: -14s;
    font-size: 12px;
}

.snow span:nth-child(27) {
    left: 27%;
    animation-duration: 13s;
    animation-delay: -3s;
    font-size: 8px;
}

.snow span:nth-child(28) {
    left: 40%;
    animation-duration: 18s;
    animation-delay: -11s;
    font-size: 14px;
}

.snow span:nth-child(29) {
    left: 52%;
    animation-duration: 16s;
    animation-delay: -8s;
    font-size: 10px;
}

.snow span:nth-child(30) {
    left: 63%;
    animation-duration: 22s;
    animation-delay: -18s;
    font-size: 8px;
}

.snow span:nth-child(31) {
    left: 71%;
    animation-duration: 14s;
    animation-delay: -4s;
    font-size: 13px;
}

.snow span:nth-child(32) {
    left: 85%;
    animation-duration: 19s;
    animation-delay: -12s;
    font-size: 9px;
}

.snow span:nth-child(33) {
    left: 97%;
    animation-duration: 17s;
    animation-delay: -7s;
    font-size: 11px;
}

.snow span:nth-child(34) {
    left: 8%;
    animation-duration: 24s;
    animation-delay: -20s;
    font-size: 8px;
}

.snow span:nth-child(35) {
    left: 32%;
    animation-duration: 20s;
    animation-delay: -9s;
    font-size: 12px;
}

.snow span:nth-child(36) {
    left: 76%;
    animation-duration: 16s;
    animation-delay: -15s;
    font-size: 10px;
}

@keyframes snowfall {
    0% {
        transform: translate3d(0, -30px, 0);
    }

    25% {
        transform: translate3d(18px, 25vh, 0);
    }

    50% {
        transform: translate3d(-12px, 55vh, 0);
    }

    75% {
        transform: translate3d(16px, 80vh, 0);
    }

    100% {
        transform: translate3d(-8px, 110vh, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .snow span {
        animation: none;
    }
}