/* Site-specific overrides on top of risotto */

/* Keep text off the viewport edge on narrow screens (body box-shadow is 1rem) */
.page {
    padding: 0 1rem;
}

/* Sidebar links: one per line, risotto-style markers */
.aside__links {
    margin-bottom: 0;
}

/* Date-prefixed post lists */
.post-list {
    padding-left: 0;
}

.post-list li {
    display: flex;
    gap: 1rem;
}

.post-list li::marker {
    content: none;
}

.post-list time {
    color: var(--muted);
    flex-shrink: 0;
}

/* Inline code gets a little breathing room; block code keeps risotto's padding */
code {
    padding: 0 0.25rem;
}

pre code {
    padding: 0;
}

@media (max-width: 30rem) {
    .post-list li {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0.75rem;
    }
}

/* Heading scale: risotto renders every heading at 1rem; give the content
 * headings a size hierarchy while keeping the "# " / "## " prefixes.
 * Scoped to .page__body so the logo and sidebar name (also h1s) stay 1rem. */
.page__body h1 {
    font-size: 1.6rem;
    line-height: 2.1rem;
    margin-bottom: 1rem;
}

.page__body h2 {
    font-size: 1.3rem;
    line-height: 1.8rem;
    margin-top: 2.25rem;
    margin-bottom: 0.5rem;
}

.page__body h3 {
    font-size: 1.1rem;
    margin-top: 1.75rem;
    margin-bottom: 0.25rem;
}

.page__body h1:first-child {
    margin-top: 0;
}
