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

html, body { height: 100%; }

body {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    background-color: #fdfdfd;
    color: #333;
}

html, button, input, select, textarea,
.pure-g [class *= "pure-u"] {
    font-family: 'Merriweather', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
}

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

h1 {
    font-weight: 700;
}

a         { color: #2a7ae2; text-decoration: none; }
a:hover   { color: #2a7ae2; text-decoration: underline; }
a:visited { color: #205caa; }

textarea {
    resize: none;
    width: 30em;
    height: 10em;
}

/* Utility */

.wrap:before,
.wrap:after { content:""; display:table; }
.wrap:after { clear: both; }
.wrap {
    max-width: 960px;
    padding: 0 30px;
    margin: 0 auto;
    zoom: 1;
}

/**
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    contenteditable attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that are clearfixed.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

/**
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.cf {
    *zoom: 1;
}


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

/* Site header */

.site-header {
    border-bottom: 1px solid #e8e8e8;
    min-height: 56px;
}

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

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

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

.site-nav .page-link {
    padding: 18px 14px;
    font-weight: 400;
    color: #666;
    -webkit-transition: background-color .2s ease;
    -moz-transition: background-color .2s ease;
    -ms-transition: background-color .2s ease;
    -o-transition: background-color .2s ease;
    transition: background-color .2s ease;
}

.site-nav .page-link:hover {
    background-color: #205caa; /* Fallback for older browsers (I'm looking at you, IE 8) */
    background-color: rgba(239, 239, 239, 0.6);
    color: #333;
    text-decoration: none;
}

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

/* Site footer */

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

.site-footer h3 {
    color: #444;
}

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

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

.site-footer li {
    line-height: 2em;
    vertical-align: middle;
}

.site-footer a         { color: #2a7ae2; text-decoration: none; }
.site-footer a:hover   { color: #2a7ae2; text-decoration: underline; }
.site-footer a:visited { color: #2a7ae2; }

.site-footer .icon {
    display: inline-block;
    text-align: right;
    width: 1em;
    margin-right: .8em;
}
.site-footer .icon:hover { text-decoration: none; }

.copyright-symbol {
    font-family: sans-serif; /* Copyright symbol looks weird in Open Sans */
}


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

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


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

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

.my-name { font-weight: 600; }

.introduction { float: left; width: 50% }
.home-image {
  float: right;
  width: 40%;
  text-align: center;
  margin-top: 1em;
}

.home-image img {
    width: auto;
    max-width: 100%;
    max-height: 16em;
    filter: drop-shadow(0.2rem 0.2rem 0.3rem #e8e8e8);
}
.circular {
    width: 100%;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
}

.caption {
    color: #828282;
    font-size: 0.7em;
}


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

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

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

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

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

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

.post-header h1 {
    font-size: 2em;
    line-height: 1.5em;
}

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

.subheading {
    padding-left: 2em;
    color: #333;
}

.post-content { margin: 0 0 30px; }

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

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    line-height: 1.5em;
    margin: 40px 0 20px;
}

.post-content h2 {
    font-size: 1.6em;
}

.post-content h3 {
    font-size: 1.4em;
}

.post-content h4 {
    font-size: 1.2em;
}

.post-content p {
    line-height: 1.8;
}

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

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

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

.post pre,
.post code {
    border: 1px solid #ddd;
    background-color: #f6f6f6;
    padding: 8px 12px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    font-size: 15px;
    overflow-y: hidden;
    overflow-x: scroll;
}

.post .highlight pre,
.post .highlight code {
    white-space: pre;
    overflow: auto;
    word-wrap: normal;
}

.post code { padding: 0; }

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

.post pre code { border: none; }

.post .post-image-small {
    max-width: 50%;
}

.anchor,
.anchor:visited,
.anchor:hover,
.anchor:active {
    font-size: .7em;
    color: #ccc;
    vertical-align: middle;
}

/* 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; }

.blog-meta {
    color: #818181;
    font-size: .8em;
}

.tag-list {
    list-style-type: none;
    display: inline-block;
}

.tag {
    font-size: .9em;
    color: white;
    background-color: #999;
    border-radius: 4px;
    padding: 3px 8px;
}

a.tag:visited,
a.tag:hover {
    color: white;
}

/* Books styles */
/* ----------------------------------------------------------*/
.book-list li {
    padding: 3px 0;
    margin-left: 0;
}

.book-author {
    font-size: .9em;
    color: #666;
}

.influential-books-list {
    columns: 8;
    column-gap: 1em;
}

.influential-books-list .book-link {
    display: inline-block;
    padding-bottom: .65em;
}

/* Projects styles */
/* ----------------------------------------------------------*/
.project {
    clear: both;
}

.project-image-container {
    float: left;
    width: 50%;
}

.project-image-container img {
    width: 100%;
    box-shadow: 1px 1px 3px rgba(204, 204, 204, 0.5);
    -webkit-box-shadow: 1px 1px 3px rgba(204, 204, 204, 0.5);
    -moz-box-shadow: 1px 1px 3px rgba(204, 204, 204, 0.5);
}

.project-description {
    float: right;
    width: 45%;
}

.project-description p:first-of-type {
    margin-top: 0;
}

.project-additional-images {
    clear: both;
    margin-top: 1em;
}
.project-additional-images a {
    display: inline-block;
    margin-right: 1em;
}
.project-additional-images img {
    height: 6em;
    box-shadow: 1px 1px 3px rgba(204, 204, 204, 0.5);
    -webkit-box-shadow: 1px 1px 3px rgba(204, 204, 204, 0.5);
    -moz-box-shadow: 1px 1px 3px rgba(204, 204, 204, 0.5);
}

ul.project-links {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}

.project-links .icon {
    display: inline-block;
    text-align: right;
    width: 1em;
    margin-right: .5em;
}

.so-meta {
    margin: 0;
    text-align: center;
    color: #aaa;
    font-size: .75em;
}

/* Video embed */
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.embed-container iframe,
.embed-container object,
.embed-container embed  {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Form styles */
/* ----------------------------------------------------------*/
.pure-form input[type="text"],
.pure-form input[type="email"],
.pure-form textarea {
    margin-bottom: 1em;
}

/* Syntax highlighting styles */
/* ----------------------------------------------------------*/

.highlight  { background: #ffffff; }
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { font-weight: bold } /* Keyword */
.highlight .o { font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #888888; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #888888; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #888888 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { font-weight: bold } /* Keyword.Constant */
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
.highlight .kn { font-weight: bold } /* Keyword.Declaration */
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #d14 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .no { color: #008080 } /* Name.Constant */
.highlight .ni { color: #800080 } /* Name.Entity */
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nt { color: #000080 } /* Name.Tag */
.highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ow { font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
.highlight .sc { color: #d14 } /* Literal.String.Char */
.highlight .sd { color: #d14 } /* Literal.String.Doc */
.highlight .s2 { color: #d14 } /* Literal.String.Double */
.highlight .se { color: #d14 } /* Literal.String.Escape */
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
.highlight .si { color: #d14 } /* Literal.String.Interpol */
.highlight .sx { color: #d14 } /* Literal.String.Other */
.highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .s1 { color: #d14 } /* Literal.String.Single */
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .bp { color: #888888 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */


/* Media queries */
/* ----------------------------------------------------------*/

/* Phone */
@media screen and (max-width: 567px) {

    textarea {
        width: 100%;
    }

    .wrap { padding: 0 1em; }

    .site-header .wrap { padding: 0; }

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

    .site-nav .page-link {
        padding: 18px 10px;
    }

    .site-nav {
        float: none;
        clear: both;
        text-align: center;
    }

    .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: 40px; }

    .post .post-image-small {
        max-width: 100%;
    }

    .influential-books-list {
        columns: 4;
    }

    ul.book-list {
        margin: 0 !important;
        padding: 0 !important;
    }

    .project-image-container {
        width: 100%;
    }

    .project-description {
        width: 100%;
    }

    .project-description p:first-of-type {
        margin-top: 1em;
    }

    .introduction,
    .home-image {
        float: none;
        width: 100%;
    }

    .home-image {
        box-sizing: border-box;
        padding: 1em 1em 0;
    }

}

@media screen and (max-width: 693px) {
    .site-title {
        width: 100%;
        text-align: center;
    }

    .site-nav {
        float: none;
        clear: both;
        text-align: center;
    }
}

@media only screen and (min-width: 768px) {
    .post {
        padding: 0 12.5%;
    }
}
