:root {
    --bg1: #111;
    --bg2: #181818;
    --bg3: #222;
    --border-dark: #444;
    --code-bg: #282c34;
    --border: #999;
    --fg: #ccc;
    --faded: #ccc;
    --primary: #0cc;
    /*--primary: #f90;*/
}

body {
    padding: 200px 30px 0;
    background-color: var(--bg2);
    color: var(--fg);
    font-family: "Open sans", Helvetica, Arial, Verdana, sans-serif;
}

header {
    color: var(--fg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    user-select: none;
}

header .title {
    background-color: var(--bg1);
    text-align: center;
    padding-top: 15px;
}

header .title::after {
    display: block;
    margin-top: 15px;
    z-index: 5;
    content: "";
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--bg2) 0%,
        var(--primary) 25%,
        var(--bg2) 100%
    );
    transform: translateX(0);
}

header .title a {
    color: var(--fg);
    font-size: 2em;
}

.navigation {
    background-color: var(--bg2);
    padding: 0.6em 0 1em;
}

.navigation ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.navigation ul li {
    display: inline-block;
    padding: 0 0.75em;
}
a {
    color: var(--fg);
    text-decoration: none;
}

.navigation a {
    display: block;
    border-bottom: solid 1px var(--bg2);
}

.navigation a:hover {
    border-bottom: solid 1px var(--primary);
}

.navigation .separator {
    color: var(--border-dark);
}

.container {
    margin: 0 auto;
    padding-bottom: 5em;
    max-width: 710px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    line-height: 40px;
    margin-top: 5em;
    background-color: var(--bg1);
    text-align: center;
    color: var(--fg);
    border-top: solid 1px var(--bg2);
}

footer::before {
    display: block;
    position: absolute;
    z-index: 5;
    content: "";
    top: 0%;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--bg2) 0%,
        var(--primary) 25%,
        var(--bg2) 100%
    );
    transform: translateX(0);
}

footer a {
    color: var(--fg);
    text-decoration: none;
}

main a {
    color: var(--primary);
    position: relative;
    text-decoration: none;
    transition: color ease-out 0.25s;
    border-bottom: solid 1px var(--bg2);
}

main a:hover,
footer a:hover {
    color: var(--fg);
}

main a::after,
footer a::after {
    display: block;
    position: absolute;
    z-index: 5;
    content: "";
    top: 100%;
    left: 0;
    right: 100%;
    width: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--bg2) 0%,
        var(--primary) 25%,
        var(--bg2) 100%
    );
    transition: all ease-out 0.25s;
    transform: translateX(0);
}

main a:hover::after,
footer a:hover::after {
    width: 100%;
}

/* Home */
.home .post-row {
    padding-bottom: 0.8em;
}

.home .date {
    padding-right: 1em;
    color: var(--faded);
}
/* Home End */

article {
    margin-bottom: 5em;
    line-height: 1.7em;
}

article h1 {
    margin-bottom: 0.85em;
    font-weight: 400;
    line-height: 1.4em;
}

article h2,
article h3 {
    font-weight: 100;
    color: var(--fg);
    border-bottom: solid 1px var(--bg3);
}

article h2 {
    margin-top: 2em;
    font-size: 1.3em;
}

article h3 {
    margin-top: 2em;
}

article h1 a,
article h2 a,
article h3 a {
    color: var(--bg2);
}

article .read-more {
    display: block;
    margin-top: 0.5em;
    text-align: right;
}

article div.read-more {
    margin-top: 1em;
    border-top: solid 1px var(--bg3);
}

article.summary .tags,
article .single_meta .tags {
    font-style: italic;
    color: #666;
}

article .single_meta {
    border: solid 1px var(--bg3);
    padding: 1em;
    background-color: var(--bg3);
    margin: 3em 0;
}

article.summary .tags a,
article .single_meta .tags a {
    margin-right: 0.25em;
}

article p img {
    max-width: 100%;
}

article ul li,
article ol li {
    padding-bottom: 1em;
}

article ul img,
article ol img {
    padding-bottom: 2em;
}

article sup {
    color: var(--faded);
    border-radius: 50%;
    display: inline-block;
    min-width: 1em;
    height: 1em;
    text-align: center;
    line-height: 1em;
    padding: 0.1em;
    margin-left: 0.1em;
}

hr {
    height: 1px;
    border: none;
    background-color: var(--bg3);
}

.page-list {
    padding-left: 0;
}

.page-list > li {
    list-style: none;
}

.page-list time {
    margin-right: 1em;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 64px;
    width: 64px;
    height: 64px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    vertical-align: middle;
    transform: translateY(200px);
    transition: transform 0.25s ease-in;
}

.back-to-top.enabled {
    cursor: pointer;
    transform: translateY(0);
}

.back-to-top svg {
    margin: 16px;
    width: 32px;
    height: 32px;
    fill: var(--fg);
}

.page-list time,
.list-post-meta {
    color: var(--faded);
}

.highlight {
    color: var(--primary);
}

.box {
    background-color: var(--bg1);
    padding: 1em 2em;
    border-left: solid 3px var(--bg3);
}

/* Shortcodes */
.contact-method .label {
    display: inline-block;
    width: 120px;
}

/* Code highlighting */
p code,
li code {
    /* inline */
    background-color: var(--code-bg);
    border: solid 1px var(--bg1);
    padding: 0.25em 0.5em; /* Should be fine with some exta line height */
    font-size: 1em;
    font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
}

.highlight > pre {
    padding: 1em;
    border: solid 1px var(--bg1);
}

/* Media queries */

@media screen and (max-width: 800px) {
    article.summary .date {
        display: none;
    }

    article.summary .date-mobile {
        display: block;
    }
}
