
/* 
Theme: Storytelling / Blog Focus
Font: Merriweather
Primary Colors:
- Background: #fdfaf3
- Text: #333333
- Accent: #c59d5f
- Borders: #e0e0e0
- Container Background: #ffffff
*/

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-color: #fdfaf3;
    --container-bg: #ffffff;
    --text-color: #333333;
    --heading-color: #1a1a1a;
    --accent-color: #c59d5f;
    --border-color: #e0e0e0;
    --font-family: 'Merriweather', serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 17px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 0;
}

/* Header & Navigation */
.site-header {
    background-color: var(--container-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 5%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.site-title a {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.main-nav a.active {
    color: var(--accent-color);
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
}


/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 992px) {
    .main-layout {
        grid-template-columns: 2.5fr 1fr;
    }
}

main {
    background-color: transparent;
}

/* General Typography & Elements */
h1, h2, h3, h4 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #b38e55;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Homepage - Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.article-card {
    background-color: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.07);
}

.article-card h3 {
    margin-top: 0;
    font-size: 1.3rem;
}
.article-card p {
    flex-grow: 1;
}

.article-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Sidebar */
.sidebar {
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.sidebar-widget {
    margin-bottom: 2.5rem;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    color: var(--heading-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 20px;
}

.sidebar-widget ul li a::before {
    content: '→';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Article Page */
.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.article-header .meta {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}
.article-header .meta span {
    margin-right: 1.5rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.cta-box {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 2.5rem 0;
    text-align: center;
}

/* Contact Page */
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(197, 157, 95, 0.3);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2.5rem 5%;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #777;
    background-color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .main-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
