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

body {
    font-family: Georgia, serif; /*-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;*/
    font-size: 16px; /*previously 16. This changes stupid things like my "retired writer and literary hack" line*/
    line-height: 1.6;
    color: #222;
    background-color: #fff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
header {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.nav-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 24px;
}

nav ul li a {
    font-size: 14px;
    color: #666;
}

nav ul li a:hover {
    color: #000;
}

.header-content {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 20px;
    color: #666;
    margin-bottom: 25px;
}



/* Featured Post */
.featured-post article {
    max-width: fit-content; /* Container only as wide as the image */
    margin: 0 auto; /* Centers the container */
    text-align: left; /* Left-aligns text within */
}

.post-featured-image {
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;

}

.post-image {
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
}

.featured-post h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.post-excerpt {
    color: #555;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.5;
}

.post-meta {
    color: #999;
    font-size: 14px;
}

/* Recent Posts Grid */
.recent-posts {
    margin: 40px 0;
}

.recent-posts h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    display: flex;
    flex-direction: column;
}

.post-card-image {
    height: 160px;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 6px;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.post-card .post-excerpt {
    font-size: 14px;
    margin-bottom: 10px;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.featured-post h2,
.featured-post .post-excerpt,
.featured-post .post-meta {
    text-align: left;
    margin-left: 0;
}

.post-featured-image {
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    text-align: left;
}




/* Responsive Design */
@media (max-width: 800px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 36px;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    #subscribe-form {
        flex-direction: column;
    }
    
    #subscribe-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    #subscribe-form button {
        border-radius: 4px;
    }
}
