/* nonri.net - An Organic Network */
/* Palette: Moss Whisper #6B8F71, Dried Sage #A8BFA0, Petal Dust #D4B5A0,
   Morning Mist #F0F5EC, Forest Floor #2D3B2E, Dew Drop #8CB4C7, Spore Gold #C4A54A */

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

body {
    background-color: #F0F5EC;
    color: #2D3B2E;
    font-family: 'Newsreader', serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}

/* Root System Navigation */
.root-system {
    position: fixed;
    top: 0;
    left: 10px;
    width: 60px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.root-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 0.5s ease;
}

/* Greenhouse Rooms */
.greenhouse-room {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 80px 80px 100px;
    overflow: hidden;
}

/* Mist Overlay */
.mist-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: radial-gradient(ellipse at 50% 100%, rgba(240,245,236,0.6) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.mist-overlay.thick {
    background: radial-gradient(ellipse at 50% 100%, rgba(240,245,236,0.8) 0%, transparent 70%);
    height: 60%;
}

/* Room Content */
.room-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.room-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Entrance */
.entrance-content {
    text-align: center;
}

.site-title {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.15em;
    color: #2D3B2E;
    opacity: 0;
    animation: mistFadeIn 1.5s ease forwards;
}

@keyframes mistFadeIn {
    0% { opacity: 0; filter: blur(8px); }
    100% { opacity: 1; filter: blur(0); }
}

.site-tagline {
    font-family: 'Newsreader', serif;
    font-weight: 500;
    font-style: italic;
    font-size: 18px;
    color: #6B8F71;
    margin-top: 12px;
    opacity: 0;
    animation: mistFadeIn 1.5s ease 0.5s forwards;
}

/* Pressed Flower */
.pressed-flower {
    position: absolute;
    width: 120px;
    height: 200px;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.fern {
    bottom: 15%;
    right: 10%;
}

/* Leaf Unfurling Animation */
.leaf-anim {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    z-index: 3;
}

.unfurl-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: unfurl 2s ease forwards;
}

.unfurl-vein {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: unfurl 2s ease 0.5s forwards;
}

@keyframes unfurl {
    to { stroke-dashoffset: 0; }
}

/* Specimen Display Layout */
.specimen-display {
    display: flex;
    gap: 60px;
    align-items: center;
}

.specimen-display.reverse {
    flex-direction: row-reverse;
}

.specimen-image {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.specimen-text {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Duotone Frame */
.duotone-frame {
    border: 1px solid #D4B5A0;
    padding: 20px;
    background-color: rgba(237, 228, 212, 0.3);
}

.botanical-illustration {
    width: 100%;
    height: auto;
    display: block;
}

.specimen-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 11px;
    line-height: 1.4;
    color: #6B8F71;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Room Headings */
.room-heading {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: clamp(1.5rem, 3.5vw, 2.75rem);
    color: #2D3B2E;
    letter-spacing: 0.05em;
}

/* Field Notes */
.field-notes {
    font-family: 'Newsreader', serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    color: #2D3B2E;
}

.annotation {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 11px;
    line-height: 1.4;
    color: #6B8F71;
    text-transform: uppercase;
}

/* Herbarium Grid */
.herbarium-title {
    text-align: center;
    margin-bottom: 40px;
}

.specimen-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.specimen-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #D4B5A0;
    padding: 12px;
    background-color: rgba(237, 228, 212, 0.2);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: default;
}

.specimen-card:hover {
    opacity: 1;
}

.card-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #A8BFA0 0%, #D4B5A0 100%);
    opacity: 0.4;
}

.specimen-card:hover .card-image {
    background: linear-gradient(135deg, #C4A54A 0%, #D4B5A0 100%);
    opacity: 0.6;
}

.card-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 10px;
    color: #6B8F71;
    text-transform: uppercase;
}

/* Exit */
.exit-content {
    text-align: center;
}

.exit-text {
    font-family: 'Newsreader', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: #6B8F71;
}

/* Mobile */
@media (max-width: 768px) {
    .greenhouse-room {
        padding: 60px 20px;
    }

    .root-system {
        display: none;
    }

    .specimen-display,
    .specimen-display.reverse {
        flex-direction: column;
    }

    .specimen-image,
    .specimen-text {
        flex: none;
        width: 100%;
    }

    .specimen-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .leaf-anim {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.75rem;
    }

    .room-heading {
        font-size: 1.5rem;
    }
}
