/* misty.day -- Cottagecore fog-wrapped garden */
/* Palette: #FFF8F0 (Morning Mist), #C4942E (Honey), #4A3520 (Garden Earth), #9B8AAE (Lavender Haze), #6B8B5E (Fern), #D4A098 (Rose Petal), #2E1E10 (Hearth) */

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

:root {
    --mist: #FFF8F0;
    --honey: #C4942E;
    --earth: #4A3520;
    --lavender: #9B8AAE;
    --fern: #6B8B5E;
    --rose: #D4A098;
    --fog: rgba(255, 248, 240, 0.85);
    --hearth: #2E1E10;
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--mist);
    color: var(--earth);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.85;
    overflow-x: hidden;
}

/* Mist vignette overlay */
.mist-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(255, 248, 240, 0.3) 100%);
    pointer-events: none;
    z-index: 100;
}

/* Room base */
.room {
    min-height: 100svh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Atmospheric backgrounds */
.room-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.gate-atmosphere {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(255, 248, 240, 0.9) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 60%, rgba(196, 148, 46, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(212, 160, 152, 0.06) 0%, transparent 50%);
    filter: blur(40px);
}

.herbs-atmosphere {
    background:
        radial-gradient(ellipse at 40% 50%, rgba(107, 139, 94, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 60% 40%, rgba(255, 248, 240, 0.7) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 70%, rgba(196, 148, 46, 0.05) 0%, transparent 50%);
    filter: blur(40px);
}

.greenhouse-atmosphere {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(196, 148, 46, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 30%, rgba(255, 248, 240, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(212, 160, 152, 0.08) 0%, transparent 50%);
    filter: blur(40px);
}

.evening-atmosphere {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(74, 53, 32, 0.85) 0%, rgba(46, 30, 16, 0.95) 100%);
    filter: blur(20px);
}

/* Room content */
.room-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Content panels */
.content-panel {
    background: var(--fog);
    padding: 2.5rem;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: relative;
    width: 100%;
}

/* Panel leaf decorations */
.panel-leaf {
    position: absolute;
    width: 30px;
    height: 30px;
}

.panel-leaf-tl {
    top: 0.75rem;
    left: 0.75rem;
}

.panel-leaf-br {
    bottom: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 20px;
}

/* Dewdrops */
.dewdrops {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.dew {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

/* Gate section */
.room-gate {
    flex-direction: column;
}

.room-gate .room-content {
    text-align: center;
}

.gate-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.01em;
    color: var(--earth);
    line-height: 1.1;
}

.gate-subtitle {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8B7355;
    margin-top: 0.5rem;
}

.gate-fern {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.fern-svg {
    width: 50px;
    height: auto;
    opacity: 0.4;
}

.fern-draw {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawFern 3s ease 1s forwards;
}

.fern-right {
    animation-delay: 1.5s;
}

@keyframes drawFern {
    to {
        stroke-dashoffset: 0;
    }
}

/* Section headings */
.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.75rem, 4vw, 3rem);
    color: var(--earth);
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Body text */
.body-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--earth);
}

/* Garden labels */
.garden-label {
    display: block;
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 1rem;
    color: var(--honey);
    margin-top: 1rem;
    transform: rotate(-4deg);
    transform-origin: left center;
}

/* Work titles */
.work-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--earth);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* Garland dividers */
.garland-divider {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.garland-svg {
    width: 200px;
    height: 20px;
}

/* Evening section */
.room-evening {
    background-color: var(--hearth);
}

.evening-panel {
    background: rgba(46, 30, 16, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.evening-text {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--mist);
    line-height: 1.7;
    text-align: center;
}

.evening-lavender {
    margin-top: 2rem;
}

.lavender-svg {
    width: 40px;
    height: auto;
}

.lavender-draw {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 3s ease;
}

.evening-lavender.revealed .lavender-draw {
    stroke-dashoffset: 0;
}

/* Reveal animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease, transform 600ms var(--spring);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .room-content {
        padding: 3rem 1.25rem;
    }

    .content-panel {
        padding: 1.75rem;
    }

    .dewdrops {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .fern-draw {
        stroke-dashoffset: 0;
        animation: none;
    }

    .lavender-draw {
        stroke-dashoffset: 0;
        transition: none;
    }
}
