/* Custom webfont */

@font-face {
  font-family: 'fontello';
  src: url('../fonts/fontello.eot?84643715');
  src: url('../fonts/fontello.eot?84643715#iefix') format('embedded-opentype'),
       url('../fonts/fontello.woff?84643715') format('woff'),
       url('../fonts/fontello.ttf?84643715') format('truetype'),
       url('../fonts/fontello.svg?84643715#fontello') format('svg');
  font-weight: normal;
  font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
  @font-face {
    font-family: 'fontello';
    src: url('../font/fontello.svg?84643715#fontello') format('svg');
  }
}
*/

[class^="gb-"]:before, [class*=" gb-"]:before {
  font-family: "fontello";
  font-style: normal;
  font-weight: normal;
  speak: none;

  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  /* opacity: .8; */

  /* For safety - reset parent styles, that can break glyph codes*/
  font-variant: normal;
  text-transform: none;

  /* fix buttons height, for twitter bootstrap */
  line-height: 1em;

  /* Animation center compensation - margins should be symmetric */
  /* remove if not needed */
  margin-left: .2em;

  /* you can be more comfortable with increased icons size */
  /* font-size: 120%; */

  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}

.gb-twitter:before { content: '\e800'; } /* '' */
.gb-facebook:before { content: '\e801'; } /* '' */
.gb-google-plus:before { content: '\e802'; } /* '' */
.gb-reddit:before { content: '\e803'; } /* '' */

/* Typography */

h1, h2, h3, h4, h5, h6, .main-nav a, .site-footer, .post-meta, .pagination {
    font-family: "Roboto Slab", "Roboto", "Open Sans",
                 "Helvetica Neue", Helvetica, Arial, "Nimbus L",
                 sans-serif !important;
    font-weight: normal !important;
}

body {
    text-rendering: geometricPrecision;
    -moz-font-feature-settings: "liga" on;
    /*
    text-shadow: 1px 1px 1px rgba(0,0,0,0.01);
    -webkit-font-smoothing: subpixel-antialiased;
    font-smooth: always;
    transform: rotate(-0.0000000001deg);

    text-rendering: optimizeLegibility;
    -webkit-font-variant-ligatures: common-ligatures;
    font-variant-ligatures: common-ligatures;

    -moz-font-feature-settings: "kern=1";
    -webkit-font-feature-settings: "kern";
    -moz-font-feature-settings: "kern";
    font-feature-settings: "kern";
    font-kerning: normal;
    */
}

@media and (max-device-width : 480px) {
    body { text-rendering: optimizeSpeed; }
}

code, tt {
    font-family: 'Source Code Pro', monospace, sans-serif;
}

a {
    /* text-decoration: none; */
    color: #607D8B;
    outline: 0;
    -moz-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    -webkit-transition: all 200ms ease;
    transition: all 200ms ease;
}

a:hover, a:focus {
    /*
    text-decoration: none;
    */

    -moz-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    -webkit-transition: all 200ms ease;
    transition: all 200ms ease;
    /*text-shadow: -1px -1px 0 rgba(0, 0, 0, 0), 1px -1px 0 rgba(0, 0, 0, 0), -1px 1px 0 rgba(0, 0, 0, 0), 1px 1px 0 rgba(0, 0, 0, 0);
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 2px, #111 2px, #111 3px, rgba(0, 0, 0, 0) 3px);
}
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
  a:hover, a:focus {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 2px, #111 2px, #111 2.5px, rgba(0, 0, 0, 0) 2.5px);
  }
}

.read-more:hover, .post-title a:hover {
    background-image: none;
    */
}

blockquote em {
    font-style: normal;
}

blockquote small {
    color: #999;
}

.page-title {
    font-size: 2em;
    font-weight: bold !important;
    text-transform: uppercase;
    margin-bottom: 0;
}

.tagline, .post-title a {
    color: #4A4A4A;
}

.page-description {
    line-height: 1.5em;
    font-family: "Roboto Slab", sans-serif;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
}

.post-title {
    font-family: "Roboto Slab";
}

.post {
    hyphens: none;
    -moz-hyphens: none;
}

/* Section links */

/*.paragraph {
    display: none;

    font-size: 11px;
    font-weight: normal;
    color: #fff;
    text-decoration: none;

    margin-left: 0.5em;

    transition: color;
}

h2:hover .paragraph {
    color: #aaa;
    display: inline;

    transition: color;
}*/


/* Page layout */

/* Header */

.no-cover .main-nav.overlay .back-button,
.no-cover .main-nav.overlay .subscribe-button {
    border-color: #fff;
}

.no-cover .main-nav.overlay .back-button:hover,
.no-cover .main-nav.overlay .subscribe-button:hover {
    border-color: #bfc8cd;
    color: #9EABB3;
}

.home-template .page-title, .home-template .page-description {
    animation: none;
}

.no-cover.main-header {
    background: #fff;
}

.main-header .inner {
    text-align: center;
    margin-top: 40px;
}

header img {
    display: inline;
    float: none;
    padding: 0;
    height: 120px;
    width: auto;
}

/* Posts */

.author-template main {
    margin-top: 4rem;
}


.post-meta a {
    font-size: 1.3rem;
    text-transform: uppercase;
}

.post {
    width: auto;
    max-width: none;
    /*margin: 0;*/
}

.home-template .post,
.archive-template .post {
    width: 80%;
    max-width: 710px;
}

.post .post-title .tagline {
    font-size: 80%;
}

/*.post-excerpt {
    width: 80%;
    max-width: 710px;
    margin: 0 auto;
}*/

.post-content > h1, .post-content > h2, .post-content > h3, .post-content > h4, .post-content > h5, .post-content > h6,
.post-content > p,
.post-content > ol, .post-content > ul,
.post-content > table,
.post-content > blockquote,
.post-content > pre code,
.post-content > figure,
.post > header,
.post > footer,
.post .footnotes,
#livefyre-comments,
.read-next,
.so_comments {
    width: 80%;
    max-width: 710px;
    margin-left: auto;
    margin-right: auto;
}

.home-template .post > header,
.home-template .post > footer,
.archive-template .post > header,
.archive-template .post > footer {
    width: 100%;
    max-width: 710px;
}

.post blockquote {
    position: relative;
    left: -2.2em;
}

figcaption {
    font-size: 0.8em;
    color: #777;
    text-align: center;
}

@media only screen and (max-width: 500px) {
    .post {
        margin: 2rem auto;
    }
}

/* Code blocks */

pre {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}

.post-content pre code {
    overflow: auto;
    word-wrap: normal;
    white-space: pre;
}

.hljs {
    background: #F7FAFB !important;
}

/* Footnotes */

sup a {
    text-decoration: none;
}

.footnotes {
    padding-top: 2rem;
    font-style: normal;
    font-size: 1.4rem;
    line-height: 2.7rem;
}

.footnotes li {
    margin-bottom: 1.5rem;
}

.footnotes a[href^="#fnref"] {
    text-decoration: none;
}

.footnote.active {
    background: #FDFFB6;
}

.post aside p {
    display: inline;
}

.post aside .ref-mark,.page aside .ref-mark {
    float: left;
    margin-right: 0.4em;
    font-size: 14px;
    font-size: 0.77778rem;
    line-height: 28px;
    line-height: 1.55556rem;
    position: relative;
    top: -5px;
    top: -0.27778rem;
}

.post aside .ref-mark+*,.page aside .ref-mark+* {
    margin-top: 0px;
    margin-top: 0rem;
}

.post aside *:last-child,.page aside *:last-child {
    margin-bottom: 0px;
    margin-bottom: 0rem;
}

.post aside+aside,.page aside+aside {
    margin-top: 28px;
    margin-top: 1.55556rem;
}

@media (min-width: 1000px) {
    .post aside,.page aside {
        float: left;
        clear: left;
        width: 20%;
        position: absolute;
        right: 50px;
    }
}


img {
    pointer-events: none;

    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.avatar {
    position: relative;
    float: right;
    top: -90px;
    padding-top: 0;
    border-radius: 100%
}

@media only screen and (max-width: 500px) {
    .avatar {
        position: static;
        float: none;
    }
}

/* Share buttons */

.post-footer .share a {
    font-size: 2.2rem;
    display: inline-block;
    margin: 1rem 0.5rem 1.6rem -0.5rem;
    color: #BBC7CC;
    text-decoration: none;
    text-align: left;
}

.post-footer .share a:last-child {
    margin-right: 0;
}


/* Comment form */

.fyre li {
    margin: 0;
}

.fyre-editor .fyre-editor-container .fyre-editor-editable,
.fyre-editor .fyre-editor-toolbar .goog-toolbar > div {
    background: #fff !important;
    box-shadow: none !important;
}

.fyre-editor .fyre-editor-toolbar .goog-toolbar > div {
    height: 31px !important;
}

.fyre-share-button, .fyre-embed-button {
    display: none !important;
}

.fyre-editor-container .fyre-editor-toolbar > .fyre-mention-menu .fyre-mention-item .fyre-mention-item-livefyre {
    display: none !important;
}

.goog-tooltip, .fyre-hovercard {
    display: none !important;
}

.fyre-live-container {
    display: none !important;
}


/* Read next */

.read-next a {
    color: #222;
    text-decoration: none;
}

.read-next .left, .read-next .right {
    box-sizing: border-box;
    flex-grow: 1;
    min-width: 50%;
    padding: 0px 5% 0px 0px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.read-next-label {
    font-size: 1.2rem;
    color: #9EABB3;
    text-transform: uppercase;
}

.read-next-title {
    font-size: 1.8rem;
    line-height: 1.15em;
}


/* Print styles */
@media print {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 30px;
    }

    body {
        font-size: 14px;
    }

    .main-header {
        display: none;
    }

    #disqus_thread {
        display: none;
    }

    section.share {
        display: none;
    }

    figure.author-image {
        display: none;
    }

    /*.post a:link:after,
    .post a:visited:after {
        content: " (" attr(href) ") ";
        font-size: 90%;
        text-decoration: none;
    }*/

    h1, h2 {
        page-break-after: avoid;
    }

    div.image, figure, footer {
        page-break-inside: avoid;
    }

    .image img, figure img {
        width: 80%;
        height: auto;
    }

    p, blockquote, ul {
        orphans: 3;
        widows: 3;
    }

    #livefyre-comments {
        display: none;
    }
}