/* paragram.dev - Graffiti Aesthetic Wall Design */

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

:root {
    /* Color Palette - Exact from DESIGN.md */
    --oxidized-wall: #3D3630;
    --faded-ochre: #B8985A;
    --washed-teal: #5A8A82;
    --dried-rust: #8C5A3C;
    --chalk-white: #E8E2D6;
    --peeled-cream: #D4C9B4;
    --soot-black: #1E1B18;
    --drip-violet: #6B5A7A;

    /* Typography */
    --font-display: 'Bungee', sans-serif;
    --font-body: 'Karla', sans-serif;
    --font-marker: 'Permanent Marker', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--oxidized-wall);
    color: var(--chalk-white);
    overflow-x: hidden;
    line-height: 1.7;
}

/* Wall Header Section (0-100vh) */
.wall-header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(170deg, rgba(62, 54, 48, 0.08) 0%, transparent 100%),
        linear-gradient(175deg, rgba(45, 40, 36, 0.06) 0%, transparent 100%),
        linear-gradient(185deg, rgba(60, 53, 48, 0.07) 0%, transparent 100%),
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, var(--oxidized-wall) 0%, #2a2520 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 2px 2px, 100% 100%;
}

.domain-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    text-transform: uppercase;
    color: var(--chalk-white);
    letter-spacing: -0.02em;
    transform: rotate(-4deg);
    text-shadow:
        2px 5px 0px rgba(30, 27, 24, 0.5),
        5px 10px 1px rgba(30, 27, 24, 0.4),
        10px 18px 3px rgba(30, 27, 24, 0.3),
        18px 30px 6px rgba(30, 27, 24, 0.2);
    line-height: 1;
    margin-left: 5%;
    margin-top: -10vh;
    animation: slideReveal 1s ease-out;
}

/* Poster Grid Section (100vh-450vh) */
.poster-grid {
    padding: 6rem 4rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    position: relative;
    background: linear-gradient(to bottom, var(--oxidized-wall) 0%, var(--oxidized-wall) 95%, var(--soot-black) 100%);
    min-height: 350vh;
}

/* Poster Cards */
.poster {
    background-color: var(--faded-ochre);
    padding: 2.5rem;
    border: 2px solid var(--soot-black);
    transform: rotate(var(--rotation, -2deg));
    position: relative;
    overflow: hidden;
    clip-path: polygon(
        0% 2%, 98% 0%, 100% 3%, 99% 97%, 2% 100%, 0% 98%
    );
    animation: slideRevealCard 0.7s ease-out both;
    z-index: 10;
}

.poster-1 {
    grid-column: span 2;
    --rotation: -3deg;
    background-color: var(--faded-ochre);
    animation-delay: 0.1s;
}

.poster-2 {
    grid-column: span 2;
    margin-left: -1.5rem;
    margin-top: -2rem;
    --rotation: 2deg;
    background-color: var(--washed-teal);
    animation-delay: 0.3s;
    z-index: 15;
}

.poster-3 {
    grid-column: span 3;
    --rotation: -2deg;
    background-color: var(--peeled-cream);
    animation-delay: 0.5s;
}

.poster-4 {
    grid-column: span 2;
    margin-left: -1rem;
    --rotation: 3deg;
    background-color: var(--drip-violet);
    animation-delay: 0.7s;
    z-index: 14;
}

.poster-5 {
    grid-column: span 2;
    --rotation: -3deg;
    background-color: var(--faded-ochre);
    animation-delay: 0.9s;
}

.poster-6 {
    grid-column: span 2;
    margin-top: -3rem;
    margin-left: 1rem;
    --rotation: 2deg;
    background-color: var(--washed-teal);
    animation-delay: 1.1s;
    z-index: 16;
}

.poster h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-transform: uppercase;
    color: var(--soot-black);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    text-shadow:
        1px 1px 0 rgba(255, 255, 255, 0.3),
        2px 2px 0 rgba(0, 0, 0, 0.1);
}

.poster p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--soot-black);
    line-height: 1.7;
    font-weight: 400;
}

.poster:hover {
    transform: rotate(var(--rotation, -2deg)) translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Sticker Elements */
.sticker {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid var(--soot-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-marker);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--chalk-white);
    text-align: center;
    padding: 0.5rem;
    transform: rotate(var(--sticker-rotation, 15deg));
    z-index: 20;
    animation: stickerFloat 0.8s ease-out both;
}

.sticker-1 {
    background-color: var(--dried-rust);
    top: 8rem;
    right: 8rem;
    --sticker-rotation: 12deg;
    animation-delay: 0.2s;
}

.sticker-2 {
    background-color: var(--drip-violet);
    top: 32rem;
    left: 4rem;
    --sticker-rotation: -15deg;
    animation-delay: 0.4s;
}

.sticker-3 {
    background-color: var(--faded-ochre);
    top: 58rem;
    right: 6rem;
    --sticker-rotation: 8deg;
    animation-delay: 0.6s;
}

.sticker-4 {
    background-color: var(--washed-teal);
    top: 82rem;
    left: 10rem;
    --sticker-rotation: -10deg;
    animation-delay: 0.8s;
}

.sticker-5 {
    background-color: var(--dried-rust);
    top: 110rem;
    right: 12rem;
    --sticker-rotation: 18deg;
    animation-delay: 1s;
}

/* Wall Base Section (450vh-500vh) */
.wall-base {
    padding: 8rem 4rem;
    background: linear-gradient(to bottom, var(--soot-black) 0%, #0f0e0c 100%);
    text-align: center;
    position: relative;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.chalk-text {
    font-family: var(--font-marker);
    font-size: 1.8rem;
    color: var(--chalk-white);
    opacity: 0.4;
    margin: 1rem 0;
    animation: fadeInChalk 1.5s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Animations */
@keyframes slideReveal {
    from {
        opacity: 0;
        transform: translateX(-80px) rotate(-8deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(-4deg);
    }
}

@keyframes slideRevealCard {
    from {
        opacity: 0;
        transform: translateX(-100%) rotate(-4deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(var(--rotation, -2deg));
    }
}

@keyframes stickerFloat {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(var(--sticker-rotation, 15deg));
    }
}

@keyframes fadeInChalk {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.4;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wall-header {
        height: 70vh;
        padding: 2rem;
    }

    .domain-title {
        font-size: 2.5rem;
        margin-left: 0;
    }

    .poster-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 3rem 1.5rem;
    }

    .poster-1, .poster-2, .poster-3, .poster-4, .poster-5, .poster-6 {
        grid-column: span 1;
        margin-left: 0;
        margin-top: 0;
    }

    .poster {
        padding: 1.5rem;
    }

    .poster h2 {
        font-size: 1.25rem;
    }

    .poster p {
        font-size: 0.9rem;
    }

    .sticker {
        width: 60px;
        height: 60px;
        font-size: 10px;
    }

    .wall-base {
        padding: 4rem 1.5rem;
    }

    .chalk-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .wall-header {
        height: 50vh;
        padding: 1rem;
    }

    .domain-title {
        font-size: 1.8rem;
    }

    .poster-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 1rem;
    }

    .poster {
        padding: 1.25rem;
    }

    .poster h2 {
        font-size: 1rem;
    }

    .poster p {
        font-size: 0.85rem;
    }

    .sticker {
        width: 50px;
        height: 50px;
        font-size: 9px;
    }

    .wall-base {
        padding: 3rem 1rem;
    }

    .chalk-text {
        font-size: 1rem;
    }
}
