/* mosun.xyz — Neomorphic Botanica */

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

:root {
    --clay-surface: #e8ddd3;
    --peat: #3d3429;
    --sage: #7a9e7e;
    --sage-light: #b8d4ba;
    --loam: #5c5347;
    --fossil: #c9bfb5;
    --porcelain: #fff7ef;
    --root-deep: #2a241e;
    --stem-color: #8b7d6b;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--clay-surface);
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    color: var(--loam);
    line-height: 1.75;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    overflow-x: hidden;
}

.clay-canvas {
    position: relative;
    min-height: 100vh;
    padding-bottom: 200px;
}

/* Clay Orbs */
.clay-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--porcelain), var(--sage) 60%, #5a8a5e);
    box-shadow: 
        inset -4px -4px 10px rgba(42, 36, 30, 0.2),
        4px 4px 12px var(--fossil),
        -2px -2px 8px var(--porcelain);
    animation: drift 12s ease-in-out infinite alternate;
    z-index: 0;
}

.orb-1 { width: 60px; height: 60px; top: 15vh; left: 10%; opacity: 0.7; animation-delay: 0s; }
.orb-2 { width: 35px; height: 35px; top: 35vh; right: 15%; opacity: 0.5; animation-delay: -3s; }
.orb-3 { width: 80px; height: 80px; top: 60vh; left: 65%; opacity: 0.4; animation-delay: -6s; }
.orb-4 { width: 24px; height: 24px; top: 80vh; left: 20%; opacity: 0.6; animation-delay: -2s; }
.orb-5 { width: 50px; height: 50px; top: 120vh; right: 25%; opacity: 0.5; animation-delay: -8s; }
.orb-6 { width: 40px; height: 40px; top: 160vh; left: 30%; opacity: 0.4; animation-delay: -4s; }
.orb-7 { width: 28px; height: 28px; top: 200vh; right: 10%; opacity: 0.6; animation-delay: -10s; }

@keyframes drift {
    from { transform: translateY(0); }
    to { transform: translateY(-30px); }
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.hero-orb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--porcelain), var(--sage) 60%, #5a8a5e);
    box-shadow: 
        inset -4px -4px 10px rgba(42, 36, 30, 0.2),
        6px 6px 16px var(--fossil),
        -3px -3px 10px var(--porcelain);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInOrb 1s ease-out 0.4s forwards, drift 12s ease-in-out 1.4s infinite alternate;
}

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

.hero-title {
    font-family: 'Special Elite', monospace;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--peat);
    letter-spacing: 0.02em;
    min-height: 1.5em;
}

.hero-title::after {
    content: '|';
    animation: blink 0.8s step-end infinite;
    color: var(--peat);
}

.hero-title.done::after {
    display: none;
}

.hero-subtitle {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--sage);
    margin-top: 0.5rem;
    opacity: 0;
    min-height: 1.5em;
}

.hero-subtitle.visible {
    opacity: 1;
    transition: opacity 0.6s ease;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Vine SVG */
.vine-svg {
    position: absolute;
    top: 100vh;
    left: 0;
    width: 100%;
    height: 300vh;
    z-index: 0;
    pointer-events: none;
}

.vine-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease;
}

.vine-path.drawn {
    stroke-dashoffset: 0;
}

.leaf-motif {
    opacity: 0;
    transition: opacity 0.8s ease 1s;
}

.leaf-motif.visible {
    opacity: 1;
}

/* Impressions (Content Cards) */
.impression {
    position: relative;
    background: var(--clay-surface);
    box-shadow: inset 4px 4px 8px var(--fossil), inset -4px -4px 8px var(--porcelain);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin: 8vh auto;
    z-index: 2;
    transition: box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.impression:hover {
    box-shadow: 4px 4px 8px var(--fossil), -4px -4px 8px var(--porcelain);
}

.impression-seed {
    width: min(360px, 80vw);
    margin-left: 15%;
    margin-right: auto;
}

.impression-root {
    width: min(480px, 85vw);
    margin-left: auto;
    margin-right: 15%;
}

.impression-stem {
    width: min(380px, 80vw);
    margin-left: 25%;
    margin-right: auto;
}

.impression-bloom {
    width: min(540px, 90vw);
    margin-left: auto;
    margin-right: 20%;
}

.section-heading {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    color: var(--peat);
    margin-bottom: 1rem;
}

.body-text {
    color: var(--loam);
    max-width: 540px;
}

/* Typewriter text */
.typewriter-text {
    font-family: 'Special Elite', monospace;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: var(--peat);
    opacity: 0.8;
    line-height: 1.9;
    min-height: 3em;
}

.typewriter-text::after {
    content: '|';
    animation: blink 0.8s step-end infinite;
}

.typewriter-text.done::after {
    display: none;
}

/* Pressed Leaves */
.pressed-leaf {
    display: block;
    opacity: 0.7;
}

.fiddlehead {
    position: absolute;
    bottom: -30px;
    right: 20px;
}

.yarrow-between {
    display: block;
    margin: -3vh auto 0;
    position: relative;
    z-index: 1;
    opacity: 0.5;
}

/* Fingerprint Texture */
.fingerprint-texture {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    opacity: 0.05;
    background: repeating-radial-gradient(
        circle at center,
        var(--peat) 0px,
        var(--peat) 1px,
        transparent 1px,
        transparent 4px
    );
    z-index: 0;
    pointer-events: none;
}

.fingerprint-bloom {
    width: 180px;
    height: 180px;
    top: -10px;
    left: 30px;
}

/* Botanical Growth Animations */
.botanical-growth {
    display: block;
    margin: 1.5rem auto;
}

.dandelion-seed {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    transition: stroke-dashoffset 0.4s ease;
}

.dandelion-clock.animate .dandelion-seed {
    stroke-dashoffset: 0;
}

.dandelion-clock.animate .dandelion-seed:nth-child(2) { transition-delay: 0.1s; }
.dandelion-clock.animate .dandelion-seed:nth-child(3) { transition-delay: 0.2s; }
.dandelion-clock.animate .dandelion-seed:nth-child(4) { transition-delay: 0.3s; }
.dandelion-clock.animate .dandelion-seed:nth-child(5) { transition-delay: 0.4s; }
.dandelion-clock.animate .dandelion-seed:nth-child(6) { transition-delay: 0.5s; }
.dandelion-clock.animate .dandelion-seed:nth-child(7) { transition-delay: 0.6s; }
.dandelion-clock.animate .dandelion-seed:nth-child(8) { transition-delay: 0.7s; }
.dandelion-clock.animate .dandelion-seed:nth-child(9) { transition-delay: 0.8s; }
.dandelion-clock.animate .dandelion-seed:nth-child(10) { transition-delay: 0.9s; }
.dandelion-clock.animate .dandelion-seed:nth-child(11) { transition-delay: 1.0s; }
.dandelion-clock.animate .dandelion-seed:nth-child(12) { transition-delay: 1.1s; }
.dandelion-clock.animate .dandelion-seed:nth-child(13) { transition-delay: 1.2s; }

/* Wildflower growth */
.wf-stem {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 0.8s ease;
}

.wf-leaf {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.4s ease;
}

.wf-flower {
    transition: fill-opacity 0.6s ease;
}

.wildflower.animate .wf-stem { stroke-dashoffset: 0; }
.wildflower.animate .wf-leaf-1 { stroke-dashoffset: 0; transition-delay: 0.8s; }
.wildflower.animate .wf-leaf-2 { stroke-dashoffset: 0; transition-delay: 0.95s; }
.wildflower.animate .wf-leaf-3 { stroke-dashoffset: 0; transition-delay: 1.1s; }
.wildflower.animate .wf-flower { fill-opacity: 0.7; transition-delay: 1.5s; }

/* Footer */
.footer-soil {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5vw;
    opacity: 0.4;
    background: linear-gradient(to bottom, var(--clay-surface), #f0e8e0);
}

.footer-leaf-1 { transform: rotate(-15deg); }
.footer-leaf-2 { transform: rotate(5deg); }
.footer-leaf-3 { transform: rotate(20deg); }

/* Responsive */
@media (max-width: 768px) {
    .impression-seed,
    .impression-root,
    .impression-stem,
    .impression-bloom {
        margin-left: auto;
        margin-right: auto;
        width: 85vw;
    }

    .vine-svg {
        display: none;
    }
}
