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

body {
    background: #ffffff;
    color: #111111;
    font-family: 'Newsreader', serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
}

/* Header */
#site-header {
    border-bottom: 2px solid #111111;
    padding: 1rem 2rem;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.edition-label,
.date-label {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #333333;
}

.masthead {
    font-family: 'Newsreader', serif;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    color: #111111;
}

/* Ticker Bar */
#ticker-bar {
    background: #1a237e;
    color: #ffffff;
    overflow: hidden;
    white-space: nowrap;
    padding: 0.5rem 0;
}

.ticker-track {
    display: inline-block;
    animation: ticker 40s linear infinite;
}

.ticker-item {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    margin-right: 3rem;
    color: #ffffff;
}

.ticker-item .change {
    font-weight: 500;
}

.ticker-item.up .change {
    color: #1b5e20;
}

.ticker-item.down .change {
    color: #b71c1c;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Main Content */
#content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Above Fold - F-Pattern */
#above-fold {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 0;
    padding: 2rem 0;
    border-bottom: 2px solid #e0e0e0;
}

.lead-story {
    padding-right: 2rem;
    border-right: 1px solid #e0e0e0;
}

.category-tag {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1a237e;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.lead-headline {
    font-family: 'Newsreader', serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    color: #111111;
    margin-bottom: 1rem;
}

.lead-deck {
    font-family: 'Newsreader', serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 1rem;
}

.byline {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #333333;
}

.author {
    font-family: 'Newsreader', serif;
    font-variant: small-caps;
    font-weight: 400;
    font-size: 0.85rem;
    color: #333333;
}

.byline-sep {
    color: #333333;
}

.timestamp {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 0.75rem;
    color: #333333;
}

/* Sidebar Stories */
.sidebar-stories {
    padding-left: 2rem;
}

.sidebar-story {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-story:last-child {
    border-bottom: none;
}

.sidebar-story h3 {
    font-family: 'Newsreader', serif;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.3;
    color: #111111;
    margin-bottom: 0.3rem;
}

/* Section Bars */
.section-bar {
    background: #1a237e;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    margin: 2rem -2rem;
}

.section-bar-green {
    background: #1b5e20;
}

.section-bar-navy {
    background: #1a237e;
}

.section-name {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffffff;
}

/* Story Grid */
.story-grid-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
}

.story-card {
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem 0;
}

.story-card h3 {
    font-family: 'Newsreader', serif;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.3;
    color: #111111;
    margin-bottom: 0.5rem;
}

.story-summary {
    font-family: 'Newsreader', serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

/* Inline Change Indicators */
.inline-change {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.inline-change.up {
    color: #1b5e20;
}

.inline-change.down {
    color: #b71c1c;
}

/* Data Snapshot */
#data-snapshot {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    padding: 2rem 0;
    border-bottom: 2px solid #e0e0e0;
}

.data-item {
    text-align: center;
    padding: 1rem 0;
}

.data-label {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #333333;
    margin-bottom: 0.5rem;
}

.data-value {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
}

.data-value.up {
    color: #1b5e20;
}

.data-value.down {
    color: #b71c1c;
}

/* Footer */
#site-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    margin-top: 2rem;
}

.footer-brand {
    font-family: 'Newsreader', serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #111111;
}

.footer-tagline {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 0.75rem;
    color: #333333;
    margin-top: 0.25rem;
}

/* Noto Sans KR for Korean text */
.footer-tagline {
    font-family: 'Noto Sans KR', 'Roboto Mono', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    #above-fold {
        grid-template-columns: 1fr;
    }

    .lead-story {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 1.5rem;
    }

    .sidebar-stories {
        padding-left: 0;
        padding-top: 1rem;
    }

    .story-grid-section {
        grid-template-columns: 1fr;
    }

    #data-snapshot {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-bar {
        margin: 2rem -1rem;
    }

    #content {
        padding: 0 1rem;
    }
}

/* Print Styles */
@media print {
    #ticker-bar {
        display: none;
    }

    body {
        background: #ffffff;
        color: #111111;
    }

    .section-bar {
        background: #ffffff;
        border-top: 2px solid #111111;
        border-bottom: 1px solid #111111;
    }

    .section-name {
        color: #111111;
    }

    #site-header {
        border-bottom: 2px solid #111111;
    }

    .data-value.up,
    .data-value.down,
    .inline-change.up,
    .inline-change.down {
        color: #111111;
    }
}
