:root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #222222;
    background-color: #fafafa;
    padding: 1em;
    line-height: 1.4;

    --desktop-width: 800px;
}

header {
    display: flex;
    margin: auto;

    >div {
        display: flex;
        flex-direction: row;
        gap: 1em;
        align-items: center;

        h1 a {
            text-decoration: none;
        }

        >a:has(>img) {
            height: 64px;
        }
    }

    img {
        max-width: 64px;
        max-height: 64px;
        object-fit: contain;
        border-radius: 0.5em;
    }

    nav {
        display: flex;

        ul {
            list-style: none;
            padding-left: 0;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 1em;
        }
    }
}

a,
a:visited,
a:link {
    color: inherit;
}

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

footer {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;

    p {
        margin: 0.5em;
        font-size: small;
    }
}

/* mobile only */
@media screen and (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: center;

        h1 {
            margin: 0;
        }
    }
}

/* desktop only */
@media screen and (min-width: 600px) {
    header {
        flex-direction: row;
        max-width: var(--desktop-width);
        justify-content: space-between;
    }

    main {
        max-width: var(--desktop-width);
    }

    footer {
        max-width: var(--desktop-width);
    }
}