/* ============================================
   showa.boo — Flat-Design Ukiyo-e / HUD Overlay
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-kurozome: #1C0B10;
    --washi: #F2E6D9;
    --stone: #B8B5B0;
    --enji: #7A2E3B;
    --kuro-enji: #2E0A12;
    --kitsune: #C4883A;
    --fukai-enji: #4A0E1B;
    --sakura: #D4A0A0;
    --matsu: #8FA68E;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--washi);
    color: var(--deep-kurozome);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- HUD Frame --- */
#hud-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
}

.hud-edge {
    position: absolute;
    background-color: var(--enji);
}

.hud-edge.hud-top {
    top: 20px;
    left: 20px;
    right: 20px;
    height: 1px;
}

.hud-edge.hud-bottom {
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 1px;
}

.hud-edge.hud-left {
    top: 20px;
    left: 20px;
    bottom: 20px;
    width: 1px;
}

.hud-edge.hud-right {
    top: 20px;
    right: 20px;
    bottom: 20px;
    width: 1px;
}

.hud-corner {
    position: absolute;
    z-index: 1001;
}

.hud-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--enji);
    text-transform: uppercase;
}

.hud-top-left {
    top: 26px;
    left: 28px;
}

.hud-top-right {
    top: 26px;
    right: 28px;
}

.hud-bottom-left {
    bottom: 26px;
    left: 28px;
}

.hud-bottom-right {
    bottom: 26px;
    right: 28px;
}

/* Registration marks */
.hud-mark {
    position: absolute;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: var(--enji);
    opacity: 0.4;
}

.hud-mark-top {
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
}

.hud-mark-bottom {
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
}

.hud-mark-left {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.hud-mark-right {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* --- Scrollable Content --- */
#scroll-container {
    position: relative;
    z-index: 1;
}

/* --- Zones --- */
.zone {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    position: relative;
    transition: background-color 0.8s ease;
}

.zone-inner {
    max-width: 600px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.zone-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Zone backgrounds */
.zone-spring {
    background-color: var(--washi);
}

.zone-summer {
    background-color: #F0DCC8;
}

.zone-autumn {
    background-color: #EAD8C6;
}

.zone-winter {
    background-color: #E2D0BF;
}

.zone-closing {
    background-color: var(--deep-kurozome);
    color: var(--washi);
}

/* --- Typography --- */
.zone-title {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: 0.15em;
    color: var(--kuro-enji);
    margin-bottom: 0.3em;
    text-transform: uppercase;
}

.zone-closing .zone-title {
    color: var(--kitsune);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    letter-spacing: 0.05em;
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: none;
}

.zone-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    letter-spacing: 0.2em;
    color: var(--stone);
    margin-bottom: 2.5em;
    text-transform: uppercase;
}

.zone-closing .zone-subtitle {
    color: var(--sakura);
}

.zone-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.8;
    color: var(--kuro-enji);
    max-width: 480px;
    margin: 0 auto;
}

.zone-closing .zone-text {
    color: var(--sakura);
}

.closing-text {
    font-style: italic;
}

.zone-whisper {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--enji);
    margin-top: 2em;
    opacity: 0.6;
    letter-spacing: 0.3em;
}

/* --- Illustrations --- */
.zone-illustration {
    margin-bottom: 2.5em;
}

.svg-illustration {
    width: 100%;
    max-width: 320px;
    height: auto;
}

/* Petal floating animation */
.petal {
    animation: petal-fall 6s ease-in-out infinite;
}

.petal-1 {
    animation-delay: 0s;
}

.petal-2 {
    animation-delay: 2s;
}

.petal-3 {
    animation-delay: 4s;
}

@keyframes petal-fall {
    0% {
        transform: translate(0, 0) rotate(-30deg);
        opacity: 0.8;
    }
    50% {
        transform: translate(10px, 20px) rotate(15deg);
        opacity: 1;
    }
    100% {
        transform: translate(-5px, 40px) rotate(-45deg);
        opacity: 0;
    }
}

/* --- Scroll-linked color transition overlay --- */
.zone::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .zone {
        padding: 60px 30px;
    }

    .hud-edge.hud-top,
    .hud-edge.hud-bottom {
        left: 12px;
        right: 12px;
    }

    .hud-edge.hud-left,
    .hud-edge.hud-right {
        top: 12px;
        bottom: 12px;
    }

    .hud-edge.hud-top { top: 12px; }
    .hud-edge.hud-bottom { bottom: 12px; }
    .hud-edge.hud-left { left: 12px; }
    .hud-edge.hud-right { right: 12px; }

    .hud-top-left { top: 18px; left: 18px; }
    .hud-top-right { top: 18px; right: 18px; }
    .hud-bottom-left { bottom: 18px; left: 18px; }
    .hud-bottom-right { bottom: 18px; right: 18px; }
}
