:root {
    --accent: #333;
    --ink: #1c1c1c;
    --muted: #666;
    --line: #e4e1da;
    --paper: #fbfaf7;
    --card: #fff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 17px/1.6 Georgia, "Times New Roman", serif;
}

a { color: inherit; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.masthead { border-bottom: 3px solid var(--accent); background: var(--card); }
.masthead .wrap { padding-top: 22px; padding-bottom: 14px; }
.masthead .name {
    font-size: 40px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.1;
    text-decoration: none; color: var(--accent);
}
.masthead .tagline { margin: 4px 0 0; color: var(--muted); font-style: italic; font-size: 15px; }

.sections { background: var(--card); border-bottom: 1px solid var(--line); }
.sections .wrap { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 10px; padding-bottom: 10px; }
.sections a {
    font: 600 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
    text-decoration: none; text-transform: uppercase; letter-spacing: 0.4px;
}
.sections a:hover, .sections a.current { color: var(--accent); }

main { padding: 28px 0 48px; }

.page-title { font-size: 26px; margin: 0 0 18px; }

.list { display: grid; gap: 0; }
.item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.item:first-child { padding-top: 0; }
.item h2 { margin: 4px 0 6px; font-size: 24px; line-height: 1.25; }
.item:first-child h2 { font-size: 32px; }
.item h2 a { text-decoration: none; }
.item h2 a:hover { color: var(--accent); }
.item p { margin: 0; color: #333; }

.meta {
    font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--muted);
}
.meta .tag { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; text-decoration: none; }

.empty { color: var(--muted); font-style: italic; }

.pager { margin-top: 24px; display: flex; gap: 16px; font: 15px system-ui, sans-serif; }

article.full { max-width: 720px; }
article.full h1 { font-size: 36px; line-height: 1.2; margin: 6px 0 12px; }
article.full .lead { font-size: 20px; line-height: 1.5; color: #333; margin: 0 0 20px; }
article.full .body h2 { font-size: 23px; margin: 28px 0 8px; }
article.full .body a { color: var(--accent); }
article.full .body ul, article.full .body ol { padding-left: 22px; }

.source-box {
    margin-top: 28px; padding: 14px 16px; background: var(--card);
    border: 1px solid var(--line); border-left: 4px solid var(--accent);
    font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: #444;
    overflow-wrap: anywhere;
}
.source-box a { color: var(--accent); }

.related { max-width: 720px; margin-top: 36px; }
.related h2 { font-size: 18px; text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 2px solid var(--accent); padding-bottom: 6px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.related a { text-decoration: none; }
.related a:hover { color: var(--accent); }

footer.site { border-top: 1px solid var(--line); background: var(--card); padding: 22px 0; }
footer.site, footer.site a { font: 14px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--muted); }
footer.site .network { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }

@media (max-width: 600px) {
    .masthead .name { font-size: 30px; }
    .item:first-child h2 { font-size: 26px; }
    article.full h1 { font-size: 28px; }
}
