@charset 'utf-8';

.container {
    margin: 0 auto;
    max-width: 700px;
    padding: 0 20px;
}

article {
    font-size: 21px;
    line-height: 1.58;
    letter-spacing: -0.003em;
    padding: 20px 0 15px;
}

h1 {
    font-size: 40px;
    margin: 54px 0 0 -2.5px;
    padding-bottom: 10px;
    line-height: 1.04;
    letter-spacing: -0.028em;
}

h2 {
    font-size: 32px;
    margin: 56px 0 0 -2px;
    padding-bottom: 8px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 24px;
    margin: 30px 0 0 -1.5px;
    padding-bottom: 6px;
    line-height: 1.22;
    letter-spacing: -0.018em;
}

// These are not meant to be used
h4, h5, h6 {
    font-size: 20px;
    margin: 25px 0 0 -1px;
    padding-bottom: 4px;
    line-height: 1.28;
    letter-spacing: -0.016em;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
    margin-top: 0;
}

blockquote, p, pre, ol, ul {
    margin: 0 0 29px;
}

blockquote {
    font-style: italic;
}

code, pre {
    font-size: 17px;
    letter-spacing: 0;
}

// Intended to add spacing after headings
pre {
    margin-top: 4px;
}

ol, ul {
    list-style: none;
    padding: 0;
}

li {
    margin-left: 30px;
    margin-bottom: 14px;
}

li ol, li ul {
    margin-bottom: 0;
    margin-top: 14px;
}

li::before {
    box-sizing: border-box;
    margin-left: -78px;
    position: absolute;
    text-align: right;
    width: 78px;
}

ol {
    counter-reset: post;
}

ol > li::before {
    content: counter(post) '.';
    counter-increment: post;
    padding-right: 12px;
}

ul > li::before {
    content: '•';
    font-size: 16.8px;
    padding-right: 15px;
    padding-top: 4px;
}

hr {
    margin: 29px 0;
}

@media all and (max-width: 767px) {
    article {
        font-size: 18px;
        line-height: 1.58;
        letter-spacing: -0.004em;
    }

    h1 {
        font-size: 32px;
        margin-left: -2px;
        margin-top: 26px;
        line-height: 1.04;
        letter-spacing: -0.028em;
    }

    h2 {
        font-size: 28px;
        margin-left: -1.75px;
        margin-top: 28px;
        line-height: 1.15;
        letter-spacing: -0.02em;
    }

    h3 {
        font-size: 22px;
        margin-left: -1.38px;
        margin-top: 22px;
        line-height: 1.22;
        letter-spacing: -0.018em;
    }

    h4, h5, h6 {
        font-size: 18px;
        margin-left: -1px;
        margin-top: 18px;
        line-height: 1.28;
        letter-spacing: -0.016em;
    }

    blockquote, p, pre, ol, ul {
        margin-bottom: 21px;
    }

    code, pre {
        font-size: 15px;
    }

    // Intended to add spacing after headings
    pre {
        margin-top: 3px;
    }

    ul > li::before {
        font-size: 14.4px;
    }

    hr {
        margin: 21px 0;
    }
}
