@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');

:root {
    --primary-color: #c5a578; /* Muted Gold */
    --background-color: #121212; /* Off-Black */
    --surface-color: #1e1e1e; /* Dark Grey Surface */
    --text-color: #e0e0e0; /* Light Grey/Off-White */
    --text-color-secondary: #a0a0a0; /* Medium Grey */
    --border-color: #333333;
    --heading-font: 'Roboto Slab', serif;
    --body-font: 'Roboto Slab', serif;
    --container-width: 1100px;
    --border-radius: 6px;
}

/* --- Basic Reset & Setup --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
    font-weight: 400;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

a:hover {
    color: #dfcda4; /* Lighter Gold on hover */
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: 0.75em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; color: var(--primary-color); }
p { margin-bottom: 1.25em; color: var(--text-color-secondary); }
ul, ol { margin-bottom: 1em; padding-left: 20px; color: var(--text-color-secondary); }
li { margin-bottom: 0.5em; }
strong { color: var(--text-color); font-weight: 700; }

/* --- Header --- */
.site-header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}
.site-header .site-title {
    margin: 0;
    color: var(--text-color);
}
.site-header .site-title a {
    color: inherit;
    text-decoration: none;
}
.site-header .site-tagline {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color-secondary);
}

/* --- Navigation --- */
.main-nav {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}
.main-nav a {
    font-weight: 400;
    padding: 0.5rem 0;
    color: var(--text-color-secondary);
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* --- Main Layout (Grid) --- */
.site-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .site-content {
        grid-template-columns: 2.5fr 1fr;
    }
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.intro-section, .page-content, .article-content {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
.article-content ul, .article-content ol {
    padding-left: 25px;
}
.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-color-secondary);
}
.article-content blockquote p {
    margin-bottom: 0;
}

/* --- Article Cards (Homepage) --- */
.articles-list .article-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.articles-list .article-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}
.articles-list .article-card h3 {
    margin-top: 0;
}
.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- Sidebar --- */
.sidebar .widget {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.sidebar .widget h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    font-size: 1.3rem;
}
.sidebar .widget ul {
    list-style: none;
    padding: 0;
}
.sidebar .widget ul li a {
    display: block;
    padding: 0.6rem 0;
    color: var(--text-color-secondary);
    border-bottom: 1px solid var(--border-color);
}
.sidebar .widget ul li:last-child a {
    border-bottom: none;
}
.promo-widget {
    background-color: var(--surface-color);
    color: var(--text-color-secondary);
    text-align: center;
}
.promo-widget a {
    color: var(--primary-color);
    font-weight: bold;
}

/* --- Article Page Specifics --- */
.article-header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}
.article-header h1 {
    font-size: 2.8rem;
}
.article-meta {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    margin-top: 0.5rem;
}

.cta-section {
    background-color: var(--background-color);
    border: 1px solid var(--primary-color);
    text-align: center;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin-top: 2.5rem;
}
.cta-section h2 {
    color: var(--text-color);
}
.cta-section .cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #000;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.cta-section .cta-button:hover {
    background-color: #dfcda4;
}

/* --- Footer --- */
.site-footer {
    background-color: #000;
    color: var(--text-color-secondary);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    h1, .article-header h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .site-content {
        gap: 2rem;
    }
    .intro-section, .page-content, .article-content, .articles-list .article-card, .sidebar .widget {
        padding: 1.5rem;
    }
    .main-nav ul {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
}