body {
    max-width: 768px;
    margin: 0 auto;
    padding: 20px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    font-family: sans-serif;
}

h1 {
    margin-bottom: 0;
}

a {
    color: #666;

    &::before {
        content: "[";
        margin-right: 5px;
    }

    &::after {
        content: "]";
        margin-left: 5px;
    }

    &:hover {
        color: #333;
    }
}

.image-grid > a {
    &::before {
        content: "";
    }

    &::after {
        content: "";
    }
}

header {
    border-bottom: 1px solid #ccc;
}

footer {
    border-top: 1px solid #ccc;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
    padding: 20px 0;
}

nav ul, footer ul {
    flex-direction: row;
    gap: 20px;
    padding-left: 0;
}

#projects ul {
    flex-direction: column;
    gap: 30px;

    li {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
}

#projects h2:not(:first-child) {
    margin-top: 40px;
}

ul {
    display: flex;
    flex-direction: column;

    list-style: none;
    gap: 5px;
}

img {
    max-width: 100%;
    height: auto;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}
