/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@400;500&display=swap');

/* --- CSS Variables (Retro / Vintage Theme) --- */
:root {
    --bg-color: #f4f1ea; /* Creamy background */
    --surface-color: #ffffff;
    --text-color: #3d3d3d;
    --heading-color: #2c3e50; /* Dark Slate */
    --primary-accent: #8b4513; /* Saddle Brown */
    --secondary-accent: #a0522d; /* Sienna */
    --border-color: #ddd8cf;
    --font-family-headings: 'Playfair Display', serif;
    --font-family-body: 'Roboto', sans-serif;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-family-headings);
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; }

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

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

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--surface-color);
    border-bottom: 2px solid var(--primary-accent);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

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

.site-title {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    font-weight: 700;
}

.site-title a {
    color: var(--heading-color);
    text-decoration: none;
}

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

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

.main-nav a:hover {
    color: var(--primary-accent);
    text-decoration: none;
    border-bottom-color: var(--primary-accent);
}

/* --- Homepage Specific --- */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.hero h1 {
    margin-bottom: 1rem;
}

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

.article-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

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

.article-card h2 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    color: var(--primary-accent);
}

.article-card p {
    margin-bottom: 1rem;
}

.read-more-btn {
    display: inline-block;
    font-weight: 700;
    font-family: var(--font-family-body);
    letter-spacing: 0.5px;
}

/* --- Article Page Specific --- */
.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.article-meta {
    font-size: 0.9rem;
    color: #777;
    margin-top: -0.5rem;
    font-style: italic;
    font-family: var(--font-family-body);
}

.article-content {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.article-content h2, .article-content h3 {
    margin-top: 2.5rem;
}

.article-content ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.cta-box {
    background-color: #fffaf0; /* Floral White */
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-accent);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

/* --- Sidebar --- */
.sidebar {
    padding-top: 2.5rem;
}

.sidebar-widget {
    background: var(--surface-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

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

.sidebar-widget h3 {
    font-size: 1.4rem;
    border-bottom: 2px solid var(--primary-accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

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

.sidebar-widget ul li {
    margin-bottom: 0.75rem;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #555;
    background-color: var(--surface-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.9rem; }
    .article-content { padding: 1.5rem; }
}

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

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-layout {
        display: grid;
        grid-template-columns: 3fr 1fr;
        gap: 3rem;
    }

    .sidebar {
        padding-top: 0;
    }
}