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

:root {
    /* Muted, calm color palette inspired by Reclaiming Shalom */
    --primary-green: #5a7a5a;
    --primary-green-light: #6b8b6b;
    --primary-green-dark: #4a6a4a;
    --text-dark: #3a3a3a;
    --text-medium: #5a5a5a;
    --text-light: #7a7a7a;
    --bg-cream: #f8f7f4;
    --bg-cream-dark: #f0efe9;
    --bg-white: #ffffff;
    --accent-warm: #c4956a;
    --accent-warm-light: #d4a57a;
    --border-color: #e5e4e0;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-cream);
}

/* Navigation */
header {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

/* Animated underline effect */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Reverse direction on leave - achieved with transform origin */
.nav-links a:not(:hover)::after {
    right: 0;
    left: auto;
}

.nav-links a.active {
    color: var(--primary-green);
}

.nav-links a.active::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-white);
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.hero h1 {
    font-family: 'Barlow', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Posts Section */
.posts {
    padding: 2rem 0;
}

.posts h2 {
    font-family: 'Barlow', sans-serif;
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.post-card h3 {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.post-card h3 a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.post-card h3 a:hover {
    color: var(--primary-green);
}

.post-card time {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.post-card p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.read-more {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: var(--primary-green-dark);
}

/* Footer */
footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem;
    text-align: center;
    color: var(--text-light);
    margin-top: 4rem;
}

/* Page Content */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.page-content h1 {
    font-family: 'Barlow', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.page-content p {
    margin-bottom: 1.25rem;
    color: var(--text-medium);
    line-height: 1.8;
}

/* Post Page */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.post-content h1 {
    font-family: 'Barlow', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.post-content .post-meta {
    color: var(--text-light);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.post-content a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-content a:hover {
    color: var(--primary-green-dark);
}

/* Post Content - Images */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Smaller image variants - add class in markdown or use width */
.post-content img[alt*="small"] {
    max-width: 300px;
}

.post-content img[alt*="medium"] {
    max-width: 500px;
}

.post-content img[alt*="centered"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Post Content - Headings */
.post-content h2 {
    font-family: 'Barlow', sans-serif;
    font-size: 1.75rem;
    font-weight: 500;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.post-content h3 {
    font-family: 'Barlow', sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

/* Post Content - Lists */
.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-medium);
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.post-content ul li::marker {
    color: var(--primary-green);
}

/* Post Content - Blockquotes */
.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--bg-cream);
    border-left: 4px solid var(--primary-green);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-medium);
}

.post-content blockquote p {
    margin-bottom: 0;
}

/* Post Content - Code */
.post-content code {
    background: var(--bg-cream-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Monaco', 'Consolas', monospace;
}

.post-content pre {
    background: var(--text-dark);
    color: var(--bg-cream);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

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

/* Post Content - Horizontal Rule */
.post-content hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 3rem 0;
}

/* Post Content - Strong/Bold and Emphasis */
.post-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.post-content em {
    color: var(--text-medium);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-cream);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background: var(--bg-white);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

button[type="submit"] {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
    background: var(--primary-green-dark);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .page-content,
    .post-content {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
}
