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

/* --- CSS Variables (Retro / Vintage Theme) --- */
:root {
    --bg-color: #fdf6e3; /* Warm off-white, like old paper */
    --surface-color: #f7efd7;
    --text-color: #3a3a3a;
    --heading-color: #2c2c2c;
    --primary-color: #b5838d; /* Muted rose/red for accents */
    --border-color: #ddd0b9;
    --text-muted-color: #6d6d6d;
    --font-family-heading: 'Playfair Display', serif;
    --font-family-body: 'Merriweather', serif;
    --shadow: 0 4px 8px 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.7;
    font-size: 17px;
    background-image: linear-gradient(rgba(253, 246, 227, 0.8), rgba(253, 246, 227, 0.8)), url('https://www.transparenttextures.com/patterns/light-paper-fibers.png');
}

/* --- 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.4rem; }
h3 { font-size: 1.7rem; }

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: #8e6870;
    text-decoration: underline;
}

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

li {
    margin-bottom: 0.6rem;
}

/* --- 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(--surface-color);
    padding: 1rem 0;
    border-bottom: 2px solid var(--border-color);
    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.8rem;
    font-weight: 700;
}

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

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

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

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

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

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

.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);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.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;
    color: var(--text-muted-color);
}

.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;
    font-family: var(--font-family-body);
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: #8e6870;
    color: #fff;
    text-decoration: none;
}

/* --- Sidebar --- */
.sidebar {
    padding: 1.5rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    height: fit-content;
}

.widget { margin-bottom: 2.5rem; }
.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: 2px solid var(--border-color);
}

.widget ul { list-style: none; padding: 0; }
.widget ul li { 
    margin-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.75rem;
}
.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.widget ul li a { color: var(--text-color); }

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

.article-header h1 {
    font-size: 3.2rem;
}

.article-meta {
    font-size: 1rem;
    color: var(--text-muted-color);
    font-style: italic;
}
.article-meta a { font-weight: 700; }

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

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

.cta-section {
    background-color: #e9e0ce;
    color: var(--text-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    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;
}

.cta-button:hover {
    background-color: #8e6870;
    text-decoration: none;
    color: #fff;
}


/* --- Static Pages --- */
.page-header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.page-content {
    padding: 2rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

/* --- Footer --- */
.site-footer {
    background-color: #e9e0ce;
    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;
}
.footer-links a:hover { color: var(--text-color); }
