@media (prefers-color-scheme: dark) {
    :root {
        --background: #2B2B2B;
    }
}

.label {
    color: var(--label);
}

a {
    color: var(--label);
}

body {
    font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
    max-width: 40rem;
    margin: 0 auto;
    padding: 1rem;
    font-size: 20px;
}

p {
    line-height: 1.5;
    text-align: justify;
}

h2, p, details.file {
    margin: 1rem 0;
}

tt {
    font-family: courier, monospace;
    font-size: 0.9em;
}

pre {
    font-family: courier, monospace;
    font-size: 0.9em;
    overflow-x: auto;
    padding: 1rem;
    border: 1px solid var(--label);
    border-left: 0;
    border-right: 0;
}

details {
    border: 1px solid var(--label);
    border-radius: 3px;

    summary {
        font-family: courier, monospace;
        padding: 1rem;
        font-size: 0.9em;
    }

    pre {
        border-top: 1px solid var(--label);
        border-bottom: 0;
        padding: 1rem;
        margin: 0;
    }
}

.overflow-x {
    width: 100%;
    overflow-x: auto;
}

table {
    border-collapse: collapse;

    tr:last-child {
        border-bottom: 1px solid var(--color);
    }

    tr {
        border-bottom: 1px solid var(--label);
    }

    th, td {
        text-align: left;
        padding: 0.5em;
        overflow-x: auto;
        font-size: 0.9em;
        vertical-align: top;
    }
}

h2 {
    font-size: 1.25em;
}

.description {
    color: var(--label);
}

.monospace * {
    font-family: courier, monospace;
}

nav {
    display: flex;
    justify-content: space-between;
    * {color: var(--label)}
}

h1 {
    line-height: 1.25;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

img {
    max-width: 100%;
}

hr {
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid var(--label);
}

