/* namu.club - Forest Bathing Circle's Field Journal */
/* Colors: #5C4033 Heartwood, #7A8B5E Spring Moss, #F5F0E8 Parchment, #B8A44C Lichen Gold, #2A1F1A Deep Bark, #C4956A Autumn Cambium, #E8E2D8 Mist */

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

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #2A1F1A;
    background-color: #F5F0E8;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ===== Floating Geometric Leaves ===== */
#leaf-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.geo-leaf {
    position: absolute;
    opacity: 0;
    animation: leafDrift 18s ease-in-out infinite;
}

.leaf-1 {
    width: 40px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.leaf-2 {
    width: 28px;
    left: 30%;
    animation-delay: 3s;
    animation-duration: 22s;
}

.leaf-3 {
    width: 35px;
    left: 55%;
    animation-delay: 6s;
    animation-duration: 19s;
}

.leaf-4 {
    width: 32px;
    left: 75%;
    animation-delay: 9s;
    animation-duration: 21s;
}

.leaf-5 {
    width: 25px;
    left: 90%;
    animation-delay: 12s;
    animation-duration: 23s;
}

.leaf-6 {
    width: 38px;
    left: 45%;
    animation-delay: 15s;
    animation-duration: 18s;
}

@keyframes leafDrift {
    0% {
        transform: translateY(-80px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(30px);
        opacity: 0.5;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(105vh) rotate(360deg) translateX(-20px);
        opacity: 0;
    }
}

/* ===== Zone General ===== */
.zone {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem;
    z-index: 2;
}

.ring-label {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ring-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C4956A;
}

.ring-name {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: #5C4033;
}

.zone-content {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.section-heading {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #2A1F1A;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: #5C4033;
    line-height: 1.8;
    max-width: 680px;
    margin-bottom: 3rem;
}

/* ===== Canopy Zone ===== */
#canopy {
    background: linear-gradient(180deg, #E8E2D8 0%, #F5F0E8 60%, #F5F0E8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.canopy-inner {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #2A1F1A;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.1em;
    flex-wrap: wrap;
}

.hangul-accent {
    color: #7A8B5E;
    transition: font-variation-settings 0.4s ease;
}

.dot-separator {
    color: #B8A44C;
    font-size: 0.8em;
}

.club-text {
    color: #5C4033;
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #5C4033;
    letter-spacing: 0.05em;
    margin-bottom: 4rem;
    opacity: 0.8;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: gentleBob 3s ease-in-out infinite;
}

.scroll-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C4956A;
}

.scroll-arrow {
    opacity: 0.6;
}

@keyframes gentleBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.canopy-leaves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.canopy-leaf {
    position: absolute;
    opacity: 0.5;
}

.cl-1 {
    width: 120px;
    top: 10%;
    left: 5%;
    transform: rotate(15deg);
}

.cl-2 {
    width: 80px;
    top: 20%;
    right: 8%;
    transform: rotate(-10deg);
}

.cl-3 {
    width: 60px;
    bottom: 15%;
    left: 15%;
    transform: rotate(25deg);
}

/* ===== Understory Zone ===== */
#understory {
    background-color: #F5F0E8;
}

.understory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.understory-card {
    background: rgba(232, 226, 216, 0.7);
    border: 1px solid rgba(92, 64, 51, 0.12);
    border-radius: 2px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.understory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(42, 31, 26, 0.08);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.2rem;
}

.understory-card h3 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #2A1F1A;
    margin-bottom: 0.8rem;
}

.understory-card p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #5C4033;
    line-height: 1.7;
}

/* ===== Trunk Zone ===== */
#trunk {
    background: linear-gradient(180deg, #F5F0E8 0%, #E8E2D8 100%);
}

.trunk-rings {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ring-display {
    flex-shrink: 0;
}

.ring {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(92, 64, 51, 0.2);
    transition: border-color 0.5s ease;
}

.ring-outer {
    width: 260px;
    height: 260px;
    border-color: rgba(122, 139, 94, 0.3);
    background: rgba(122, 139, 94, 0.05);
}

.ring-mid {
    width: 190px;
    height: 190px;
    border-color: rgba(184, 164, 76, 0.3);
    background: rgba(184, 164, 76, 0.05);
}

.ring-inner {
    width: 130px;
    height: 130px;
    border-color: rgba(196, 149, 106, 0.4);
    background: rgba(196, 149, 106, 0.05);
}

.ring-heart {
    width: 70px;
    height: 70px;
    border-color: #5C4033;
    background: rgba(92, 64, 51, 0.1);
}

.heart-label {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    color: #5C4033;
}

.ring-annotations {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.annotation {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.anno-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.anno-1 .anno-dot { background-color: #7A8B5E; }
.anno-2 .anno-dot { background-color: #B8A44C; }
.anno-3 .anno-dot { background-color: #5C4033; }

.anno-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #5C4033;
}

/* ===== Root Zone ===== */
#roots {
    background-color: #E8E2D8;
}

.root-network {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.root-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* ===== Soil Zone ===== */
#soil {
    background: linear-gradient(180deg, #E8E2D8 0%, #2A1F1A 100%);
    color: #F5F0E8;
}

#soil .ring-label .ring-number {
    color: #C4956A;
}

#soil .ring-label .ring-name {
    color: #E8E2D8;
}

#soil .section-heading {
    color: #F5F0E8;
}

#soil .section-body {
    color: #E8E2D8;
    opacity: 0.85;
}

.soil-texture {
    position: relative;
    height: 120px;
    margin-top: 2rem;
    overflow: hidden;
}

.grain {
    position: absolute;
    border-radius: 50%;
    background: rgba(196, 149, 106, 0.15);
}

.grain-1 { width: 4px; height: 4px; top: 20%; left: 10%; }
.grain-2 { width: 6px; height: 6px; top: 50%; left: 30%; }
.grain-3 { width: 3px; height: 3px; top: 30%; left: 55%; }
.grain-4 { width: 5px; height: 5px; top: 70%; left: 75%; }
.grain-5 { width: 4px; height: 4px; top: 45%; left: 90%; }

/* ===== Footer ===== */
#taproot {
    background-color: #2A1F1A;
    padding: 4rem 2rem;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

/* Tree Cross-Section Navigation */
.tree-nav {
    display: flex;
    justify-content: center;
}

.nav-rings {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(245, 240, 232, 0.15);
    color: #E8E2D8;
    transition: all 0.3s ease;
}

.nav-ring:hover {
    background: rgba(245, 240, 232, 0.1);
    border-color: rgba(245, 240, 232, 0.3);
}

.nav-ring.active {
    background: rgba(122, 139, 94, 0.3);
    border-color: #7A8B5E;
    color: #F5F0E8;
}

.footer-meta {
    text-align: center;
}

.footer-domain {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #7A8B5E;
    margin-bottom: 0.3rem;
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #C4956A;
    opacity: 0.7;
}

/* ===== Depth Indicator ===== */
#depth-indicator {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 200px;
    background: rgba(92, 64, 51, 0.15);
    border-radius: 2px;
    z-index: 100;
}

.depth-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #7A8B5E, #5C4033);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.depth-label {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #5C4033;
    white-space: nowrap;
    opacity: 0.6;
}

/* ===== Scroll Reveal Animation ===== */
.zone-content,
.ring-label {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.zone-content.revealed,
.ring-label.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .zone {
        padding: 4rem 1.5rem;
    }

    .trunk-rings {
        flex-direction: column;
        gap: 2rem;
    }

    .ring-outer {
        width: 200px;
        height: 200px;
    }

    .ring-mid {
        width: 150px;
        height: 150px;
    }

    .ring-inner {
        width: 100px;
        height: 100px;
    }

    .ring-heart {
        width: 55px;
        height: 55px;
    }

    #depth-indicator {
        right: 0.5rem;
        height: 120px;
    }

    .depth-label {
        display: none;
    }

    .nav-rings {
        gap: 0.3rem;
    }

    .nav-ring {
        font-size: 0.65rem;
        padding: 0.5rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .understory-grid {
        grid-template-columns: 1fr;
    }
}
