/* Shared stylesheet for long-form documents */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "IBM Plex Mono", monospace;
    font-size: 16px;
    background-color: #2d2d2d;
    color: #e8e8e8;
    line-height: 1.6;
    padding: 40px 20px 80px 20px;
}

main {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 1em;
    color: #e8e8e8;
}

h2 {
    font-size: 18px;
    font-weight: 400;
    margin-top: 2em;
    margin-bottom: 1em;
    color: #e8e8e8;
}

h3 {
    font-size: 16px;
    font-weight: 400;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    color: #e8e8e8;
}

p {
    margin-bottom: 1em;
}

ul, ol {
    margin-left: 2em;
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.5em;
}

a {
    color: #a8a8a8;
    text-decoration: underline;
    transition: color 0.2s;
}

a:hover {
    color: #e8e8e8;
}

strong {
    font-weight: 400;
    color: #ffffff;
}

.last-updated {
    color: #a8a8a8;
    margin-bottom: 2em;
}

footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    text-align: right;
}

footer p {
    margin-bottom: 0.5em;
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px 40px 15px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 17px;
    }

    footer {
        position: static;
        margin-top: 3em;
        padding-top: 2em;
        border-top: 1px solid #4d4d4d;
        text-align: center;
    }

    footer p {
        margin-bottom: 0.5em;
        font-size: 14px;
    }
}
