/* ========================================
   haroo.day - Y2K Watercolor Futurism
   ======================================== */

:root {
    --cloud-paper: #F0EDF3;
    --silver-mist: #D1CED6;
    --graphite-wash: #5A5666;
    --deep-ink: #2B2636;
    --phantom-blue: #B8C4D4;
    --faded-rose: #CEB5B0;
    --sage-vapor: #A8B5A0;
    --bone-light: #F5F3F7;
    --lilac-umbra: #8E8599;
    --skeleton-bg: #E8E5EB;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--cloud-paper);
    color: var(--graphite-wash);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Typography --- */
h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
    font-size: clamp(3.5rem, 10vw, 9rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--deep-ink);
}

h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--deep-ink);
    margin-bottom: 0.75rem;
}

p {
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    line-height: 1.7;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
}

/* --- Section: Threshold --- */
.section-threshold {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fog-layer {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
    animation: fogClear 2.5s ease forwards;
}

.fog-1 {
    width: 60vw;
    height: 60vw;
    top: 20%;
    left: 10%;
    background: radial-gradient(circle, var(--silver-mist) 0%, transparent 70%);
}

.fog-2 {
    width: 50vw;
    height: 50vw;
    bottom: 10%;
    right: 5%;
    background: radial-gradient(circle, var(--phantom-blue) 0%, transparent 70%);
    animation-delay: 0.3s;
}

@keyframes fogClear {
    to { opacity: 0.15; }
}

.threshold-content {
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.site-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.5vw, 1.15rem);
    color: var(--graphite-wash);
    opacity: 0;
    animation: fadeIn 0.8s ease 2.7s forwards;
    margin-top: 1rem;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* --- Breath Zone --- */
.breath-zone {
    height: 40vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pigment-bloom {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 196, 212, 0.1) 0%, transparent 70%);
    position: relative;
}

.pigment-bloom::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(206, 181, 176, 0.08) 0%, transparent 60%);
    transform: translate(30px, -20px);
}

/* --- Wash Bands --- */
.wash-band {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.wash-cool {
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(184, 196, 212, 0.06) 30%,
        rgba(168, 181, 160, 0.04) 60%,
        transparent 100%
    );
}

.wash-warm {
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(206, 181, 176, 0.08) 40%,
        rgba(206, 181, 176, 0.12) 80%,
        transparent 100%
    );
}

/* --- Card Grid --- */
.section-field {
    position: relative;
    padding: 0 clamp(2rem, 5vw, 6rem) 4rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.card-4 { grid-column: span 4; }
.card-6 { grid-column: span 6; }
.card-8 { grid-column: span 8; }

/* --- Cards --- */
.card {
    background: rgba(240, 237, 243, 0.7);
    backdrop-filter: blur(12px);
    padding: clamp(1.2rem, 2.5vw, 2rem);
    border-radius: 12px;
    position: relative;
    clip-path: polygon(0.3% 0.5%, 99.5% 0.2%, 99.8% 99.6%, 0.2% 99.8%);
    box-shadow: 0 2px 8px rgba(142, 133, 153, 0.08);
    transition: transform 300ms ease-out, box-shadow 300ms ease-out;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(142, 133, 153, 0.12);
}

/* --- Skeleton Loading --- */
.card-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: clamp(1.2rem, 2.5vw, 2rem);
    z-index: 2;
    transition: opacity 400ms ease-out;
}

.card.loaded .card-skeleton {
    opacity: 0;
    pointer-events: none;
}

.skel-bar {
    background: linear-gradient(90deg, var(--skeleton-bg) 25%, var(--bone-light) 50%, var(--skeleton-bg) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.8s ease-in-out infinite;
    border-radius: 6px;
}

.skel-title {
    height: 24px;
    width: 60%;
}

.skel-text {
    height: 14px;
    width: 100%;
}

.skel-text-short {
    height: 14px;
    width: 70%;
}

@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.card-content {
    opacity: 0;
    transition: opacity 400ms ease-out;
    position: relative;
    z-index: 1;
}

.card.loaded .card-content {
    opacity: 1;
}

.card-heading {
    margin-bottom: 0.5rem;
}

.card-tag {
    font-family: 'Silkscreen', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--graphite-wash);
    background: rgba(168, 181, 160, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    display: inline-block;
}

/* --- Watercolor Cards --- */
.watercolor-card {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    clip-path: none;
    min-height: 200px;
}

.watercolor-card:hover {
    transform: none;
    box-shadow: none;
}

.watercolor-composition {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.wc-bloom {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
}

.wc-blue {
    width: 180px;
    height: 180px;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(184, 196, 212, 0.25) 0%, transparent 70%);
}

.wc-rose {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 30%;
    background: radial-gradient(circle, rgba(206, 181, 176, 0.2) 0%, transparent 70%);
}

.wc-sage {
    width: 160px;
    height: 160px;
    top: 15%;
    left: 15%;
    background: radial-gradient(circle, rgba(168, 181, 160, 0.2) 0%, transparent 70%);
}

.wc-bloom.offset {
    top: 40%;
    left: 40%;
}

/* --- Card Entry Animation --- */
.card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease-out, transform 500ms ease-out, box-shadow 300ms ease-out;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section: Pool --- */
.section-pool {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
}

.pool-bloom {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(206, 181, 176, 0.15) 0%,
        rgba(184, 196, 212, 0.08) 40%,
        transparent 70%
    );
    pointer-events: none;
}

.pool-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.pool-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4.5rem);
    color: var(--deep-ink);
    margin-bottom: 0.5rem;
}

.pool-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--graphite-wash);
}

.pool-footer {
    position: relative;
    z-index: 1;
    margin-top: 4rem;
    text-align: center;
}

.footer-label {
    font-family: 'Silkscreen', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lilac-umbra);
    display: block;
    margin-bottom: 0.25rem;
}

.footer-copy {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--silver-mist);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .card {
        opacity: 1;
        transform: none;
    }

    .threshold-content, .site-subtitle {
        opacity: 1;
    }

    .fog-layer {
        opacity: 0.15;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .card-4 { grid-column: span 6; }
    .card-8 { grid-column: span 12; }
}

@media (max-width: 768px) {
    .card-4, .card-6, .card-8 {
        grid-column: span 12;
    }

    .card:nth-child(even) {
        margin-left: 8vw;
    }

    .card-grid {
        gap: 1.5rem;
    }
}
