/* Base Reset & Variables */
:root {
    --bg-color: #f4f1ea; /* slightly off-white, paper-like */
    --text-color: #1a1a1a;
    --border-color: #222;
    --font-headline: 'Playfair Display', serif;
    --font-body: 'Merriweather', serif;
    --font-masthead: 'Playfair Display', serif; /* fallback if Chomsky fails */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    padding: 20px;
    background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png'); /* Subtle paper texture */
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: #8b0000;
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Container */
.newspaper-container {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    padding: 20px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.05);
}

/* Masthead */
.masthead {
    text-align: center;
    border-bottom: 4px double var(--border-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 5px 0;
    font-size: 0.85rem;
    font-family: var(--font-headline);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newspaper-title {
    font-family: var(--font-masthead);
    font-size: 5rem;
    font-weight: 900;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: -2px;
}

/* Custom font for Masthead if we want that real classic look */
@font-face {
    font-family: 'Chomsky';
    src: url('https://themes.googleusercontent.com/static/fonts/chomsky/v1/chomsky.woff2') format('woff2');
}
.newspaper-title {
    font-family: 'Chomsky', 'Playfair Display', serif;
}


.bottom-bar {
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    padding: 10px 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-headline);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #8b0000;
}

/* Main Layout Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Typography elements */
.headline {
    font-family: var(--font-headline);
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.sub-headline {
    font-family: var(--font-headline);
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 700;
}

.article-meta {
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    display: inline-block;
}

.author-name {
    font-weight: bold;
    text-transform: uppercase;
}

.article-content p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Drop Cap */
.drop-cap {
    float: left;
    font-size: 5rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 3px;
    font-family: var(--font-headline);
    font-weight: 900;
}

/* Multi-column for lead story */
.multi-col {
    column-count: 2;
    column-gap: 30px;
    column-rule: 1px solid #ccc;
}

/* Grid Area Assignments */
.lead-story {
    grid-column: 1 / 3;
    border-right: 1px solid var(--border-color);
    padding-right: 30px;
}

.secondary-story {
    grid-column: 1 / 2;
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

.sidebar {
    grid-column: 3 / 4;
}

/* Sidebar Styling */
.ad-space {
    border: 3px solid var(--border-color);
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.03) 10px,
        rgba(0,0,0,0.03) 20px
    );
}

.ad-space h3 {
    font-family: var(--font-headline);
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.briefs {
    border-top: 4px double var(--border-color);
    padding-top: 15px;
}

.briefs-title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
}

.briefs-list {
    list-style: none;
}

.briefs-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
    font-size: 0.95rem;
}

.briefs-list li:last-child {
    border-bottom: none;
}

/* Footer */
.newspaper-footer {
    text-align: center;
    border-top: 4px double var(--border-color);
    padding-top: 20px;
    font-size: 0.9rem;
    font-family: var(--font-headline);
    text-transform: uppercase;
}

/* Images */
.article-image {
    display: block;
    max-width: 100%;
    border: 2px solid var(--border-color);
    padding: 3px;
    background: #fff;
    margin-bottom: 15px;
    filter: grayscale(100%) contrast(120%) sepia(20%); /* Vintage newspaper look */
}

.inline-image {
    width: 100%;
    margin-bottom: 20px;
}

.full-width-image {
    width: 100%;
    margin-bottom: 15px;
}

/* Social Links */
.social-links {
    list-style: none;
    text-align: left;
    margin-top: 15px;
}

.social-links li {
    margin-bottom: 10px;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-headline);
    font-weight: 700;
    transition: color 0.2s;
    border-bottom: 1px dashed var(--text-color);
}

.social-links a:hover {
    color: #8b0000;
    border-bottom-color: #8b0000;
}

/* Responsive Design */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .lead-story {
        grid-column: 1 / -1;
        border-right: none;
        padding-right: 0;
    }
    
    .secondary-story {
        grid-column: 1 / -1;
    }
    
    .sidebar {
        grid-column: 1 / -1;
        border-top: 2px solid var(--border-color);
        padding-top: 20px;
    }
    
    .newspaper-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 600px) {
    .multi-col {
        column-count: 1;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 5px;
    }
    
    .newspaper-title {
        font-size: 2.5rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
}
