:root {
    --bg: #fdfaf5;
    --fg: #2b2419;
    --accent: #8b3a2e;
    --muted: #6b5d4a;
    --line: #e0d7c5;
    --tag-bg: #efe7d3;
    --max-width: 720px;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
    font-family: Georgia, "Iowan Old Style", "Apple Garamond", "Times New Roman", serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.65;
    margin: 0;
    padding: 0;
}
header.site {
    text-align: center;
    padding: 3rem 1rem 2rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2rem;
}
header.site h1 {
    margin: 0;
    font-size: 2.4rem;
    font-weight: normal;
    letter-spacing: 0.02em;
}
header.site h1 a {
    color: var(--fg);
    text-decoration: none;
}
header.site p { color: var(--muted); font-style: italic; margin: 0.4rem 0 0; }
header.site nav { margin-top: 1.2rem; }
header.site nav a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 0.8rem;
    font-size: 0.95rem;
}
header.site nav a:hover { text-decoration: underline; }

.search-wrap {
    max-width: var(--max-width);
    margin: 0 auto 2rem;
    padding: 0 1.2rem;
}
.search-wrap input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--line);
    background: white;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 2px;
}
.search-wrap input:focus { outline: 2px solid var(--accent); }
#search-results { margin-top: 0.8rem; }
#search-results .hit {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--line);
}
#search-results .hit a { color: var(--fg); text-decoration: none; }
#search-results .hit a:hover { color: var(--accent); }
#search-results .hit .meta { color: var(--muted); font-size: 0.85rem; }

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.2rem 4rem;
}
article.preview {
    border-bottom: 1px dashed var(--line);
    padding: 1.4rem 0;
}
article.preview h2 {
    margin: 0 0 0.2rem;
    font-size: 1.5rem;
    font-weight: normal;
}
article.preview h2 a { color: var(--fg); text-decoration: none; }
article.preview h2 a:hover { color: var(--accent); }
article.preview .meta,
article.full .meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    font-style: italic;
}
article.preview .excerpt { color: var(--fg); font-size: 0.98rem; }

article.full h1 {
    font-size: 2rem;
    font-weight: normal;
    margin: 0 0 0.3rem;
    line-height: 1.25;
}
article.full .content img,
article.preview .excerpt img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.2rem auto;
    border: 1px solid var(--line);
}
article.full .content p { margin: 1rem 0; }
article.full .content blockquote {
    border-left: 3px solid var(--accent);
    margin: 1.2rem 0;
    padding: 0.2rem 1rem;
    color: var(--muted);
    font-style: italic;
}
article.full .content a { color: var(--accent); }
article.full .content h2,
article.full .content h3 { font-weight: normal; margin-top: 2rem; }

.tags-line { margin-top: 1rem; }
.tag {
    display: inline-block;
    background: var(--tag-bg);
    color: var(--fg);
    padding: 0.15rem 0.6rem;
    margin: 0.15rem 0.2rem 0.15rem 0;
    border-radius: 2px;
    font-size: 0.82rem;
    text-decoration: none;
}
.tag:hover { background: var(--accent); color: var(--bg); }
.tag .count { color: var(--muted); margin-left: 0.3rem; font-size: 0.75rem; }
.tag:hover .count { color: var(--bg); }

.archives-list { list-style: none; padding: 0; }
.archives-list .year { font-size: 1.4rem; margin: 2rem 0 0.8rem; color: var(--accent); }
.archives-list .month { font-weight: bold; margin: 1rem 0 0.4rem; color: var(--muted); }
.archives-list li.article { margin-left: 1rem; padding: 0.25rem 0; }
.archives-list li.article a { color: var(--fg); text-decoration: none; }
.archives-list li.article a:hover { color: var(--accent); }
.archives-list .date { color: var(--muted); font-size: 0.85rem; margin-right: 0.6rem; }

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
}
.pagination a { color: var(--accent); text-decoration: none; }
.pagination a:hover { text-decoration: underline; }
.pagination .info { color: var(--muted); }

.nav-prev-next {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    font-size: 0.9rem;
}
.nav-prev-next a { color: var(--accent); text-decoration: none; max-width: 45%; }
.nav-prev-next a:hover { text-decoration: underline; }

footer.site {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    padding: 2rem 1rem;
    border-top: 1px solid var(--line);
    margin-top: 4rem;
}

@media (max-width: 600px) {
    html { font-size: 16px; }
    header.site { padding: 2rem 1rem 1.5rem; }
    header.site h1 { font-size: 1.8rem; }
}
