/* Colors, as variables so that other themes (e.g. dark) can replace them */
:root {
    color-scheme: light dark;
    --page-color: #ffffff;
    --text-color: #666666;
    --box-color: #ffffff;
    --box-border-color: #999999;
    --footer-color: #aaaaaa;
}

/* Dark theme, when the browser or operating system is set to dark */
@media (prefers-color-scheme: dark) {
    :root {
        --page-color: #1c1d1f;
        --text-color: #a8a8a4;
        --box-color: #232427;
        --box-border-color: #55585d;
        --footer-color: #6c6f74;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-size: 10pt;
    font-family: courier, monospace;
    color: var(--text-color);
    background-color: var(--page-color);
}

a {
    text-decoration: none;
}

/* A box of at most 802px, narrower on small screens, with the footer below it */
div#main, div#footer {
    width: min(802px, 100% - 20px);
    margin-left: auto;
    margin-right: auto;
}

div#main {
    min-height: 402px;
    margin-top: 50px;
    padding: 15px;
    border: 1px solid var(--box-border-color);
    background: var(--box-color) url('../images/hermitse.png') no-repeat;
}

div#footer {
    padding: 2px 0 2px 15px;
    text-align: right;
    color: var(--footer-color);
}

p {
    margin: 0 0 10px 0;
}

h1 {
    font-size: min(40pt, 12vw);
    font-weight: normal;
    line-height: 0.75;
    margin: 0 0 15px 0;
}

h2 {
    font-size: 12pt;
    font-weight: normal;
    line-height: 12px;
    margin: -10px 0 20px 0;
}
