/* saram.quest — Vintage Botanical Field Station Aesthetic */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #2d2d2d;
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --text-muted: #8a8a8a;
    --text-dark: #4a4a4a;
    --accent-green: #4a6b4a;
    --phosphor: #4a6b4a;
    --border: #4a4a4a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Recursive', monospace;
    font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 400, 'slnt' 0;
    overflow-x: hidden;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
}

/* Viewfinder Hero */
.viewfinder {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 70%);
}

.crosshair {
    position: absolute;
    background: var(--accent-green);
    opacity: 0.4;
}

.crosshair-h {
    width: 100%;
    height: 1px;
    top: 50%;
}

.crosshair-v {
    width: 1px;
    height: 100%;
    left: 50%;
}

.corner-readout {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px;
}

.corner-readout.top-left { top: 0; left: 0; }
.corner-readout.top-right { top: 0; right: 0; text-align: right; }
.corner-readout.bottom-left { bottom: 0; left: 0; }
.corner-readout.bottom-right { bottom: 0; right: 0; text-align: right; }

.readout-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 300, 'slnt' 0;
    text-transform: uppercase;
}

.readout-value {
    font-size: 14px;
    color: var(--accent-green);
    font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 500, 'slnt' 0;
}

.viewfinder-center {
    text-align: center;
    z-index: 2;
}

.site-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-variation-settings: 'MONO' 0, 'CASL' 1, 'wght' 900, 'slnt' 0;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.site-subtitle {
    font-size: 14px;
    letter-spacing: 6px;
    color: var(--text-muted);
    font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 300, 'slnt' 0;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.site-tagline {
    font-size: 16px;
    color: var(--text-secondary);
    font-variation-settings: 'MONO' 0, 'CASL' 0.5, 'wght' 400, 'slnt' -8;
    font-style: italic;
    max-width: 400px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 300, 'slnt' 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 48px;
    border-bottom: 1px solid var(--border);
}

.section-label {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 400, 'slnt' 0;
}

.section-counter {
    font-size: 24px;
    color: var(--accent-green);
    font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 700, 'slnt' 0;
}

/* Specimens */
.specimens {
    padding: 0 0 80px;
    background: var(--bg-primary);
}

.specimen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1px;
    background: var(--border);
    margin: 0;
}

.specimen-card {
    background: var(--bg-secondary);
    padding: 0;
}

.card-frame {
    padding: 32px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
    height: 100%;
}

.card-frame:hover {
    border-color: var(--accent-green);
}

.specimen-image {
    height: 120px;
    background: var(--bg-primary);
    border-radius: 2px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phosphor-trace {
    width: 80%;
    height: 2px;
    background: var(--phosphor);
    box-shadow: 0 0 8px var(--phosphor), 0 0 16px var(--phosphor);
    border-radius: 1px;
    animation: trace-flicker 3s ease-in-out infinite;
}

@keyframes trace-flicker {
    0%, 100% { opacity: 0.6; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.02); }
}

.card-data {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-id {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 300, 'slnt' 0;
}

.card-title {
    font-size: 20px;
    font-variation-settings: 'MONO' 0, 'CASL' 1, 'wght' 700, 'slnt' 0;
    color: var(--text-primary);
}

.card-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-variation-settings: 'MONO' 0, 'CASL' 0, 'wght' 400, 'slnt' 0;
}

.card-meter {
    height: 3px;
    background: var(--bg-primary);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: var(--accent-green);
    width: 0%;
    transition: width 1.5s ease-out;
    box-shadow: 0 0 4px var(--accent-green);
}

/* Oscilloscope / Data Stream */
.datastream {
    padding: 0 0 80px;
    background: var(--bg-primary);
}

.oscilloscope {
    position: relative;
    margin: 32px 48px;
    height: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}

#oscilloscope-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.scope-overlay {
    position: absolute;
    top: 12px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scope-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--accent-green);
    font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 400, 'slnt' 0;
}

.scope-freq {
    font-size: 9px;
    color: var(--text-muted);
    font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 300, 'slnt' 0;
}

/* Field Notes */
.fieldnotes {
    padding: 0 0 80px;
    background: var(--bg-primary);
}

.notes-container {
    padding: 32px 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.note {
    padding: 24px;
    border-left: 2px solid var(--accent-green);
    background: var(--bg-secondary);
}

.note-date {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--accent-green);
    font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 400, 'slnt' 0;
    display: block;
    margin-bottom: 8px;
}

.note-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-variation-settings: 'MONO' 0, 'CASL' 0.5, 'wght' 400, 'slnt' -5;
    font-style: italic;
}

/* Footer */
.station-footer {
    padding: 32px 48px;
    border-top: 1px solid var(--border);
}

.footer-frame {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-id,
.footer-status {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 300, 'slnt' 0;
}

.footer-status {
    color: var(--accent-green);
    animation: pulse 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .section-header {
        padding: 24px 20px;
    }
    .specimen-grid {
        grid-template-columns: 1fr;
    }
    .oscilloscope {
        margin: 24px 20px;
    }
    .notes-container {
        padding: 24px 20px;
    }
    .station-footer {
        padding: 24px 20px;
    }
    .corner-readout {
        padding: 10px;
    }
}
