/* namu.farm - Biodynamic Tree Nursery */
/* Colors: #E8EDE3 Morning Mist, #C9A84C Root Gold, #F7F5F0 Chalk Soil, #C8D4A9 Propagation Light, #1E2A1A Deep Loam, #4A6741 Greenhouse Glass, #D4A0A0 Bloom Flush */

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

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

body {
    font-family: 'Lora', serif;
    font-weight: 400;
    color: #1E2A1A;
    background-color: #F7F5F0;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== Atmosphere Layer ===== */
#atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #E8EDE3 0%, #F7F5F0 50%, #E8EDE3 100%);
    background-size: 200% 200%;
    animation: atmosphereShift 45s ease-in-out infinite;
    pointer-events: none;
}

@keyframes atmosphereShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Droplet Layer ===== */
#droplets {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.droplet {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(200, 212, 169, 0.4);
    animation: dropletDrift 12s ease-in-out infinite;
}

@keyframes dropletDrift {
    0% {
        opacity: 0;
        transform: translateY(-10px) translateX(0);
    }
    20% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) translateX(20px);
    }
}

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

.section-inner {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

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

.season-month {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C9A84C;
}

.season-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: #4A6741;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #1E2A1A;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.section-body {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    color: #1E2A1A;
    line-height: 1.85;
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0.85;
}

/* ===== Soil Divider ===== */
.soil-divider {
    width: 100%;
    height: 20px;
    background: linear-gradient(180deg,
        #C9A84C 0%,
        #4A6741 30%,
        #1E2A1A 60%,
        #4A6741 80%,
        #C8D4A9 100%
    );
    opacity: 0.2;
    margin-bottom: 2rem;
}

/* ===== Hero ===== */
#greenhouse-dawn {
    background: transparent;
}

.hero-inner {
    text-align: center;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #1E2A1A;
    margin-bottom: 1rem;
    display: inline-block;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    animation: letterReveal 0.6s ease forwards;
}

.letter.dot {
    color: #C9A84C;
}

@keyframes letterReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    color: #4A6741;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 1.5s ease 1s forwards;
}

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

.hero-chart {
    max-width: 400px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 1.5s ease 1.5s forwards;
}

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

/* ===== Data Card ===== */
.data-card {
    background: rgba(247, 245, 240, 0.8);
    border: 1px solid rgba(200, 212, 169, 0.4);
    border-radius: 2px;
    padding: 1.5rem 2rem;
    max-width: 360px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(200, 212, 169, 0.2);
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #4A6741;
}

.data-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    color: #1E2A1A;
}

/* ===== Seedling Grid ===== */
.seedling-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.seedling-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.seedling-stage svg {
    width: 60px;
    height: 80px;
}

.stage-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4A6741;
    opacity: 0.7;
}

/* ===== Harvest Count ===== */
.harvest-count {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.count-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.count-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #C9A84C;
    line-height: 1;
}

.count-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4A6741;
    opacity: 0.7;
}

/* ===== Footer ===== */
#dormancy {
    background: #1E2A1A;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-domain {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #C8D4A9;
    margin-bottom: 0.3rem;
}

.footer-tagline {
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 0.85rem;
    color: #C9A84C;
    opacity: 0.6;
    margin-bottom: 2rem;
}

.season-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.season-link {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #E8EDE3;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.season-link:hover {
    opacity: 1;
    color: #C8D4A9;
}

/* ===== Scroll Reveal ===== */
.section-inner {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-inner.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-inner {
    opacity: 1;
    transform: none;
}

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

    .harvest-count {
        gap: 2rem;
    }

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

@media (max-width: 480px) {
    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}
