@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

:root {
    --earth-dark: #1a1510;
    --earth-brown: #2d241c;
    --moss-green: #3d5a4c;
    --sage: #8fbc8f;
    --amber: #ffbf00;
    --bone: #f5f5dc;
    --stone: #9a9a8a;
    --copper: #b87333;
}

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

body {
    font-family: 'Source Sans Pro', sans-serif;
    background: var(--earth-dark);
    color: var(--bone);
    min-height: 100vh;
    line-height: 1.8;
}

.ancient-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 21, 16, 0.95);
    padding: 1.25rem 2rem;
    z-index: 1000;
    border-bottom: 2px solid var(--moss-green);
}

.header-wrap {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ancient-logo {
    font-family: 'Marcellus', serif;
    font-size: 2rem;
    color: var(--sage);
    text-decoration: none;
    letter-spacing: 2px;
}

.grove-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--moss-green);
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 4px;
}

.grove-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sage);
    margin: 5px 0;
}

.grove-nav {
    display: flex;
    gap: 2rem;
}

.grove-nav a {
    color: var(--bone);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.grove-nav a:hover {
    background: rgba(143, 188, 143, 0.2);
    color: var(--sage);
}

.site-body {
    padding-top: 85px;
}

.earth-banner {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 2rem;
    background: 
        linear-gradient(135deg, rgba(61, 90, 76, 0.1) 0%, transparent 50%),
        linear-gradient(225deg, rgba(45, 36, 28, 0.5) 0%, transparent 50%),
        var(--earth-dark);
    text-align: center;
}

.earth-banner h1 {
    font-family: 'Marcellus', serif;
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    color: var(--sage);
    margin-bottom: 1.5rem;
}

.earth-banner .desc {
    font-size: 1.2rem;
    color: var(--stone);
    max-width: 750px;
    margin: 0 auto 4rem;
    font-weight: 300;
}

.root-boxes {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.root-box {
    background: var(--earth-brown);
    border-radius: 8px;
    padding: 2rem;
    width: 320px;
    text-align: center;
    border-left: 4px solid var(--moss-green);
}

.root-box .leaf {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.root-box h3 {
    font-family: 'Marcellus', serif;
    font-size: 1.15rem;
    color: var(--amber);
    margin-bottom: 0.75rem;
}

.root-box p {
    color: var(--stone);
    font-size: 0.95rem;
}

.grove-games {
    padding: 5rem 2rem;
    background: var(--earth-brown);
}

.grove-container {
    max-width: 1100px;
    margin: 0 auto;
}

.grove-container h2 {
    font-family: 'Marcellus', serif;
    text-align: center;
    font-size: 2rem;
    color: var(--sage);
    margin-bottom: 2rem;
}

.grove-screen {
    width: 100%;
    height: 580px;
    border-radius: 8px;
    border: 3px solid var(--moss-green);
    background: #000;
}

.nature-features {
    padding: 5rem 2rem;
}

.features-wrap {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.nature-card {
    background: linear-gradient(145deg, var(--earth-brown), var(--earth-dark));
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    border-bottom: 3px solid var(--copper);
}

.nature-card .totem {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.nature-card h3 {
    font-family: 'Marcellus', serif;
    font-size: 1.1rem;
    color: var(--amber);
    margin-bottom: 1rem;
}

.nature-card p {
    color: var(--stone);
    font-size: 0.95rem;
}

.scroll-section {
    padding: 5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.scroll-section h1 {
    font-family: 'Marcellus', serif;
    font-size: 2.5rem;
    color: var(--sage);
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.scroll-section h2 {
    font-family: 'Marcellus', serif;
    font-size: 1.4rem;
    color: var(--amber);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--moss-green);
}

.scroll-section p {
    color: var(--stone);
    margin-bottom: 1.25rem;
}

.scroll-section ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.scroll-section li {
    color: var(--stone);
    padding: 0.5rem 0;
    position: relative;
}

.scroll-section li::before {
    content: '❧';
    position: absolute;
    left: -1.5rem;
    color: var(--sage);
}

.grove-footer {
    background: var(--earth-brown);
    padding: 4rem 2rem;
    border-top: 2px solid var(--moss-green);
}

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

.footer-grove h4 {
    font-family: 'Marcellus', serif;
    color: var(--sage);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.guide-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.guide-links a {
    color: var(--stone);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.guide-links a:hover {
    color: var(--sage);
}

.path-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.path-links a {
    color: var(--bone);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.path-links a:hover {
    color: var(--amber);
}

.grove-legal {
    padding-top: 2rem;
    border-top: 1px solid var(--moss-green);
    color: var(--stone);
    font-size: 0.9rem;
}

.gate-veil {
    position: fixed;
    inset: 0;
    background: rgba(26, 21, 16, 0.98);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gate-stone {
    background: var(--earth-brown);
    border: 2px solid var(--moss-green);
    border-radius: 12px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.gate-stone .rune {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.gate-stone h2 {
    font-family: 'Marcellus', serif;
    font-size: 1.6rem;
    color: var(--sage);
    margin-bottom: 1rem;
}

.gate-stone p {
    color: var(--stone);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.gate-choices {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.gate-choice {
    padding: 1rem 2rem;
    font-family: 'Marcellus', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    border-radius: 6px;
}

.gate-choice.enter {
    background: var(--moss-green);
    color: var(--bone);
}

.gate-choice.enter:hover {
    background: var(--sage);
    color: var(--earth-dark);
}

.gate-choice.leave {
    background: transparent;
    border: 1px solid var(--copper);
    color: var(--copper);
}

.gate-choice.leave:hover {
    background: rgba(184, 115, 51, 0.1);
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .grove-toggle {
        display: block;
    }
    
    .grove-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--earth-dark);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    
    .grove-nav.grown {
        opacity: 1;
        visibility: visible;
    }
    
    .grove-nav a {
        display: block;
        padding: 1rem;
        background: var(--earth-brown);
        text-align: center;
        border-radius: 6px;
    }
    
    .root-boxes {
        flex-direction: column;
        align-items: center;
    }
    
    .root-box {
        width: 100%;
        max-width: 380px;
    }
    
    .grove-screen {
        height: 420px;
    }
    
    .gate-choices {
        flex-direction: column;
    }
}
