/* rational.monster - Goblincore Specimen Cabinet */

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

:root {
    --forest-floor: #1E1A14;
    --earth-dark: #2E2820;
    --amber: #C4963A;
    --mushroom-gold: #A08040;
    --moss: #4A6A3A;
    --lichen-teal: #3A7A7A;
    --fossil-purple: #6A4A6A;
    --parchment: #E0D8C8;
    --bark: #6A5A3A;
    --stone: #8A806A;
}

body {
    background-color: var(--forest-floor);
    color: var(--parchment);
    font-family: 'Bitter', Georgia, serif;
    font-size: 1rem;
    line-height: 1.75;
    overflow-x: hidden;
}

#decay-texture {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

#mycelium-network {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.mycelium {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: growMycelium 3s ease-out forwards;
}

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

/* Hero */
#hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--parchment);
}

.hero-label {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: var(--amber);
    margin-top: 1rem;
    opacity: 0.8;
}

/* Masonry Grid */
#masonry {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    columns: 3;
    column-gap: 20px;
}

.specimen-jar {
    break-inside: avoid;
    margin-bottom: 20px;
    border: 2px solid rgba(192, 150, 58, 0.25);
    border-radius: 8px 8px 20px 20px;
    background: rgba(46, 40, 32, 0.85);
    box-shadow: inset 0 0 30px rgba(30, 26, 20, 0.3);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.specimen-jar.visible {
    opacity: 1;
    transform: scale(1);
}

.jar-tall { min-height: 400px; }
.jar-medium { min-height: 300px; }
.jar-short { min-height: 220px; }

.jar-lid {
    height: 12px;
    background: linear-gradient(180deg, var(--bark), var(--earth-dark));
    border-bottom: 1px solid rgba(192, 150, 58, 0.3);
}

.jar-content {
    padding: 1.5rem;
}

.handwritten-label {
    font-family: 'Caveat', cursive;
    font-size: 0.95rem;
    color: var(--amber);
    display: block;
    margin-bottom: 0.75rem;
}

.jar-heading {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--parchment);
    margin-bottom: 0.75rem;
}

.jar-text {
    font-family: 'Bitter', serif;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--stone);
}

/* Footer */
#site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem;
}

.footer-text {
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: var(--bark);
    opacity: 0.6;
}

@media (max-width: 900px) {
    #masonry { columns: 2; }
}

@media (max-width: 600px) {
    #masonry { columns: 1; }
}
