/* economics.day - Vintage Newspaper Layout */
/* Fonts: Playfair Display, Lora, Inter */
/* Colors: #fdf6e3 #1a1a1a #000000 #c4b69c #666666 #8b4513 #333333 */

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

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

body {
    background-color: #fdf6e3;
    color: #1a1a1a;
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.65;
    min-height: 100vh;
}

/* ===================== RULES ===================== */

.rule {
    display: block;
    width: 100%;
}

.rule-thin {
    border: none;
    border-top: 1px solid #c4b69c;
}

.rule-double {
    border: none;
    border-top: 3px double #1a1a1a;
}

/* ===================== MASTHEAD ===================== */

#masthead {
    padding: 20px 40px 0;
    max-width: 1100px;
    margin: 0 auto;
}

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

.masthead-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}

.edition-label {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #666666;
}

.weather-indicator {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.weather-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #c4b69c 30%, transparent 70%);
    border: 1.5px solid #c4b69c;
    position: relative;
}

.weather-icon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: repeating-conic-gradient(#c4b69c 0deg 2deg, transparent 2deg 30deg);
    border-radius: 50%;
    opacity: 0.5;
}

.masthead-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 72px;
    line-height: 1;
    color: #000000;
    letter-spacing: -1px;
    padding: 16px 0;
    opacity: 0;
    animation: fadeInMasthead 1s ease forwards;
}

@keyframes fadeInMasthead {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.masthead-meta {
    padding: 10px 0;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #666666;
    letter-spacing: 0.5px;
}

.meta-separator {
    margin: 0 10px;
    color: #c4b69c;
}

.meta-date,
.meta-edition,
.meta-motto {
    display: inline;
}

/* ===================== MAIN CONTENT ===================== */

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

/* ===================== LEAD ARTICLE ===================== */

.lead-article {
    padding-top: 36px;
}

.lead-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 42px;
    line-height: 1.15;
    color: #000000;
    text-align: center;
    max-width: 860px;
    margin: 0 auto 16px;
    opacity: 0;
    animation: fadeInHeadline 0.8s 0.3s ease forwards;
}

@keyframes fadeInHeadline {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lead-byline,
.article-byline,
.opinion-byline {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #666666;
    text-align: center;
    margin-bottom: 24px;
}

.byline-author {
    font-weight: 500;
}

.byline-separator {
    margin: 0 6px;
    color: #c4b69c;
}

.byline-role {
    font-style: italic;
    font-weight: 400;
}

/* ===================== COLUMNS ===================== */

.columns-three {
    column-count: 3;
    column-gap: 32px;
    column-rule: 1px solid #c4b69c;
}

.columns-two {
    column-count: 2;
    column-gap: 32px;
    column-rule: 1px solid #c4b69c;
}

.columns-three p,
.columns-two p {
    font-family: 'Lora', Georgia, serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    color: #1a1a1a;
    margin-bottom: 14px;
    text-align: justify;
    hyphens: auto;
}

/* ===================== DROP CAP ===================== */

.drop-cap-paragraph::first-letter {
    float: left;
    font-size: 60px;
    line-height: 1;
    padding-right: 8px;
    padding-top: 4px;
    color: #8b4513;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
}

/* ===================== SECTION ORNAMENT ===================== */

.section-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
}

.ornament-rule {
    display: block;
    flex: 1;
    height: 1px;
    background-color: #c4b69c;
}

.ornament-dot {
    color: #c4b69c;
    font-size: 18px;
    line-height: 1;
}

/* ===================== SECTION HEADERS ===================== */

.section-header {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #8b4513;
    border-bottom: 1px solid #c4b69c;
    padding-bottom: 8px;
    margin-bottom: 24px;
}

/* ===================== CONTENT SECTIONS ===================== */

.section-block {
    margin-bottom: 48px;
}

.article-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.2;
    color: #000000;
    margin-bottom: 8px;
    column-span: all;
}

.article-byline {
    text-align: left;
    column-span: all;
    margin-bottom: 16px;
}

/* ===================== PULL QUOTES ===================== */

.pull-quote {
    column-span: all;
    text-align: center;
    padding: 24px 40px;
    margin: 20px 0;
    border-top: 1px solid #c4b69c;
    border-bottom: 1px solid #c4b69c;
}

.pull-quote p {
    font-family: 'Lora', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    color: #333333;
    margin-bottom: 8px;
}

.pull-quote cite {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    color: #666666;
    letter-spacing: 0.5px;
}

/* ===================== OPINION SECTION ===================== */

.opinion-section {
    max-width: 700px;
    margin: 0 auto;
}

.opinion-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    color: #000000;
    margin-bottom: 10px;
}

.opinion-byline {
    text-align: left;
    margin-bottom: 20px;
}

.opinion-body p {
    font-family: 'Lora', Georgia, serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-align: justify;
    hyphens: auto;
}

.opinion-body .pull-quote {
    margin: 28px -40px;
}

.opinion-body .pull-quote p {
    font-size: 24px;
    color: #333333;
}

/* ===================== BACK PAGE ===================== */

.back-page {
    padding-top: 0;
}

.brief-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}

.brief-item {
    border-left: 2px solid #c4b69c;
    padding-left: 16px;
}

.brief-headline {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8b4513;
    margin-bottom: 6px;
}

.brief-item p {
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    line-height: 1.55;
    color: #1a1a1a;
}

/* ===================== BACK PAGE FOOTER ===================== */

.back-page-footer {
    margin-top: 48px;
    text-align: center;
}

.back-page-footer .rule-thin {
    margin-bottom: 20px;
}

.footer-masthead {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 28px;
    color: #000000;
    margin-bottom: 10px;
}

.footer-meta {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 11px;
    color: #666666;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.footer-copyright {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 10px;
    color: #666666;
    margin-bottom: 16px;
}

/* ===================== SCROLL REVEAL ===================== */

.section-block,
.opinion-article,
.brief-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-block.revealed,
.opinion-article.revealed,
.brief-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 900px) {
    .columns-three {
        column-count: 2;
    }

    .masthead-title {
        font-size: 52px;
    }

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

    .brief-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    #masthead {
        padding: 16px 20px 0;
    }

    main {
        padding: 0 20px 40px;
    }

    .masthead-title {
        font-size: 38px;
    }

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

    .columns-three,
    .columns-two {
        column-count: 1;
    }

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

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

    .opinion-body .pull-quote {
        margin: 20px 0;
    }

    .pull-quote {
        padding: 20px 16px;
    }

    .pull-quote p {
        font-size: 18px;
    }

    .opinion-body .pull-quote p {
        font-size: 20px;
    }

    .drop-cap-paragraph::first-letter {
        font-size: 48px;
    }
}
