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

:root {
    --midnight: #0b1226;
    --deep-navy: #162850;
    --navy-mid: #111d3a;
    --blue-accent: #4a7fb5;
    --gold: #c9a84c;
    --cream: #e8d5a3;
    --ice: #d4dce8;
    --slate: #7a8ba3;
}

html, body {
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    background: var(--midnight);
    color: var(--ice);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
}

.broadsheet {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100vh;
    min-width: max-content;
}

.panel {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem;
    position: relative;
    flex-shrink: 0;
}

/* Masthead */
.masthead-panel {
    width: 100vw;
    align-items: center;
    text-align: center;
    background: radial-gradient(ellipse at center, var(--deep-navy) 0%, var(--midnight) 70%);
}

.masthead-instrument {
    margin-bottom: 2rem;
    animation: slowSpin 60s linear infinite;
}

@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.masthead-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(3rem, 6vw, 5.5rem);
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: var(--ice);
    text-transform: lowercase;
}

.masthead-title .gold {
    color: var(--gold);
}

.masthead-subtitle {
    font-family: 'Nunito Sans', sans-serif;
    font-style: italic;
    color: var(--slate);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.masthead-date {
    margin-top: 1.5rem;
    font-family: 'Nunito Sans', sans-serif;
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ornament-top, .ornament-bottom {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 0.3em;
    margin: 1rem 0;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

/* Story Panels */
.story-panel {
    width: clamp(500px, 45vw, 700px);
    padding: 4rem 3rem 4rem 4rem;
    background: var(--midnight);
}

.lead-story {
    width: clamp(600px, 55vw, 850px);
}

.column-rule {
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
    opacity: 0.4;
}

.story-category {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.story-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.2;
    color: var(--cream);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.story-headline-sm {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.25;
    color: var(--cream);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.story-byline {
    font-family: 'Nunito Sans', sans-serif;
    font-style: italic;
    font-size: 0.8rem;
    color: var(--slate);
    margin-bottom: 1.25rem;
}

.story-lede {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ice);
    margin-bottom: 1rem;
}

.story-body {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--slate);
    margin-bottom: 1rem;
}

.story-quote {
    border-left: 2px solid var(--gold);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-family: 'Nunito Sans', sans-serif;
    font-style: italic;
    color: var(--cream);
    font-size: 1rem;
    line-height: 1.6;
}

.quote-attr {
    font-size: 0.8rem;
    color: var(--slate);
    font-style: normal;
}

.panel-decoration {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

/* Secondary Stories Grid */
.stories-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.story-sm {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(74, 127, 181, 0.15);
}

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

/* Field Lines Panel */
.narrow-panel {
    width: 250px;
    align-items: center;
    background: var(--midnight);
}

.field-lines-panel {
    padding: 0;
}

.field-lines-svg {
    opacity: 0.7;
}

/* Analysis Panel */
.analysis-panel {
    width: clamp(550px, 50vw, 750px);
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--midnight) 100%);
}

/* Ticker Panel */
.ticker-panel {
    width: clamp(450px, 40vw, 600px);
    justify-content: flex-start;
    padding-top: 6rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--cream);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.ticker-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ticker-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.ticker-bullet {
    color: var(--gold);
    font-size: 0.7rem;
    margin-top: 0.4rem;
    flex-shrink: 0;
}

.ticker-item p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--slate);
}

/* Colophon */
.colophon-panel {
    width: 350px;
    background: var(--deep-navy);
    border-left: 1px solid rgba(201, 168, 76, 0.2);
}

.colophon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.colophon-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--cream);
}

.colophon-sub {
    font-family: 'Nunito Sans', sans-serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--slate);
}

.colophon-instrument {
    margin: 1rem 0;
    opacity: 0.6;
}

.colophon-footer {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.7rem;
    color: var(--slate);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(to right, var(--gold), var(--blue-accent));
    width: 0%;
    z-index: 100;
    transition: width 0.1s linear;
}

/* Panel reveal animations */
.panel {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.panel.visible {
    opacity: 1;
    transform: translateY(0);
}
