/* ============================================
   jeongchi.boo - Pop-Art Political Satire
   ============================================ */

/* RESET & BASE */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F5F0E0;
    color: #1A1A1A;
    font-family: 'Roboto Slab', serif;
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.section-header {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 48px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #E51B2A;
    margin-bottom: 16px;
}

.header-on-dark {
    color: #F5F0E0;
}

.body-text {
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    color: #1A1A1A;
}

.text-on-dark {
    color: #F5F0E0;
}

.annotation-text {
    font-family: 'Permanent Marker', cursive;
    font-weight: 400;
    font-size: 22px;
    color: #E51B2A;
    display: inline-block;
    transform: rotate(-1.5deg);
}

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

#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #F5F0E0;
    overflow: hidden;
}

#hero-bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #E51B2A 2px, transparent 2px);
    background-size: 8px 8px;
    opacity: 0;
    transition: opacity 400ms ease;
    z-index: 0;
}

#hero-bg-dots.visible {
    opacity: 0.15;
}

#boo-title {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 200px;
    color: #E51B2A;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    transform: translateY(-100vh) rotate(-3deg);
    z-index: 2;
    cursor: pointer;
    user-select: none;
    position: relative;
}

#boo-title.landed {
    transform: translateY(0) rotate(-3deg);
    transition: transform 300ms cubic-bezier(0.55, 0, 0.1, 1);
}

#jeongchi-title {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 64px;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    transform: translateX(-100%);
    opacity: 0;
    z-index: 2;
    position: relative;
    margin-top: -10px;
}

#jeongchi-title.slid-in {
    transform: translateX(0);
    opacity: 1;
    transition: transform 400ms ease-out, opacity 400ms ease-out;
}

#hero-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #FFD700;
    padding: 18px 0;
    text-align: center;
    transform: translateY(100%);
    z-index: 3;
}

#hero-banner.visible {
    transform: translateY(0);
    transition: transform 400ms ease-out;
}

#hero-tagline {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 18px;
    color: #1A1A1A;
    letter-spacing: 0.05em;
}

/* Screen shake */
@keyframes screen-shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(4px, -3px); }
    50% { transform: translate(-3px, 4px); }
    75% { transform: translate(4px, 2px); }
    100% { transform: translate(0, 0); }
}

body.shaking {
    animation: screen-shake 50ms linear 4;
}

/* ============================================
   NAVIGATION
   ============================================ */

#main-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    background-color: #F5F0E0;
    flex-wrap: wrap;
}

.nav-stamp {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #1A1A1A;
    text-decoration: none;
    border: 3px solid #1A1A1A;
    padding: 8px 20px;
    display: inline-block;
    transition: background-color 100ms, color 100ms, border-color 100ms;
}

.nav-stamp:hover {
    background-color: #E51B2A;
    color: #F5F0E0;
    border-color: #E51B2A;
}

/* ============================================
   TICKER STRIPS (News Ticker Dividers)
   ============================================ */

.ticker-strip {
    width: 100%;
    overflow: hidden;
    padding: 14px 0;
    white-space: nowrap;
}

.ticker-yellow {
    background-color: #FFD700;
}

.ticker-red {
    background-color: #E51B2A;
}

.ticker-content {
    display: inline-block;
    animation: ticker-scroll 15s linear infinite;
}

.ticker-content span {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0 40px;
}

.ticker-yellow .ticker-content span {
    color: #1A1A1A;
}

.ticker-red .ticker-content span {
    color: #F5F0E0;
}

.ticker-reverse {
    animation-direction: reverse;
}

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

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.content-section {
    position: relative;
    padding: 80px 40px;
    overflow: hidden;
}

.section-dark {
    background-color: #1A1A1A;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================
   SPEECH BUBBLES
   ============================================ */

.speech-bubble {
    background: #FFFFFF;
    border: 3px solid #1A1A1A;
    border-radius: 20px;
    padding: 28px 32px;
    position: relative;
    opacity: 0;
    transform: translateY(60px);
    transition: transform 200ms, border-width 200ms;
}

.speech-bubble.animate-in {
    opacity: 1;
    transform: translateY(0);
    animation: bounce-enter 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.speech-bubble:hover {
    transform: scale(1.03);
    border-width: 5px;
}

.bubble-on-dark {
    background: #2A2A2A;
    border-color: #F5F0E0;
}

.bubble-on-dark .bubble-text {
    color: #F5F0E0;
}

.bubble-text {
    font-family: 'Permanent Marker', cursive;
    font-size: 22px;
    color: #1A1A1A;
    line-height: 1.5;
}

.bubble-tail {
    position: absolute;
    bottom: -16px;
    width: 0;
    height: 0;
}

.bubble-tail-left {
    left: 30px;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 16px solid #1A1A1A;
}

.bubble-tail-right {
    right: 30px;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 16px solid #1A1A1A;
}

@keyframes bounce-enter {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   STAMP BLOCKS
   ============================================ */

.stamp-block {
    background: #F5F0E0;
    border: 4px solid #E51B2A;
    padding: 32px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    perspective: 800px;
}

.stamp-block.animate-in {
    opacity: 1;
    animation: card-flip 500ms ease-out forwards;
}

.stamp-on-dark {
    background: #2A2A2A;
    border-color: #E51B2A;
}

.stamp-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-family: 'Anton', sans-serif;
    font-size: 72px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #E51B2A;
    opacity: 0.08;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 100ms;
}

.stamp-block:hover .stamp-watermark {
    opacity: 1;
}

.stamp-block:not(:hover) .stamp-watermark {
    transition: opacity 300ms;
}

@keyframes card-flip {
    0% {
        opacity: 0;
        transform: rotateY(90deg);
    }
    100% {
        opacity: 1;
        transform: rotateY(0deg);
    }
}

.manifesto-block {
    border-color: #1B3A8C;
}

/* ============================================
   HALFTONE PORTRAITS
   ============================================ */

.halftone-portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
}

.halftone-portrait.animate-in {
    opacity: 1;
    transition: opacity 600ms ease;
}

.portrait-head {
    width: 80px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, #1A1A1A 1.5px, transparent 1.5px);
    background-size: 5px 5px;
}

.portrait-shoulders {
    width: 140px;
    height: 60px;
    border-radius: 70px 70px 0 0;
    background: radial-gradient(circle, #1A1A1A 1.5px, transparent 1.5px);
    background-size: 5px 5px;
    margin-top: -5px;
}

.portrait-2 .portrait-head,
.portrait-2 .portrait-shoulders {
    background: radial-gradient(circle, #F5F0E0 1.5px, transparent 1.5px);
    background-size: 5px 5px;
}

/* ============================================
   PROTEST SIGNS
   ============================================ */

.protest-sign {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
}

.protest-sign.animate-in {
    opacity: 1;
    animation: bounce-enter 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.sign-board {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 14px 24px;
    clip-path: polygon(2% 0%, 98% 1%, 100% 97%, 1% 100%);
}

.sign-yellow {
    background-color: #FFD700;
    color: #E51B2A;
}

.sign-red {
    background-color: #E51B2A;
    color: #F5F0E0;
}

.sign-blue {
    background-color: #1B3A8C;
    color: #F5F0E0;
}

.sign-stick {
    width: 4px;
    height: 60px;
    background-color: #8B7355;
}

/* ============================================
   REDACTION BLOCKS
   ============================================ */

.redaction-block {
    position: relative;
    padding: 24px 32px;
    opacity: 0;
}

.redaction-block.animate-in {
    opacity: 1;
    animation: card-flip 500ms ease-out forwards;
}

.redacted-text {
    font-family: 'Roboto Slab', serif;
    font-size: 17px;
    line-height: 1.65;
    color: #F5F0E0;
    opacity: 0.05;
    position: relative;
    z-index: 1;
}

.section-dark .redacted-text {
    color: #F5F0E0;
}

.content-section:not(.section-dark) .redacted-text {
    color: #1A1A1A;
}

.redaction-bar {
    position: absolute;
    inset: 0;
    background-color: #1A1A1A;
    z-index: 0;
    border-radius: 2px;
}

.section-dark .redaction-bar {
    background-color: #333333;
}

/* ============================================
   STARBURST SHAPES
   ============================================ */

.starburst {
    width: 120px;
    height: 120px;
    background-color: #FFD700;
    clip-path: polygon(
        50% 0%, 63% 25%, 90% 10%, 78% 38%,
        100% 50%, 78% 63%, 90% 90%, 63% 78%,
        50% 100%, 38% 78%, 10% 90%, 25% 63%,
        0% 50%, 25% 38%, 10% 10%, 38% 25%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.starburst.animate-in {
    opacity: 1;
    animation: bounce-enter 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.starburst-small {
    width: 80px;
    height: 80px;
}

.starburst-text {
    font-family: 'Anton', sans-serif;
    font-size: 28px;
    color: #E51B2A;
    text-transform: uppercase;
}

.starburst-small .starburst-text {
    font-size: 36px;
}

/* ============================================
   BEN-DAY DOT BACKGROUNDS
   ============================================ */

.ben-day-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ben-day-red {
    background-image: radial-gradient(circle, #E51B2A 2px, transparent 2px);
    background-size: 8px 8px;
    opacity: 0.15;
}

.ben-day-blue {
    background-image: radial-gradient(circle, #1B3A8C 2px, transparent 2px);
    background-size: 8px 8px;
    opacity: 0.18;
}

/* ============================================
   BANNER STRIPS
   ============================================ */

.banner-strip {
    width: 100%;
    padding: 22px 0;
    text-align: center;
    opacity: 0;
    transform: translateX(-100%);
}

.banner-strip.animate-in {
    opacity: 1;
    transform: translateX(0);
    transition: transform 400ms ease-out, opacity 400ms ease-out;
}

.banner-pink {
    background-color: #FF1493;
}

.banner-blue {
    background-color: #1B3A8C;
}

.banner-text {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #F5F0E0;
}

/* ============================================
   ANNOTATIONS
   ============================================ */

.annotation {
    display: flex;
    align-items: center;
    padding: 10px;
    opacity: 0;
}

.annotation.animate-in {
    opacity: 1;
    animation: bounce-enter 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

#site-footer {
    background-color: #1A1A1A;
    padding: 60px 40px;
    text-align: center;
}

#footer-boo {
    font-family: 'Anton', sans-serif;
    font-size: 80px;
    color: #E51B2A;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    cursor: pointer;
    user-select: none;
    transition: transform 100ms;
}

#footer-boo:hover {
    transform: scale(1.1) rotate(-3deg);
}

.footer-text {
    font-family: 'Roboto Slab', serif;
    font-size: 16px;
    color: #F5F0E0;
    margin-bottom: 8px;
}

.footer-subtext {
    font-family: 'Permanent Marker', cursive;
    font-size: 14px;
    color: #FFD700;
    transform: rotate(-1deg);
    display: inline-block;
}

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

@media (max-width: 768px) {
    #boo-title {
        font-size: 100px;
    }

    #jeongchi-title {
        font-size: 36px;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-grid > * {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        transform: none !important;
    }

    .section-header {
        font-size: 36px;
    }

    .nav-stamp {
        font-size: 18px;
        padding: 6px 14px;
    }

    .banner-text {
        font-size: 24px;
    }

    .content-section {
        padding: 40px 20px;
    }

    #hero-tagline {
        font-size: 14px;
    }

    .starburst {
        width: 80px;
        height: 80px;
    }

    .starburst-text {
        font-size: 20px;
    }
}
