/* niemants.land — clean, warm, readable */

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

body {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2d2d2d;
    background: #fffdf7;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* --- Header & Nav --- */

header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0dcd4;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1.5rem;
}

.site-name {
    font-size: 1.2rem;
    text-decoration: none;
    color: #2d2d2d;
    letter-spacing: 0.02em;
}

.site-name strong {
    color: #b8860b;
}

.tagline {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

.nav-links {
    margin-left: auto;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
}

.nav-links a:hover {
    color: #b8860b;
}

/* --- Links --- */

a {
    color: #b8860b;
    text-decoration: underline;
    text-decoration-color: #e0d5b8;
    text-underline-offset: 2px;
}

a:hover {
    color: #8b6508;
    text-decoration-color: #b8860b;
}

/* --- Main content --- */

main {
    min-height: 60vh;
}

main h1 {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

main h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    border-bottom: 1px solid #f0ece4;
    padding-bottom: 0.3rem;
}

main h3 {
    font-size: 1.25rem;
    line-height: 1.35;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: #2d2d2d;
    font-style: italic;
}

main p {
    margin-bottom: 1.2rem;
}

main ul, main ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

main li {
    margin-bottom: 0.3rem;
}

main blockquote {
    border-left: 3px solid #b8860b;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}

main pre {
    background: #f5f2eb;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

main code {
    background: #f5f2eb;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

main pre code {
    background: none;
    padding: 0;
}

main img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

main hr {
    border: none;
    border-top: 1px solid #e0dcd4;
    margin: 2rem 0;
}

/* --- Post metadata --- */

.post-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
}

.post-meta .date {
    margin-right: 1rem;
}

.post-tags a {
    font-size: 0.8rem;
    color: #777;
    background: #f5f2eb;
    padding: 0.15em 0.5em;
    border-radius: 3px;
    text-decoration: none;
    margin-right: 0.3rem;
}

.post-tags a:hover {
    background: #ece7da;
    color: #b8860b;
}

/* --- Type indicators --- */

.type-icon {
    font-size: 0.85rem;
    margin-right: 0.2rem;
}

.event-name {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

.type-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.type-links a {
    font-size: 0.95rem;
    color: #2d2d2d;
    background: #f5f2eb;
    padding: 0.3em 0.8em;
    border-radius: 4px;
    text-decoration: none;
}

.type-links a:hover {
    background: #ece7da;
    color: #b8860b;
}

/* --- Cover image --- */

.cover-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

/* --- Post list (homepage, archive, tag pages) --- */

.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0ece4;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.post-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.post-text {
    flex: 1;
}

.post-list li:last-child {
    border-bottom: none;
}

.post-list .post-date {
    font-size: 0.85rem;
    color: #999;
    display: block;
    margin-bottom: 0.2rem;
}

.post-list .post-title {
    font-size: 1.15rem;
    font-weight: bold;
}

.post-list .post-title a {
    text-decoration: none;
    color: #1a1a1a;
}

.post-list .post-title a:hover {
    color: #b8860b;
}

.post-list .post-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.3rem;
}

/* --- Tag cloud --- */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.tag-list a {
    font-size: 0.85rem;
    color: #666;
    background: #f5f2eb;
    padding: 0.2em 0.6em;
    border-radius: 3px;
    text-decoration: none;
}

.tag-list a:hover {
    background: #ece7da;
    color: #b8860b;
}

/* --- Archive --- */

.archive-list {
    list-style: none;
    padding: 0;
}

.archive-intro {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.archive-list li {
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.archive-list .archive-date {
    color: #999;
    font-size: 0.85rem;
    display: inline-block;
    min-width: 6.5rem;
}

.archive-list a {
    text-decoration: none;
    color: #2d2d2d;
}

.archive-list a:hover {
    color: #b8860b;
}

.archive-excerpt {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.15rem;
}

.archive-desc {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.2rem;
}

.archive-desc p {
    margin-bottom: 0.3rem;
}

.archive-desc a {
    color: #999;
    text-decoration-color: #ccc;
}

.archive-desc a:hover {
    color: #b8860b;
}

/* --- Language badge --- */

.lang-badge {
    font-size: 0.7rem;
    font-weight: bold;
    color: #b8860b;
    background: #f5f2eb;
    padding: 0.1em 0.4em;
    border-radius: 3px;
    vertical-align: middle;
    letter-spacing: 0.05em;
}

/* --- Footnotes --- */

sup a {
    font-size: 0.75rem;
    text-decoration: none;
    color: #b8860b;
}

sup a:hover {
    text-decoration: underline;
}

/* --- Back link --- */

.back-link {
    margin-top: 3rem;
    font-size: 0.9rem;
}

.back-link a {
    color: #888;
}

.back-link a:hover {
    color: #b8860b;
}

/* --- Footer --- */

footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0dcd4;
    font-size: 0.85rem;
    color: #999;
}

footer a {
    color: #999;
}

footer a:hover {
    color: #b8860b;
}

.rss-link {
    text-decoration: none;
    vertical-align: middle;
}

.rss-link svg {
    vertical-align: -1px;
}

/* --- Responsive --- */

@media (max-width: 600px) {
    body {
        padding: 1rem;
        font-size: 1rem;
    }

    main h1 {
        font-size: 1.6rem;
    }

    nav {
        flex-direction: column;
        gap: 0.3rem;
    }

    .nav-links {
        margin-left: 0;
    }

    .archive-list .archive-date {
        display: block;
    }
}
