:root {
    --type-color: darkslategray;
    --background-color: cornsilk;
}

@media (prefers-color-scheme: dark) {
    :root {
        --type-color: lightgray;
        --background-color: #0e1d1d;;
    }
}

body {
    margin: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--background-color);
    font-family: Palatino, serif;
    font-size: 16px;
    color: var(--type-color)
}

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

nav {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    border-bottom: 1px dashed var(--type-color);
    margin-bottom: 2rem;
}

nav ul {
    display: flex;
    flex-grow: 1;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    text-transform: lowercase;
}

article {
    margin-bottom: 2rem;
}

article header {
    font-size: 1.5rem;
}

article header span.date {
    font-size: 0.8rem;
    font-weight: normal;
}

article p {
    text-align: justify;
    line-height: 1.6rem;
}

footer {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    font-size: 0.5rem;
    margin-top: 2rem;
}

.whisper {
    font-size: 12px;
}

@media (min-width: 650px), (orientation: landscape) {
    article.textbook p {
        column-count: 2;
        column-gap: 3rem;
    }
}

@media (min-width: 1400px) {
    article.textbook p {
        column-count: 3;
        column-gap: 3rem;
    }
}

@media (min-width: 768px) {
    body {
        margin: 1rem 5rem;
    }
}

@media print {
    body {
        background: white;
        color: black;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    a {
        color: black;
    }

    nav {
        display: none;
    }
}
