body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.3rem;
    line-height: 2.1rem;
    margin-left: 2rem;
    margin-right: 2rem;
    padding: 0 0.5rem;
    max-width: 900px;
    color: #333;
}

body.writing {
    max-width: 740px;
    margin: 0 auto;
}

body.writing ul {
    font-family: 'IBM Plex Sans', serif;
}

.writing .col-2 {
    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;
}
.col-2 .col {
    -webkit-box-flex: 1;   /* OLD - iOS 6-, Safari 3.1-6 */
    width: 50%;            /* For old syntax, otherwise collapses. */
    -webkit-flex: 1;       /* Safari 6.1+. iOS 7.1+, BB10 */
    -ms-flex: 1;           /* IE 10 */
    flex: 1;
    padding: 0 0.5rem;
}

code {
    font-family: monospace;
    white-space: pre;
    font-size: 1rem;
    line-height: 1.3rem !important;
    display: block;
    overflow-x: scroll;
    background-color: #eeeeee;
    padding: 0.5rem;
}

body.homepage {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.5rem;
    line-height: 2.5rem;
    margin-left: 2rem;
    margin-right: 2rem;
}

.homepage p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.5rem;
    line-height: 2.5rem;
}

.homepage h1 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 3rem;
    line-height: 3.9rem;
}

p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.3rem;
    line-height: 2rem;
}

h1 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 3rem;
    line-height: 3.9rem;
    margin-bottom: 0;
}

h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 2.4rem;
    line-height: 3.2rem;
    margin-bottom: 0;
}
h4 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 2rem;
    line-height: 2.7rem;
    margin-bottom: 0;
}

ul.dashed {
    list-style: none;
    padding-left: 0;
}

ul.dashed>li {
    margin-left: 24px;
}

/* Prevent nested li's from getting messed up */
ul.dashed>li::before {
    content: '\2013\2002';
    color: #a9a9a9;
    margin-left: -24px;
}

.homepage ul.dashed>li::before {
    margin-left: -26px;
}

li {
    margin: 0 0 0.6rem;
    padding: 0;
}

li ul {
    padding-left: 2rem;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.inlinelist a {
    padding-right: 1rem;
}

sup {
    padding: 2px;
    margin-left: 2px;
    /* background-color: rgb(185, 247, 240); */
}

img {
    max-width: 100%;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #a9a9a9;
    margin: 1em 0;
    padding: 0; 
}

small {
    color: #777;
}

.gallery-image {
    display: inline-block;
    padding-top: 0.5rem;
    max-width: 100%;
}
.gallery-image:first-child {
    padding-right: 0.5rem;
}

.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media only screen and (max-width: 600px) {
    body {
        font-family: 'IBM Plex Sans', sans-serif;
        font-size: 1.2rem;
        line-height: 1.8rem;
        margin: 0 auto;
        padding: 0 0.5rem;
        max-width: 900px;
        color: #333;
    }

    p {
        font-family: 'IBM Plex Sans', sans-serif;
        font-size: 1.2rem;
        line-height: 1.8rem;
    }

    h1 {
        font-family: 'IBM Plex Sans', sans-serif;
        font-size: 2.3rem;
        line-height: 3.1rem;
        margin-bottom: 0;
    }

    h3 {
        font-family: 'IBM Plex Sans', sans-serif;
        font-size: 2.1rem;
        line-height: 2.7rem;
        margin-bottom: 0;
    }

    body.homepage {
        font-size: 1.3rem;
        line-height: 1.9rem;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .homepage p {
        font-size: 1.3rem;
        line-height: 1.9rem;
    }

    .homepage h1 {
        font-size: 3rem;
        line-height: 3.9rem;
    }

    .homepage ul.dashed>li::before {
        margin-left: -23px;
    }
}
