/* sora.quest - Victorian Naturalist Quest */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --aged-ivory: #F5EDD5;
    --cabinet-wood: #3A2E20;
    --victorian-burgundy: #6B1A2A;
    --naturalist-green: #2E5A3A;
    --gilt-gold: #C8A43A;
    --ornament-brown: #8A7A5A;
    --ink-dark: #1A1610;
    --faded-sepia: #7A6A50;
}
body {
    background: var(--aged-ivory);
    color: var(--ink-dark);
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    line-height: 1.85;
    font-weight: 400;
    overflow-x: hidden;
    display: flex;
}

/* Sidebar */
#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background: var(--cabinet-wood);
    border-right: 3px solid var(--gilt-gold);
    padding: 3rem 1.5rem;
    z-index: 10;
}
.sidebar-title {
    font-family: 'IM Fell English SC', serif;
    font-size: 0.85rem;
    color: var(--gilt-gold);
    display: block;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.1em;
}
.toc {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.toc-item {
    font-family: 'IM Fell English SC', serif;
    font-size: 0.85rem;
    color: #C8B898;
    text-decoration: none;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(200,164,58,0.15);
    transition: color 0.3s ease;
}
.toc-item:hover {
    color: var(--gilt-gold);
}

/* Main Column */
.main-column {
    margin-left: 240px;
    max-width: 720px;
    padding: 0 2rem 3rem;
    width: 100%;
}

/* Hero */
#hero {
    text-align: center;
    padding: 4rem 0 3rem;
    position: relative;
}
.cartouche {
    margin: 0 auto 1rem;
}
.cartouche svg {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}
.hero-title {
    font-family: 'Playfair Display SC', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--victorian-burgundy);
    letter-spacing: 0.1em;
}
.hero-subtitle {
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    color: var(--faded-sepia);
    margin-top: 0.25rem;
}

/* Ornate Sections */
.ornate-section {
    border: 2px solid var(--ornament-brown);
    border-image: repeating-linear-gradient(45deg, var(--gilt-gold), var(--ornament-brown) 10px) 4;
    padding: 2rem;
    margin-bottom: 2rem;
}
.section-title {
    font-family: 'Playfair Display SC', serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--victorian-burgundy);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}
.body-text {
    font-size: 1rem;
    color: var(--ink-dark);
    margin-bottom: 1rem;
}
.body-text:last-child {
    margin-bottom: 0;
}

/* Shell Cabinet Grid */
.cabinet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 1rem;
}
.specimen-cell {
    background: #EDE5CD;
    border: 1px solid var(--ornament-brown);
    padding: 1rem 0.5rem;
    text-align: center;
}
.specimen-label {
    font-family: 'IM Fell English SC', serif;
    font-size: 0.75rem;
    color: var(--faded-sepia);
    display: block;
    margin-bottom: 0.25rem;
}
.specimen-name {
    font-family: 'Crimson Pro', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--naturalist-green);
}

/* Section animation */
.section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
#footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 2px solid var(--ornament-brown);
}
.footer-text {
    font-family: 'IM Fell English SC', serif;
    font-size: 0.85rem;
    color: var(--faded-sepia);
}

/* Responsive */
@media (max-width: 800px) {
    #sidebar { display: none; }
    .main-column { margin-left: 0; padding: 0 1.5rem 3rem; }
    .cabinet-grid { grid-template-columns: repeat(2, 1fr); }
}
