/* ============================================
   munju.club - Watercolor Punk Zine
   ============================================ */
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

:root {
    --midnight-ink: #0B0E1A;
    --frost-glass: rgba(220, 230, 245, 0.08);
    --frost-border: #A8C8E8;
    --neon-pulse: #00E5FF;
    --rebel-magenta: #FF2D7B;
    --wash-cerulean: #2A6496;
    --wash-violet: #6B4C8A;
    --wash-teal: #3A7D7B;
    --frost-text: #E0EAF5;
    --muted-caption: #7A8BA6;
    --graffiti-ink: #B8E986;
    --terminal-green: #39FF14;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    background: var(--midnight-ink);
    color: var(--frost-text);
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.65;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    /* Halftone dot grid */
    background-image: radial-gradient(circle, rgba(168, 200, 232, 0.06) 1px, transparent 1px);
    background-size: 8px 8px;
}

/* --- Background Blobs --- */
.blob {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}
.blob-1 {
    width: 400px; height: 400px;
    top: 10%; left: -5%;
    background: rgba(42, 100, 150, 0.12);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blobMorph1 20s ease-in-out infinite;
}
.blob-2 {
    width: 350px; height: 350px;
    top: 40%; right: -8%;
    background: rgba(107, 76, 138, 0.1);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    animation: blobMorph2 18s ease-in-out infinite;
}
.blob-3 {
    width: 300px; height: 300px;
    top: 70%; left: 20%;
    background: rgba(58, 125, 123, 0.08);
    border-radius: 50% 50% 70% 30% / 40% 60% 40% 60%;
    animation: blobMorph3 22s ease-in-out infinite;
}
.blob-4 {
    width: 250px; height: 250px;
    top: 25%; right: 25%;
    background: rgba(42, 100, 150, 0.08);
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    animation: blobMorph1 25s ease-in-out infinite reverse;
}
.blob-5 {
    width: 200px; height: 200px;
    bottom: 10%; right: 10%;
    background: rgba(107, 76, 138, 0.06);
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    animation: blobMorph2 15s ease-in-out infinite;
}
@keyframes blobMorph1 {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}
@keyframes blobMorph2 {
    0%, 100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    50% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
}
@keyframes blobMorph3 {
    0%, 100% { border-radius: 50% 50% 70% 30% / 40% 60% 40% 60%; }
    50% { border-radius: 30% 70% 50% 50% / 60% 40% 60% 40%; }
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Diagonal scan lines */
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(0, 229, 255, 0.03) 2px,
        rgba(0, 229, 255, 0.03) 4px
    );
}
.hero-wash {
    position: absolute;
    width: 600px;
    height: 600px;
    filter: url(#watercolor-1);
    opacity: 0.5;
    pointer-events: none;
}
.hero-wash-1 {
    background: radial-gradient(circle, var(--wash-cerulean) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}
.hero-wash-2 {
    background: radial-gradient(circle, var(--wash-violet) 0%, transparent 70%);
    bottom: -15%;
    right: -10%;
    filter: url(#watercolor-2);
    opacity: 0.4;
}
.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}
.hero-title {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    font-size: clamp(3.5rem, 10vw, 8rem);
    letter-spacing: 0.08em;
    color: var(--frost-text);
    margin-bottom: 1rem;
}
.hero-tagline {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted-caption);
    margin-bottom: 3rem;
}
.hero-chevron {
    animation: chevronBounce 2s ease-in-out infinite;
}
@keyframes chevronBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* --- Card Field --- */
.card-field {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(1.2rem, 3vw, 2.4rem);
    padding: clamp(2rem, 4vw, 4rem);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- Card --- */
.card {
    position: relative;
    background: var(--frost-glass);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border-radius: 12px;
    padding: clamp(1.5rem, 4vw, 3rem);
    overflow: hidden;
    align-self: start;
    opacity: 0;
    transform: translateY(20px) translate(var(--offset-x, 0px), var(--offset-y, 0px));
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.card.visible {
    opacity: 1;
    transform: translateY(0) translate(var(--offset-x, 0px), var(--offset-y, 0px));
}

/* Animated border */
.card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: conic-gradient(from var(--border-angle), #00E5FF, #FF2D7B, #6B4C8A, #00E5FF);
    z-index: -1;
    animation: spin 4s linear infinite;
}
@keyframes spin {
    to { --border-angle: 360deg; }
}
.card:hover::before {
    animation-duration: 2s;
    filter: brightness(1.2);
}

.card-content {
    position: relative;
    z-index: 1;
}
.card--wide {
    grid-column: span 2;
}
.card--section-break {
    grid-column: 1 / -1;
    text-align: center;
    padding: clamp(2rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
}

/* --- Watercolor Backgrounds --- */
.watercolor-bg {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    pointer-events: none;
    mix-blend-mode: multiply;
}
.watercolor-bg--1 {
    background: radial-gradient(ellipse at 30% 50%, var(--wash-cerulean), transparent 70%);
    filter: url(#watercolor-1);
}
.watercolor-bg--2 {
    background: radial-gradient(ellipse at 70% 40%, var(--wash-violet), transparent 70%);
    filter: url(#watercolor-2);
}
.watercolor-bg--3 {
    background: radial-gradient(ellipse at 50% 60%, var(--wash-teal), transparent 70%);
    filter: url(#watercolor-3);
}

/* --- Typography --- */
.section-title {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--frost-text);
    position: relative;
    z-index: 1;
}
.card-heading {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 0.08em;
    color: var(--frost-text);
    margin-bottom: 0.8rem;
}
.card-body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.65;
    color: var(--frost-text);
    opacity: 0.85;
}
.card-caption {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--muted-caption);
    display: block;
    margin-top: 1rem;
}

/* --- Graffiti Annotations --- */
.graffiti {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--graffiti-ink);
    transform: rotate(-3deg);
    display: inline-block;
}
.graffiti--hero {
    position: absolute;
    bottom: 15%;
    right: 10%;
    z-index: 3;
}
.graffiti--inline {
    margin-top: 1rem;
    display: block;
}

/* --- Interstitial Bleeds --- */
.interstitial-bleed {
    grid-column: 1 / -1;
    height: 6rem;
    background: linear-gradient(90deg, rgba(42, 100, 150, 0.15), rgba(107, 76, 138, 0.12), rgba(58, 125, 123, 0.1));
    mix-blend-mode: multiply;
    position: relative;
    /* Cross-hatch texture */
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(232, 228, 222, 0.04) 3px, rgba(232, 228, 222, 0.04) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 3px, rgba(232, 228, 222, 0.04) 3px, rgba(232, 228, 222, 0.04) 4px),
        linear-gradient(90deg, rgba(42, 100, 150, 0.15), rgba(107, 76, 138, 0.12), rgba(58, 125, 123, 0.1));
}
.interstitial-bleed--alt {
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(232, 228, 222, 0.04) 3px, rgba(232, 228, 222, 0.04) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 3px, rgba(232, 228, 222, 0.04) 3px, rgba(232, 228, 222, 0.04) 4px),
        linear-gradient(90deg, rgba(107, 76, 138, 0.15), rgba(58, 125, 123, 0.12), rgba(42, 100, 150, 0.1));
}

/* --- Terminal Footer --- */
.terminal-footer {
    background: var(--midnight-ink);
    border-top: 1px solid var(--terminal-green);
    padding: 2rem clamp(2rem, 4vw, 4rem);
    position: relative;
    z-index: 1;
}
.terminal-output {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    line-height: 1.8;
    color: var(--terminal-green);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
    white-space: pre-wrap;
}
.cursor {
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .card--wide { grid-column: span 1; }
}
@media (max-width: 768px) {
    .card-field {
        grid-template-columns: 1fr;
    }
    .card {
        border-radius: 4px;
    }
    .card::before {
        border-radius: 6px;
    }
}
