﻿:root {
    --content-color: #000;
    --blockquote-background: #eee;
    --background-color: #fff;
}

@media not print {
    @media (prefers-color-scheme: dark) {
        :root {
            --content-color: #ccc;
            --blockquote-background: #444;
            --background-color: #000;
        }

        img {
            filter: brightness(.8) contrast(1.2);
        }

        a {
            color: #56caef;
        }

            a:visited {
                color: #74b335;
            }
    }
}

header .logo {
    width: 100%;
    z-index: -20;
    position: relative;
}

body {
    font-size: 13px;
    font-family: verdana, arial, helvetica, sans-serif;
    margin:0;
    background-color: var(--background-color);
    color: var(--content-color);
}

body > div {
    max-width: 780px;
    border: 1px solid #000;
    margin: 0 auto 0;
    padding-bottom: 0.5rem;
}

.skip-link {
    left: 50%;
    position: absolute;
    transform: translateY(-100%);
    transition: transform 0.3s;
    background-color: #fff;
    padding:5px;
}

    .skip-link:focus {
        transform: translateY(0%);
    }

#container {
    display: flex;
}

    #container > aside {
        flex: 0 0 28%;
        text-align: center;
        font-size: 15px;
        padding: 0 1em;
    }

        #container > aside :is(time, #alert-number) {
            font-family: "lucida grande", verdana, sans-serif;
            font-size: 16px;
            font-weight: bold;
        }

        #container > aside time {
            display: block;
            margin-bottom: 1em;
        }

    #container > main {
        border-left: 1px solid currentColor;
        padding: 0 1em;
    }

    #container > main > h2 {
        margin-top: 0;
    }

.footnote hr {
    margin: 0 60% 0 0;
    width: 40%;
    border-color: currentColor;
}

main img {
    display:block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

blockquote {
    font-family: "Courier New",Courier,monospace;
    border: solid 1px currentColor;
    background: #eee;
    padding: 1em;
    margin: 0;
}

@media print, (max-width: 480px) {

    body > div {
        max-width: unset;
    }

    #container {
        display: block;
        margin-top: -20px;
    }

    #container > aside {
        width: unset;
        padding: unset;
    }

    #container > main:before {
        content: ' ';
        width: 60%;
        border-top: 1px solid currentColor;
        display: block;
        margin: 0 auto 0.5em;
    }

    #container > main {
        border-left: unset;
    }
}

.underline {
    text-decoration: underline;
}

.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}
