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

:root {
    --heading-font: 'Roboto Slab', serif;
    --body-font: 'Merriweather', serif;
    --background-color: #fdf6e3; /* Solarized Light background */
    --surface-color: #eee8d5; /* Solarized Light base */
    --text-color: #586e75; /* Solarized text */
    --headline-color: #073642; /* Solarized headline */
    --accent-color: #b58900; /* Solarized yellow */
    --border-color: #93a1a1;
    --container-width: 1100px;
    --shadow-color: rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
    color: var(--text-color);
    line-height: 1.8;
    font-size: 17px;
}

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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: sepia(0.2) contrast(0.9);
}

/* Header */
.site-header {
    background-color: var(--surface-color);
    padding: 30px 0;
    text-align: center;
    border-bottom: 2px double var(--border-color);
}

.site-title {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--headline-color);
    letter-spacing: 1px;
}

.site-tagline {
    font-family: var(--body-font);
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.main-nav a {
    color: var(--text-color);
    font-family: var(--heading-font);
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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


/* Main Content */
main {
    padding: 40px 0;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--headline-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Featured Article */
.featured-article article {
    background: var(--surface-color);
    margin-bottom: 40px;
    box-shadow: 0 2px 5px var(--shadow-color);
    border: 1px solid #ddd;
}

.featured-article .article-content {
    padding: 30px;
}

.featured-article h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 700;
}

.featured-article h2 a {
    color: var(--headline-color);
}

.featured-article p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.category-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--heading-font);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.read-more {
    font-weight: 700;
    font-family: var(--heading-font);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.grid-item {
    background: var(--surface-color);
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px var(--shadow-color);
    transition: box-shadow 0.3s ease;
}

.grid-item:hover {
    box-shadow: 0 4px 10px var(--shadow-color);
}

.grid-item .article-content {
    padding: 20px;
    flex-grow: 1;
}

.grid-item h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 700;
}

.grid-item h3 a {
    color: var(--headline-color);
}


/* Footer */
.site-footer {
    background-color: #073642; /* Solarized dark base */
    color: var(--surface-color);
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 2px solid var(--accent-color);
    font-size: 0.9rem;
}

/* Article & Category Pages */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px double var(--border-color);
}
.page-header h1 {
    font-family: var(--heading-font);
    font-size: 3rem;
    font-weight: 700;
    color: var(--headline-color);
}

.article-page-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
}

.article-content-main {
    background-color: var(--surface-color);
    padding: 40px;
    border: 1px solid #ddd;
}

.article-header h1 {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--headline-color);
}

.article-meta {
    color: #888;
    margin-bottom: 25px;
    font-size: 0.9rem;
    font-style: italic;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.article-meta span {
    margin-right: 15px;
}

.article-content-main p {
    margin-bottom: 1.5em;
}

.article-content-main p:first-of-type::first-letter {
    float: left;
    font-size: 4em;
    line-height: 0.8em;
    padding-right: 0.1em;
    font-family: var(--heading-font);
    color: var(--headline-color);
}

.article-content-main h2 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
    color: var(--headline-color);
}

.article-content-main h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 700;
    color: var(--headline-color);
}

/* Sidebar */
.sidebar-widget {
    background-color: var(--surface-color);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
}

.sidebar-widget h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--headline-color);
}

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

.sidebar-widget ul li {
    margin-bottom: 15px;
    border-bottom: 1px dotted var(--border-color);
    padding-bottom: 10px;
}
.sidebar-widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-widget p {
    font-style: italic;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 992px) {
    .article-page-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2.5rem;
    }
    .main-nav ul {
        gap: 15px;
    }
    .page-header h1, .article-header h1 {
        font-size: 2.2rem;
    }
}
