:root {
    --bg-page: #f7f3e8;
    --bg-content: #ffffff;
    --text-main: #222222;
    --text-muted: #666666;
    --accent: #8c4b2f;
    --max-content-width: 960px;
    --toc-width: 260px;
    --font-base: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.locutio-body {
    margin: 0;
    font-family: var(--font-base);
    font-size: 18px;
    line-height: 1.6;
    background: var(--bg-page);
    color: var(--text-main);
}

.site-header {
    background: #f0e6d8;
    border-bottom: 1px solid #d6cbb9;
    padding: 0.75rem 1rem;
}

.header-inner {
    max-width: var(--max-content-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.site-title a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.4rem;
}

.site-subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.site-nav a {
    margin-left: 1.2rem;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
}

.site-main {
    max-width: 1000px;
    margin: 1rem auto 2rem;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 1.5rem;
}

.issue-toc {
    background: #f5ebdc;
    border: 1px solid #e0d4c2;
    padding: 0.75rem;
    font-size: 0.9rem;

    position: sticky;
    top: 1rem;                /* stays visible when scrolling */
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.content-area {
    background: #ffffff;
    border: 1px solid #e0d4c2;
    padding: 1.5rem;
}

.content-full {
    grid-column: 1 / -1;
}

/* small screens: TOC on top, not sticky */
@media (max-width: 900px) {
    .site-main {
        grid-template-columns: 1fr;
    }
    .issue-toc {
        position: static;
        max-height: none;
    }
}

.article-body {
    max-width: 70ch;
    margin: 0 auto;
}

.multi-lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .site-main {
        grid-template-columns: 1fr;
    }
    .multi-lang-grid {
        grid-template-columns: 1fr;
    }
}

.site-footer {
    border-top: 1px solid #d6cbb9;
    padding: 0.75rem 1rem;
    background: #f0e6d8;
}
.footer-inner {
    max-width: var(--max-content-width);
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}
