/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', 'Times New Roman', serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #f5f5f5;
    background-image: 
        radial-gradient(circle at 25% 25%, #f8f8f8 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, #f0f0f0 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Header Styles */
.newspaper-header {
    background: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%);
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 3px double #666;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-line {
    height: 2px;
    background: linear-gradient(to right, transparent, #666, transparent);
    margin: 1rem auto;
    width: 80%;
}

.masthead {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 1rem 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 2px;
}

.subhead {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.date-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Main Content */
.newspaper-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Main Story */
.main-story {
    border-bottom: 2px solid #ddd;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.headline {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-align: center;
}

.byline {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.lead-paragraph {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-indent: 2rem;
}

.article-body p {
    margin-bottom: 1rem;
    text-indent: 2rem;
    text-align: justify;
    color: #444;
}

.article-body strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Columns Layout */
.columns {
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.column {
    border-right: 1px solid #ddd;
    padding-right: 1.5rem;
}

.column:last-child {
    border-right: none;
    padding-right: 0;
}

/* Story Styles */
.story {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.story:last-child {
    border-bottom: none;
}

.story h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.dateline {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.story p {
    text-align: justify;
    color: #444;
    margin-bottom: 0.8rem;
}

/* Sidebar Boxes */
.info-box, .advertisement, .weather-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.info-box h4, .advertisement h4, .weather-box h4 {
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
}

.contact-details p {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: #555;
}

.advertisement ul {
    list-style: none;
    padding: 0;
}

.advertisement li {
    margin-bottom: 0.3rem;
    color: #555;
    font-size: 0.9rem;
}

.ad-note {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 0.8rem;
    font-size: 0.85rem;
}

.weather-box p {
    margin-bottom: 0.3rem;
    color: #555;
    font-size: 0.9rem;
}

/* Bottom Stories */
.bottom-stories {
    border-top: 2px solid #ddd;
    padding-top: 2rem;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.brief {
    padding: 1rem;
    background: #f9f9f9;
    border-left: 3px solid #666;
}

.brief h4 {
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.brief p {
    color: #555;
    font-size: 0.9rem;
    text-align: justify;
}

/* Footer */
.newspaper-footer {
    background: linear-gradient(to bottom, #f8f8f8 0%, #eee 100%);
    padding: 1.5rem;
    text-align: center;
    border-top: 3px double #666;
    margin-top: 2rem;
}

.footer-line {
    height: 1px;
    background: linear-gradient(to right, transparent, #999, transparent);
    margin: 0.8rem auto;
    width: 60%;
}

.footer-text {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-note {
    color: #777;
    font-size: 0.8rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .columns {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .column:nth-child(3) {
        grid-column: 1 / -1;
        border-right: none;
        padding-right: 0;
        border-top: 1px solid #ddd;
        padding-top: 1.5rem;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .masthead {
        font-size: 2.5rem;
    }
    
    .headline {
        font-size: 1.8rem;
    }
    
    .columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .column {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #ddd;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .column:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .date-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .newspaper-content {
        padding: 1rem 0.5rem;
    }
    
    .masthead {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .headline {
        font-size: 1.5rem;
    }
    
    .lead-paragraph, .article-body p {
        text-indent: 1rem;
    }
    
    .info-box, .advertisement, .weather-box {
        padding: 0.8rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .newspaper-content {
        box-shadow: none;
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .columns {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .info-box, .advertisement, .weather-box {
        background: white;
        border: 1px solid #000;
    }
}

/* Typography Enhancement */
h1, h2, h3, h4 {
    font-feature-settings: "liga" 1, "dlig" 1;
}

p {
    hyphens: auto;
    word-break: break-word;
}

/* Subtle Animations */
.story:hover {
    background-color: #fafafa;
    transition: background-color 0.3s ease;
}

.info-box:hover, .advertisement:hover, .weather-box:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
} 