html, body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --main-spacing: 15px 5px 10px 5px;
    --header-footer-spacing: 10px 5px;
    --header-height: 3.125em;
    --footer-height: 2.5em;
    --footer-line-height: 1em;
    --footer-color: rgba(10, 10, 10, .9);
    --calltoaction: rgba(17,17,17,.8);
    --disabled-btn: #aaa;
    --secondary-text: #6f6767;
    --focused-border: #efefef;
    --primary-link: #bb1122;
    --secondary-link: #3F51B5;
    --primary-link-withbackground: white;
    --grey-blue-100: hsl(209, 61%, 16%);
    --grey-blue-200: hsl(209, 23%, 60%);
    --grey-blue-300: hsl(211, 39%, 23%);
    --grey-blue-400: hsl(211, 27%, 70%);
    --grey-blue-500: hsl(209, 34%, 30%);
    --grey-blue-600: hsl(210, 31%, 80%);
    --grey-blue-700: hsl(209, 28%, 39%);
    --grey-blue-800: hsl(212, 33%, 89%);
    --grey-blue-900: hsl(210, 22%, 49%);
    --grey-blue-1000: hsl(210, 36%, 96%);
}

@media (prefers-color-scheme: light) {
    body {
        --calltoaction: rgba(75, 11, 11, 0.8);
        --footer-color: #4775a6;
        --focused-border: #f44336;
        --secondary-text: black;
        --secondary-link: #F44336;
        --primary-link-withbackground: white;
    }
}

body {
    height: 100vh;
    /*background: url(../images/cream_dust.png) repeat 0 0;*/
    background-color: #F5F5F5
}

h1, h2, h3, h4, span, a {
    font-family: 'Montserrat';
}

@font-face {
    font-family: 'CascadiaMono';
    src: url('/lib/cascadiacode/woff2/CascadiaMono.woff2') format('woff2'), /* Super Modern Browsers */
    url('/lib/cascadiacode/ttf/CascadiaMono.ttf') format('truetype');
}

pre > span,
pre > code > span {
    font-family: 'CascadiaMono'
}

    p a {
        font-size: .85em;
    }

a:hover,
a:focus,
a:focus-within {
    color: var(--primary-link);
}

header, footer {
    font-family: 'Arial';
    font-weight: 500;
    background-color: var(--footer-color);
    -webkit-font-smoothing: antialiased;
}

    header a {
        color: rgba(255, 255, 255, .7);
        cursor: pointer;
    }

header {
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: height 0.5s;
}

    header > a {
        line-height: var(--header-height);
        text-decoration: none;
    }

    header a#hamburger {
        color: white;
        padding-top: 0.1em;
        padding-left: 0.5em;
    }

    header nav ul {
        margin: 0;
        list-style: none;
        padding-left: 0;
    }

        header nav ul li {
            color: #fff;
            display: block;
            float: left;
            position: relative;
            text-decoration: none;
            transition-duration: 0.5s;
        }

            header nav ul li a {
                color: #fff;
            }

                header a:hover,
                header a:focus,
                header a:focus-within {
                    color: var(--primary-link-withbackground);
                }

            header nav ul li:hover, header nav ul li:focus-within {
                cursor: pointer;
                background-color: #444444;
            }

                header nav ul li:focus-within a {
                    outline: none;
                }

            header nav ul li ul {
                left: 0;
                opacity: 0;
                display: none;
                position: absolute;
                min-width: 5rem;
                visibility: hidden;
                transition: all 1s ease;
            }

            header nav ul li a[aria-haspopup=true]::after {
                content: "\f107";
                font-weight: 900;
                font-family: "Line Awesome Free";
            }

            header nav ul li:hover > ul,
            header nav ul li:focus-within > ul,
            header nav ul li ul:hover,
            header nav ul li ul:focus {
                opacity: 1;
                display: block;
                visibility: visible;
            }

            header nav ul li ul li {
                clear: both;
                width: 100%;
                padding: 0.5rem;
                background-color: rgba(0, 0, 0, 0.9);
            }

            header nav ul li a {
                color: rgba(255, 255, 255, .7);
                text-decoration: none;
                font-size: .7em;

                display: block;
                height: 50px;
                vertical-align: middle;
                line-height: 50px;
                margin-left: 10px;
                margin-right: 10px;
            }

footer span {
    color: white;
    letter-spacing: 2px;
    font-size: .8em;
    line-height: var(--footer-line-height);
}

footer a {
    color: #aaa;
    text-decoration: none;
    line-height: var(--footer-height);
}

    footer a:hover,
    footer a:focus,
    footer a:focus-within {
        color: var(--primary-link-withbackground);
    }

footer span.links {
    font-size: 1em;
    letter-spacing: 0px;
    text-align: right;
}

form input {
    border: 1px solid #eaeaea;
    border-radius: 2px;
    line-height: 2em;
    padding-left: 3ch;
    letter-spacing: 0.2ch;
}

    form input:focus {
        border: 1px solid #eaeaea;
        border-radius: 2px;
        box-shadow: none;
    }

form input + label {
    top: -1em;
    left: .5ch;
    position: relative;
    float: left;
    display: inline;
    z-index: 2;
}

        form input + label i {
            display: inline;
            line-height: 0px !important;
            float: left;
        }

            form input + label i::before {
                line-height: 0em;
            }

    form input:invalid,
    form textarea:invalid {
        border: 1px solid rgba(75, 11, 11, 0.8);
    }

button {
    margin-top: 1em;
    display: inline-block;
    margin-bottom: 0;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    width: 15em;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 37px;
}

    button[type="submit" i] {
        background-color: var(--calltoaction);
        color: white;
    }

    button[type="reset" i] {
        float: right;
        color: rgb(102, 102, 102);
    }

    button[disabled] {
        cursor: not-allowed;
        background-color: var(--disabled-btn);
    }

form + h2 {
    padding-top: 2em;
}

aside h2 {
    color: #111;
    text-transform: uppercase;
    border-bottom: 1px dotted #c2c2c2;
    letter-spacing: 2px;
    padding-bottom: 0.625em;
    font-size: 0.875em;
    font-weight: 400;
}

aside ul {
    list-style: none;
    list-style-position: outside;
    padding-inline-start: 1em;
}

aside li {
    margin-left: -2ch;
    font-size: 12px;
    padding: .2ch;
    padding-bottom: 1ch;
}

    aside li a:before {
        content: "\f101";
        font-weight: 900;
        font-family: "Line Awesome Free";
    }

    aside li a {
        color: #111;
        text-decoration: none;
    }

aside ul.tags li {
    margin-right: 2ch;
    display: inline-block;
}

    aside ul.tags li a {
        cursor: pointer;
        color: white;
        padding: 1ch;
        display: inline-block;
        background-color: black;
        font-style: italic;
    }

        aside ul.tags li a:before {
            content: none;
        }

aside nav.section-nav {
    border-left: 1px solid var(--focused-border);
}

    aside nav.section-nav ol {
        list-style: none;
        padding-left: 1em;
    }

        aside nav.section-nav ol li.active > a {
            color: var(--secondary-link);
            font-weight: 500;
        }

        aside nav.section-nav ol li a:before {
            content: none;
        }

        aside nav.section-nav ol li a  {
            color: var(--secondary-text);
            transition: all 50ms ease-in-out;
            text-decoration: none;
        }

            aside nav.section-nav ol li a:hover,
            aside nav.section-nav ol li a:focus {
                color: var(--primary-link);
            }

#totop {
    background-color: rgba(255, 255, 255, .7);
    color: rgba(10, 10, 10, .9);
}

/* blog styles */
section.articles article {
    position: relative;
    margin-bottom: 1em;
}

    section article h1,
    section article h2,
    section article h3,
    section article h4,
    section.articles article h1 {
        font-weight: 700;
        margin-bottom: 0;
        margin-top: .5em;
    }

    section.articles article div {
        display: block;
        width: 100%;
        border-bottom: 1px dotted #c2c2c2;
        letter-spacing: 0.1ch;
        padding-bottom: 0.625em;
        font-weight: 400;
        font-size: 0.9em;
    }

        section.articles article div > * {
            padding-right: 1ch;
        }

        section article p {
            font-weight: 400;
        }

main.error,
main.notfound {
    background-position: center;
    background-repeat: no-repeat;
    background-clip: border-box;
    background-size: cover;
}

main.error {
    background-image: url('https://kenccdn.blob.core.windows.net/images/exception.webp');
}

main.notfound {
    background-image: url('https://kenccdn.blob.core.windows.net/images/notfound.webp');
}

main.badrequest {
    background-image: url('https://kenccdn.blob.core.windows.net/images/badrequest.webp');
}

main.error > section,
main.notfound > section,
main.badrequest > section {
    color: white;
}

section.articles article p {
    font-weight: 400;
    font-size: 1em;
}

section.articles article a::after {
    content: "\f101";
    font-weight: 900;
    font-family: "Line Awesome Free";
}

section.articles article:focus,
section.articles article:focus-within {
    border: 1px solid black;
    border-style: ridge;
}

section:not(.articles) article[itemtype="http://schema.org/BlogPosting" i] > picture > img {
    filter: blur(2px);
    display: block;
}

section:not(.articles) article > img + h1,
section:not(.articles) article > picture + h1 {
    position: relative;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0, 0.6);
    color: white;
    font-weight: bold;
    z-index: 2;
    margin-top: -1.75em;
    padding: .25em;
    user-select: all;
    -ms-user-select: all;
    -moz-user-select: all;
    -webkit-user-select: all;
    text-shadow: 1.5px 1px black;
}

article.card {
    border: 1px solid var(--grey-blue-400);
    border-radius: 5px;
    overflow: hidden;
    display: grid;
    grid-template-rows: min-content min-content min-content auto 3em;
}

    article.card img {
        filter: brightness(85%)
    }

article.card {
    line-height: 1.5em;
}

    article.card h2,
    article.card p {
        padding: 5px 10px;
    }

    article.card div {
        padding: 0px 10px;
    }

    article.card a {
        width: 100%;
        color: var(--grey-blue-400);
        height: 4.6em;
        display: block;
        font-size: 0.8em;
        text-align: center;
        line-height: 4em;
        text-decoration: none;
        background-color: var(--grey-blue-100);
    }

article.card a:hover {
    outline: none;
}

    article.card:hover,
    article.card:focus,
    article.card:focus-within {
        box-shadow: 0 0 1pt 1pt var(--grey-blue-100);
    }

    article.card div span {
        color: hsl(212, 20%, 13%);
    }


section article.card > h2
{
    font-weight: 600;
    font-size: 1.1em;
}

section article > img + h1 + div {
    color: var(--secondary-text);
    margin-top: .25em;
    display: block;
    width: 100%;
    border-bottom: 1px dotted #aaa;
}

    section article > img + h1 + div > a {
        font-weight: 600;
        letter-spacing: normal;
        color: var(--secondary-link);
        text-decoration: none;
    }

        section article > img + h1 + div > a:focus,
        section article > img + h1 + div > a:hover {
            text-decoration: underline;
        }

        section article > img + h1 + div > a::after {
            content: none !important;
        }

        section article > img + h1 + div > a::before {
            color: black;
            content: "\f02e";
            font-weight: 900;
            font-family: "Line Awesome Free";
        }

        section article > img + h1 + div > a:hover:before,
        section article > img + h1 + div > a:focus:before {
            color: var(--primary-link);
        }

section article > img + h2 + div time::before {
    color: hsl(212, 20%, 68%);
    content: "\f274";
    font-weight: 900;
    font-family: "Line Awesome Free";
}

section article span.category::before {
    color: hsl(212, 20%, 68%);
    content: "\f07b";
    font-weight: 900;
    font-family: "Line Awesome Free";
}

section article > img + h2 + div span.comments::before {
    color: hsl(212, 20%, 68%);
    content: "\f086";
    font-weight: 900;
    font-family: "Line Awesome Free";
}

section: not(.articles) article > img + h2 + div > time::before {
    content: '\f017';
    font-weight: 900;
    font-family: "Line Awesome Free";
    color: hsl(212, 20%, 68%);
}

time {
    user-select: all;
    -ms-user-select: all;
    -moz-user-select: all;
    -webkit-user-select: all;
}

#totop {
    font-size: 1.25em;
}

section:not(.articles) article > img + h1 + div {
    width: 100%;
}

ul.pagination {
    grid-column: 1/3;
}

    ul.pagination li {
        float: left;
    }

        ul.pagination li.active {
            background-color: var(--calltoaction);
        }

            ul.pagination li.active a {
                color: white;
            }

        ul.pagination li a {
            color: #999;
            border: 1px solid #eaeaea;
            display: inline-block;
            text-align: center;
            text-transform: uppercase;
            padding: 4px 12px;
            text-decoration: none;
            margin: 0px;
        }

            ul.pagination li a:hover {
                text-decoration: underline;
            }

div#comment-message {
    padding: 0.5em;
}

div.success {
    display: block !important;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    background-color: #dff0d8;
}

    div.error {
        color: #a94442;
        display: block !important;
        border: 1px solid #ebccd1;
        background-color: #f2dede;
    }


    div.hidden {
        display: none;
    }

h3[data-type="blogpostcomment" i]::before {
    content: "\f075";
    font-weight: 900;
    font-family: "Line Awesome Free";
}

h3[data-type="blogpost" i]::before {
    content: "\f1ea";
    font-weight: 900;
    font-family: "Line Awesome Free";
}

h3[data-type="project" i]::before {
    content: "\f542";
    font-weight: 900;
    font-family: "Line Awesome Free";
}

@media only screen and (max-width: 1200px) {
    section:not(.articles) article > img + h1 {
        transform: translate(0%, -50%);
        margin-top: -1em;
    }
}

@media only screen and (max-width: 500px) {
    footer span {
        letter-spacing:0px;
    }
    footer span.links {
        text-align: left;
    }

    #totop {
        font-size: 1.6em;
    }
}

blockquote {
    border-left: 5px solid var(--grey-blue-700);
    color: #1a1a1a;
    font-size: 1.25em;
    font-style: italic;
    line-height: 1.8em;
    padding: 1em 1em;
    position: relative;
    transition: 0.2s border ease-in-out;
    z-index: 0;
}

    blockquote:before {
        top: 50%;
        left: -5px;
        width: 5px;
        height: 2em;
        content: "";
        position: absolute;
        margin-top: -1em;
        background-color: #fff;
    }

    blockquote:after {
        content: "\f10e";
        font-weight: 900;
        font-family: "Line Awesome Free";
        position: absolute;
        top: 50%;
        left: -0.6em;
        color: var(--grey-blue-100);
        line-height: 1em;
        text-align: center;
        text-indent: -2px;
        width: 1em;
        margin-top: -0.5em;
        transition: 0.2s all ease-in-out, 0.4s transform ease-in-out;
    }

section #comments {
    padding: 4px 8px;
    background-color: #f8f8ff;
}
section#comments h3 {
    background-color: var(--grey-blue-500);
    color: white;
    padding: 4px 8px;
}

section#commentsform {
    background-color: #f8f8ff;
    padding: 4px 8px;
}

body.index section.hero {
    background-color:hsl(209, 61%, 16%);
    background-image: url("../images/heroindexbl.png");
    background-size:cover;
}

body.about section.hero {
    background-color: black;
    background-image: url("../images/heroaboutdark.png");
    background-size:cover;
}

section article * {
    color: white;
}

section.hero article {
    margin-top:2em;
}