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

:root {
    --green-dark: #2d5016;
    --green-mid: #4a7c23;
    --green-light: #6b9b3a;
    --cream: #f9f7f2;
    --text: #333;
    --text-light: #666;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
}

/* Header */
header {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
}

header.with-image {
    background: linear-gradient(rgba(45, 80, 22, 0.85), rgba(74, 124, 35, 0.85)),
                url('images/tamaleOnKeyboard.jpg') center/cover no-repeat;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 2.8rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo a {
    color: white;
    text-decoration: none;
}

.tagline {
    font-style: italic;
    opacity: 0.95;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Navigation */
nav {
    background: var(--green-dark);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover,
nav a.active {
    background: rgba(255,255,255,0.2);
}

/* Hero Sections */
.hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 80, 22, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Main Content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

section {
    margin-bottom: 3rem;
}

h1, h2, h3 {
    color: var(--green-dark);
    font-weight: normal;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--green-light);
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--green-mid);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: white;
    font-style: italic;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-style: normal;
    color: var(--text-light);
    font-size: 1rem;
}

/* Blog Post */
.blog-post {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.blog-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.blog-post img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-post figure {
    margin: 2rem 0;
}

.blog-post figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

.blog-post img.inline-right {
    float: right;
    max-width: 250px;
    margin: 0 0 1rem 1.5rem;
}

.blog-post img.inline-left {
    float: left;
    max-width: 300px;
    margin: 0 1.5rem 1rem 0;
}

/* Blog Preview Card */
.blog-preview {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.blog-preview-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.blog-preview-content {
    padding: 1.5rem;
}

.blog-preview h3 {
    margin-bottom: 0.5rem;
}

.blog-preview h3 a {
    color: var(--green-dark);
    text-decoration: none;
}

.blog-preview h3 a:hover {
    color: var(--green-mid);
}

.blog-preview .blog-meta {
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
}

.blog-preview p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--green-mid);
    text-decoration: none;
    font-weight: bold;
}

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

/* Contact */
.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.contact-info a {
    color: var(--green-mid);
    text-decoration: none;
    font-size: 1.3rem;
}

.contact-info a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--green-mid);
    border-radius: 4px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--green-mid);
    color: white;
    text-decoration: none;
}

/* Footer */
footer {
    background: var(--green-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer a {
    color: var(--green-light);
}

/* Clearfix */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* Responsive */
@media (max-width: 600px) {
    .logo {
        font-size: 2rem;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .blog-post {
        padding: 1.5rem;
    }

    .blog-post img.inline-right,
    .blog-post img.inline-left {
        float: none;
        max-width: 100%;
        margin: 1.5rem 0;
    }

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

    blockquote {
        padding: 1rem 1.25rem;
    }
}
