/* diplomatic.day — Typographic Focus News
   Palette: #F7F3ED #1A1A1A #C5BFB4 #2B5797 #C1272D #EDE8DD #6B6B6B #E8E2D6
*/

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

body {
    background-color: #F7F3ED;
    color: #1A1A1A;
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-size: 16.5px;
    line-height: 1.65;
}

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Rules */
.rule-heavy {
    height: 3px;
    background: #1A1A1A;
}

.rule-standard {
    height: 1px;
    background: #C5BFB4;
}

.rule-hairline {
    height: 0.5px;
    background: #C5BFB4;
}

.section-rule {
    margin: 40px 0;
    height: 1px;
    background: #C5BFB4;
}

/* Masthead */
#masthead {
    text-align: center;
    padding: 20px 0 24px;
}

.masthead-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.02em;
    color: #1A1A1A;
    margin: 16px 0 12px;
}

.masthead-meta {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: #6B6B6B;
    margin-bottom: 16px;
}

.edition-divider {
    margin: 0 12px;
    color: #C5BFB4;
}

.edition-label {
    font-style: italic;
}

/* Lead Story */
#lead-story {
    padding: 32px 0;
}

.lead-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    color: #1A1A1A;
    margin-bottom: 16px;
}

.lead-byline {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #6B6B6B;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
}

.byline-author {
    color: #2B5797;
}

.two-column {
    column-count: 2;
    column-gap: 2.5vw;
    column-rule: 0.5px solid #C5BFB4;
}

.two-column p {
    margin-bottom: 16px;
}

/* Drop Cap */
.drop-cap {
    float: left;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 4em;
    line-height: 0.85;
    margin-right: 0.15em;
    margin-top: 0.05em;
    color: #2B5797;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.drop-cap.visible {
    opacity: 1;
}

/* Secondary Stories */
.story-columns {
    display: flex;
    gap: 0;
}

.column-story {
    flex: 1;
    padding: 0 20px;
}

.column-story:first-child {
    padding-left: 0;
}

.column-story:last-child {
    padding-right: 0;
}

.column-rule {
    width: 0.5px;
    background: #C5BFB4;
    flex-shrink: 0;
}

.secondary-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    line-height: 1.25;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.story-byline {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #C1272D;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.story-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1A1A1A;
}

/* Analysis */
#analysis {
    padding: 20px 0;
}

.section-label {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: #C1272D;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.analysis-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.2;
    color: #1A1A1A;
    margin-bottom: 24px;
}

.analysis-text {
    max-width: 700px;
}

.analysis-text p {
    margin-bottom: 20px;
}

/* Pull Quote */
.pull-quote {
    position: relative;
    margin: 40px 0;
    padding-left: 40px;
}

.quote-mark {
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: #C5BFB4;
    opacity: 0.4;
    line-height: 1;
    pointer-events: none;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.4;
    color: #1A1A1A;
    border: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.quote-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: #2B5797;
    transition: width 0.8s ease;
}

.quote-text.underline-drawn::after {
    width: 100%;
}

/* Colophon */
#colophon {
    text-align: center;
    padding: 40px 0 20px;
}

.colophon-text {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #6B6B6B;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

/* Print Stylesheet */
@media print {
    body {
        background-color: white;
        color: black;
    }

    .page-container {
        max-width: 100%;
        padding: 0;
    }

    .section-rule,
    .rule-standard,
    .rule-heavy {
        background: black;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .story-columns {
        flex-wrap: wrap;
    }

    .column-story {
        flex: 1 1 45%;
        padding: 0 16px 24px;
    }

    .column-rule:last-of-type {
        display: none;
    }
}

@media (max-width: 768px) {
    .two-column {
        column-count: 1;
    }

    .story-columns {
        flex-direction: column;
    }

    .column-story {
        padding: 0 0 24px;
    }

    .column-rule {
        width: 100%;
        height: 0.5px;
        margin: 16px 0;
    }

    .page-container {
        padding: 20px 16px;
    }
}
