/* Blog-only styles. Palette, header, and lists come from
   https://luisscoccola.com/assets/fstyle.css */

.site-title {
    color: inherit;
    text-decoration: none;
}

.site-title:hover { color: var(--accent); }

/* home: list of posts */
.post-list li { margin: 18px 0; }

.post-list h3 {
    margin: 0;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--fg);
    display: flex;
    align-items: baseline;
    gap: 16px;
}

/* like the counts on the website's section headers */
.post-list .post-date {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    white-space: nowrap;
}

.post-list li p {
    margin: 3px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
}

.post-list li p em { color: inherit; }

/* post header: monospace, like the website */
.post-header { margin-bottom: 28px; }

.post-title {
    font-size: 20px;
    line-height: 1.3;
}

.post-meta {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.post-meta .bullet-divider { margin: 0 6px; }

.post-meta .force-inline { display: inline; }

/* post body: serif for long-form reading */
.post-content {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-size: 17px;
    line-height: 1.65;
}

.post-content p { margin: 0 0 1em; }

/* section headings (posts use # for sections): serif like the body, larger
   than it, so they read as titles rather than code */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    color: var(--fg);
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.3;
}

.post-content h1 { font-size: 24px; margin: 2.5em 0 0.6em; }
.post-content h2 { font-size: 19px; margin: 1.8em 0 0.5em; }
.post-content h3,
.post-content h4 { font-size: 17px; margin: 1.5em 0 0.4em; }

/* lists: keep the website's "*" bullets for ul, restore numbers for ol */
.post-content ul { margin: 0 0 1em; }

.post-content ol {
    margin: 0 0 1em;
    padding-left: 1.6em;
}

.post-content ol > li { padding-left: 0.2em; }
.post-content ol > li::before { content: none; }
.post-content li > ul,
.post-content li > ol { margin: 0.3em 0 0; }

.post-content blockquote {
    margin: 0 0 1em;
    padding: 0 0 0 16px;
    border-left: 2px solid var(--accent);
    color: var(--muted);
}

.post-content code,
.post-content pre {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8em;
}

.post-content code {
    background: var(--rule);
    padding: 1px 4px;
    border-radius: 3px;
}

.post-content pre {
    background: var(--rule);
    padding: 12px 14px;
    overflow-x: auto;
    border-radius: 3px;
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}

/* figures: white card with a thin palette border, so white-background and
   transparent images look the same on the pink page */
.post-content img {
    max-width: 100%;
    height: auto;
    background: #fff;
    border: 1px solid #e6c3cd;
    border-radius: 3px;
    padding: 10px;
}

.post-content figure { margin: 1.5em 0; }

.post-content figcaption {
    margin-top: 6px;
    font-size: 0.85em;
    color: var(--muted);
}

.post-content table {
    border-collapse: collapse;
    margin: 0 0 1em;
    font-size: 0.9em;
}

.post-content th,
.post-content td {
    border-bottom: 1px solid var(--rule);
    padding: 4px 10px;
    text-align: left;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 2em 0;
}

/* long display math scrolls instead of overflowing */
.post-content mjx-container[display="true"] {
    overflow-x: auto;
    overflow-y: hidden;
}

/* table of contents box at the top of posts */
.toc {
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--rule);
    padding: 12px 20px 4px 16px;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
}

.toc p { margin: 0 0 6px; }
.toc ul { margin: 0 0 8px; }
.toc li { margin: 2px 0; }
