/* luminous.day — Moonlit fairy grove bento */
/* Colors: #0A1628, #14233C, #6A7E95, #8A9EB5, #A0B8D0, #C8D8E8, #D4A0B0, #E8C878 */
/* Fonts: Cormorant Garamond, Inter */

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

html, body {
    height: 100%;
    overflow: hidden;
    background-color: #0A1628;
    color: #C8D8E8;
}

/* Moonlight pool */
.moonlight-pool {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(160, 184, 208, 0.08), transparent 70%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.moonlight-pool.visible {
    opacity: 1;
}

/* Constellation dust */
.constellation-dust {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.dust-particle {
    position: absolute;
    width: 1px;
    height: 1px;
    border-radius: 50%;
    background-color: #C8D8E8;
    opacity: 0.15;
    animation: dust-twinkle 4s ease-in-out infinite;
}

@keyframes dust-twinkle {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.25; }
}

/* Fireflies */
.fireflies {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #E8C878;
    box-shadow: 0 0 6px 2px rgba(232, 200, 120, 0.3);
    animation: firefly-drift var(--drift-duration) ease-in-out infinite, firefly-pulse var(--pulse-duration) ease-in-out infinite;
    opacity: 0;
    transition: opacity 1s ease;
}

.firefly.visible {
    opacity: var(--max-opacity);
}

@keyframes firefly-drift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(var(--dx1), var(--dy1)); }
    50% { transform: translate(var(--dx2), var(--dy2)); }
    75% { transform: translate(var(--dx3), var(--dy3)); }
}

@keyframes firefly-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

/* Bento Grid */
.bento-grid {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 8px;
    padding: 24px;
    max-width: 900px;
    margin: 0 auto;
    height: 100vh;
    align-content: center;
}

.cell {
    background-color: rgba(20, 35, 60, 0.6);
    border: 1px solid rgba(106, 126, 149, 0.15);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.4s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.cell.visible {
    opacity: 1;
    transform: translateY(0);
}

.cell:hover {
    box-shadow: 0 4px 20px rgba(160, 184, 208, 0.1);
}

.cell-wide {
    grid-column: span 2;
}

/* Title Cell */
.cell-title {
    grid-column: 1 / 3;
    padding: 32px;
}

.title-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    letter-spacing: 0.1em;
    color: #C8D8E8;
    line-height: 1.1;
}

.title-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #6A7E95;
    text-transform: uppercase;
    margin-top: 8px;
}

/* Poem Cell */
.poem-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    line-height: 2;
    color: #A0B8D0;
}

/* Moon Cell */
.cell-moon {
    gap: 12px;
}

.moon-orb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #C8D8E8, #8A9EB5);
    position: relative;
}

.moon-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 216, 232, 0.15), transparent 70%);
}

.cell-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: #6A7E95;
    text-transform: uppercase;
}

/* Enchantments */
.section-header {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #C8D8E8;
    margin-bottom: 12px;
    letter-spacing: 0.06em;
}

.enchant-list {
    list-style: none;
}

.enchant-item {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    color: #8A9EB5;
    padding: 4px 0;
    letter-spacing: 0.04em;
}

/* Quote */
.quote-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    line-height: 1.7;
    color: #D4A0B0;
    border: none;
    margin: 0;
    padding: 0;
}

/* Flora */
.cell-flora {
    gap: 10px;
}

.flora-svg {
    display: block;
}

/* Time */
.cell-time {
    gap: 6px;
}

.time-display {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: #E8C878;
}

/* Whisper */
.whisper-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 0.85rem;
    color: #6A7E95;
    line-height: 1.6;
}

/* Bottom */
.cell-bottom {
    grid-column: 1 / 4;
}

.bottom-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #6A7E95;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        padding: 16px;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .cell-title {
        grid-column: 1 / 3;
    }

    .cell-wide {
        grid-column: 1 / 3;
    }

    .cell-bottom {
        grid-column: 1 / 3;
    }
}
