/*
Colors :
- #40403F
- #4D4D4C
- #7F7F7E
- #E5E5E3
- #F0F0F0
- #800020 (Accent Burgundy)
*/

/* Imports */

@import url("fonts.css");
@import url("tinytypo.css");
@import url("pygment.css");

/* Layout */

article,
figcaption,
figure,
footer,
header,
nav,
section,
time {
    display: block;
}

html {
    font-size: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 300;
    font-size: 0.95em;
    line-height: 150%;
    text-align: left;
    padding: 0;
    min-width: 740px;
    background: #ffffff;
    color: #4d4d4c;
}

header {
    border-top: 4px solid #800020;
    border-bottom: 1px solid #d6d6d6;
    height: 50px;
    line-height: 50px;
    padding: 0 1em;
    margin-bottom: 1.5em;
}

.wrapper {
    display: table;
    width: 100%;
}

.content {
    display: table-cell;
    padding: 0 20px 1em 20px;
}

.sidebar {
    display: table-cell;
    width: 25%;
    padding: 0 20px 1em 3%;
    border-left: 1px solid #f0f0f0;
}

footer {
    border-top: 1px dotted #d6d6d6;
    line-height: 60px;
    padding: 0 1em;
    font-size: 0.85em;
    color: #7f7f7e;
    margin-top: 2em;
}

/* Header */

header a {
    border-bottom: none;
}

header a:hover {
    border-bottom: none;
    color: inherit;
}

header a.title {
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #999;
}

header .feeds {
    float: right;
    text-align: right;
    width: 25%;
    line-height: 40px;
}

header .feeds a {
    display: block;
    float: right;
    padding-right: 5px;
    width: 40px;
}

header .feeds a:hover,
header .feeds a:active {
    border-bottom: none;
}

header .pages {
    float: right;
    padding-right: 20px;
}

header .pages a {
    font-size: 1.1em;
}

/* Sidebar Visuals Redesign */

.sidebar h2 {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #999;
    margin-bottom: 1.2em;
    margin-top: 2.5em;
    font-weight: 600;
}

.sidebar-container section:first-of-type h2 {
    margin-top: 0;
}

/* About Card */
.about-card {
    background: #f9f9f9;
    border-left: 3px solid #800020;
    padding: 1.2em;
    margin-bottom: 2.5em;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.about-content p {
    margin: 0;
    font-size: 0.95em;
    font-style: italic;
    color: #444;
    line-height: 1.6;
}

/* Sidebar Navigation Lists */
.nav-links,
.category-list,
.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li,
.category-list li,
.social-links li {
    margin-bottom: 0.6em;
}

.nav-links a,
.category-list a,
.social-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    color: #555;
    padding: 0.4em 0;
}

.nav-links a:hover,
.category-list a:hover,
.social-links a:hover {
    color: #800020;
    border-bottom: none;
}

/* Categories with counts */
.cat-name {
    font-weight: 400;
}

.cat-count {
    background: #f0f0f0;
    color: #888;
    font-size: 0.75em;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.category-list li a:hover .cat-count {
    background: #800020;
    color: #fff;
}

/* Social Links */
.social-links li a {
    justify-content: flex-start;
}

.social-links i {
    width: 20px;
    height: 18px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

/* Icons via CSS Content */
.social-links a[href*="github.com"] i:before {
    content: url("../images/icons/github-18px.png");
    opacity: 0.7;
}
.social-links a[href*="hachyderm.io"] i:before,
.social-links a[href*="mastodon"] i:before {
    content: url("../images/icons/mastodon-18px.svg");
    opacity: 0.7;
}

.social-links a:hover i:before {
    opacity: 1;
}

/* Titles */

h1 {
    font-size: 2.6em;
    font-weight: 700;
    margin-bottom: 0.6em;
    letter-spacing: -0.04em;
    color: #1a1a1a;
    line-height: 1.1;
}

h1 a {
    color: inherit;
    border-bottom: none;
}

h1 a:hover {
    border-bottom: none;
    color: #800020;
}

/* Texts */

p {
    text-align: justify;
    margin-bottom: 1.5em;
}

a {
    text-decoration: none;
    border-bottom: 1px dotted #4d4d4c;
    color: #4d4d4c;
}

a:hover,
a:active {
    text-decoration: none;
    border-bottom: 1px dotted #800020;
    color: #800020;
}

.literal {
    border: 1px solid #f0f0f0;
    padding: 0px 5px;
}

pre {
    font-family: "Source Code Pro", monospace;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 0.85em;
    padding: 1.2em;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 2em;
    color: #333;
}

hr {
    margin: 3em 5%;
    border: 0;
    border-top: 1px solid #eee;
}

/* Article Metadata Styling */

article.full .metadata,
article.summary .metadata {
    padding: 0;
    font-style: italic;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 2em;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 0.5em;
}

.metadata p {
    margin: 0;
    text-align: left;
}

.metadata a {
    color: #777;
}

/* Listings */

ul.archive li,
ol.archive li {
    margin: 1em 0;
    list-style: none;
}

.date {
    font-family: "Source Code Pro", monospace;
    font-size: 0.85em;
    color: #999;
    margin-right: 1em;
}

/* Responsive */

@media (min-width: 1280px) {
    body {
        margin: 0 18%;
    }
}

@media (max-width: 1280px) {
    body {
        margin: 0 8%;
    }
}

@media (max-width: 979px) {
    body {
        margin: 0 2%;
    }
    .sidebar {
        width: 30%;
    }
}
