/* ==========================================================================
   namu.farm — Scandinavian Tree Nursery
   Colors: #F0EDE4, #2A3828, #7A8A6A, #A08868, #C8C4BA, #9A6878, #FAFAF5
   Fonts: IBM Plex Mono (600, 400), IBM Plex Sans (400, 500), Noto Sans KR (400)
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #F0EDE4;
    color: #2A3828;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.85;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
}

a {
    color: #2A3828;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #7A8A6A;
}

/* --- Morning Field (Hero) --- */
.morning-field {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-color: #F0EDE4;
    overflow: hidden;
}

.morning-field__header {
    position: absolute;
    top: 12vh;
    left: 8vw;
}

.morning-field__title {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: clamp(20px, 2.5vw, 36px);
    letter-spacing: 0em;
    color: #2A3828;
    margin-bottom: 8px;
}

.morning-field__subtitle {
    display: block;
    font-family: 'Noto Sans KR', 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #7A8A6A;
    letter-spacing: 0.02em;
}

.morning-field__rule {
    position: absolute;
    top: calc(12vh + 80px);
    left: 8vw;
    width: 120px;
    height: 1px;
    background-color: #C8C4BA;
}

.morning-field__tree {
    position: absolute;
    bottom: 8vh;
    right: 10vw;
    width: clamp(140px, 15vw, 220px);
    animation: treeSway 6s ease-in-out infinite;
    transform-origin: bottom center;
}

.tree-svg {
    width: 100%;
    height: auto;
}

@keyframes treeSway {
    0%, 100% { transform: rotate(-0.5deg); }
    50% { transform: rotate(0.5deg); }
}

/* --- Botanical Dividers --- */
.botanical-divider {
    width: 100%;
    padding: 20px 10%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.botanical-fragment {
    width: clamp(200px, 50vw, 400px);
    height: auto;
}

/* --- Species Flow Sections --- */
.species-flow {
    --section-indent: 12%;
    padding: 60px 0 40px;
    margin-left: var(--section-indent);
    max-width: calc(100% - var(--section-indent) - 5%);
}

.species-flow__content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.species-flow__illustration {
    flex: 0 0 auto;
    width: clamp(100px, 12vw, 160px);
    transition: transform 0.6s ease;
}

.species-flow__illustration:hover {
    transform: rotate(0.5deg);
}

.species-illustration {
    width: 100%;
    height: auto;
}

.species-flow__text {
    flex: 1 1 300px;
    max-width: 600px;
}

.species-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    color: #7A8A6A;
    letter-spacing: 0.04em;
    text-transform: none;
    display: block;
    margin-bottom: 6px;
}

.species-heading {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: clamp(20px, 2.5vw, 36px);
    letter-spacing: 0em;
    color: #2A3828;
    margin-bottom: 16px;
}

.species-body {
    color: #2A3828;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.85;
    margin-bottom: 20px;
}

.species-data {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #C8C4BA;
}

.species-data__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.species-data__label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    color: #7A8A6A;
}

.species-data__value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 14px;
    color: #2A3828;
}

.species-flow__rule {
    width: 60px;
    height: 1px;
    background-color: #C8C4BA;
    margin-top: 40px;
    transition: width 0.4s ease;
}

.species-flow:hover .species-flow__rule {
    width: calc(60px + 5%);
}

/* --- Vertical rule alongside species data --- */
.species-flow__text {
    position: relative;
}

.species-data {
    position: relative;
    padding-left: 16px;
}

.species-data::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 0;
    width: 1px;
    background-color: #C8C4BA;
}

/* --- Seasonal Rhythm Band --- */
.seasonal-band {
    padding: 80px 0 100px;
    overflow: hidden;
}

.seasonal-band__heading {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: clamp(20px, 2.5vw, 36px);
    color: #2A3828;
    margin-left: 12%;
    margin-bottom: 8px;
}

.seasonal-band__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 0 12%;
    scrollbar-width: none;
}

.seasonal-band__track::-webkit-scrollbar {
    display: none;
}

.seasonal-band__season {
    flex: 0 0 auto;
    width: clamp(260px, 28vw, 340px);
    min-height: 360px;
    scroll-snap-align: start;
    padding: 32px;
    border-right: 1px solid #C8C4BA;
}

.seasonal-band__season:last-child {
    border-right: none;
}

.seasonal-band__season--spring {
    background-color: #FAFAF5;
}

.seasonal-band__season--summer {
    background-color: #F0EDE4;
}

.seasonal-band__season--autumn {
    background-color: rgba(160, 136, 104, 0.08);
}

.seasonal-band__season--winter {
    background-color: rgba(200, 196, 186, 0.15);
}

.seasonal-band__season-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.seasonal-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.seasonal-band__season-name {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 18px;
    color: #2A3828;
    margin-bottom: 4px;
}

.seasonal-band__season-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 0.9vw, 16px);
    line-height: 1.75;
    color: #2A3828;
    margin-top: 12px;
}

/* --- Nursery Info --- */
.nursery-info {
    --section-indent: 15%;
    padding: 60px 0 40px;
    margin-left: var(--section-indent);
    max-width: calc(100% - var(--section-indent) - 10%);
}

.nursery-info__content {
    max-width: 580px;
}

.nursery-info__content .species-heading {
    font-family: 'Noto Sans KR', 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(18px, 2vw, 28px);
    margin-bottom: 20px;
}

.nursery-info__rule {
    width: 80px;
    height: 1px;
    background-color: #C8C4BA;
    margin-top: 40px;
}

/* --- Footer --- */
.site-footer {
    padding: 80px 8vw 60px;
    position: relative;
}

.site-footer__content {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__name {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 16px;
    color: #2A3828;
}

.site-footer__korean {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #7A8A6A;
}

.site-footer__details {
    margin-left: auto;
}

.site-footer__botanical {
    margin-top: 40px;
    opacity: 0.5;
}

.site-footer__botanical svg {
    width: 40px;
    height: auto;
}

/* --- Glitch Effect --- */
@keyframes glitch {
    0%, 95%, 100% { filter: none; }
    96% { filter: hue-rotate(180deg); }
    98% { filter: none; }
    99% { filter: hue-rotate(180deg); }
}

.glitch-active {
    animation: glitch 0.3s steps(1) forwards;
}

/* --- Parallax botanical elements --- */
.botanical-divider {
    will-change: transform;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .species-flow {
        --section-indent: 6% !important;
        max-width: 90%;
    }

    .species-flow__content {
        flex-direction: column;
        gap: 24px;
    }

    .species-flow__illustration {
        width: 100px;
    }

    .morning-field__header {
        top: 8vh;
        left: 6vw;
    }

    .morning-field__tree {
        right: 5vw;
        bottom: 5vh;
        width: 120px;
    }

    .seasonal-band__heading {
        margin-left: 6%;
    }

    .seasonal-band__track {
        padding: 0 6%;
    }

    .seasonal-band__season {
        width: 260px;
    }

    .nursery-info {
        --section-indent: 6% !important;
        max-width: 90%;
    }

    .site-footer {
        padding: 60px 6vw 40px;
    }

    .site-footer__content {
        flex-direction: column;
        gap: 8px;
    }

    .site-footer__details {
        margin-left: 0;
    }

    .species-data {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .morning-field__tree {
        width: 90px;
        right: 4vw;
    }

    .species-flow__illustration {
        width: 80px;
    }

    .seasonal-band__season {
        width: 240px;
        padding: 24px;
        min-height: 300px;
    }
}