/* senggack.com - Neomorphic Zen Contemplation */
/* Palette: #f0ece4 #d1cdc4 #ffffff #4a453d #8a8378 #b8a88a #c4b8a4 */

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #f0ece4;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 2.0;
    color: #4a453d;
    background: linear-gradient(180deg, #f0ece4 0%, #ede8df 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Hanji Texture ===== */
#hanji-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ===== Ma Spacing ===== */
.ma-space {
    height: 200px;
}

.ma-space-large {
    height: 300px;
}

/* ===== The Stillness ===== */
#stillness {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#stillness-content {
    text-align: center;
}

#hangul-title {
    font-family: 'Noto Serif KR', serif;
    font-weight: 200;
    font-size: clamp(72px, 12vw, 120px);
    color: #4a453d;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.37, 0, 0.63, 1);
}

#hangul-title.visible {
    opacity: 1;
}

#domain-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #8a8378;
    margin-top: 24px;
    letter-spacing: 0.15em;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.37, 0, 0.63, 1) 0.4s;
}

#domain-name.visible {
    opacity: 1;
}

/* ===== Stone Sections ===== */
.stone-section {
    display: flex;
    justify-content: center;
    padding: 0 5vw;
}

/* ===== Thought Cards (Neomorphic) ===== */
.thought-card {
    width: 480px;
    max-width: 90vw;
    padding: 48px 40px;
    border-radius: 24px;
    background: #f0ece4;
    box-shadow: 8px 8px 16px #d1cdc4, -8px -8px 16px #ffffff;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.37, 0, 0.63, 1), transform 0.8s cubic-bezier(0.37, 0, 0.63, 1), box-shadow 0.3s ease;
}

.card-rise {
    transform: translateY(20px);
}

.card-left {
    transform: translateX(-20px);
}

.card-right {
    transform: translateX(20px);
}

.thought-card.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.thought-card:hover {
    box-shadow: 12px 12px 24px #d1cdc4, -12px -12px 24px #ffffff;
}

.thought-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 2.0;
    color: #4a453d;
    text-align: center;
}

.thought-english {
    display: block;
    margin-top: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #8a8378;
    letter-spacing: 0.02em;
}

/* ===== The Ripple ===== */
#ripple-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ripple-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ripple-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid #b8a88a;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.ripple-ring.active {
    animation: rippleExpand 3.2s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

#ring-1.active { animation-delay: 0s; }
#ring-2.active { animation-delay: 0.8s; }
#ring-3.active { animation-delay: 1.6s; }
#ring-4.active { animation-delay: 2.4s; }

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.15;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

#ripple-text {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.37, 0, 0.63, 1);
}

#ripple-text.visible {
    opacity: 1;
}

#think-again {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 300;
    font-size: 20px;
    color: #4a453d;
}

#think-again .thought-english {
    color: #b8a88a;
    font-size: 13px;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    #hangul-title, #domain-name {
        opacity: 1;
        transition: none;
    }

    .thought-card {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ripple-ring.active {
        animation: none;
        opacity: 0.1;
        width: 200px;
        height: 200px;
    }

    #ripple-text {
        opacity: 1;
        transition: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .thought-card {
        width: 90vw;
        padding: 36px 28px;
    }

    .ma-space {
        height: 150px;
    }

    .ma-space-large {
        height: 200px;
    }

    #ripple-container {
        width: 300px;
        height: 300px;
    }

    @keyframes rippleExpand {
        0% {
            width: 0;
            height: 0;
            opacity: 0.15;
        }
        100% {
            width: 300px;
            height: 300px;
            opacity: 0;
        }
    }
}
