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

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: #faf9f7;
    color: #2c2c2c;
    line-height: 1.7;
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.tagline {
    color: #888;
    margin-bottom: 2rem;
    font-style: italic;
}

.login-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.login-box button {
    width: 100%;
    padding: 0.75rem;
    background: #2c6e49;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.login-box button:hover {
    background: #1e4d33;
}

.error {
    color: #c0392b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Header */
header {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

header h1 {
    font-size: 1.5rem;
    color: #1a1a1a;
}

header h1 a {
    text-decoration: none;
    color: inherit;
}

.logout-btn {
    background: none;
    border: 1px solid #ccc;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: #f5f5f5;
}

/* Main */
main {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Post cards */
.post-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.post-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
    font-family: -apple-system, sans-serif;
}

.post-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.post-card h2 a {
    text-decoration: none;
    color: #1a1a1a;
}

.post-card h2 a:hover {
    color: #2c6e49;
}

.post-excerpt {
    color: #555;
    margin-bottom: 1rem;
}

.post-thumbnail img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 1rem;
    max-height: 300px;
    object-fit: cover;
}

.read-more {
    font-family: -apple-system, sans-serif;
    font-size: 0.9rem;
    color: #2c6e49;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Full post */
.post-full {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.post-full h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.post-images {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.post-images img {
    width: 100%;
    border-radius: 6px;
}

/* Comments */
.comments {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.comments h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.comment {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.comment-meta {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
    font-family: -apple-system, sans-serif;
    font-size: 0.9rem;
}

.comment-meta span {
    color: #999;
}

.no-comments {
    color: #999;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.success {
    color: #2c6e49;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Comment form */
.comment-form {
    margin-top: 2rem;
}

.comment-form h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
}

.comment-form textarea {
    resize: vertical;
}

.comment-form button {
    padding: 0.75rem 1.5rem;
    background: #2c6e49;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.comment-form button:hover {
    background: #1e4d33;
}

.empty {
    text-align: center;
    color: #999;
    padding: 4rem 0;
    font-style: italic;
}

/* Mobile */
@media (max-width: 600px) {
    .post-card, .post-full, .comments {
        padding: 1.5rem;
    }

    header h1 {
        font-size: 1.2rem;
    }
}
