:root {
    --bg1: #21242c;
    --bg2: #424557;
    --sitetitle: #6e7791;
    --title: #ffcc66;
    --titlehover: #ff9966;
    --link: #6694cc;
    --linkhover: #8cafd9;
    --text: #999db2;
    --text2: #cacee2;
}

html {
    background-color: var(--bg1);
    color: var(--text);
    font-size: 1.25em;
}

h1,
h2,
h3,
h4,
h5,
h6,
h1>a,
h2>a,
h3>a,
h4>a,
h5>a,
h6>a,
.nav-title {
    text-align: start !important;
    color: var(--title);
    font-family: 'slabo_13px', 'lato', sans-serif;
}

h1 {
    margin-top: 0;
}

h1>a:hover,
h2>a:hover,
h3>a:hover,
h4>a:hover,
h5>a:hover,
h6>a:hover {
    color: var(--titlehover);
}


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

a:hover {
    color: var(--linkhover);
}

.nav {
    overflow: hidden;
    padding-top: 10px;
    border-right: 1px solid;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: -5px -5px 10px rgba(0, 0, 0, 0.3);
}

.nav a {
    float: left;
    display: flex;
}

.top-nav {
    height: fit-content;
    padding-bottom: 6px;
    padding-left: 10px;
}

.top-nav>a {
    text-decoration: none;
}

#responsive-menu-toggle {
    display: none;
}

.hide-me {
    position: absolute;
    left: -100vw;
}

body {
    height: 100vh;
    display: grid;
    margin: 0;
    font-family: Helvetica;
}

header {
    position: sticky;
    top: 0;
    border-bottom: 1px solid;
    padding-left: 10px;
    background-color: var(--bg1);
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
}

main {
    padding: 10px 15px 0 15px;
    overflow: auto;
    text-align: left;
}

main>* {
    max-width: 40em;
}

footer {
    padding-left: 10px;
    border-top: 1px solid;
}

#site-title {
    margin: 0;
    width: fit-content;
    font-weight: lighter;
    font-size: 2em;
}

#site-title a {
    text-decoration: none;
    color: var(--sitetitle);
}

@media screen and (max-width: 600px) {
    html {
        font-size: 1.25em;
    }

    #responsive-menu-toggle {
        display: block;
        position: fixed;
        top: 0.55em;
        right: 1em;
    }

    #responsive-menu-toggle:hover {
        cursor: pointer;
    }

    .nav {
        display: none;
        background-color: var(--bg1);
        z-index: 1000;
        padding-left: 10px;
    }

    #toggle:checked~.nav {
        display: flex;
        height: fit-content;
        width: fit-content;
        padding-right: 25px;
        padding-bottom: 15px;
        grid-area: b;
        border-right: none;
        border-left: 1px solid;
        border-bottom: 1px solid;
        position: relative;
        justify-self: end;
    }

    body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "a"
            "b"
            "c";
    }

    header {
        grid-area: a;
        min-height: 50px;
    }

    main {
        grid-area: b;
    }


    footer {
        grid-area: c;
    }
}

@media screen and (min-width: 600px) {

    body {
        grid-template-columns: 12em 1fr;
        grid-template-rows: 3em 1fr 1.46em;
        grid-template-areas:
            "a a "
            "b c "
            "d d ";
    }

    header {
        grid-area: a;
    }

    .nav {
        grid-area: b;
        padding-left: 10px;
    }

    main {
        grid-area: c;
    }


    footer {
        grid-area: d;
    }

    .top-nav {
        padding-left: 20px;
    }

}

.posts-list {
    list-style: none;
    padding: 0;
}
