/* mosoon.org - 1970s Weather Station CRT Terminal Aesthetic */
/* Colors: #a8e6b4, #2d5a3a, #4a7c59, #1a2e1f, #7bc88f, #0a0f0c, #c4a35a */
/* Fonts: Share Tech Mono, Space Mono, Lora, Inter */

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #2d5a3a #0a0f0c;
}

body {
    background: #0a0f0c;
    color: #7bc88f;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* CRT Scanline Overlay */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
}

.crt-overlay::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 60%,
        rgba(10, 15, 12, 0.4) 100%
    );
    pointer-events: none;
}

/* Rain Canvas */
#rain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* Main Content Column */
.content-column {
    position: relative;
    z-index: 10;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 5vw;
}

/* ===== SECTION 1: THE SIGNAL ===== */
.section-signal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signal-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.droplet-container {
    animation: dropletFall 3s ease-in-out infinite;
}

@keyframes dropletFall {
    0% { transform: translateY(-15px); opacity: 0.3; }
    50% { transform: translateY(15px); opacity: 1; }
    100% { transform: translateY(-15px); opacity: 0.3; }
}

.droplet-svg .droplet-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawDroplet 3s ease-in-out infinite;
}

@keyframes drawDroplet {
    0% { stroke-dashoffset: 200; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -200; }
}

.domain-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7bc88f;
    text-shadow: 0 0 20px rgba(123, 200, 143, 0.3), 0 0 40px rgba(123, 200, 143, 0.1);
    animation: crtFlicker 4s ease-in-out infinite;
}

@keyframes crtFlicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

.signal-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #4a7c59;
    text-transform: uppercase;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7bc88f;
    animation: blink 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(123, 200, 143, 0.6);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.signal-timestamp {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-family: 'Share Tech Mono', monospace;
}

.timestamp-label {
    font-size: 9px;
    letter-spacing: 0.25em;
    color: #2d5a3a;
    text-transform: uppercase;
}

.timestamp-value {
    font-size: 13px;
    color: #4a7c59;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    animation: fadeInUp 2s ease-out 1.5s both;
}

.scroll-arrow {
    font-size: 10px;
    color: #2d5a3a;
    animation: scrollBounce 2s ease-in-out infinite;
}

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

.scroll-text {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #2d5a3a;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 6rem 0 3rem;
    padding: 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2d5a3a, transparent);
}

.divider-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.25em;
    color: #2d5a3a;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ===== SECTION 2: LOG ENTRIES ===== */
.section-logs {
    padding-bottom: 4rem;
}

.log-entry {
    border-left: 1px solid #1a2e1f;
    padding: 1.5rem 0 1.5rem 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: relative;
}

.log-entry.revealed {
    opacity: 1;
    transform: translateY(0);
}

.log-entry::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 1.8rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4a7c59;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.log-id {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: #7bc88f;
    letter-spacing: 0.15em;
}

.log-date {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #2d5a3a;
    letter-spacing: 0.1em;
}

.log-body {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #7bc88f;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.log-whisper {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 14px;
    color: #a8e6b4;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 1px solid #4a7c59;
    opacity: 0.7;
}

.log-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-tag {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #2d5a3a;
    text-transform: uppercase;
    padding: 2px 8px;
    border: 1px solid #1a2e1f;
    border-radius: 2px;
}

/* ===== SECTION 3: BAROMETER ===== */
.section-barometer {
    padding-bottom: 4rem;
}

.barometer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease, transform 1s ease;
}

.barometer-container.revealed {
    opacity: 1;
    transform: scale(1);
}

.barometer-svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(196, 163, 90, 0.1));
}

.barometer-needle {
    transform-origin: 150px 150px;
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.barometer-reading {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-family: 'Share Tech Mono', monospace;
}

.reading-label {
    font-size: 9px;
    letter-spacing: 0.2em;
    color: #2d5a3a;
    text-transform: uppercase;
}

.reading-value {
    font-size: 28px;
    color: #7bc88f;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(123, 200, 143, 0.3);
}

.reading-unit {
    font-size: 12px;
    color: #4a7c59;
    letter-spacing: 0.1em;
}

/* ===== SECTION 4: RAINFALL DATA ===== */
.section-rainfall {
    padding-bottom: 4rem;
}

.rainfall-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 250px;
    gap: 0.5rem;
    padding: 0 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.rainfall-grid.revealed {
    opacity: 1;
    transform: translateY(0);
}

.rainfall-month {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    gap: 0.5rem;
}

.rain-bar-container {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 40px;
}

.rain-bar {
    width: 100%;
    background: linear-gradient(180deg, #7bc88f, #2d5a3a);
    border-radius: 2px 2px 0 0;
    position: relative;
    transition: height 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 2px;
}

.rain-amount {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    color: #4a7c59;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease 1.5s;
}

.rainfall-grid.revealed .rain-amount {
    opacity: 1;
}

.month-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: #2d5a3a;
    text-transform: uppercase;
}

.rainfall-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    padding: 1.5rem;
    border: 1px solid #1a2e1f;
    border-radius: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.rainfall-summary.revealed {
    opacity: 1;
    transform: translateY(0);
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 22px;
    color: #7bc88f;
    letter-spacing: 0.05em;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    letter-spacing: 0.2em;
    color: #2d5a3a;
    text-transform: uppercase;
    text-align: center;
}

/* ===== SECTION 5: THE DRIFT ===== */
.section-drift {
    padding-bottom: 6rem;
}

.drift-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.drift-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

.drift-text {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    line-height: 1.9;
    color: #4a7c59;
    margin-bottom: 1.5rem;
}

.drift-whisper {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 14px;
    line-height: 1.8;
    color: #a8e6b4;
    opacity: 0.6;
    margin-top: 2rem;
    padding: 1.5rem;
    border-left: 1px solid #2d5a3a;
    border-right: 1px solid #2d5a3a;
}

.drift-signal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.drift-signal.revealed {
    opacity: 1;
}

.signal-wave {
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.wave-svg {
    width: 100%;
    height: auto;
}

.wave-path {
    stroke-dasharray: 800;
    animation: waveDraw 4s linear infinite;
}

@keyframes waveDraw {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -800; }
}

.wave-path-glow {
    stroke-dasharray: 800;
    animation: waveDraw 4s linear infinite;
    filter: blur(1px);
}

.signal-end-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: #2d5a3a;
    text-transform: uppercase;
}

.signal-end-code {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    letter-spacing: 0.5em;
    color: #1a2e1f;
}

/* Footer */
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid #1a2e1f;
}

.footer-domain {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #2d5a3a;
    text-transform: uppercase;
}

.footer-year {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #1a2e1f;
    text-transform: uppercase;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .content-column {
        padding: 0 6vw;
    }

    .rainfall-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .barometer-svg {
        width: 240px;
        height: 240px;
    }

    .log-meta {
        gap: 0.5rem;
    }

    .section-divider {
        gap: 0.75rem;
    }

    .rainfall-grid {
        height: 180px;
    }
}

/* ===== SELECTION COLORS ===== */
::selection {
    background: #2d5a3a;
    color: #a8e6b4;
}

::-moz-selection {
    background: #2d5a3a;
    color: #a8e6b4;
}

/* Scrollbar for webkit */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #0a0f0c;
}

::-webkit-scrollbar-thumb {
    background: #2d5a3a;
    border-radius: 2px;
}
