/* Base */
/* ----------------------------------------------------------*/

* {
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 300;
    background-color: #fdfdfd;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-weight: 400;
}

a {
    color: #2a7ae2;
    text-decoration: none;
}

a:hover {
    color: #000;
    text-decoration: underline;
}

a:visited {
    color: #205caa;
}

/* Utility */

.wrap:before,
.wrap:after {
    content: "";
    display: table;
}

.wrap:after {
    clear: both;
}

.wrap {
    max-width: 800px;
    padding: 0 30px;
    margin: 0 auto;
    zoom: 1;
}


/* Layout Styles */
/* ----------------------------------------------------------*/

/* Site header */

.site-header {
    border-top: 5px solid #333;
    border-bottom: 1px solid #e8e8e8;
    min-height: 56px;
    background-color: white;
}

.site-title,
.site-title:hover,
.site-title:visited {
    display: block;
    color: #333;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -1px;
    float: left;
    line-height: 56px;
    position: relative;
    z-index: 1;
}

.site-nav {
    float: right;
    line-height: 56px;
}

.site-nav .menu-icon {
    display: none;
}

.site-nav .page-link {
    margin-left: 20px;
    color: #727272;
    letter-spacing: -.5px;
}

/* Site footer */

.site-footer {
    border-top: 1px solid #e8e8e8;
    padding: 30px 0;
}

.footer-heading {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: -.5px;
    margin-bottom: 15px;
}

.site-footer .column {
    float: left;
    margin-bottom: 15px;
}

.footer-col-1 {
    width: 270px;
    /*fallback*/
    width: -webkit-calc(35% - 10px);
    width: -moz-calc(35% - 10px);
    width: -o-calc(35% - 10px);
    width: calc(35% - 10px);
    margin-right: 10px
}

.footer-col-2 {
    width: 175px;
    /*fallback*/
    width: -webkit-calc(23.125% - 10px);
    width: -moz-calc(23.125% - 10px);
    width: -o-calc(23.125% - 10px);
    width: calc(23.125% - 10px);
    margin-right: 10px
}

.footer-col-3 {
    width: 335px;
    /*fallback*/
    width: -webkit-calc(41.875%);
    width: -moz-calc(41.875%);
    width: -o-calc(41.875%);
    width: calc(41.875%);
}

.site-footer ul {
    list-style: none;
}

.site-footer li,
.site-footer p {
    font-size: 15px;
    letter-spacing: -.3px;
    color: #828282;
}

.github-icon-svg,
.twitter-icon-svg {
    display: inline-block;
    width: 16px;
    height: 16px;
    position: relative;
    top: 3px;
}

.linkedin svg {
    display: inline-block;
    width: 16px;
    height: 16px;
    position: relative;
    top: 3px;
}


/* Page Content styles */
/* ----------------------------------------------------------*/

.page-content {
    padding: 30px 0;
    background-color: #fff;
}


/* Home styles */
/* ----------------------------------------------------------*/

.home h1 {
    margin-bottom: 25px;
}

.posts {
    list-style-type: none;
}

.posts li {
    margin-bottom: 30px;
}

.posts .post-link {
    font-size: 20px;
    letter-spacing: -1px;
    line-height: 1;
}

.posts .post-date {
    display: block;
    font-size: 15px;
    color: #818181;
}

.posts .post-excerpt {
    font-size: 16px;
    color: #333;
    margin-top: 5px;
    line-height: 1.5;
}


/* Post styles */
/* ----------------------------------------------------------*/

.post-header {
    margin: 10px 0 30px;
}

.post-header h1 {
    font-size: 36px;
    letter-spacing: -1.75px;
    line-height: 1;
    font-weight: 300;
}

.post-header .meta {
    font-size: 15px;
    color: #818181;
    margin-top: 5px;
}

.post-content {
    margin: 0 0 30px;
    color: #222;
    font-size: 15px;
    line-height: 1.7;
}

.post-content>* {
    margin: 20px 0;
}

.post-content p {
    margin: 20px 0;
    line-height: 1.7;
    font-size: 15px;
}


.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    line-height: 1;
    font-weight: 300;
    margin: 40px 0 20px;
}

.post-content h2 {
    font-size: 32px;
    letter-spacing: -1.25px;
}

.post-content h3 {
    font-size: 26px;
    letter-spacing: -1px;
}

.post-content h4 {
    font-size: 20px;
    letter-spacing: -1px;
}

.post-content blockquote {
    border-left: 4px solid #e8e8e8;
    padding-left: 20px;
    font-size: 18px;
    opacity: .6;
    letter-spacing: -1px;
    font-style: italic;
    margin: 30px 0;
}

.post-content ul,
.post-content ol {
    padding-left: 20px;
}

.post pre,
.post code {
    border: 1px solid #d5d5e9;
    background-color: #eef;
    padding: 8px 12px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    font-size: 15px;
    overflow: auto;
}

.post code {
    padding: 1px 5px;
}

.post ul,
.post ol {
    margin-left: 1.35em;
}

.post pre code {
    border: 0;
    padding-right: 0;
    padding-left: 0;
}

/* terminal */
.post pre.terminal {
    border: 1px solid #000;
    background-color: #333;
    color: #FFF;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.post pre.terminal code {
    background-color: #333;
}

/* Custom CSS mods */
.imgright {
    float: right;
    margin-left: 10px;
}

.imgcap img {
    border: 1px solid #999;
    max-width: 100%;
}

.imgcap {
    color: #555;
    font-size: 14px;
    text-align: center;
}

.svgdiv {
    width: 100%;
    text-align: center;
}

/* Dark mode toggle styles */
.dark-mode-toggle-wrapper {
    margin-top: 10px;
}

.dark-mode-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    padding: 0;
    font-size: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    vertical-align: middle;
}

.dark-mode-button:hover {
    transform: scale(1.2);
}

.dark-mode-button:active {
    transform: scale(0.9);
}

.dark-mode-button .button-icon {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.dark-mode-button:hover .button-icon {
    transform: rotate(20deg);
}

/* Dark mode styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .page-content {
    background-color: #1a1a1a;
}

body.dark-mode .site-header {
    background-color: #2d2d2d;
    border-bottom: 1px solid #404040;
}

body.dark-mode .site-title,
body.dark-mode .site-title:hover,
body.dark-mode .site-title:visited {
    color: #e0e0e0;
}

body.dark-mode .site-nav .page-link {
    color: #b0b0b0;
}

body.dark-mode .site-nav .page-link:hover {
    color: #ffffff;
}

body.dark-mode .site-footer {
    border-top: 1px solid #404040;
    background-color: #1a1a1a;
}

body.dark-mode .site-footer li,
body.dark-mode .site-footer p {
    color: #b0b0b0;
}

body.dark-mode .posts .post-link {
    color: #4a9eff;
}

body.dark-mode .posts .post-link:hover {
    color: #66b3ff;
}

body.dark-mode .posts .post-date {
    color: #888888;
}

body.dark-mode .posts .post-excerpt {
    color: #b0b0b0;
}

body.dark-mode .post-content {
    color: #d0d0d0;
}

body.dark-mode .post-header .meta {
    color: #888888;
}

body.dark-mode a {
    color: #4a9eff;
}

body.dark-mode a:hover {
    color: #66b3ff;
}

body.dark-mode a:visited {
    color: #7d8ec9;
}

body.dark-mode .post pre,
body.dark-mode .post code {
    background-color: #2d2d2d;
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .post-content blockquote {
    border-left: 4px solid #404040;
    color: #b0b0b0;
}

body.dark-mode .post-content h1,
body.dark-mode .post-content h2,
body.dark-mode .post-content h3,
body.dark-mode .post-content h4,
body.dark-mode .post-content h5,
body.dark-mode .post-content h6 {
    color: #e0e0e0;
}

body.dark-mode .github-icon-svg path,
body.dark-mode .linkedin svg path {
    fill: #b0b0b0;
}

body.dark-mode .dark-mode-text {
    color: rgba(176, 176, 176, 0.6);
}

body.dark-mode .dark-mode-text:hover {
    color: rgba(224, 224, 224, 0.9);
}

/* Dark mode for mobile nav */
@media screen and (max-width: 600px) {
    body.dark-mode .site-nav {
        background-color: #2d2d2d;
        border: 1px solid #404040;
    }

    body.dark-mode .site-nav .menu-icon {
        color: #e0e0e0;
    }
}


/* media queries */
/* ----------------------------------------------------------*/


@media screen and (max-width: 750px) {

    .footer-col-1 {
        width: 50%;
    }

    .footer-col-2 {
        width: 45%;
        /*fallback*/
        width: -webkit-calc(50% - 10px);
        width: -moz-calc(50% - 10px);
        width: -o-calc(50% - 10px);
        width: calc(50% - 10px);
        margin-right: 0;
    }

    .site-footer .column.footer-col-3 {
        width: auto;
        float: none;
        clear: both;
    }

}

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

    .wrap {
        padding: 0 12px;
    }

    .site-nav {
        position: fixed;
        z-index: 10;
        top: 14px;
        right: 8px;
        background-color: white;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        border: 1px solid #e8e8e8;
    }

    .site-nav .menu-icon {
        display: block;
        font-size: 24px;
        color: #505050;
        float: right;
        width: 36px;
        text-align: center;
        line-height: 36px;
    }

    .site-nav .menu-icon svg {
        width: 18px;
        height: 16px;
    }

    .site-nav .trigger {
        clear: both;
        margin-bottom: 5px;
        display: none;
    }

    .site-nav:hover .trigger {
        display: block;
    }

    .site-nav .page-link {
        display: block;
        text-align: right;
        line-height: 1.25;
        padding: 5px 10px;
        margin: 0;
    }

    .post-header h1 {
        font-size: 36px;
    }

    .post-content h2 {
        font-size: 28px;
    }

    .post-content h3 {
        font-size: 22px;
    }

    .post-content h4 {
        font-size: 18px;
    }

    .post-content blockquote {
        padding-left: 10px;
    }

    .post-content ul,
    .post-content ol {
        padding-left: 10px;
    }

    .site-footer .column {
        float: none;
        clear: both;
        width: auto;
        margin: 0 0 15px;
    }

}