/* The Daily Chronicle - Vintage Newspaper Styling */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Old Standard TT', 'Libre Baskerville', 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #1a1a1a;
    /* Outer leathery background */
    background-color: #2b2115;
    padding: 20px;
}

/* Container */
.newspaper-container {
    max-width: 1200px;
    margin: 0 auto;
    /* Slightly warm paper tone */
    background-color: #f4ecd6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* Masthead */
.masthead {
    border-bottom: 3px solid #1a1a1a;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.masthead-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.masthead-left {
    flex: 1;
}

.slogan {
    font-size: 0.9em;
    font-style: italic;
    color: #555;
    border: 1px solid #1a1a1a;
    padding: 5px 10px;
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
}

.masthead-center {
    flex: 2;
    text-align: center;
}

.newspaper-name {
    font-size: 3.5em;
    font-weight: 400;
    font-style: normal;
    /* Masthead uses harbour-decor font from Adobe Fonts */
    font-family: "harbour-decor", sans-serif;
    color: #1a1a1a;
    margin: 0;
    text-transform: none;
}

.masthead-right {
    flex: 1;
    text-align: right;
}

.date {
    font-size: 1em;
    color: #555;
    font-family: 'Libre Baskerville', serif;
}

.masthead-bottom {
    text-align: center;
    font-size: 0.85em;
    color: #666;
    margin-top: 10px;
    font-family: 'Libre Baskerville', serif;
}

.volume, .number {
    margin: 0 10px;
}

/* About Blurb */
.about-blurb {
    text-align: center;
    margin: 20px 0 30px 0;
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background-color: rgba(255, 255, 255, 0.3);
}

.about-blurb p {
    font-size: 1.3em;
    color: #555;
    font-style: italic;
    font-weight: 400;
    font-family: 'IM Fell English', serif;
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Content */
.content {
    column-count: 3;
    column-gap: 30px;
    column-rule: 1px solid #ddd;
}

/* Articles */
.article {
    break-inside: avoid;
    margin-bottom: 25px;
    padding-bottom: 20px;
}

/* Major Story Banner Headlines */
.article-major {
    column-span: all;
    -webkit-column-span: all;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #1a1a1a;
    break-inside: avoid;
}

.headline-banner {
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #1a1a1a;
    /* Banner headlines: condensed, eye-catching */
    font-family: 'Cinzel', 'Prata', 'Old Standard TT', serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
}

.subheadline-banner {
    font-size: 1.6em;
    font-weight: 600;
    line-height: 1.3;
    margin: 10px 0;
    color: #2a2a2a;
    font-family: 'Cormorant Garamond', 'Libre Baskerville', serif;
    text-align: center;
    font-style: italic;
}

.subheadline-divider {
    border: none;
    border-top: 1px solid #666;
    width: 200px;
    margin: 8px auto;
}

/* Regular Article Headlines - Base Style */
.headline {
    font-size: 1.8em;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

/* Article Style Variations - Varied fonts and weights for visual interest */
.article-standard .headline {
    font-size: 1.8em;
    font-weight: 600;
    font-family: 'Libre Baskerville', 'Old Standard TT', 'Georgia', serif;
    letter-spacing: 0.02em;
}

.article-compact .headline {
    font-size: 1.5em;
    font-weight: 500;
    font-family: 'Cormorant Garamond', 'Libre Baskerville', serif;
    letter-spacing: 0.015em;
    font-style: normal;
}

.article-featured .headline {
    font-size: 2.2em;
    font-weight: 700;
    font-family: 'Cinzel', 'Prata', serif;
    letter-spacing: 0.03em;
}

/* Additional headline style variations for more diversity */
.article-standard:nth-of-type(3n+1) .headline {
    font-family: 'Old Standard TT', 'Libre Baskerville', serif;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.article-standard:nth-of-type(3n+2) .headline {
    font-family: 'Cormorant Garamond', 'Libre Baskerville', serif;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.article-standard:nth-of-type(3n) .headline {
    font-family: 'Libre Baskerville', 'Georgia', serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.article-compact:nth-of-type(2n+1) .headline {
    font-family: 'Old Standard TT', serif;
    font-weight: 600;
}

.article-compact:nth-of-type(2n) .headline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
}

.article-featured:nth-of-type(2n+1) .headline {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.article-featured:nth-of-type(2n) .headline {
    font-family: 'Prata', serif;
    font-weight: 600;
}

/* Minor / low‑notability stories: visually de‑emphasised */
.article-minor {
    font-size: 0.95em;
}

.article-minor .headline {
    font-size: 1.3em;
    font-weight: 500;
    font-family: 'Libre Baskerville', 'Old Standard TT', serif;
    text-transform: none; /* keep normal title case, not shouting */
    letter-spacing: 0.01em;
}

.article-minor .article-content {
    font-size: 0.95em;
}

.subheadline {
    font-size: 1.1em;
    font-weight: 500;
    font-style: italic;
    color: #444;
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: 'Cormorant Garamond', 'Libre Baskerville', serif;
    display: block;
}

.subheadline-divider-small {
    border: none;
    border-top: 1px solid #ccc;
    width: 150px;
    margin: 6px 0;
}

/* Section Breaks (for long articles) */
.section-break {
    font-size: 1em;
    font-weight: 700;
    text-align: center;
    margin: 20px 0 15px 0;
    color: #333;
    font-family: 'Prata', 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-style: normal;
    /* Keep a section heading with the following paragraph; avoid
       having a column end on the heading and continue in the next
       column, which looks very strange in print layout. */
    break-after: avoid-column;
    -webkit-column-break-after: avoid;
    break-inside: avoid-column;
}

/* Article Content */
.article-content {
    font-size: 1em;
    line-height: 1.7;
    text-align: justify;
    /* Make justification less visually extreme and avoid stretching the
       last line of each paragraph. Exact behaviour is browser‑dependent,
       but this combination is usually the least "gappy". */
    text-justify: inter-word;
    text-align-last: left;
    margin-bottom: 10px;
    /* Body copy prefers Old Standard TT to lean into the vintage feel */
    font-family: 'Old Standard TT', 'Libre Baskerville', 'Georgia', serif;
}

.article-content p {
    margin-bottom: 12px;
    text-indent: 0;
    /* Turn OFF automatic hyphenation; it was far too aggressive,
       especially in the two‑column feature article under the banner. */
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}

.article-major .article-content {
    font-size: 1.0em;
    column-count: 2;
    column-gap: 30px;
    column-rule: 1px solid #eee;
    /* For the inner two-column layout, use ragged-right instead of full
       justification; this dramatically reduces strange word spacing. */
    text-align: left;
    text-align-last: left;
}

.article-major .article-content p {
    margin-bottom: 14px;
}

.sources {
    font-size: 0.85em;
    color: #666;
    margin-top: 10px;
    font-style: italic;
    font-family: 'Libre Baskerville', serif;
}

.article-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
    break-inside: avoid;
}

/* Advertisement Notice - vintage style, text only */
.advertisement-notice {
    column-span: all;
    -webkit-column-span: all;
    margin-top: 35px;
    margin-bottom: 20px;
    break-inside: avoid;
}

.advertisement-notice-inner {
    max-width: 420px;
    margin: 0 auto;
    padding: 28px 36px;
    text-align: center;
    font-family: 'Libre Baskerville', 'Old Standard TT', Georgia, serif;
    /* Double-line vintage border */
    border: 2px solid #1a1a1a;
    outline: 1px solid #1a1a1a;
    outline-offset: 4px;
    background-color: rgba(255, 255, 255, 0.25);
}

.advertisement-headline {
    font-size: 1.35em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    font-family: 'Cinzel', 'Libre Baskerville', serif;
}

.advertisement-reach {
    font-size: 0.95em;
    font-style: italic;
    color: #444;
    margin: 0 0 14px 0;
    font-family: 'Cormorant Garamond', 'Libre Baskerville', serif;
}

.advertisement-contact {
    font-size: 0.8em;
    line-height: 1.5;
    color: #333;
    margin: 0;
    font-family: 'Old Standard TT', 'Libre Baskerville', serif;
}

.advertisement-contact strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* Footer */
.footer {
    border-top: 2px solid #1a1a1a;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

.disclaimer {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Libre Baskerville', serif;
}

.footer-info {
    font-size: 0.8em;
    color: #999;
    font-family: 'Libre Baskerville', serif;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content {
        column-count: 2;
    }
    
    .newspaper-name {
        font-size: 2.5em;
    }
    
    .headline-banner {
        font-size: 2.5em;
    }
    
    .article-major .article-content {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .newspaper-container {
        padding: 20px;
    }

    .advertisement-notice-inner {
        padding: 22px 24px;
        max-width: 100%;
    }

    .advertisement-headline {
        font-size: 1.15em;
    }
    
    .content {
        column-count: 1;
        column-rule: none;
    }
    
    .masthead-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .masthead-left,
    .masthead-right {
        flex: none;
        text-align: center;
        margin: 10px 0;
    }
    
    .newspaper-name {
        font-size: 2em;
    }
    
    .headline-banner {
        font-size: 2em;
    }
    
    .headline {
        font-size: 1.5em;
    }
    
    .article-major {
        column-span: none;
    }
    
    .article-major .article-content {
        column-count: 1;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        padding: 0;
    }
    
    .newspaper-container {
        box-shadow: none;
        padding: 20px;
    }
    
    .article-divider {
        page-break-inside: avoid;
    }
    
    .article-major {
        page-break-inside: avoid;
    }

    .advertisement-notice {
        page-break-inside: avoid;
    }
}
