:root {
    --bg-color: #FDF8F0;
    --surface-color: #FFFFFF;
    --text-color: #4C4033;
    --heading-color: #3D352A;
    --accent-color: #6A994E;
    --accent-hover-color: #8AA77B;
    --border-color: #EAE0D1;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.07);
    --border-radius: 12px;
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 0.75em;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5em;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease-in-out;
}

a:hover, a:focus {
    color: var(--accent-hover-color);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}
li {
    margin-bottom: 0.75em;
}


/* --- Header --- */
.site-header {
    background-color: rgba(253, 248, 240, 0.85);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}
.site-title:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    padding: 0;
    margin: 0;
}

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-heading);
    color: var(--text-color);
    padding: 0.5rem 0;
    text-decoration: none;
    transition: color 0.2s ease;
}
.main-nav a.active, .main-nav a:hover {
    color: var(--accent-color);
}


/* --- Main Layout --- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 4rem 0;
    flex: 1;
}


/* --- Homepage --- */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}
.hero-section .subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    color: #7A6C5D;
}
.articles-list h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.article-card {
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.article-card h3 {
    margin-top: 0;
}
.article-card p {
    flex-grow: 1;
    color: #7A6C5D;
}
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    align-self: flex-start;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease;
}
.btn:hover {
    background-color: var(--accent-hover-color);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}


/* --- Article Pages --- */
.article-page-header {
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
}
.article-page-header h1 {
    margin-bottom: 0.25rem;
    font-size: 2.5rem;
}
.article-meta {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #7A6C5D;
    font-weight: 600;
}
.article-meta a {
    font-weight: 600;
}
.article-content h2 {
    margin-top: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.callout {
    background-color: #F4EFE7;
    border-left: 4px solid var(--accent-color);
    padding: 1.75rem;
    margin: 2.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.callout p:last-child {
    margin-bottom: 0;
}

/* --- Sidebar --- */
.sidebar .widget {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.75rem;
    margin-bottom: 2rem;
    background-color: var(--surface-color);
}
.sidebar .widget-title {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.sidebar .widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar .widget-list li {
    margin-bottom: 0.75rem;
}
.sidebar .widget-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400; /* Regular weight for list items */
}
.sidebar .widget-list a:hover {
    color: var(--accent-color);
}
.sidebar .widget-promo {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
}
.sidebar .widget-promo .widget-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}
.sidebar .widget-promo p {
    color: rgba(255, 255, 255, 0.9);
}
.sidebar .widget-promo .btn-promo {
    background-color: #fff;
    color: var(--accent-color);
}
.sidebar .widget-promo .btn-promo:hover {
    background-color: #F4EFE7;
}

/* --- Footer --- */
.site-footer {
    background-color: #EAE0D1;
    color: #7A6C5D;
    padding: 2.5rem 0;
    text-align: center;
    margin-top: auto;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.site-footer a {
    color: #7A6C5D;
    margin: 0 0.75rem;
    font-weight: 600;
}
.site-footer a:hover {
    color: var(--accent-color);
}

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

@media (min-width: 992px) {
    .main-layout {
        grid-template-columns: 2.5fr 1fr;
    }
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .main-layout.full-width .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .article-page-header h1 { font-size: 1.8rem; }
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .site-footer .container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-layout.full-width .articles-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
