/* ===== lovely.day - Watercolor Daybook ===== */

:root {
    --paper-ground: #F5ECD7;
    --sepia-ink: #5C3D2E;
    --wash-rose: #C4897A;
    --wash-ochre: #D4A853;
    --wash-sage: #8BA888;
    --shadow-umber: #3E2A1E;
    --faded-mauve: #B8929A;
    --bleached-linen: #EDE3CE;
    --caption-brown: #8B7355;
}

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

body {
    background: var(--paper-ground);
    background-image: radial-gradient(ellipse at 40% 30%, #E8D5B0 0%, var(--paper-ground) 70%);
    color: var(--sepia-ink);
    font-family: 'Lora', serif;
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
}

/* ===== Light Leak ===== */
.light-leak {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(212, 168, 83, 0.06), transparent 60%);
    animation: lightDrift 30s ease-in-out infinite alternate;
}

@keyframes lightDrift {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(40px, 30px); opacity: 0.6; }
}

/* ===== Daybook Navigation ===== */
.daybook-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 1.2rem 2rem;
    background: rgba(245, 236, 215, 0.9);
    backdrop-filter: blur(8px);
}

.day-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 300;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--caption-brown);
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: opacity 300ms ease, border-color 300ms ease;
}

.day-label.active {
    opacity: 1;
    border-bottom-color: var(--sepia-ink);
}

.day-label:hover {
    opacity: 0.9;
}

/* ===== Day Sections ===== */
.day-section {
    position: relative;
    z-index: 1;
    min-height: 80vh;
    padding: 8rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#morning {
    min-height: 100vh;
    justify-content: center;
}

.section-content {
    max-width: 680px;
    width: 100%;
    position: relative;
}

/* ===== Day Titles ===== */
.day-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--sepia-ink);
    margin-bottom: 2rem;
    opacity: 0;
    transition: opacity 800ms ease;
    position: relative;
    overflow: hidden;
}

.day-title.visible {
    opacity: 1;
}

/* ===== Prose Blocks ===== */
.prose-block {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.prose-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.prose-block p {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.75;
    color: var(--sepia-ink);
}

.prose-block p em {
    font-style: italic;
    color: var(--wash-rose);
}

/* ===== Margin Notes ===== */
.margin-note {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--caption-brown);
    opacity: 0.6;
    position: absolute;
    right: -180px;
    width: 150px;
    margin-top: -2rem;
    line-height: 1.4;
}

/* ===== Wash Blobs ===== */
.wash-blob {
    position: absolute;
    border-radius: 50%;
    filter: url(#watercolor-filter);
    pointer-events: none;
    z-index: 0;
}

.wash-dawn {
    top: 10%;
    left: -5%;
    width: 60%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(212, 168, 83, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 2s ease;
}

.wash-dawn.visible {
    opacity: 1;
}

/* ===== Wash Bands ===== */
.wash-band {
    position: relative;
    z-index: 1;
    height: 80px;
    margin: 0;
    filter: url(#watercolor-filter);
    opacity: 0;
    transition: opacity 600ms ease;
}

.wash-band.visible {
    opacity: 1;
}

.wash-sage {
    background: linear-gradient(180deg, transparent, rgba(139, 168, 136, 0.25) 40%, rgba(139, 168, 136, 0.25) 60%, transparent);
}

.wash-rose {
    background: linear-gradient(180deg, transparent, rgba(196, 137, 122, 0.25) 40%, rgba(196, 137, 122, 0.25) 60%, transparent);
}

.wash-mauve {
    background: linear-gradient(180deg, transparent, rgba(184, 146, 154, 0.25) 40%, rgba(184, 146, 154, 0.25) 60%, transparent);
}

.wash-ochre {
    background: linear-gradient(180deg, transparent, rgba(212, 168, 83, 0.25) 40%, rgba(212, 168, 83, 0.25) 60%, transparent);
}

/* ===== Pressed Flowers ===== */
.pressed-flower {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.flower-1 {
    top: 30%;
    right: 8%;
}

.flower-2 {
    bottom: 15%;
    left: 6%;
}

/* ===== Ink Blots ===== */
.ink-blots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.blot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sepia-ink);
    opacity: 0.18;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .margin-note {
        position: relative;
        right: 0;
        width: 100%;
        margin-top: 1rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .daybook-nav {
        gap: 1.2rem;
    }

    .day-section {
        padding: 6rem 1.2rem 3rem;
    }

    .pressed-flower {
        display: none;
    }
}
