/* gazza.news - Vintage Newspaper Aesthetic */

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

:root {
    --parchment: #f5f0e8;
    --ink: #1a1710;
    --sepia: #b8b2a6;
    --gold: #f7b731;
    --yellow: #ffe066;
    --red: #d62828;
    --blue: #1d7ab3;
    --cream: #faf8f2;
    --saturation: 1;
    --scale: 1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--parchment);
    color: var(--ink);
    overflow-x: hidden;
}

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

#masthead {
    text-align: center;
    padding: 60px 20px 40px;
    border-bottom: 4px double var(--ink);
    background: var(--cream);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}

.dot {
    color: var(--gold);
}

.tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--sepia);
    margin-top: 0.5rem;
    font-weight: 400;
}

.dateline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--sepia);
    margin-top: 1rem;
    text-transform: uppercase;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--cream);
    padding: 50px;
    border: 3px solid var(--ink);
    position: relative;
    overflow: hidden;
}

.hero-text-wrapper {
    z-index: 2;
}

.label-hero {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: var(--red);
    color: var(--parchment);
    padding: 6px 12px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-excerpt {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--sepia);
}

.hero-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: radial-gradient(circle at 30% 30%, rgba(247, 183, 49, 0.1), transparent 70%);
    position: relative;
}

.hero-illustration svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.stamp {
    position: absolute;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: transparent;
    border: 4px solid var(--red);
    padding: 8px 16px;
    letter-spacing: 0.1em;
    pointer-events: none;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.stamp-hero {
    top: 20px;
    right: 20px;
    transform: rotate(-12deg);
    border-color: rgba(214, 40, 40, 0.5);
    color: rgba(214, 40, 40, 0.5);
}

.hero-article:hover .stamp-hero {
    opacity: 1;
}

/* ============================================
   EDITORIAL BAND
   ============================================ */

.editorial-band {
    max-width: 100%;
    background: var(--yellow);
    padding: 40px 20px;
    margin: 60px 0;
    transform: skewY(-3deg);
    position: relative;
}

.editorial-content {
    max-width: 1200px;
    margin: 0 auto;
    transform: skewY(3deg);
    padding: 0 20px;
}

.editorial-title {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.editorial-text {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
    max-width: 600px;
}

/* ============================================
   NEWSPAPER GRID (5-COLUMN)
   ============================================ */

.newspaper-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    auto-rows: auto;
}

.grid-card {
    background: var(--cream);
    padding: 25px;
    border: 2px solid var(--sepia);
    border-left: 5px solid var(--ink);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    clip-path: polygon(0 2%, 15% 0, 30% 3%, 45% 0, 60% 2%, 75% 0, 90% 1%, 100% 3%, 100% 97%, 85% 100%, 70% 98%, 55% 100%, 40% 97%, 25% 100%, 10% 99%, 0 97%);
}

.card-span-1 {
    grid-column: span 1;
}

.card-span-2 {
    grid-column: span 2;
}

.card-span-3 {
    grid-column: span 3;
}

.card-rotate-1 {
    transform: rotate(1deg);
}

.card-rotate-2 {
    transform: rotate(2deg);
}

.card-rotate-neg1 {
    transform: rotate(-1deg);
}

.card-rotate-neg2 {
    transform: rotate(-2deg);
}

.grid-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transform: rotate(0deg) translateY(-5px);
}

.grid-card .label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: 12px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
}

.grid-card .label.fake {
    background: var(--red);
    color: var(--parchment);
}

.grid-card .label.satire {
    background: var(--ink);
    color: var(--parchment);
}

.grid-card .label.opinion {
    background: transparent;
    border: 2px solid var(--ink);
    color: var(--ink);
    padding: 2px 8px;
}

.grid-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--ink);
}

.grid-card .excerpt {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--sepia);
    margin-bottom: 12px;
}

.grid-card .stamp {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 0.9rem;
    padding: 6px 12px;
    border: 2px solid rgba(214, 40, 40, 0.4);
    color: rgba(214, 40, 40, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-card:hover .stamp {
    opacity: 1;
}

/* Responsive grid */
@media (max-width: 1200px) {
    .newspaper-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .card-span-3 {
        grid-column: span 3;
    }
    .card-span-2 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .newspaper-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-span-3,
    .card-span-2 {
        grid-column: span 1;
    }
    .hero-article {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================================
   RELATED STORIES / CONSPIRACY BOARD
   ============================================ */

.related-stories {
    max-width: 1200px;
    margin: 80px auto;
    padding: 40px 20px;
    position: relative;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -0.02em;
}

.conspiracy-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    padding: 40px;
    background: rgba(214, 40, 40, 0.02);
    border: 2px dashed var(--red);
}

.red-string {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    animation: draw-strings 2s ease-in-out forwards;
}

@keyframes draw-strings {
    from {
        opacity: 0;
        stroke-dashoffset: 1000;
    }
    to {
        opacity: 0.6;
        stroke-dashoffset: 0;
    }
}

.related-card {
    position: relative;
    z-index: 2;
    background: var(--parchment);
    padding: 25px;
    border: 2px solid var(--sepia);
    border-left: 5px solid var(--red);
    transition: all 0.4s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(214, 40, 40, 0.1);
}

.related-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
}

.related-card p {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--sepia);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 20px;
    text-align: center;
    border-top: 4px double var(--ink);
    border-bottom: 4px double var(--ink);
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-section p {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    color: var(--sepia);
    font-size: 1.3rem;
    line-height: 1.5;
}

/* ============================================
   TICKER BAR
   ============================================ */

.ticker-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--red);
    color: var(--parchment);
    padding: 12px 0;
    overflow: hidden;
    z-index: 1000;
    border-top: 2px solid var(--ink);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ticker-item {
    padding: 0 15px;
}

.ticker-diamond {
    color: var(--gold);
    margin: 0 5px;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--cream);
    border-top: 4px double var(--ink);
    padding: 40px 20px;
    margin-top: 60px;
    margin-bottom: 50px;
    text-align: center;
}

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

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: var(--ink);
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    color: var(--sepia);
    font-size: 0.95rem;
    line-height: 1.6;
    display: block;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.grid-card,
.related-card,
.hero-article {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.grid-card.visible,
.related-card.visible,
.hero-article.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   UTILITY: HALFTONE EFFECT
   ============================================ */

.halftone-image {
    filter: url(#halftone);
}

/* ============================================
   ACCESSIBILITY & RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .conspiracy-board {
        grid-template-columns: 1fr;
    }

    .hero-article {
        padding: 30px;
    }

    .editorial-band {
        padding: 20px;
    }

    .editorial-title {
        font-size: 2rem;
    }

    .editorial-text {
        font-size: 1.4rem;
    }

    .ticker-bar {
        padding: 8px 0;
    }

    .ticker-content {
        font-size: 0.75rem;
    }

    .ticker-item {
        padding: 0 10px;
    }
}

/* ============================================
   SCROLL-DRIVEN EFFECTS
   ============================================ */

.grid-card {
    --local-saturation: var(--saturation, 1);
    filter: saturate(var(--local-saturation));
}

/* Subtle scaling on scroll */
@media (prefers-reduced-motion: no-preference) {
    .grid-card {
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
}
