:root {
    --bg: #fff;
    --bg1: #eed;
    --bg4: #a98;

    --fg0: #000;

    --col: #440;
    --hlcol: #880;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000;
        --bg1: #554;
        --bg4: #766;

        --fg0: #fff;

        --col: #8fa;
        --hlcol: #ff6;
    }
}

@media (max-width: 750px) {
    /* mobile version */
    body, html {
        margin: 4px;
    }
    .header {
        padding-top: 50px;
    }
    .content {
        padding-top: 10px;
        padding-bottom: 25px;
    }
    .footer {
        padding-bottom: 50px;
    }
    p {
        margin-top: 15px;
    }
    .indextags {
        padding-bottom: 20px;
    }
    .storydescr {
        margin-bottom: 30px;
    }
}
@media (min-width: 751px) {
    /* desktop version */
    body, html {
        margin: auto;
    }
    .header {
        padding-top: 100px;
    }
    .content {
        padding-top: 20px;
        padding-bottom: 50px;
    }
    .footer {
        padding-bottom: 100px;
    }
    p {
        margin-top: 30px;
    }
    .indextags {
        padding-bottom: 50px;
    }
    .storydescr {
        margin-bottom: 60px;
    }
}

body, html {
    background-color: var(--bg);
    color: var(--fg0);
    font-size: 1.0em;
    font-family: sans-serif;
    max-width: 750px;
    line-height: 1.6em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 100;
    color: var(--col);
}

a {
    color: var(--col);
    text-decoration: none;
    border-bottom: 2px solid var(--col);
}
a:hover, a:active, a:focus {
    color: var(--hlcol);
    border-bottom: 2px solid var(--hlcol);
}
a.img, a.img:hover, a.img:active, a.img:focus {
    border: none;
}
a.img img {
    max-width: 100%;
}

img {
    background: white;
}

.nav a {
    margin-left: 10px;
}

table, tr, td, th {
    border-collapse: collapse;
}

p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    margin-bottom: 0px;
}

pre, tt {
    font-size: 1.2em;
    background: var(--bg1);
    color: var(--fg0);
}

pre {
    border: solid 1px var(--bg4);
    border-radius: 3px;
    padding: 4px;
}

blockquote {
    border-left: solid 2px var(--hlcol);
    padding-left: 20px;
}

hr {
    border: solid 1px var(--col);
}

.brand {
}

.nav {
    margin-top: 20px;
}

.title {
    font-size: 1.1em;
}

.tags {
    font-size: 0.8em;
}
.tags a, .webring a {
    border: none;
}

#jes-svg {
    fill: var(--col);
    stroke: var(--col);
}
