:root {
    --bg: #111111;
    --border: #2a2a2a;
    --text: #e0e0e0;
    --text-muted: #888888;
    --text-faint: #444444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
}

.site-header .inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-nav a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-nav a:hover {
    color: var(--text);
}

/* ── Article ── */
main {
    padding: 72px 24px 96px;
}

article {
    max-width: 680px;
    margin: 0 auto;
}

.article-head {
    margin-bottom: 52px;
}

.article-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: normal;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 18px;
}

.article-byline {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    margin-bottom: 28px;
}

.article-rule {
    border: none;
    border-top: 1px solid var(--border);
}

/* ── Body text ── */
.article-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.6em;
    color: var(--text);
}

.article-body p:last-child {
    margin-bottom: 0;
}

/* ── Image support ── */
.article-body figure {
    margin: 2.5em 0;
}

.article-body figure img {
    width: 100%;
    display: block;
}

.article-body figcaption {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.5;
}

/* ── Section headings (statement page) ── */
.section-heading {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 2.5em 0 0.75em;
}

.section-heading:first-child {
    margin-top: 0;
}

/* ── Works Cited entries ── */
.wc-entry {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.2em;
    padding-left: 2em;
    text-indent: -2em;
    color: var(--text);
}

/* ── Article footer ── */
.article-end {
    margin-top: 64px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.wc-link {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.03em;
}

.wc-link:hover {
    color: var(--text);
}

/* ── Status / error ── */
.status {
    color: var(--text-muted);
    font-style: italic;
}

.error {
    color: #ff6b6b;
    font-style: italic;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
}

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    color: var(--text-faint);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
