/* diplomacy.day - Typographic Focus News */
/* Palette: #ffffff, #111111, #000000, #cccccc, #b91c1c, #666666 */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: #ffffff;
    color: #111111;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.masthead {
    padding: 0;
    position: relative;
}

.masthead-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 24px 0;
    text-align: center;
}

.masthead-top-rule {
    width: 100%;
    height: 3px;
    background: #000000;
    margin-bottom: 1.5rem;
}

.masthead-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.masthead-left-meta,
.masthead-right-meta {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    color: #666666;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
    position: relative;
    top: -2px;
}

.masthead-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #000000;
    letter-spacing: 0.15em;
    line-height: 1;
    white-space: nowrap;
}

.dateline {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: #666666;
    margin-top: 0.35rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.04em;
}

.double-rule {
    max-width: 720px;
    margin: 0 auto;
    height: 0;
    border: none;
    border-top: 1px solid #cccccc;
    box-shadow: 0 4px 0 #ffffff, 0 5px 0 #cccccc;
    padding-bottom: 5px;
}

/* ===========================
   CONTENT COLUMN
   =========================== */

.content-col {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 24px 5rem;
}

/* ===========================
   STORIES
   =========================== */

.story {
    margin-bottom: 0.5rem;
}

.headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    color: #000000;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.lead-headline {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.byline {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: #666666;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.byline-sep {
    margin: 0 0.3rem;
    color: #cccccc;
}

.byline-time {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
}

.body-text {
    font-size: 0.95rem;
    color: #111111;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.body-text:last-child {
    margin-bottom: 0;
}

/* Drop Cap */
.drop-cap::first-letter {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    margin-right: 0.08em;
    margin-top: 0.07em;
    color: #000000;
}

/* Lead Story */
.lead-story {
    padding-bottom: 0.5rem;
}

.lead-body {
    columns: 2;
    column-gap: 2rem;
    column-rule: 1px solid #cccccc;
}

/* ===========================
   STORY RULE
   =========================== */

.story-rule {
    border: none;
    border-top: 1px solid #cccccc;
    margin: 2rem 0;
}

/* ===========================
   BREAKING BANNER
   =========================== */

.breaking-banner {
    background: #111111;
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.breaking-banner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #b91c1c;
}

.breaking-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b91c1c;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.breaking-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    color: #b91c1c;
    letter-spacing: 0.15em;
    flex-shrink: 0;
    text-transform: uppercase;
}

.breaking-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.5;
}

/* ===========================
   TWO COLUMN LAYOUT
   =========================== */

.two-col {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 0;
}

.main-stories {
    padding-right: 2rem;
    border-right: 1px solid #cccccc;
}

.sidebar {
    padding-left: 2rem;
}

.sidebar-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #000000;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #000000;
}

.brief {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #cccccc;
}

.brief:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.brief-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #000000;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.brief-text {
    font-size: 0.75rem;
    color: #666666;
    line-height: 1.6;
}

/* ===========================
   ANALYSIS / PULL QUOTE
   =========================== */

.section-label {
    display: inline-block;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    color: #b91c1c;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid #b91c1c;
}

.analysis-headline {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.15;
}

.pull-quote {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    color: #000000;
    line-height: 1.55;
    padding: 2rem 0;
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    margin: 1.5rem 0 2rem;
    text-align: center;
    position: relative;
}

.quote-mark {
    color: #b91c1c;
    font-size: 1.3em;
}

/* ===========================
   EDITION CLOSE
   =========================== */

.edition-close {
    text-align: center;
    padding: 3rem 0 1rem;
}

.close-rule {
    width: 60px;
    height: 1px;
    background: #cccccc;
    margin: 0 auto 1.5rem;
}

.close-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #666666;
    font-style: italic;
}

.close-meta {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    color: #cccccc;
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

.close-domain {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.6rem;
    color: #cccccc;
    margin-top: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

/* ===========================
   FADE IN ANIMATIONS
   =========================== */

.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger child animations in sidebar */
.sidebar .fade-in:nth-child(2) { transition-delay: 0.08s; }
.sidebar .fade-in:nth-child(3) { transition-delay: 0.16s; }
.sidebar .fade-in:nth-child(4) { transition-delay: 0.24s; }
.sidebar .fade-in:nth-child(5) { transition-delay: 0.32s; }
.sidebar .fade-in:nth-child(6) { transition-delay: 0.40s; }

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

@media (max-width: 768px) {
    .masthead-row {
        flex-direction: column;
        gap: 0.25rem;
        align-items: center;
    }

    .masthead-left-meta,
    .masthead-right-meta {
        font-size: 0.6rem;
    }

    .masthead-left-meta {
        order: 2;
        display: none;
    }

    .masthead-right-meta {
        order: 3;
    }

    .masthead-title {
        order: 1;
    }

    .lead-body {
        columns: 1;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .main-stories {
        padding-right: 0;
        border-right: none;
    }

    .sidebar {
        padding-left: 0;
        padding-top: 2rem;
        margin-top: 0.5rem;
        border-top: 1px solid #cccccc;
    }

    .breaking-banner {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .lead-headline {
        font-size: 2rem;
    }

    .content-col {
        padding: 1.5rem 16px 3rem;
    }

    .masthead-inner {
        padding: 1.5rem 16px 0;
    }

    .pull-quote {
        font-size: 1.15rem;
    }
}
