/* gabs.news - Value News Wire / Monochrome Stark Landing */

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

:root {
    --white: #FFFFFF;
    --black: #000000;
    --wire-red: #CC0000;
    --dark-gray: #666666;
    --medium-gray: #999999;
    --light-gray: #E0E0E0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
}

/* ==================== HERO / WIRE HEADER (80vh) ==================== */
#hero {
    width: 100%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem);
    background: var(--white);
}

.masthead {
    text-align: center;
    margin-bottom: 1.5rem;
}

.mast-gabs {
    display: block;
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: clamp(5rem, 15vw, 12rem);
    color: var(--black);
    line-height: 1;
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 200ms ease-out, transform 200ms ease-out;
}

.mast-gabs.visible {
    opacity: 1;
    transform: translateY(0);
}

.mast-news {
    display: block;
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 6vw, 5rem);
    color: var(--wire-red);
    line-height: 1;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 200ms ease-out 200ms, transform 200ms ease-out 200ms;
}

.mast-news.visible {
    opacity: 1;
    transform: translateX(0);
}

.mast-rule {
    width: 80%;
    max-width: 600px;
    height: 3px;
    background: var(--black);
    margin: 0 auto 1rem;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms ease-out 400ms;
}

.mast-rule.drawn {
    transform: scaleX(1);
}

.wire-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--dark-gray);
    text-align: center;
    opacity: 0;
    transition: opacity 200ms ease 700ms;
}

.wire-label.visible {
    opacity: 1;
}

/* ==================== URGENT STRIP ==================== */
.urgent-strip {
    background: var(--wire-red);
    height: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.urgent-content {
    display: flex;
    white-space: nowrap;
    animation: urgentScroll 30s linear infinite;
}

@keyframes urgentScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.urgent-text {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--white);
    letter-spacing: 0.02em;
    padding: 0 2rem;
}

.urgent-spacer {
    display: inline-block;
    width: 4rem;
}

/* ==================== WIRE FEED ==================== */
#wire-feed {
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem);
    max-width: 800px;
    margin: 0 auto;
}

.feed-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 0;
    align-items: flex-start;
}

.timestamp {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--medium-gray);
    white-space: nowrap;
    min-width: 5.5em;
    padding-top: 0.3rem;
}

.feed-content {
    flex: 1;
}

.breaking-label {
    display: inline-block;
    background: var(--wire-red);
    color: var(--white);
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    margin-bottom: 0.5rem;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.headline {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--black);
    line-height: 1.3;
    margin-bottom: 0.4rem;
}

.deck {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.5;
}

.feed-rule {
    height: 1px;
    background: var(--light-gray);
}

/* ==================== ARCHIVE SECTION ==================== */
#archive {
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem);
    max-width: 800px;
    margin: 0 auto;
}

.date-header {
    margin-bottom: 1rem;
}

.date-header-subsequent {
    margin-top: 2.5rem;
}

.date-text {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--black);
    letter-spacing: 0.1em;
}

.date-rule {
    height: 2px;
    background: var(--black);
    margin-top: 0.5rem;
}

.archive-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    align-items: flex-start;
}

.archive-content {
    flex: 1;
}

.archive-headline {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-gray);
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.archive-deck {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--dark-gray);
    line-height: 1.5;
}

/* ==================== WIRE FOOTER ==================== */
#footer {
    padding: 2rem clamp(1.5rem, 4vw, 4rem);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-rule {
    height: 1px;
    background: var(--light-gray);
    margin-bottom: 1.5rem;
}

.footer-brand {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--medium-gray);
    margin-bottom: 0.25rem;
}

.footer-end {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--medium-gray);
    letter-spacing: 0.1em;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
    .feed-item,
    .archive-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .timestamp {
        min-width: auto;
    }
}
