* {
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    font-family: system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    color: #000;
}

html, body, .container {
    height: 100vh;
}

a {
    color:#2badef;
}

hr {
    border: 0;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin: 6px 0;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    display:flex;
    flex-direction:column;
}

.flex-center {
    display: flex;
    align-items: center;
}

.flex-row {
    display: flex;
    align-items: center;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    color: #212121;
}

.clear {
    clear: both;
}

/* Index */

.index-text {
    margin: 64px 0;
}

h1.index-title {
    font-size: 50px;
    padding: 0;
    margin: 0;
    padding-top: 16px;
    padding-bottom: 16px;
}

h3.index-description {
    padding: 4px 0;
    margin: 0;
    font-weight: 400;
    font-size: 24px;
}

img.index-icon {
    width: 50px;
}

.personal-container {
    margin-bottom: 10px;
}

.personal-image {
    width: 84px;
    height: 84px;
    border-radius: 49px;
    margin-right: 12px;
}

/* Navigation */

.nav-container {
    margin-top: 16px;
}

.nav-container nav {
    margin-left: auto;
}

.nav-container nav a {
    color: #212121;
    text-decoration: none;
    font-size: 18px;
    padding: 0;
}

.nav-container nav a:hover {
   text-decoration: underline;
}

.nav-container nav a + a {
    margin-left: 24px;
}

/* Index recent posts */

.recent-posts-title {
    color: #666;
    margin-top: 120px;
}

.index-posts {
    margin-top: 24px;
    margin-bottom: 72px;
}

.index-posts a {
    text-decoration: none;
}

.recent-post {
    width: 100%;
    display: flex;
}

.recent-post + .recent-post {
    margin-top: 52px;
}

.recent-post h2 {
    font-size: 26px;
}

.recent-post-time {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.recent-post-icon {
    color: #ababab;
    width: 14px;
    height: 14px;
}

.recent-post time {
    color: #ababab;
    margin-left: 6px;
    font-size: 13px;
}

.recent-post p {
    color: #000;
    text-decoration: none;
    font-size: 16px;
}

.recent-post-summary {
    margin: 6px 0;
    line-height: 26px;
}

.reading-time {
    color: #ababab;
    font-size: 14px;
}

.reading-time svg {
    margin-right: 6px;
}

.recent-post-tags {
    margin-left: auto;
}

.recent-post-tags a {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 10px;
    color: #999;
    padding: 6px;
    background: #f3f3f3;
    border-radius: 8px;
    display: inline-block;
}

.recent-post-tags a:hover {
    color: #2badef;
}

.recent-post-tags a + a {
    margin-left: 6px;
}

.recent-post .post-featured-image {
    width: 250px;
    height: 160px;
}

.recent-post .post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post .recent-post-text-content {
    flex: 1;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.recent-post-bottom-metadata {
    margin-top: auto;
}

.post-summary {
    margin: 8px 0;
}

.post-summary p {
    color: #666;
}

.more-posts {
    margin-top: 54px;
}

.more-posts a {
    float: right;
    font-size: 18px;
}

.more-posts a:hover {
    opacity: 0.8;
}

/* Socials */

.socials {
    margin-top: 24px;
    display: flex;
    align-items: center;
}

.socials a + a {
    margin-left: 16px;
}

.social-icon {
    color: #212121;
    width: 22px;
    height: 22px;
}

/* Pages */

h1.page-title {
    margin: 48px 0;
}

/* Posts */

.single-post {
    margin-top: 48px;
    margin-bottom: 24px;
}

h1.post-title {
    margin-top: 8px;
}

.post-time {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.post-icon {
    color: #ababab;
    width: 14px;
    height: 14px;
}

.post-metadata time {
    color: #ababab;
    margin-left: 6px;
    font-size: 15px;
}

.post-tags {
    margin-left: auto;
}

.post-tags a {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 11px;
    color: #999;
    background: #f3f3f3;
    padding: 6px;
    border-radius: 8px;
    display: inline-block;
}

.post-tags a:hover {
    color: #2badef;
}

.post-tags a + a {
    margin-left: 6px;
}

div.single-post a {
    text-decoration: none;
}

.post-content {
    margin-top: 18px;
    line-height: 32px;
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
    padding: 8px 0;
}

.post-content h4, h5, h6 {
    padding: 6px 0;
}

.post-content h5 {
    font-size: 15px;
}

.post-content ul, .post-content ol {
    list-style-position: inside;
}

blockquote {
    font-size: 1em;
    width:100%;
    margin:8px 0;
    font-style: italic;
    color: #666;
    padding:1.2em 30px 1.2em 75px;
    border-left:8px solid #2badef ;
    line-height: 1.6;
    position: relative;
    background:#f3f3f3;
    box-sizing: border-box;
}

blockquote::before {
    content: "\201C";
    color:#2badef;
    font-size: 4em;
    position: absolute;
    left: 10px;
    top:-10px;
}

blockquote::after {
    content: '';
}

blockquote span {
    display:block;
    color:#222;
    font-style: normal;
    font-weight: bold;
    margin-top:1em;
}

.post-content p, .post-content ul, .post-content ol {
    font-size: 17px;
    padding: 6px 0;
}

.post-content li + li {
    padding: 6px 0;
}

.post-content img {
    width: 100%;
}

.single-post .post-featured-image {
    width: 100%;
}

.single-post .post-featured-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

/* Syntax highlighting */

.single-post pre {
    line-height: 24px;
    background-color: #f5f5f5;
    padding: 3%;
    font-size: 15px;
    overflow-x: scroll;
    letter-spacing: 0px;
    margin: 5px 0;
}

code, pre {
    font-family: 'Oxygen Mono', monospace;
}

.single-post p > code, .single-post li > code {
    background-color: #eee;
    padding: 2px 4px;
    font-size: 14px;
}

pre::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

/* Tags page */

.single-tag {
    margin: 16px 0;
}

/* Pagination */

.pagination {
    list-style-type: none;
    margin-top: 52px;
    width: 70%;
}

.pagination-next {
    margin-left: auto;
}

.pagination li a {
    background: #f3f3f3;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ababab;
}

.pagination li a:hover {
    border: 1px solid #2badef;
}

/* Comments */

.post-comments {
    margin-top: 54px;
}

.post-comments h2 {
    margin-bottom: 20px;
}

/* Footer */

footer {
    height: 60px;
    margin-top: auto;
    padding: 24px 0;
}


/* Responsive */

@media only screen and (max-width: 750px) {
    .container {
        margin: 0px 24px;
    }

    .recent-post, .pagination {
        width: 100%;
    }
}

@media only screen and (max-width: 650px) {
    .recent-post {
        flex-direction: column;
    }

    .recent-post .post-featured-image {
        width: 100%;
        max-height: 200px;
    }

    .recent-post-bottom-metadata {
        margin-top: 20px;
    }

    .recent-post h2 {
        margin-top: 5px;
    }

    .recent-post .recent-post-text-content {
        margin-left: 0;
    }

    .recent-post-time {
        margin-top: 8px;
    }
}

@media only screen and (max-width: 500px) {
    .nav-container nav a {
        font-size: 16px;
    }

    h1.index-title {
        font-size: 48px;
    }

    h3.index-description {
        font-size: 22px;
    }

    .single-post pre {
        font-size: 15px;
    }

    div.personal-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .more-posts a {
        float: left;
    }
}