/* ============================================================
   jungchi.boo - Watercolor Governance Aesthetic
   ============================================================ */

:root {
    /* Color Palette from DESIGN.md */
    --color-deep-ground: #2B1A0E;
    --color-warm-ink: #8B3A1F;
    --color-sunset-core: #D4652A;
    --color-golden-hour: #E8A44A;
    --color-parchment: #F5EBDD;
    --color-dusk-violet: #6B4F6E;
    --color-wash-blush: #E8B4A2;
    --color-white: #FFFFFF;
    --color-plum: #3D2233;
    --color-body-text: #3D2415;

    /* Aliases for use in design */
    --color-cream: #F5EBDD;
    --color-blush: #E8B4A2;
    --color-sienna: #A0522D;
    --color-dark-brown: #2B1A0E;
    --color-burnt-sienna: #8B3A1F;
    --color-rust: #D4652A;

    --font-serif: 'Noto Serif KR', serif;
    --font-body: 'Recursive', sans-serif;
    --font-caption: 'Caveat', cursive;

    /* Sunset gradient palette for scroll */
    --gradient-top: #FFE5B4;
    --gradient-mid: #FFB366;
    --gradient-bottom: #3D2233;
}

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

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background: linear-gradient(to bottom,
        var(--color-parchment) 0%,
        var(--color-golden-hour) 25%,
        var(--color-wash-blush) 50%,
        var(--color-dusk-violet) 75%,
        var(--color-plum) 100%
    );
    background-attachment: fixed;
    color: var(--color-deep-ground);
    line-height: 1.75;
    overflow-x: hidden;
}

.page-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.filter-defs {
    display: none;
}

/* ============================================================
   Section Base Styles
   ============================================================ */

.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

/* Background color transitions by section - matches design gradient */
.hero-section {
    background: rgba(245, 235, 221, 0.3);
}

.fold-section {
    background: rgba(232, 164, 74, 0.3);
}

.civic-section {
    background: rgba(232, 180, 162, 0.3);
}

.sunset-section {
    background: rgba(212, 101, 42, 0.3);
}

.dusk-section {
    background: rgba(61, 34, 51, 0.3);
}

/* ============================================================
   Content Block & Typography
   ============================================================ */

.content-block {
    position: relative;
    z-index: 10;
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
    padding: 2rem;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    clip-path: polygon(
        0% 2%, 2% 0%, 98% 0%, 100% 2%, 100% 98%, 98% 100%, 2% 100%, 0% 98%
    );
}

.domain-name {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.0;
    background: linear-gradient(to right, var(--color-deep-ground), var(--color-warm-ink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-transform: lowercase;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-warm-ink);
    margin-bottom: 1.5rem;
}

.section-text {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--color-body-text);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--color-sunset-core);
    font-style: italic;
    margin-top: 1rem;
}

/* ============================================================
   Watercolor Blob Elements
   ============================================================ */

.watercolor-blob {
    position: absolute;
    border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
    mix-blend-mode: multiply;
    opacity: 0.6;
    animation: blob-morph 8s ease-in-out infinite;
    filter: blur(60px);
}

.blob-1 {
    width: 200px;
    height: 200px;
    top: var(--blob-y);
    left: var(--blob-x);
    background: var(--blob-color);
    animation-delay: 0s;
}

.blob-2 {
    width: 250px;
    height: 250px;
    top: var(--blob-y);
    left: var(--blob-x);
    background: var(--blob-color);
    animation-delay: 1s;
}

.blob-3 {
    width: 180px;
    height: 180px;
    top: var(--blob-y);
    left: var(--blob-x);
    background: var(--blob-color);
    animation-delay: 2s;
}

.blob-4 {
    width: 220px;
    height: 220px;
    top: var(--blob-y);
    left: var(--blob-x);
    background: var(--blob-color);
    animation-delay: 1.5s;
}

.blob-5 {
    width: 200px;
    height: 200px;
    top: var(--blob-y);
    left: var(--blob-x);
    background: var(--blob-color);
    animation-delay: 3s;
}

.blob-6 {
    width: 240px;
    height: 240px;
    top: var(--blob-y);
    left: var(--blob-x);
    background: var(--blob-color);
    animation-delay: 2.5s;
}

.blob-7 {
    width: 210px;
    height: 210px;
    top: var(--blob-y);
    left: var(--blob-x);
    background: var(--blob-color);
    animation-delay: 4s;
}

.blob-8 {
    width: 190px;
    height: 190px;
    top: var(--blob-y);
    left: var(--blob-x);
    background: var(--blob-color);
    animation-delay: 3.5s;
}

.blob-9 {
    width: 230px;
    height: 230px;
    top: var(--blob-y);
    left: var(--blob-x);
    background: var(--blob-color);
    animation-delay: 5s;
}

.blob-10 {
    width: 200px;
    height: 200px;
    top: var(--blob-y);
    left: var(--blob-x);
    background: var(--blob-color);
    animation-delay: 4.5s;
}

@keyframes blob-morph {
    0% {
        border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
        transform: translate(0, 0) scale(1);
    }
    33% {
        border-radius: 60% 40% 50% 50% / 45% 55% 40% 55%;
        transform: translate(20px, -20px) scale(1.05);
    }
    66% {
        border-radius: 50% 50% 45% 55% / 55% 40% 55% 45%;
        transform: translate(-15px, 15px) scale(0.95);
    }
    100% {
        border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
        transform: translate(0, 0) scale(1);
    }
}

/* ============================================================
   Blur-Focus Interaction
   ============================================================ */

.content-block {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(0.95);
    opacity: 0.7;
}

.section:target .content-block,
.content-block:hover {
    transform: scale(1);
    opacity: 1;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
}

/* Blur watercolor blobs when content is focused */
.content-block:hover ~ .watercolor-blob {
    filter: blur(80px);
    opacity: 0.3;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(61, 34, 51, 0.9);
    z-index: 10;
}

.footer-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-parchment);
    letter-spacing: 0.1em;
}

/* ============================================================
   Responsive Design
   ============================================================ */

@media (max-width: 768px) {
    .section {
        min-height: 120vh;
        padding: 3rem 1.5rem;
    }

    .content-block {
        padding: 1.5rem;
    }

    .domain-name {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .section-heading {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

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

    .watercolor-blob {
        filter: blur(40px);
    }
}

@media (max-width: 480px) {
    .section {
        min-height: 150vh;
        padding: 2rem 1rem;
    }

    .content-block {
        padding: 1rem;
        max-width: 90%;
    }

    .domain-name {
        font-size: clamp(1.5rem, 12vw, 3rem);
        margin-bottom: 1rem;
    }

    .section-heading {
        font-size: clamp(1.25rem, 7vw, 2rem);
    }

    .section-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .watercolor-blob {
        filter: blur(30px);
        opacity: 0.4;
    }
}

/* ============================================================
   Scroll-based Color Animation
   ============================================================ */

@supports (animation-timeline: view()) {
    body {
        animation: scroll-gradient 1s linear;
        animation-timeline: scroll(y);
    }

    @keyframes scroll-gradient {
        0% {
            background-position: 0% 0%;
        }
        100% {
            background-position: 0% 100%;
        }
    }
}
