:root {
    --site-accent: #0645ad;
    --site-text: #202122;
    --site-muted: #54595f;
    --site-border: #a2a9b1;
    --site-light: #f8f9fa;
}

body {
    background-color: #ffffff;
    color: var(--site-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
    color: var(--site-accent);
}

/* ---------- Header ---------- */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaecf0;
}

.site-brand {
    display: inline-block;
}

.site-logo {
    height: 64px;
    width: auto;
    display: inline-block;
}

/* ---------- Article ---------- */

.article-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.25;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--site-border);
    margin-bottom: 0.75rem;
}

.article-subtitle {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--site-text);
    margin-bottom: 1rem;
}

.article-content {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--site-text);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: Georgia, "Times New Roman", serif;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.article-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--site-border);
    padding-bottom: 0.2rem;
}

.article-content h3 {
    font-size: 1.25rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

.article-content figure {
    margin: 1rem 0;
}

.article-content blockquote {
    border-left: 4px solid #ddd;
    margin: 1rem 0;
    padding: 0.25rem 1rem;
    color: #555;
}

.article-content pre {
    background-color: #f6f8fa;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    overflow-x: auto;
}

.article-content a {
    color: var(--site-accent);
}

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

/* ---------- Infobox ---------- */

.infobox {
    background-color: var(--site-light);
    border: 1px solid var(--site-border);
    border-radius: 0;
    font-size: 0.875rem;
}

.infobox-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    padding: 0.6rem 0.75rem 0.25rem;
}

.infobox-image {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem 0;
    object-fit: cover;
}

.infobox .table th {
    font-weight: 500;
    color: var(--site-muted);
    width: 45%;
    white-space: normal;
}

/* ---------- Table of contents ---------- */

.toc {
    background-color: var(--site-light);
    border: 1px solid var(--site-border);
    border-radius: 0;
    font-size: 0.95rem;
    max-width: 36rem;
}

.toc-list {
    list-style: none;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
}

.toc-list a {
    text-decoration: none;
}

.toc-list a:hover {
    text-decoration: underline;
}

.toc-level-3,
.toc-level-4,
.toc-level-5,
.toc-level-6 {
    margin-left: 1.25rem;
}
