/* Base Styles - Resets, Typography, Foundational Elements */

/* Reset & Box Model */
ul {
    list-style: none
}

li {
    margin-bottom: 10px;
}

input {
    margin: 0
}

html {
    box-sizing: border-box
}

* {
    box-sizing: inherit
}

:after,
:before {
    box-sizing: inherit
}

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

table {
    border-collapse: collapse;
    border-spacing: 0
}

td,
th {
    padding: 0;
    text-align: left
}

/* Base HTML & Body */
html {
    background-color: #fff;
    font-size: 18px;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    min-width: 300px;
    overflow-x: hidden;
    overflow-y: scroll;
    text-rendering: optimizeLegibility
}

figure,
footer,
header,
section {
    display: block
}

body,
input {
    font-family: Optima, Candara, 'Noto Sans', source-sans-pro, sans-serif
}

code,
pre {
    -moz-osx-font-smoothing: auto;
    -webkit-font-smoothing: auto;
    font-family: monospace
}

body {
    color: #4a4a4a;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Links */
a {
    cursor: pointer;
    -webkit-transition: none 86ms ease-out;
    transition: none 86ms ease-out;
    text-decoration: none;
    color: #0055a5;
    font-weight: 700;
}

a:hover {
    color: #363636;
    background: rgba(219, 219, 219, .5);
    text-decoration: underline;
}

/* Code & Pre */
code {
    background-color: #f5f5f5;
    color: #ff3860;
    font-size: .8em;
    font-weight: 400;
    padding: .25em .5em .25em
}

hr {
    background-color: #dbdbdb;
    border: 0;
    display: block;
    height: 1px;
    margin: 1.5rem 0
}

img {
    max-width: 100%
}

small {
    font-size: .8em
}

span {
    font-style: inherit;
    font-weight: inherit
}

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

pre {
    background-color: #f5f5f5;
    color: #4a4a4a;
    font-size: .8em;
    white-space: pre;
    word-wrap: normal
}

pre code {
    background: 0 0;
    color: inherit;
    display: block;
    font-size: 1em;
    overflow-x: auto;
    padding: 1.25rem 1.5rem
}

/* More comfortable code block rhythm */
pre {
    margin: 1.25rem 0;
    border-radius: 6px;
}
pre code {
    line-height: 1.6;
}

table {
    width: 100%
}

table td,
table th {
    text-align: left;
    vertical-align: top
}

table th {
    color: #363636
}

/* Typography */
.subtitle,
.title {
    word-break: break-word;
}

.title:not(:last-child) {
    margin-bottom: 1.5rem
}

.title {
    font-weight: 700;
    color: #363636;
    font-size: 2.25rem;
    line-height: 1.125;
    margin-top: -1.5rem;
}

.title:not(.is-spaced)+.subtitle {
    margin-top: -1rem
}

.subtitle {
    color: #4a4a4a;
    line-height: 1.25;
    font-size: 1.125rem;
}

.container {
    position: relative
}

@media screen and (min-width:1000px) {
    .container {
        margin: 0 auto;
        width: 960px
    }
}

@media screen and (min-width:1192px) {
    .container {
        width: 1152px
    }
}

@media screen and (min-width:1384px) {
    .container {
        width: 1344px
    }
}

.highlight {
    font-weight: 400;
    max-width: 100%;
    overflow: hidden;
    padding: 0
}

.highlight pre {
    overflow: auto;
    max-width: 100%
}

/* Lists */
.content ol {
    list-style: decimal outside;
}

.content ul {
    list-style: disc outside;
}

.content li+li {
    margin-top: .25em
}

.content {
    color: #4a4a4a
}

/* Icons */
.icon {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 1.5rem;
    vertical-align: top;
    width: 1.5rem
}

.centered {
    text-align: center
}

/* Responsive base font scaling */
@media(max-width: 768px) {
    html {
        font-size: 18px
    }
}

@media(min-width: 1200px) {
    html {
        font-size: 18.5px
    }
}
