/* post.css — Post/page content body typography
/* Only loaded on post and page templates via {{#is "post, page"}}
/* ---------------------------------------------------------- */

:root {
    --font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    --font-serif: Georgia, Times, serif;
    --font-bold: 600;
    --color-primary: #3eb0ef;
    --color-base: #15171A;
}

.content {
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.7em;
}

.content-body {
    display: flex;
    flex-direction: column;
    font-family: var(--font-serif);
    align-items: center;
}

.content-body .button {
    color: #fff !important;
    font-family: var(--font-sans-serif);
}

.content-body .button:hover {
    text-decoration: none;
}

.post-full-content {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
}

.post-full-content figcaption {
    margin: 1em 0 0;
    color: #5d7179;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Open Sans, Helvetica Neue, sans-serif;
    font-size: 70%;
    line-height: 1.5em;
    text-align: center;
}

.post-full-content figure {
    margin: .8em 0 2.3em;
}

.post-full-content figure img {
    margin: 0;
}

.post-full-content .kg-width-wide .kg-image {
    max-width: 1040px;
}

.post-feature-image img {
    margin: 0 0 3vw;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    font-family: var(--font-sans-serif);
    margin-top: 0;
    color: var(--color-base);
    line-height: 1.15;
    font-weight: var(--font-bold);
    text-rendering: optimizeLegibility;
    align-self: flex-start;
}

.content-body h1 {
    margin: 1.0em 0 0.5em 0;
    font-size: 1.7rem;
    font-weight: var(--font-bold);
}
@media (max-width: 500px) {
    .content-body h1 {
        font-size: 1.4rem;
    }
}

.content-title {
    margin: 0 0 0.8em;
    font-size: 2.5rem;
    font-weight: var(--font-bold);
}
@media (max-width: 500px) {
    .content-title {
        margin: 0.8em 0;
        font-size: 1.7rem;
    }
    .content {
        font-size: 0.9rem;
    }
}

.content-body h2 {
    margin: 0.8em 0 0.4em 0;
    font-size: 1.6rem;
    font-weight: var(--font-bold);
}
@media (max-width: 500px) {
    .content-body h2 {
        font-size: 1.3rem;
    }
}

.content-body h3 {
    margin: 0.5em 0 0.2em 0;
    font-size: 1.4rem;
    font-weight: var(--font-bold);
}
@media (max-width: 500px) {
    .content-body h3 {
        font-size: 1.1rem;
    }
}

.content-body h4 {
    margin: 0.5em 0 0.2em 0;
    font-size: 1.2rem;
    font-weight: var(--font-bold);
}
@media (max-width: 500px) {
    .content-body h4 {
        font-size: 1.1rem;
    }
}

.content-body h5 {
    display: block;
    margin: 0.5em 0;
    padding: 1em 0 1.5em;
    border: 0;
    font-family: Georgia, serif;
    color: var(--color-primary);
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1.35em;
    text-align: center;
}

.content-body h6 {
    margin: 0.5em 0 0.2em 0;
    font-size: 1rem;
    font-weight: var(--font-bold);
}

.content-body figure {
    margin: 0.4em 0 1.6em;
    font-size: 1.4rem;
}

.content-body ul {
    align-self: flex-start;
}

.content-body pre {
    margin: 0.4em 0 1.8em;
    font-size: 0.8rem;
    line-height: 1.4em;
    white-space: pre-wrap;
    padding: 20px;
    background: var(--color-base);
    color: #fff;
    border-radius: 12px;
}

.content-body a {
    color: #26a8ed;
    text-decoration: none;
}

.content-body a:hover {
    text-decoration: underline;
}

/* Lists inside content body */

.content-body p,
.content-body ul,
.content-body ol,
.content-body dl,
.content-body blockquote {
    margin: 0 0 1.5em 0;
}

.content-body ol,
.content-body ul {
    padding-left: 1.3em;
    padding-right: 1.5em;
}

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

.content-body ol {
    list-style: decimal;
}

.content-body li {
    margin: 0.5em 0;
    padding-left: 0.3em;
    line-height: 1.6em;
}

.content-body blockquote {
    margin: 0.3em 0 1.8em;
    padding: 0 1.6em 0 1.6em;
    border-left: #cbeafb 0.5em solid;
}

.content-body blockquote p {
    margin: 0.8em 0;
    font-size: 1.2em;
    font-weight: 300;
}
