/* Font declarations */
@font-face {
    font-family: 'Bodoni 72 Smallcaps';
    src: local('Bodoni 72 Smallcaps');
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #575757;
    background-color: #fff;
}

a {
    color: #A62A17;
}

h1, h2, h3, h4, .logo {
    font-family: 'Bodoni 72 Smallcaps', 'Georgia', serif;
    color: #575757;
}

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(166, 42, 23, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.site-header nav {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.menu-logo {
    width: 40px;
    height: auto;
}

.logo {
    font-size: 1.8rem;
    color: #A62A17;
    letter-spacing: 1px;
    text-decoration: none;
}

.back-link {
    text-decoration: none;
    color: #575757;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #A62A17;
}

/* Main */
main {
    margin: 80px auto 0;
    max-width: 720px;
    padding: 4rem 2rem;
    min-height: calc(100vh - 80px - 100px);
}

/* Post list (index) */
.post-list .post-summary {
    margin-bottom: 3rem;
}

.post-summary h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.post-summary h2 a {
    color: #A62A17;
    text-decoration: none;
}

.post-summary h2 a:hover {
    text-decoration: underline;
}

.post-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
    font-style: italic;
}

.post-excerpt p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Post (single) */
.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2.2rem;
    color: #A62A17;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 0 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.4rem;
    padding-left: 0.25rem;
}

.post-content li::marker {
    color: #A62A17;
}

.post-content li > ul,
.post-content li > ol {
    margin: 0.4rem 0 0.4rem;
}

.post-content h2,
.post-content h3 {
    color: #A62A17;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border: 1px solid black;
}

.post-content a {
    color: #A62A17;
}

.post-content blockquote {
    border-left: 3px solid rgba(166, 42, 23, 0.3);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #777;
}

.post-content code {
    background-color: rgba(166, 42, 23, 0.05);
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    font-size: 0.95em;
}

.post-content pre {
    background-color: #f8f5f4;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Footer */
footer {
    background-color: #fff;
    border-top: 1px solid rgba(166, 42, 23, 0.2);
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: #A62A17;
    text-decoration: none;
}

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

/* Mobile */
@media (max-width: 768px) {
    .site-header {
        position: sticky;
    }

    main {
        margin-top: 0;
        padding: 2rem 1.5rem;
    }

    .site-header nav {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .menu-logo {
        width: 32px;
    }

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

    .post-header h1 {
        font-size: 1.8rem;
    }

    .post-summary h2 {
        font-size: 1.5rem;
    }
}
