/* lupine.day — Frutiger Aero botanical field guide */

:root {
    --espresso: #2e1f14;
    --cream: #f5f0e8;
    --amber: #ff9a56;
    --deep-violet: #3d1f5c;
    --rose: #e8a0b0;
    --parchment: #faf5ee;
    --warm-cream: #f0e8da;
    --gold: #c5985e;
    --muted-sand: #c9bfb0;
    --hot-pink: #d4547a;
    --dusty-rose: #d4a0a0;
    --light-tan: #e8dcc8;
    --taupe: #8a7560;
}

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

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Recursive', sans-serif;
    font-variation-settings: 'CASL' 0, 'MONO' 0;
    background: var(--espresso);
}

.split-screen {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Specimen Panel — Left 45% */
.specimen-panel {
    width: 45%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(170deg, #1a0f2e 0%, #2e1f14 40%, #1a2a1a 100%);
}

.bubble-field {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.1) 40%, transparent 70%);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: inset 0 -3px 8px rgba(255,255,255,0.1), 0 2px 12px rgba(61,31,92,0.2);
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-110vh) scale(0.6);
        opacity: 0;
    }
}

.lupine-spires {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.spire-svg {
    position: absolute;
    bottom: 0;
    height: 70%;
    width: 60%;
    opacity: 0.9;
}

#spire1 {
    left: 15%;
    height: 75%;
}

#spire2 {
    left: 5%;
    height: 65%;
    opacity: 0.7;
}

#spire3 {
    left: 35%;
    height: 60%;
    opacity: 0.75;
}

.specimen-label {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.label-genus {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 1.8rem;
    color: var(--cream);
    opacity: 0.9;
}

.label-species {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--rose);
    opacity: 0.8;
}

.label-note {
    font-family: 'Recursive', monospace;
    font-variation-settings: 'CASL' 0, 'MONO' 1;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gold);
    opacity: 0.6;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.marble-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(61,31,92,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(232,160,176,0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(255,154,86,0.1) 0%, transparent 50%);
    mix-blend-mode: screen;
}

/* Annotation Panel — Right 55% */
.annotation-panel {
    width: 55%;
    height: 100%;
    overflow-y: auto;
    background: var(--parchment);
    padding: 4rem 3.5rem;
    scroll-behavior: smooth;
}

.annotation-panel::-webkit-scrollbar {
    width: 6px;
}

.annotation-panel::-webkit-scrollbar-track {
    background: var(--warm-cream);
}

.annotation-panel::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

.anno-header {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(46,31,20,0.1);
}

.site-title {
    font-family: 'Recursive', sans-serif;
    font-variation-settings: 'CASL' 0, 'MONO' 0;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    color: var(--espresso);
    letter-spacing: -0.02em;
    line-height: 1;
}

.site-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--gold);
    margin-top: 0.75rem;
}

.anno-section {
    margin-bottom: 3.5rem;
    position: relative;
    padding-left: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.anno-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-marker {
    position: absolute;
    left: 0;
    top: 0.2rem;
    font-family: 'Recursive', monospace;
    font-variation-settings: 'CASL' 0, 'MONO' 1;
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--amber);
    letter-spacing: 0.05em;
}

.section-heading {
    font-family: 'Recursive', sans-serif;
    font-variation-settings: 'CASL' 0.3, 'MONO' 0;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--espresso);
    margin-bottom: 1rem;
}

.section-body {
    font-family: 'Recursive', sans-serif;
    font-variation-settings: 'CASL' 0.5, 'MONO' 0;
    font-weight: 350;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(46,31,20,0.8);
    margin-bottom: 1rem;
}

.mono-text {
    font-family: 'Recursive', monospace;
    font-variation-settings: 'CASL' 0, 'MONO' 1;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--deep-violet);
    background: rgba(61,31,92,0.05);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    border-left: 3px solid var(--deep-violet);
}

.data-card {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(197,152,94,0.2);
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1rem;
    backdrop-filter: blur(4px);
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(46,31,20,0.06);
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-family: 'Recursive', monospace;
    font-variation-settings: 'CASL' 0, 'MONO' 1;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.data-value {
    font-family: 'Recursive', sans-serif;
    font-variation-settings: 'CASL' 0.3, 'MONO' 0;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--espresso);
}

.note-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255,154,86,0.08) 0%, rgba(232,160,176,0.08) 100%);
    border-radius: 6px;
    border: 1px solid rgba(255,154,86,0.15);
}

.note-icon {
    color: var(--amber);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.note-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(46,31,20,0.75);
}

.anno-footer {
    margin-top: 4rem;
    padding-top: 2rem;
}

.footer-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.footer-text {
    font-family: 'Recursive', monospace;
    font-variation-settings: 'CASL' 0, 'MONO' 1;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.footer-date {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--taupe);
    margin-top: 0.5rem;
}

.data-card {
    border-color: var(--muted-sand);
}

.section-heading::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--hot-pink);
    margin-top: 0.5rem;
    transition: width 0.4s ease;
}

.anno-section.visible .section-heading::after {
    width: 30px;
}

.note-callout {
    border-color: var(--dusty-rose);
}

.anno-header {
    border-bottom-color: var(--light-tan);
}

/* Responsive */
@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
    }
    .specimen-panel {
        width: 100%;
        height: 40vh;
    }
    .annotation-panel {
        width: 100%;
        height: 60vh;
        padding: 2rem 1.5rem;
    }
    .anno-section {
        padding-left: 2.5rem;
    }
}
