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

/* --- CSS Variables (Retro / Vintage) --- */
:root {
    --bg-color: #FDF8F0; /* Off-white / Cream */
    --surface-color: #FFFFFF;
    --text-color: #5D4037; /* Dark Brown */
    --heading-color: #3E2723; /* Darker Brown */
    --accent-color: #A1887F; /* Muted Brown/Taupe */
    --accent-color-hover: #8D6E63;
    --border-color: #D7CCC8;
    --font-family-headings: 'Playfair Display', serif;
    --font-family-body: 'Lato', sans-serif;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    --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.8;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 900;
}

p { margin-bottom: 1.5rem; }

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

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

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

li { margin-bottom: 0.5rem; }

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

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

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

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--bg-color);
    padding: 1rem 0;
    border-bottom: 2px solid var(--border-color);
}

.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-headings);
    font-size: 2rem;
    font-weight: 900;
}

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

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

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

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

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

.hero p {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 1rem auto 0;
}

/* --- Article Grid --- */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

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

.article-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

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

.article-card-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.article-card-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

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

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

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

.widget-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.widget ul { list-style: none; padding: 0; }
.widget ul li { margin-bottom: 0.5rem; }
.widget ul li a { color: var(--text-color); font-weight: 700; }
.widget ul li a:hover { color: var(--accent-color); }

/* --- Article & Page Styles --- */
.page-header {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px dotted var(--border-color);
}

.article-header {
    margin-bottom: 2rem;
    border-bottom: 2px dotted var(--border-color);
    padding-bottom: 1.5rem;
    text-align: center;
}

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

.article-meta {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-top: 1rem;
    font-weight: 700;
    font-family: var(--font-family-body);
}

.article-content h2 { margin-top: 2rem; font-size: 2rem; }
.article-content h3 { margin-top: 1.5rem; font-size: 1.5rem; }

.article-content blockquote {
    border-left: 3px solid var(--accent-color);
    padding: 0.5rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    background-color: #F5F5F5;
}

.cta-section {
    background: #EFEBE9;
    border: 1px dashed var(--accent-color);
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
    border-radius: var(--border-radius);
}

.cta-section h2 { margin-top: 0; font-size: 2rem; }

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
    border-radius: 25px;
}
.cta-button:hover {
    background-color: var(--accent-color-hover);
    color: white;
    text-decoration: none;
}

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

.footer-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}
.footer-container p { color: var(--text-color); margin-bottom: 1rem; }

.footer-links { margin-top: 1rem; }
.footer-links a {
    color: var(--text-color);
    margin: 0 1rem;
    text-decoration: none;
    font-weight: 700;
}
.footer-links a:hover { color: var(--accent-color); text-decoration: underline; }
