/* genpatsu.io — Cottagecore × Anti-Nuclear */

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

:root {
    --moss: #8a9a6b;
    --amber: #c9973a;
    --charcoal: #3a3530;
    --parchment: #f4efe4;
    --near-black: #2b2d2e;
    --deep-green: #5e7048;
    --warm-grey: #c2b8a3;
    --light-linen: #e8e2d6;
    --warning-red: #c4453e;
}

html, body {
    height: 100vh;
    overflow: hidden;
    background: var(--parchment);
    font-family: 'Lora', Georgia, serif;
    color: var(--charcoal);
}

/* Progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--deep-green), var(--amber), var(--warning-red));
    z-index: 100;
    transition: width 0.1s linear;
}

/* Horizontal scroll container */
.scroll-container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Panels */
.panel {
    min-width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Meadow panels */
.meadow {
    background-color: var(--parchment);
    background-image:
        radial-gradient(ellipse at 20% 80%, rgba(138,154,107,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201,151,58,0.08) 0%, transparent 50%);
}

.meadow-content {
    text-align: center;
    max-width: 700px;
    padding: 2rem;
}

.title-main {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--charcoal);
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.title-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    color: var(--deep-green);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.title-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--warm-grey);
    margin-bottom: 3rem;
}

.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: var(--deep-green);
    opacity: 0.7;
    animation: pulseHint 2s ease-in-out infinite;
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 0.9; transform: translateX(5px); }
}

/* Botanical border */
.botanical-border {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.corner-vine {
    position: absolute;
    width: 100px;
    height: 100px;
}

.corner-vine.top-left { top: 15px; left: 15px; }
.corner-vine.top-right { top: 15px; right: 15px; }
.corner-vine.bottom-left { bottom: 15px; left: 15px; }
.corner-vine.bottom-right { bottom: 15px; right: 15px; }

/* Grid Breach panels */
.grid-breach {
    background-color: var(--near-black);
    color: var(--parchment);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201,151,58,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,151,58,0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.breach-content {
    text-align: left;
    max-width: 650px;
    padding: 2rem;
    z-index: 1;
}

.breach-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--parchment);
    margin-bottom: 2rem;
}

/* Glitch effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.glitch::before {
    color: var(--warning-red);
    clip-path: inset(0 0 65% 0);
    animation: glitchTop 3s infinite linear;
}

.glitch::after {
    color: var(--amber);
    clip-path: inset(65% 0 0 0);
    animation: glitchBottom 3.5s infinite linear;
}

@keyframes glitchTop {
    0%, 90%, 100% { transform: translateX(0); }
    92% { transform: translateX(-8px); }
    94% { transform: translateX(8px); }
    96% { transform: translateX(-4px); }
    98% { transform: translateX(4px); }
}

@keyframes glitchBottom {
    0%, 88%, 100% { transform: translateX(0); }
    90% { transform: translateX(6px); }
    93% { transform: translateX(-6px); }
    95% { transform: translateX(3px); }
    97% { transform: translateX(-3px); }
}

/* Data block */
.data-block {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(201,151,58,0.2);
    padding-bottom: 0.8rem;
}

.data-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--warm-grey);
}

.data-value {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--amber);
}

/* Warning strip */
.warning-strip {
    overflow: hidden;
    white-space: nowrap;
    padding: 0.6rem 0;
    border-top: 1px solid var(--warning-red);
    border-bottom: 1px solid var(--warning-red);
    margin-top: 1.5rem;
}

.warning-strip span {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--warning-red);
    animation: marquee 12s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Meadow quote */
.meadow-quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 3rem;
}

.meadow-heading {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--deep-green);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.meadow-text {
    font-family: 'Lora', serif;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    line-height: 1.9;
    color: var(--charcoal);
    margin-bottom: 2rem;
}

.meadow-closing {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--deep-green);
    margin-top: 2rem;
    letter-spacing: 0.04em;
}

/* Pressed flowers */
.pressed-flowers {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: flex-end;
}

.flower {
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.flower-1 { width: 60px; height: 80px; }
.flower-2 { width: 50px; height: 70px; }
.flower-3 { width: 40px; height: 70px; }
.flower-end { width: 80px; height: 100px; }

.final-flowers {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Embroidery motif */
.embroidery-motif {
    margin-top: 2rem;
}

.embroidery-motif svg {
    width: 100%;
    max-width: 300px;
}

/* Radiation symbol */
.radiation-symbol {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    opacity: 0.2;
    animation: slowSpin 30s linear infinite;
}

@keyframes slowSpin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Zone grid */
.zone-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.zone-cell {
    display: grid;
    grid-template-columns: 80px 80px 1fr;
    align-items: center;
    gap: 1rem;
}

.zone-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--parchment);
}

.zone-distance {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    color: var(--warm-grey);
}

.zone-bar {
    height: 8px;
    background: linear-gradient(90deg, var(--amber), var(--warning-red));
    border-radius: 1px;
    transition: width 1s ease-out;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.timeline-event {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    gap: 0.3rem 1rem;
}

.timeline-year {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--amber);
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
}

.timeline-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--parchment);
    letter-spacing: 0.04em;
}

.timeline-severity {
    height: 4px;
    background: linear-gradient(90deg, var(--warning-red), var(--amber));
    border-radius: 1px;
}

/* Panel entrance animations */
.panel-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.panel.visible .panel-content {
    opacity: 1;
    transform: translateY(0);
}

/* Transition zone between meadow and breach */
.meadow + .grid-breach {
    border-left: 3px solid var(--warning-red);
}

.grid-breach + .meadow {
    border-left: 3px solid var(--deep-green);
}
