/**
 * General
 * ----------------------------------------
 */
html {
    font-family: $base-font;
}

body {
    background-color: #30373d;
    color: #606669;
    line-height: 1.66667;
}

a {
    color: $accent-color;
    text-decoration: underline;
    -webkit-transition: .3s;
    transition: .3s;
    &:hover {
        color: #aeb0b1;
        text-decoration: none;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #30373d;
    font-family: $heading-font;
    font-weight: bold;
    line-height: 1.2;
    margin: 36px 0 24px;
}

h1 {
    font-size: 38px;
    letter-spacing: -1px;
}

h2 {
    font-size: 34px;
    letter-spacing: -1px;
}

h3 {
    font-size: 30px;
    letter-spacing: -1px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 18px;
}

.entry-content > h1:first-child,
.entry-content > h2:first-child,
.entry-content > h3:first-child,
.entry-content > h4:first-child,
.entry-content > h5:first-child,
.entry-content > h6:first-child {
    margin-top: 0;
}

address {
    font-style: italic;
    margin: 0 0 24px;
}

mark,
ins {
    background-color: #f2f2f2;
    color: inherit;
    padding: 0 3px;
    text-decoration: none;
}

code {
    font-size: 16px;
    padding: 1px 3px;
    white-space: pre;
}

pre {
    background-color: #f2f2f2;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 24px;
    padding: 24px;
    white-space: pre;
    white-space: pre-wrap;
    word-wrap: break-word;
}

pre code {
    font-size: inherit;
    padding: 0;
}

blockquote {
    border-bottom: 3px solid #f2f2f2;
    border-top: 3px solid #f2f2f2;
    color: #30373d;
    font-size: 24px;
    font-style: italic;
    line-height: 1.4;
    margin: 0 0 24px;
    padding: 24px 0;
    text-align: center;
}

blockquote small,
blockquote cite {
    color: #aeb0b1;
    display: block;
    font-size: 0.83333em;
    margin-top: 12px;
}

blockquote p {
    margin-bottom: 12px;
}

blockquote > :last-child {
    margin-bottom: 0;
}

p,
dl,
dd {
    margin: 0 0 24px;
}

dt {
    font-weight: bold;
}

ul,
ol {
    margin: 0 0 24px;
    padding: 0 0 0 30px;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

li > ul,
li > ol {
    margin-bottom: 0;
}

table {
    border-bottom: 1px solid #dbdedf;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 24px;
    text-align: left;
    width: 100%;
}

caption {
    color: #aeb0b1;
    font-style: italic;
    margin-bottom: 12px;
    text-align: left;
}

th,
td {
    border-top: 1px solid #dbdedf;
    padding: 8px 10px;
}

th {
    color: #30373d;
    font-weight: bold;
}

hr {
    background-color: #f2f2f2;
    border: 0;
    height: 3px;
    margin: 24px 0;
}

/* Form fields */
form p {
    margin-bottom: 12px;
}

label {
    font-family: $alt-font;
    font-size: 16px;
    font-weight: bold;
}

button,
input,
select,
textarea {
    background-color: #dbdedf;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: 0;
    border-radius: 2px;
    color: #606669;
    display: inline-block;
    font-family: $alt-font;
    font-size: 16px;
    font-style: normal;
    font-weight: normal;
    max-width: 100%;
    padding: 8px 10px;
    -webkit-transition: .3s;
    transition: .3s;
    vertical-align: baseline;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
    background-color: #f2f2f2;
    outline: 0;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    background-color: $accent-color;
    color: #fff;
    font-weight: bold;
    height: 40px;
    padding: 4px 30px;
}

button:hover,
button:focus,
button:active,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="submit"]:active,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="button"]:active,
input[type="reset"]:hover,
input[type="reset"]:focus,
input[type="reset"]:active {
    background-color: #606669;
    outline: 0;
}

#menu-toggle {
    background-color: transparent;
    color: #aeb0b1;
    padding: 0;
    height: 48px;
}

/* Videos, audios and embeds */
embed,
iframe,
object,
video {
    max-width: 100%;
}

.entry-content .fluid-width-video-wrapper {
    margin: 0 0 24px;
}

/* Images */
img {
    height: auto;
    max-width: 100%;
}

a.post-thumbnail img {
    -webkit-transition: .3s;
    transition: .3s;
}

a.post-thumbnail:hover img {
    opacity: 0.8;
}

/* Full-width images */
.full-width {
    clear: both;
    margin: 0 -30px 24px;
}

/* Image captions */
.caption-text {
    color: #aeb0b1;
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 24px;
    padding-top: 8px;
    text-align: center;
}

/* CSS icons */
.icon-menu {
    background-color: #aeb0b1;
    margin-top: -1px;
    position: absolute;
    top: 50%;
    width: 16px;
}

.icon-menu,
.icon-menu:before,
.icon-menu:after {
    height: 2px;
    left: 0;
}

.icon-menu:before,
.icon-menu:after {
    background-color: #aeb0b1;
    content: "";
    position: absolute;
    -webkit-transition: .3s;
    transition: .3s;
}

.icon-menu:before {
    top: -5px;
    width: 100%;
}

.icon-menu:after {
    top: 5px;
    width: 100%;
}

.menu-toggle.toggled--on .icon-menu {
    background-color: transparent;
}

.menu-toggle.toggled--on .icon-menu:before,
.menu-toggle.toggled--on .icon-menu:after {
    top: 0;
}

.menu-toggle.toggled--on .icon-menu:after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.menu-toggle.toggled--on .icon-menu:before {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* Text meant only for screen readers */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Grid */
.grid {
    margin-left: -30px;
}

.one-half,
.one-third {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    float: left;
    padding-left: 30px;
}

.footer-columns .one-third:nth-child(1):nth-last-child(1) {
    width: 100%;
}

.one-half,
.footer-columns .one-third:nth-child(1):nth-last-child(2),
.footer-columns .one-third:nth-child(2):nth-last-child(1) {
    width: 50%;
}

.one-third,
.footer-columns .one-third:nth-child(1):nth-last-child(3),
.footer-columns .one-third:nth-child(2):nth-last-child(2),
.footer-columns .one-third:nth-child(3):nth-last-child(1) {
    width: 33.333%;
}

/* Clearing floats */
.inner:after,
.grid:after,
.nav-menu:after,
.entry-content:after,
.author-info:after,
.widget-recent-posts li:after {
    clear: both;
}

.inner:before,
.inner:after,
.grid:before,
.grid:after,
.nav-menu:before,
.nav-menu:after,
.entry-content:before,
.entry-content:after,
.author-info:before,
.author-info:after,
.widget-recent-posts li:before,
.widget-recent-posts li:after {
    content: "";
    display: table;
}

/* Syntax Highlighter */
/* Solarized Light, http://ethanschoonover.com/solarized */
.highlight .c { color: #93a1a1 } /* Comment */
.highlight .err { color: #586e75 } /* Error */
.highlight .g { color: #586e75 } /* Generic */
.highlight .k { color: #859900 } /* Keyword */
.highlight .l { color: #586e75 } /* Literal */
.highlight .n { color: #586e75 } /* Name */
.highlight .o { color: #859900 } /* Operator */
.highlight .x { color: #cb4b16 } /* Other */
.highlight .p { color: #586e75 } /* Punctuation */
.highlight .cm { color: #93a1a1 } /* Comment.Multiline */
.highlight .cp { color: #859900 } /* Comment.Preproc */
.highlight .c1 { color: #93a1a1 } /* Comment.Single */
.highlight .cs { color: #859900 } /* Comment.Special */
.highlight .gd { color: #2aa198 } /* Generic.Deleted */
.highlight .ge { color: #586e75; font-style: italic } /* Generic.Emph */
.highlight .gr { color: #dc322f } /* Generic.Error */
.highlight .gh { color: #cb4b16 } /* Generic.Heading */
.highlight .gi { color: #859900 } /* Generic.Inserted */
.highlight .go { color: #586e75 } /* Generic.Output */
.highlight .gp { color: #586e75 } /* Generic.Prompt */
.highlight .gs { color: #586e75; font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #cb4b16 } /* Generic.Subheading */
.highlight .gt { color: #586e75 } /* Generic.Traceback */
.highlight .kc { color: #cb4b16 } /* Keyword.Constant */
.highlight .kd { color: #22b3eb } /* Keyword.Declaration */
.highlight .kn { color: #859900 } /* Keyword.Namespace */
.highlight .kp { color: #859900 } /* Keyword.Pseudo */
.highlight .kr { color: #22b3eb } /* Keyword.Reserved */
.highlight .kt { color: #dc322f } /* Keyword.Type */
.highlight .ld { color: #586e75 } /* Literal.Date */
.highlight .m { color: #2aa198 } /* Literal.Number */
.highlight .s { color: #2aa198 } /* Literal.String */
.highlight .na { color: #586e75 } /* Name.Attribute */
.highlight .nb { color: #B58900 } /* Name.Builtin */
.highlight .nc { color: #22b3eb } /* Name.Class */
.highlight .no { color: #cb4b16 } /* Name.Constant */
.highlight .nd { color: #22b3eb } /* Name.Decorator */
.highlight .ni { color: #cb4b16 } /* Name.Entity */
.highlight .ne { color: #cb4b16 } /* Name.Exception */
.highlight .nf { color: #22b3eb } /* Name.Function */
.highlight .nl { color: #586e75 } /* Name.Label */
.highlight .nn { color: #586e75 } /* Name.Namespace */
.highlight .nx { color: #586e75 } /* Name.Other */
.highlight .py { color: #586e75 } /* Name.Property */
.highlight .nt { color: #22b3eb } /* Name.Tag */
.highlight .nv { color: #22b3eb } /* Name.Variable */
.highlight .ow { color: #859900 } /* Operator.Word */
.highlight .w { color: #586e75 } /* Text.Whitespace */
.highlight .mf { color: #2aa198 } /* Literal.Number.Float */
.highlight .mh { color: #2aa198 } /* Literal.Number.Hex */
.highlight .mi { color: #2aa198 } /* Literal.Number.Integer */
.highlight .mo { color: #2aa198 } /* Literal.Number.Oct */
.highlight .sb { color: #93a1a1 } /* Literal.String.Backtick */
.highlight .sc { color: #2aa198 } /* Literal.String.Char */
.highlight .sd { color: #586e75 } /* Literal.String.Doc */
.highlight .s2 { color: #2aa198 } /* Literal.String.Double */
.highlight .se { color: #cb4b16 } /* Literal.String.Escape */
.highlight .sh { color: #586e75 } /* Literal.String.Heredoc */
.highlight .si { color: #2aa198 } /* Literal.String.Interpol */
.highlight .sx { color: #2aa198 } /* Literal.String.Other */
.highlight .sr { color: #dc322f } /* Literal.String.Regex */
.highlight .s1 { color: #2aa198 } /* Literal.String.Single */
.highlight .ss { color: #2aa198 } /* Literal.String.Symbol */
.highlight .bp { color: #22b3eb } /* Name.Builtin.Pseudo */
.highlight .vc { color: #22b3eb } /* Name.Variable.Class */
.highlight .vg { color: #22b3eb } /* Name.Variable.Global */
.highlight .vi { color: #22b3eb } /* Name.Variable.Instance */
.highlight .il { color: #2aa198 } /* Literal.Number.Integer.Long */

/* Animations */
.fade-in-down {
    -webkit-animation-duration: 0.7s;
    animation-duration: 0.7s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: fadeInDown;
    animation-name: fadeInDown;
}

.delay-0_5s {
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

.delay-0_75s {
    -webkit-animation-delay: 0.75s;
    animation-delay: 0.75s;
}

@-webkit-keyframes fadeInDown {
    from {
        opacity: 0;
        -webkit-transform: translateY(-15px);
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        -webkit-transform: translateY(-15px);
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}