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

/* --- CSS Variables (Retro / Vintage) --- */
:root {
    --bg-color: #fdfaf3; /* Off-white, like old paper */
    --surface-color: #ffffff;
    --primary-color: #8c7851; /* Muted, sepia-like brown */
    --secondary-color: #5a7d7c; /* Muted teal/blue */
    --text-color: #3d3d3d;
    --text-muted-color: #7a7a7a;
    --heading-color: #2a2a2a;
    --border-color: #e0dace;
    --font-family-heading: 'Playfair Display', serif;
    --font-family-body: 'Lato', sans-serif;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    --border-radius: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

p { margin-bottom: 1.25rem; }

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

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

ul, ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

li { margin-bottom: 0.5rem; }

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

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

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

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--bg-color);
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

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

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

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

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

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

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

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f9f5ed;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

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

/* --- Article Grid --- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.article-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-content h3 {
    margin-top: 0;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--heading-color);
}

.article-card-content p {
    flex-grow: 1;
    margin-bottom: 1.25rem;
    color: var(--text-muted-color);
    font-size: 1rem;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: var(--heading-color);
    color: #fff;
    text-decoration: none;
}

/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 8rem;
}
.widget { 
    margin-bottom: 2.5rem; 
    padding: 1.5rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}
.widget:last-child { margin-bottom: 0; }

.widget-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.widget ul { list-style: none; padding: 0; }
.widget ul li { 
    margin-bottom: 0.7rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238c7851' class='bi bi-caret-right-fill' viewBox='0 0 16 16'%3E%3Cpath d='m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z'/%3E%3C/svg%3E") no-repeat left center;
    padding-left: 20px;
}
.widget ul li a { color: var(--text-color); font-weight: 700;}
.widget ul li a:hover { color: var(--primary-color); }

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

.article-header h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

.article-meta {
    font-size: 1rem;
    color: var(--text-muted-color);
    margin-top: 1rem;
    font-family: var(--font-family-body);
}
.article-meta a { color: var(--primary-color); font-weight: 700; text-decoration: underline;}

.article-content h2 { margin-top: 2.5rem; font-size: 2rem;}
.article-content h3 { margin-top: 2rem; font-size: 1.5rem; color: var(--secondary-color); }

.article-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-muted-color);
}

.cta-section {
    background-color: #f9f5ed;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 3rem 0;
}

.cta-section h2 { color: var(--heading-color); margin-top: 0; font-size: 2rem; }
.cta-section p { color: var(--text-muted-color); }

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
    color: #fff;
    text-decoration: none;
}

/* --- Static Pages --- */
.page-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}
.page-header h1 { font-size: 3rem; }
.page-header p { font-size: 1.2rem; color: var(--text-muted-color); }

.page-content p strong { color: var(--primary-color); }

/* --- Footer --- */
.site-footer {
    background-color: #f9f5ed;
    color: var(--text-muted-color);
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.footer-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-links { margin-top: 1rem; }
.footer-links a {
    color: var(--text-muted-color);
    margin: 0 1rem;
    transition: color 0.3s ease;
    text-decoration: none;
    font-weight: 700;
}
.footer-links a:hover { color: var(--primary-color); text-decoration: underline; }
