/* Roman. */
@font-face {
  font-family: 'FiraSans';
  font-style: normal;
  font-weight: 300;
  src: local('FiraSans-Book'), url(/stylesheets/FiraSans-Book.otf) format('truetype');
}
@font-face {
  font-family: 'FiraSans';
  font-style: normal;
  font-weight: 700;
  src: local('FiraSans-Bold'), url(/stylesheets/FiraSans-Bold.otf) format('truetype');
}

/* Italic. */
@font-face {
  font-family: 'FiraSans';
  font-style: italic;
  font-weight: 300;
  src: local('FiraSans-BookItalic'), url(/stylesheets/FiraSans-BookItalic.otf) format('truetype');
}
@font-face {
  font-family: 'FiraSans';
  font-style: italic;
  font-weight: 700;
  src: local('FiraSans-BoldItalic'), url(/stylesheets/FiraSans-BoldItalic.otf) format('truetype');
}

/* Mono. */
@font-face {
  font-family: 'FiraMono';
  font-style: normal;
  font-weight: 400;
  src: local('FiraMono-Regular'), url(/stylesheets/FiraMono-Regular.otf) format('truetype');
}
@font-face {
  font-family: 'FiraMono';
  font-style: normal;
  font-weight: 700;
  src: local('FiraMono-Bold'), url(/stylesheets/FiraMono-Bold.otf) format('truetype');
}



html {
    background: #6C7989;
    background: #6c7989 -webkit-linear-gradient(#6c7989, #434b55) fixed;
    background: #6c7989         linear-gradient(#6c7989, #434b55) fixed;
}

body {
    padding: 50px 0;
    margin: 0;
    font: 16px/1.7 FiraSans, "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    color: #333;
    font-weight: 300;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAeCAYAAABNChwpAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAAAUdEVYdENyZWF0aW9uIFRpbWUAMy82LzEygrTcTAAAAFRJREFUSIljfPDggZRf5RIGGNjUHsNATz6jXmSL1Kb2GLiAX+USBnrymRgGGDCORgFmoNAXjEbBaBSMRsFoFIxGwWgUjEbBaBSMRsFoFIxGwWgUAABYNujumib3wAAAAABJRU5ErkJggg==') fixed;
}

.wrapper {
    max-width: 840px;
    margin: 0 auto;
    background: #DEDEDE;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.45) 0 3px 10px;
}

header, #index, article, footer {
    display: block;
}

a {
    color: #069;
    text-decoration: none;
}

p {
    margin: 0 0 20px;
    padding: 0;
}

strong {
    color: #222;
    font-weight: 700;
}

figure {
    margin: 30px 0px;
}

figure img {
    display: block;
    margin: auto;
}
figcaption {
    font-size: 80%;
    font-style: italic;
    text-align: center;
    margin-top: 1em;
}
figcaption em {
    font-weight: bold;
}
figure h1 {
    text-align: center;
    margin-top: 1em;
}

header {
    border-radius: 8px 8px 0 0;
    background: #C6EAFA;
    background: -webkit-linear-gradient(#ddfbfc, #c6eafa);
    background:         linear-gradient(#ddfbfc, #c6eafa);
    position: relative;
    padding: 15px 20px;
    border-bottom: 1px solid #B2D2E1;
}
header h1 {
    margin: 0;
    padding: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #069;
    text-shadow: rgba(255, 255, 255, 0.9) 0 1px 0;
}
header.without-description h1 {
    margin: 10px 0;
}
header p {
    margin: 0;
    color: #61778B;
    width: 300px;
    font-size: 13px;
}
header p.view {
    display: none;
    font-weight: 700;
    text-shadow: rgba(255, 255, 255, 0.9) 0 1px 0;
    -webkit-font-smoothing: antialiased;
}
header p.view a {
    color: #06c;
}
header p.view small {
    font-weight: 300;
}

header .avatar {
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 1;
    right: 20px;
    top: 20px;
    height: 38px;
    width: 38px;
    background-image: url("/images/avatar-40x40.png");
    padding: 1px 0;
    border-radius: 5px;
    box-shadow: inset rgba(255, 255, 255, 0.45) 0 1px 0, inset rgba(0, 0, 0, 0.2) 0 -1px 0;
}
header .avatar:before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -5px;
    top: -4px;
    right: -5px;
    bottom: -6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 0, inset rgba(255, 255, 255, 0.7) 0 -1px 0;
}


#index, article {
    padding: 15px 20px;
    font-size: 16px;
    border-top: 1px solid #fff;
    background: -webkit-linear-gradient(#fafafa, #eeeeee 700px);
    background:         linear-gradient(#fafafa, #eeeeee 700px);
    border-radius: 0 0 8px 8px;
    position: relative;
}

article > p > img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
article a {
    text-decoration: underline;
}
nav a {
    text-decoration: none;
}


/* Pagination. */

#pagination {
    display: table;
    width: 100%;
}

#pagination section {
    display: table-cell;
}

#pagination .previous {
    text-align: left;
    width: 25%;
}
#pagination .middle {
    text-align: center;
    width: 50%;
}
#pagination .next {
    text-align: right;
    width: 25%;
}

#pagination span, #pagination span {
    opacity: 0.2;
}



h1, h2, h3, h4, h5, h6 {
    color: #222;
    padding: 0;
    margin: 0 0 20px;
    line-height: 1.2;
}

p, ul, ol, table, pre, dl {
    margin: 0 0 20px;
}

h1, h2, h3 {
    line-height: 1.1;
}

h1 {
    font-size: 28px;
}

h2 {
    color: #393939;
}

h3, h4, h5, h6 {
    color: #494949;
}

blockquote {
    margin: 0 -20px 20px;
    padding: 15px 20px 1px 40px;
    font-style: italic;
    background: #ccc;
    background: rgba(0, 0, 0, 0.06);
    color: #222;
}

img {
    max-width: 100%;
}

code, pre {
    font-family: FiraMono, Menlo, Monaco, Consolas, Bitstream Vera Sans Mono, Lucida Console, Terminal;
    color: #333;
    font-size: 12px;
    overflow-x: auto;
}

pre {
    padding: 20px;
    background: #3A3C42;
    color: #f8f8f2;
    margin: 0 -20px 20px;
}
pre code {
    color: #f8f8f2;
}
li pre {
    margin-left: -60px;
    padding-left: 60px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 5px 10px;
    border-bottom: 1px solid #aaa;
}

dt {
    color: #222;
    font-weight: 700;
}

th {
    color: #222;
}

small {
    font-size: 11px;
}

hr {
    border: 0;
    background: #aaa;
    height: 1px;
    margin: 0 0 20px;
}

footer {
    max-width: 840px;
    margin: 0 auto;
    padding: 20px 0 0;
    color: #ccc;
    overflow: hidden;
}
footer a {
    color: #fff;
    font-weight: 700;
}
footer p {
    float: left;
}
footer p + p {
    float: right;
}
footer p + p a img {
    vertical-align: middle;
    margin-bottom: 3px;
    margin-right: 0.6em;
}
footer p + p a + a {
    margin-left: 1em;
}


/* Blog index page. */

dl {
    padding-left: 1.2em;
}
dt:before {
    content: "\0BB  \0a0 ";
}

dt {
    width: 100%;
    list-style: none outside none;
    font-weight: 300;
    font-size: 125%;
    padding-top: 15px;
}

dt span {
    float: right;
    margin-right: 10px;
}

dd {
    margin: 10px 30px;
    padding-bottom: 10px;
    padding-top: 2px;
    font-style: italic;
}

dd p a {
    float: right;
    margin-top: 0.8em;
}

nav#index > section {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    padding: 4px 8px 0px 8px;
    box-shadow: inset rgba(0, 0, 0, 0.2) 0 1px 0, inset rgb(255, 255, 255) 0 -1px 0;
}


/* Top navigation. */

#topnav {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
}

#topnav nav {
    display: block;
    max-width: 840px;
    margin: 0 auto;
    background: #9cd;
    background: -webkit-linear-gradient(#9cd, #7bc);
    background:         linear-gradient(#9cd, #7bc);

    border-radius: 4px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.45) 0 1px 3px;
    font: 11px/1.8 FiraSans, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#topnav nav a {
    padding-left: 10px;
    color: #fff;
    text-shadow: rgba(0, 0, 0, 0.5) 0 1px 1px;
    font-weight: 700;
}

#topnav nav a:first-child {
    margin-left: 6px;
}

#topnav nav a + a {
    margin-left: 10px;
    border-left: 1px solid #7ab;
}

/* Post navigation. */

nav#postnav .next {
    float: right;
}

article nav p {
    margin: 2em 0 0.5em 0;
    text-align: center;
}


/* Shell samples. */

code {
    font-size: 100%;
}
code.prompt {
    color: #888;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}
code.in {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1px;
    border-radius: 3px;
}
code em {
    color: #f84;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    font-style: italic;
}

/* Small screen adjustments. */

@media print, screen and (max-width: 740px) {
    body {
        padding: 0;
    }

    .wrapper {
        border-radius: 0;
        box-shadow: none;
        width: 100%;
        margin-top: 21px;
    }
    #index, article {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    header {
        border-radius: 0;
    }
    
    #topnav nav {
        border-radius: 0;
    }
    
    footer {
        border-radius: 0;
        padding: 20px;
        width: auto;
    }
    footer p {
        float: none;
        margin: 0;
    }
    footer p + p {
        float: none;
    }
    nav section {
        padding: 0px 10px 0px 0px;
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
    }
    dt:before {
        content: "";
    }
    dd {
        clear: both;
        margin: 0px;
    }
    
    code, pre {
        font-size: 11px;
    }
    code.in {
        padding: 0px;
    }
}
@media print, screen and (max-width:580px) {
    header ul {
        display: none;
    }

    header p.view {
        display: block;
    }

    header p {
        width: 100%;
    }
}
@media print {
    header p.view a small:before {
        content: 'at http://github.com/';
    }
}
