/* layer2.wiki - Living Forest Trail Map */

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

:root {
    --canopy-dark: #1b3a2d;
    --forest-deep: #2d4a3e;
    --forest-mid: #3d6b52;
    --trail-green: #5e8a73;
    --leaf-light: #8ab89e;
    --gold-accent: #d4a24e;
    --warm-stone: #c9b896;
    --earth-gray: #7a7264;
    --parchment: #f4efe4;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Serif 4', serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--parchment);
    background-color: var(--canopy-dark);
    overflow-x: hidden;
}

/* Trail SVG */
#trail-path {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Zones */
.zone {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
}

.zone-content {
    max-width: 680px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Zone 1: Hero */
#zone-canopy {
    height: 100vh;
    background: var(--canopy-dark);
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-variation-settings: 'SOFT' 100, 'WONK' 1;
    line-height: 1.1;
    color: var(--parchment);
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--leaf-light);
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: -4rem;
    left: 0;
    animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Zone backgrounds - gradient descent */
#zone-upper {
    background: linear-gradient(180deg, var(--canopy-dark) 0%, var(--forest-deep) 100%);
}

#zone-mid {
    background: var(--forest-deep);
}

#zone-understory {
    background: linear-gradient(180deg, var(--forest-deep) 0%, var(--forest-mid) 100%);
}

#zone-floor {
    background: var(--forest-mid);
}

/* Altitude Markers */
.altitude-marker {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-accent);
    display: block;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Zone Headings */
.zone h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-variation-settings: 'SOFT' 80, 'WONK' 1;
    line-height: 1.15;
    color: var(--parchment);
    margin-bottom: 1.5rem;
}

/* Zone descriptions */
.zone-description {
    font-family: 'Source Serif 4', serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--warm-stone);
    margin-bottom: 2.5rem;
}

/* Trail Markers */
.trail-marker {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(138, 184, 158, 0.2);
    border-radius: 4px;
    background: rgba(45, 74, 62, 0.4);
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
    cursor: default;
}

.trail-marker:hover {
    border-color: var(--gold-accent);
    transform: translateX(4px);
    background: rgba(45, 74, 62, 0.7);
}

.marker-icon {
    font-size: 1.4rem;
    color: var(--gold-accent);
    width: 2rem;
    text-align: center;
}

.marker-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--parchment);
    letter-spacing: 0.02em;
}

/* Footer */
#zone-roots {
    padding: 6rem 2rem;
    background: var(--canopy-dark);
    text-align: center;
    display: flex;
    justify-content: center;
}

.footer-text {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    color: var(--earth-gray);
    margin-bottom: 1.5rem;
}

.footer-domain {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--trail-green);
    opacity: 0.6;
}

/* Scroll reveal animation */
.zone-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* First zone always visible */
#zone-canopy .zone-content {
    opacity: 1;
    transform: translateY(0);
}
