body {
    margin: 16px;
    margin-bottom: 17vw;
}

p,
a {
    color: #000;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 20px;
    letter-spacing: -0.2px;
    margin: 0;
    max-width: 800px;
}

::selection,
a:hover,
a:active {
    background-color: #d8117e;
    color: #fff;
}

a {
    text-decoration: underline;
    margin-right: 8px;
}

img#f {
    width: 30px;
    height: 30px;
    margin-top: 30px;
}

.b {
    font-weight: bold;
}

#logo {
    position: fixed;
    padding: 16px;
    width: calc(100vw - 32px);
    bottom: 0;
    left: 0;
    backdrop-filter: invert(1);
    mix-blend-mode: difference;
    isolation: isolate;
    mask: url("images/swag.svg");
    mask-size: calc(100vw - 32px) auto;
    mask-position: 16px 16px;
    mask-repeat: no-repeat;
    transition: filter 200ms ease;
}

#portrait {
    position: absolute;
    right: 16px;
    top: 16px;
}

#portrait p {
    font-size: 8px;
    line-height: 8.5px;
    font-family: monospace;
}

.spacer {
    height: 200px;
}

.projects {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.projects a {
    text-decoration: none;
    margin: 0;
    position: relative;
}

.projects a:hover {
    background-color: transparent;
}

.projects a:hover img,
.projects a:hover p {
    opacity: 0.6;
}

.projects a::after {
    display: none;
}

.projects a:hover::after {
    display: block;
    position: absolute;
    width: 100%;
    aspect-ratio: 1 / 1;
    content: "";
    background-image: url("images/link.svg");
    background-size: cover;
    left: 0;
    top: 0;
}

.card {
    padding-bottom: 16px;
}

.card > img {
    width: 100%;
    aspect-ratio: 5 / 7.03;
    object-fit: cover;
}

.card > p:nth-of-type(1) {
    opacity: 0.6;
}

.card > p:nth-of-type(2) {
    font-weight: bold;
}

@media screen and (max-width: 780px) {
    body {
        margin-top: 340px;
    }

    .spacer {
        height: 64px;
    }

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