/* The body of a post: <div class="prose"> inside the post's box.
   Everything Markdown produces gets its spacing and look here. */

.prose > * + * {
    margin-top: 0.85rem;
}

.prose > :is(h2, h3, h4) {
    margin-top: 2rem;
}

.prose > :is(h2, h3, h4) + * {
    margin-top: 0.5rem;
}

.prose > :first-child {
    margin-top: 0;
}

.prose :is(h2, h3, h4) {
    line-height: 1.3;
    color: var(--accent);
}

.prose :is(h2, h3)::before {
    content: "\25B8\00a0";
    font-size: 0.8em;
    color: var(--deco);
}

.prose h2 {
    font-size: 1.35rem;
}

.prose h3 {
    font-size: 1.15rem;
}

.prose h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.prose .lede {
    font-size: 1.15rem;
    line-height: 1.55;
}

.prose :is(ul, ol, blockquote) {
    max-width: 62ch;
}

.prose :is(ul, ol) {
    padding-left: 1.5rem;
}

.prose li::marker {
    color: var(--deco);
}

.prose li + li {
    margin-top: 0.3rem;
}

.prose li > :is(ul, ol) {
    margin-top: 0.3rem;
}

.prose ul.checklist {
    padding-left: 0;
}

.prose blockquote {
    padding: 0.4rem var(--space-md);
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
    border-left: 6px solid var(--deco);
    box-shadow: inset 1px 1px 0 var(--bevel-light);
}

.prose blockquote > * + * {
    margin-top: 0.5rem;
}

.prose hr {
    margin-block: 1.75rem;
    border: 0;
    border-top: 2px dashed var(--border);
}

.prose :is(p, li) > img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 2px solid var(--border);
}

.prose :is(strong, b) {
    font-weight: 700;
}

.prose a {
    text-underline-offset: 0.18em;
}
