:root {
    --bg-paper: #f4f1ea;
    --bg-section: #ffffff;
    --text-primary: #2c2c2c;
    --text-secondary: #4a4a4a;
    --text-muted: #666;
    --accent-primary: #8b0000; /* Dark red */
    --accent-secondary: #1a3c5e; /* Navy blue */
    --border-color: #dcdcdc;
    --border-dark: #333;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Merriweather', 'Times New Roman', serif;
    --font-sans: 'Roboto', Helvetica, Arial, sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-paper);
    color: var(--text-primary);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.masthead {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 3px double var(--text-primary);
    background-color: var(--bg-section);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.masthead-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin: 0;
    line-height: 1;
}

.masthead-date {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    display: inline-block;
}

.newspaper-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-section);
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    font-family: var(--font-sans);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.newspaper-nav a {
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
}

.newspaper-nav a:hover, .newspaper-nav a.active {
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 20px;
    background-color: var(--bg-section);
    box-shadow: var(--shadow-md);
}

.section-label {
    font-family: var(--font-sans);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 0.25rem;
    margin-bottom: 1.5rem;
    color: var(--accent-secondary);
}

/* Top Stories Layout */
.top-stories-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .top-stories-layout {
        grid-template-columns: 1fr;
    }
    
    .lead-story-column {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0 !important;
        padding-bottom: 2rem;
    }
}

.lead-story-column {
    border-right: 1px solid var(--border-color);
    padding-right: 2rem;
}

.hero-article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 1rem;
    filter: sepia(10%);
}

.hero-article-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-article-title a {
    text-decoration: none;
    color: var(--text-primary);
}

.hero-article-title a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.hero-article-meta {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.article-category-badge {
    background-color: var(--text-primary);
    color: white;
    padding: 2px 6px;
    font-weight: bold;
}

.hero-article-summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-article-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--text-primary);
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.hero-article-btn:hover {
    background-color: var(--text-primary);
    color: white;
}

.secondary-stories-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sub-lead-article {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.sub-lead-article:last-child {
    border-bottom: none;
}

.sub-lead-content {
    flex: 1;
}

.sub-lead-image {
    width: 100px;
    height: 75px;
    flex-shrink: 0;
}

.sub-lead-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-source-tiny {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--accent-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.sub-lead-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
}

.sub-lead-title a {
    text-decoration: none;
    color: var(--text-primary);
}

.sub-lead-title a:hover {
    color: var(--accent-primary);
}

.sub-lead-meta {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Section Content Columns */
.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .section-content {
        grid-template-columns: 1fr;
    }
}

.article-list-compact {
    display: flex;
    flex-direction: column;
}

.newspaper-list-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px dotted var(--border-color);
}

.newspaper-list-item:first-child {
    padding-top: 0;
}

.list-item-image {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
}

.list-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1.3;
    margin: 0 0 0.25rem 0;
    font-weight: bold;
}

.list-item-title a {
    text-decoration: none;
    color: var(--text-primary);
}

.list-item-title a:hover {
    text-decoration: underline;
}

.list-item-meta {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Footer & Other */
.section-divider {
    border-top: 1px solid var(--text-primary);
    margin: 2rem 0;
}

.weather-widget {
    background-color: #f9f9f9;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    font-family: var(--font-sans);
}

.weather-widget-content {
    font-size: 1.5rem;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--text-primary);
    color: white;
    margin-top: 3rem;
    font-family: var(--font-sans);
}

.quote-box {
    border: 3px double var(--border-color);
    padding: 2rem;
    text-align: center;
    font-family: var(--font-heading);
    font-style: italic;
    background-color: #fafafa;
    margin: 2rem 0;
}

.quote-box-text {
    font-size: 1.5rem;
}

/* More News - Featured */
.section-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .section-featured {
        grid-template-columns: 1fr;
    }
}

.article-card-featured {
    border: 1px solid var(--border-color);
    padding: 1rem;
}

.article-card-featured-image {
    width: 100%;
    height: 150px;
    margin-bottom: 1rem;
}

.article-card-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-featured-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.article-card-featured-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.article-card-featured-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Archive Grid (used in footer mostly or index) */
.article-grid-newspaper {
    display: none; /* Hide the full index list on home to keep it clean, or style it minimal */
}

/* Article Detail Styles */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-section);
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.article-detail h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-detail .meta {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.article-detail .content {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-detail .content p {
    margin-bottom: 1.5rem;
}

.article-detail img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

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

.article-card {
    background-color: var(--bg-section);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: sepia(10%);
}

.article-card h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    padding: 1rem 1rem 0.5rem;
    margin: 0;
}

.article-card h2 a {
    text-decoration: none;
    color: var(--text-primary);
}

.article-card h2 a:hover {
    color: var(--accent-primary);
}

.article-card .description {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.article-card .meta {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    background-color: #fafafa;
}

/* Filter Bar for Archive */
.filter-bar {
    background-color: var(--bg-section);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--text-primary);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.btn-primary:hover {
    background-color: var(--accent-primary);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    font-family: var(--font-sans);
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: white;
}