*, *:before, *:after {
  box-sizing: border-box;
}

html {
    font: 62.5%/1.65 "Open Sans", sans-serif;
    margin: 0;
    padding: 0;
}
@media screen and (max-width: 479px) {
    html {
        font-size: 55%;
    }
}

body {
    padding-bottom: 40px;
    font-size: 1.3rem;
    line-height: 22px;
    color: #444;
    padding-top: 8px;
}


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

img {
    max-width: 100%;
}

.wrapper {
    position: relative;
    width: 1000px;
    max-width: 90%;
    margin: 0 auto;
}

.topbar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to bottom, #33546f,#355772);
}

.header {
    padding: 2em 0;
    line-height: 1;
    border-bottom: 1px solid #dee0df;
}

.site-title {
    font-size: 2.4rem;
    font-weight: 300;
}

.site-title a {
    color: #666;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.site-title__logo {
    flex: 0 0 70px;
}

.site-title__label {
    position: relative;
    top: -1px;
    line-height: 1.4;
}

.main {
    display: flex;
    align-items: flex-start;
}

.sidebar {
    flex: 0 0 200px;
    padding: 35px 35px 35px 0;
    border-right: 1px solid #f0f2f1;
}

.sidebar ul,
.sidebar li {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

.content {
    flex: 1;
    padding: 25px 40px 50px 80px;
    max-width: 80%;
}

@media screen and (max-width: 899px) {
    .main {
        flex-direction: column;
    }

    .sidebar {
        flex: 1 1 auto;
        width: 100%;
        border-right: none;
        padding-right: 0;
        border-bottom: 6px solid #f6f6f6;
    }

    .content {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
}

.content h1 {
    font-size: 4.3rem;
    font-weight: 300;
    line-height: 1.3;
}

.content h1 + ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-weight: 400;
    line-height: 1.5;
    padding-bottom: 50px;
    border-bottom: 1px solid #f0f2f1;
    -webkit-font-smoothing: antialiased;
}

.content h1 + ul > li + li {
    margin-top: .5rem;
}

.content h1 + ul li {
    font-size: 1.7rem;
    line-height: 1.3;
    margin: .5rem 0;
}

.content h1 + ul li ul li {
    font-size: 1.6rem;
}

.content h1 + ul li ul li:last-child {
    margin-bottom: .75em;
}

.content h1 + ul li:before {
    content: "# ";
    margin-right: .25em;
    color: #7DB1C8;
    opacity: .3;
}

.content li > ul {
    font-size: 1.5rem;
    font-weight: 300;
    list-style: none;
    padding-left: 20px;
}

.content ul > li,
.content ol > li {
    margin-bottom: 1em;
}

.content h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-top: 5.5rem;
    position: relative;
}

.content h2:first-of-type {
    margin-top: 4rem;
}

.content h2 a {
    color: inherit;
}

.content h2 a:before {
    content: "#";
    margin-left: -3.5rem;
    position: absolute;
    font-size: 2.8rem;
    color: #7DB1C8;
    opacity: .6;
}

@media screen and (max-width: 899px) {
    .content h2 a:before {
        display: none;
    }
}

.content h3 {
    font-size: 2.4rem;
    font-weight: 300;
    margin-top: 4.5rem;
}

.content h4 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 3.5rem;
}

.content h4 a {
    color: inherit;
}

.content h5 {
    font-size: 1.4rem;
}

.content p,
.content li {
    font-size: 1.5rem;
}
.content p {
    line-height: 1.70;
    margin: 10px 0 20px;
}

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

.content ol > li {
    padding-left: 8px;
}

.content pre {
    background: #fafafa;
    padding: 1.2em;
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(0,0,0,.025) inset;
    border: 1px solid rgba(0,0,0,.05);
}

.content code {    
    background: #f8f8f8;
    display: inline-block;
    padding: .25em .4em;
    margin: 0 .2em;
    border-radius: 5px;
    line-height: 1;
}

.content code,
.content pre {
    font-family: Inconsolata, mono;
    font-size: 1.5rem;
}

.content pre code {
    background: transparent;
    display: inline;
    padding: 0;
    line-height: inherit;
}

.sidebar .nav > ul > li {
    font-size: 1.6rem;
    font-weight: 400;
    padding: 0 0 10px;
    margin: 25px 0 0px;
}

.sidebar .nav a > img {
    position: relative;
    left: 6px;
    opacity: .6;
}

.sidebar .nav ul > li > ul {
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    display: block;
    list-style: none;
    margin: 10px 0 0 0;
    padding: 10px 0 0 0;
    font-size: 14px;
}

.sidebar a {
    line-height: 1.5;
}

table {
    width: 100%;
}

table td:first-child {
    padding-right: 3em;
}

table th,
table td {
    padding: .5em;
}

table th {
    text-align: left;
    background: #eee;
}

table td {
    border-bottom: 1px solid #eee;
}

blockquote {
    background: #fafafa;
    margin-left: 0;
    padding: 1em;
    border-left: 2px solid #eee;
}

blockquote p:first-child {
    margin-top: 0;
}

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