@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400&display=swap');

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #F5F5F5;
    color: #111;
    font-family: "Manrope", sans-serif;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 170px 40px 80px;
}

/* Fixed title and email */
header {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 1000;
}

h1 {
    margin: 0;
    color: #111;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: .08em;
}

.email {
    margin-top: 5px;
}

.email a,
.email a:visited,
.email a:hover,
.email a:active {
    color: #111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.email a:hover {
    color: #83F783;
}

/* Information link */
.info-link,
.info-link:visited,
.info-link:active {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 1000;
    display: block;
    color: #000;
    font-size: 56px;
    font-weight: 200;
    line-height: .6;
    text-decoration: none;
    transition: color .25s ease;
}

.info-link:hover,
.info-link:focus-visible {
    color: #83F783;
    text-decoration: none;
}

/* Four-column homepage project grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.project-preview {
    display: block;
    overflow: hidden;
}

.project-preview img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity .3s ease;
}

.project-preview:hover img {
    opacity: .8;
}

/* Responsive */
@media (max-width: 900px) {
    header {
        top: 20px;
        right: auto;
        left: 20px;
        text-align: left;
    }

    h1 {
        font-size: 14px;
    }

    .email {
        margin-top: 4px;
    }

    .email a {
        font-size: 12px;
    }

    .container {
        padding: 100px 20px 40px;
    }

    .info-link,
    .info-link:visited {
        top: 20px;
        right: 20px;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}
