/* ===================================================
   historic.day — Vintage Newspaper Stylesheet
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: #f5edd6;
    color: #1a1a1a;
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- SECTION 1: MASTHEAD --- */
#masthead {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
    max-width: 960px;
    margin: 0 auto;
}

.masthead-inner {
    text-align: center;
}

.masthead-rule-top {
    border-top: 3px double #333333;
    margin-bottom: 4px;
    border-bottom: 1px solid #333333;
    height: 0;
    padding-bottom: 4px;
}

.masthead-content {
    padding: 32px 0 16px 0;
}

.masthead-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 72px;
    letter-spacing: 12px;
    color: #0a0a0a;
    line-height: 1;
    text-transform: uppercase;
}

.masthead-subtitle {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 16px;
    color: #333333;
    margin-top: 8px;
    letter-spacing: 2px;
}

.masthead-rule-bottom {
    border-top: 1px solid #333333;
    margin-top: 0;
    margin-bottom: 12px;
}

.edition-line {
    font-family: 'Roboto', Helvetica, sans-serif;
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #333333;
    text-align: center;
    padding: 4px 0;
}

.edition-separator {
    margin: 0 8px;
}

.masthead-thin-rule {
    border-top: 1px solid #333333;
    margin-top: 12px;
}

/* --- Masthead Intro Columns --- */
.masthead-intro {
    margin-top: 48px;
}

.intro-columns {
    column-count: 3;
    column-gap: 24px;
    column-rule: 1px solid #c4b89a;
    text-align: justify;
    font-size: 15px;
    line-height: 1.7;
}

.intro-columns p {
    margin-bottom: 12px;
}

.drop-cap::first-letter {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 56px;
    float: left;
    line-height: 0.8;
    margin-right: 6px;
    margin-top: 4px;
    color: #0a0a0a;
}

/* --- SECTION 2: HEADLINES & COLUMNS --- */
#headlines {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px 60px 40px;
}

.section-rule {
    border-top: 3px double #333333;
    margin-bottom: 8px;
}

.section-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 48px;
    color: #0a0a0a;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 8px;
}

.section-rule-thin {
    border-top: 1px solid #333333;
    margin-bottom: 40px;
}

/* --- Article Block --- */
.article-block {
    margin-bottom: 48px;
}

.article-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 30px;
    color: #0a0a0a;
    line-height: 1.2;
    margin-bottom: 16px;
    border-bottom: 1px solid #c4b89a;
    padding-bottom: 8px;
}

.accent-headline {
    color: #8b0000;
}

.article-columns {
    column-count: 2;
    column-gap: 24px;
    column-rule: 1px solid #c4b89a;
    text-align: justify;
    font-size: 15px;
    line-height: 1.7;
}

.article-columns p {
    margin-bottom: 12px;
}

.dateline {
    font-family: 'Roboto', Helvetica, sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333333;
}

/* --- Crosshatch Illustration Block --- */
.crosshatch-illustration {
    width: 100%;
    height: 120px;
    background-color: #1a1a1a;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}

.crosshatch-illustration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 4px,
            rgba(245, 237, 214, 0.08) 4px,
            rgba(245, 237, 214, 0.08) 5px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 4px,
            rgba(245, 237, 214, 0.08) 4px,
            rgba(245, 237, 214, 0.08) 5px
        );
}

.crosshatch-illustration::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 8px,
            rgba(245, 237, 214, 0.04) 8px,
            rgba(245, 237, 214, 0.04) 9px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 8px,
            rgba(245, 237, 214, 0.04) 8px,
            rgba(245, 237, 214, 0.04) 9px
        );
}

/* --- SECTION 3: FEATURE --- */
#feature {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px 60px 40px;
}

.feature-rule {
    border-top: 3px double #333333;
    margin-bottom: 4px;
    border-bottom: 1px solid #333333;
    padding-bottom: 4px;
}

.feature-content {
    padding: 40px 0;
}

.feature-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 52px;
    color: #0a0a0a;
    text-align: center;
    line-height: 1.15;
    margin-bottom: 12px;
}

.feature-subhead {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    color: #333333;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.5;
}

.feature-columns {
    column-count: 3;
    column-gap: 24px;
    column-rule: 1px solid #c4b89a;
    text-align: justify;
    font-size: 15px;
    line-height: 1.7;
}

.feature-columns p {
    margin-bottom: 12px;
}

/* --- SECTION 4: CLASSIFIEDS --- */
#classifieds {
    background-color: #e8dcc6;
    padding: 40px 40px 32px 40px;
}

.classifieds-header {
    max-width: 960px;
    margin: 0 auto 24px auto;
    text-align: center;
}

.classifieds-rule {
    border-top: 3px double #333333;
    margin-bottom: 8px;
}

.classifieds-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: 6px;
    color: #0a0a0a;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.classifieds-rule-thin {
    border-top: 1px solid #333333;
}

.classifieds-columns {
    max-width: 960px;
    margin: 24px auto;
    column-count: 3;
    column-gap: 20px;
    column-rule: 1px solid #c4b89a;
}

.classified-item {
    break-inside: avoid;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dotted #c4b89a;
}

.classified-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    color: #0a0a0a;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.classified-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 12px;
    line-height: 1.5;
    color: #1a1a1a;
    text-align: justify;
}

.classifieds-footer {
    max-width: 960px;
    margin: 24px auto 0 auto;
    text-align: center;
}

.footer-note {
    font-family: 'Lora', Georgia, serif;
    font-size: 11px;
    font-style: italic;
    color: #333333;
    line-height: 1.6;
    margin-top: 16px;
}

.footer-colophon {
    font-family: 'Roboto', Helvetica, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #333333;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #333333;
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .masthead-title {
        font-size: 40px;
        letter-spacing: 6px;
    }

    .intro-columns,
    .feature-columns {
        column-count: 1;
    }

    .article-columns {
        column-count: 1;
    }

    .classifieds-columns {
        column-count: 2;
    }

    .section-headline {
        font-size: 32px;
    }

    .feature-headline {
        font-size: 34px;
    }

    #masthead {
        padding: 40px 20px;
    }

    #headlines,
    #feature {
        padding: 0 20px 40px 20px;
    }

    #classifieds {
        padding: 30px 20px 24px 20px;
    }

    .edition-line {
        font-size: 10px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .masthead-title {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .classifieds-columns {
        column-count: 1;
    }

    .section-headline {
        font-size: 26px;
    }

    .feature-headline {
        font-size: 26px;
    }

    .article-headline {
        font-size: 22px;
    }
}
