/* ===== Base Styles ===== */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #153448;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #fff;
    padding: 20px;
}

a {
    color: #948979;
}

main {
    background-color: #fff;
    padding: 20px;
}

h1 {
    color: #153448;
    margin-top: 0;
}

hgroup h2 {
    margin-bottom: 0;
}

hgroup p {
    margin-top: 0;
    font-style: italic;
}

h2, h3, h4, h5, h6 {
    color: #3c5b6f;
}

.section {
    margin-bottom: 30px;
}

ul {
    padding-left: 20px;
}

.back-link {
    margin-bottom: 20px;
}

/* ===== Home Page ===== */
.home-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.text-content {
    flex: 1;
}

@media (max-width: 600px) {
    .home-content {
        flex-direction: column;
        align-items: center;
    }
    .avatar {
        margin-bottom: 20px;
    }
}

.top-nav {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.top-nav a {
    text-decoration: none;
    color: #3c5b6f;
    font-weight: bold;
}

.top-nav a:hover {
    color: #948979;
}

/* ===== Blog Index ===== */
.rss-link {
    display: inline-block;
    vertical-align: middle;
    color: #948979;
    margin-left: 6px;
}

.rss-link:hover {
    color: #e67e22;
}

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

.post-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

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

.post-list h2 {
    margin-bottom: 5px;
}

.post-list h2 a {
    color: #153448;
    text-decoration: none;
}

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

/* ===== Blog Post ===== */
.post-meta {
    color: #948979;
    font-size: 0.9em;
}

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

.post-tags li {
    display: inline;
    margin-right: 8px;
}

.post-content {
    font-size: 1.2rem;
}

.post-content img {
    max-width: 100%;
}

/* ===== Newsletter Signup ===== */
.newsletter-signup {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.newsletter-signup h2 {
    margin-bottom: 5px;
}

.newsletter-signup p {
    color: #948979;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    color: #153448;
}

.newsletter-form input[type="email"]:focus {
    border-color: #153448;
}

.newsletter-form button {
    padding: 10px 20px;
    background: #153448;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.newsletter-form button:hover {
    background: #1f4a63;
}

.newsletter-message {
    margin-top: 10px;
    font-size: 0.9rem;
    min-height: 1.4em;
}

.newsletter-message.success { color: green; }
.newsletter-message.error { color: red; }

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
}
