html {
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: none;
}

/* nuts */
body {
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: serif;
    background: #333;
    color: white;
    max-width: 72ch;
    line-height: 1.6rem;
}

html,
body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3 {
    color: gray;
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-weight: bold;
    line-height: 1.1;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.2rem;
}

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

a[href^="https://"]:after {
    content: " \2197";
}

blockquote {
    padding-left: 1rem;
    margin-left: 1rem;
    margin-right: 0;
    padding-right: 0;
}

blockquote {
    border-left: 1px solid gray;
}

pre {
    white-space: pre-wrap;
    /*overflow-x: auto;*/
    padding: 1rem;
    line-height: 1.2;
    border: 1px solid lightgray;
    border-radius: 4px;
    font-family: monospace;
}

p {
    margin: 0.75rem 0;
}

figure {
    margin: 1rem 0;

    figcaption {
        font-weight: bold;
    }

    img {
        max-width: 100%;
    }
}

main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;

    img {
        display: block;
        margin: 0 auto;
    }

    .avatar {
        border-radius: 100%;
        width: 300px;
        height: auto;
        max-width: 100%;
    }
}

main.error {
    text-align: center;
}

.fyi::after {
    content: "";
    animation: replace 45s linear 0s infinite;
}

@media (prefers-reduced-motion: reduce) {
    .fyi::after {
        content: " - federate your interwebs";
        animation: none;
    }
}

@keyframes replace {
    0% {
        content: " - federate your interwebs"
    }

    10% {
        content: " - for you intergalactics"
    }

    20% {
        content: " - free your internets";
    }

    30% {
        content: " - feed your interests";
    }

    40% {
        content: " - fediverse, yottabyte, indieweb";
    }

    50% {
        content: " - f... why i?";
    }

    60% {
        content: " - friendly yapping intercomms";
    }

    70% {
        content: " - find yesterdays information";
    }

    80% {
        content: " - flammable yeast... interesting";
    }

    90% {
        content: " - forgot your ..."
    }

    100% {
        content: " - fantastic yellow images"
    }
}

/* nut */
footer {
    padding: 1rem;
    margin-top: auto;
    border-top: 1px dotted lightgray;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1rem;
}

footer .lichen-plug {
    display: block;
    margin: 1rem auto;
    color: white;
    text-decoration: none;
}

footer .lichen-plug img {
    filter: invert(50%);
}

footer p {
    margin: 0.2rem 0;
}