/* miris.day — Watercolor Sketchbook Journal */

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

:root {
    --paper: #FBF7F0;
    --walnut: #4A3728;
    --earth: #5C4A3D;
    --pencil: #8B7B6B;
    --rose: #E8B4B8;
    --sage: #A8C8A8;
    --sky: #A8C0D8;
    --marigold: #E8D090;
    --lavender: #C0A8D0;
    --deep-rose: #C45B72;
}

body {
    background: var(--paper);
    font-family: 'Lora', serif;
    color: var(--earth);
    overflow-x: hidden;
    position: relative;
}

/* Paper texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        repeating-conic-gradient(rgba(139,123,107,0.02) 0% 25%, transparent 0% 50%) 0 0 / 4px 4px;
}

/* Navigation */
#top-nav {
    position: fixed;
    top: 24px;
    right: 32px;
    z-index: 50;
    display: flex;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#top-nav.visible {
    opacity: 1;
}

.nav-link {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 18px;
    color: var(--pencil);
    text-decoration: none;
    transform: rotate(-1deg);
    display: inline-block;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--deep-rose);
    border-bottom: 1px solid var(--deep-rose);
}

/* Hero */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-splotch {
    position: absolute;
    width: 350px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%) scale(0);
    opacity: 0;
    transition: transform 1.2s ease-out, opacity 1.2s ease-out;
    z-index: 0;
}

.hero-splotch.bloom {
    transform: translate(-50%, -55%) scale(1);
    opacity: 1;
}

.hero-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 48px;
    color: var(--walnut);
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

.hero-annotation {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 20px;
    color: var(--pencil);
    margin-top: 8px;
    transform: rotate(-1.5deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-annotation.visible {
    opacity: 1;
}

/* Hero botanicals */
.hero-botanical {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-botanical.visible {
    opacity: 1;
}

.b1 {
    width: 40px;
    top: 30%;
    left: 18%;
    transform: rotate(15deg) translate(-40px, 0);
}
.b1.visible { transform: rotate(15deg) translate(0, 0); }

.b2 {
    width: 50px;
    top: 25%;
    right: 15%;
    transform: rotate(-10deg) translate(40px, 0);
}
.b2.visible { transform: rotate(-10deg) translate(0, 0); }

.b3 {
    width: 30px;
    bottom: 28%;
    left: 22%;
    transform: rotate(8deg) translate(0, 40px);
}
.b3.visible { transform: rotate(8deg) translate(0, 0); }

.b4 {
    width: 40px;
    bottom: 32%;
    right: 20%;
    transform: rotate(-20deg) translate(0, 40px);
}
.b4.visible { transform: rotate(-20deg) translate(0, 0); }

/* Botanical spacers */
.botanical-spacer {
    position: relative;
    height: 60px;
    margin: 20px 0;
}

.floating-botanical {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.floating-botanical.visible {
    opacity: 1;
}

.fb1 { width: 35px; left: 65%; top: 0; transform: rotate(12deg) translate(0, -20px); }
.fb1.visible { transform: rotate(12deg) translate(0, 0); }

.fb2 { width: 45px; left: 25%; top: 0; transform: rotate(-8deg) translate(0, -20px); }
.fb2.visible { transform: rotate(-8deg) translate(0, 0); }

.fb3 { width: 30px; left: 72%; top: 0; transform: rotate(18deg) translate(0, -20px); }
.fb3.visible { transform: rotate(18deg) translate(0, 0); }

.fb4 { width: 40px; left: 40%; top: 0; transform: rotate(-15deg) translate(0, -20px); }
.fb4.visible { transform: rotate(-15deg) translate(0, 0); }

.fb5 { width: 50px; left: 58%; top: 0; transform: rotate(5deg) translate(0, -20px); }
.fb5.visible { transform: rotate(5deg) translate(0, 0); }

/* Entries */
.entry {
    position: relative;
    padding: 40px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    z-index: 1;
}

.entry.reveal {
    opacity: 1;
    transform: translateY(0);
}

.entry-left {
    margin-left: 10%;
    max-width: 55%;
}

.entry-right {
    margin-left: auto;
    margin-right: 10%;
    max-width: 50%;
}

.entry-center {
    margin-left: auto;
    margin-right: auto;
    max-width: 60%;
}

/* Watercolor washes */
.watercolor-wash {
    position: absolute;
    inset: -20px;
    z-index: -1;
    border-radius: 50%;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transform: scale(0.6);
    opacity: 0;
}

.entry.reveal .watercolor-wash {
    transform: scale(1);
    opacity: 1;
}

.wash-rose {
    background: radial-gradient(ellipse at 40% 35%, rgba(232,180,184,0.12) 0%, rgba(232,180,184,0.04) 50%, transparent 80%);
}

.wash-sage {
    background: radial-gradient(ellipse at 55% 40%, rgba(168,200,168,0.12) 0%, rgba(168,200,168,0.04) 50%, transparent 80%);
}

.wash-sky {
    background: radial-gradient(ellipse at 45% 50%, rgba(168,192,216,0.12) 0%, rgba(168,192,216,0.04) 50%, transparent 80%);
}

.wash-marigold {
    background: radial-gradient(ellipse at 35% 45%, rgba(232,208,144,0.12) 0%, rgba(232,208,144,0.04) 50%, transparent 80%);
}

.wash-lavender {
    background: radial-gradient(ellipse at 60% 35%, rgba(192,168,208,0.12) 0%, rgba(192,168,208,0.04) 50%, transparent 80%);
}

.entry:hover .watercolor-wash {
    opacity: 1.5;
}

.entry-date {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 15px;
    color: var(--pencil);
    display: block;
    margin-bottom: 8px;
    transform: rotate(-1deg);
}

.entry-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 32px;
    color: var(--walnut);
    margin-bottom: 4px;
    line-height: 1.2;
}

.pencil-underline {
    width: 200px;
    height: 6px;
    margin-bottom: 16px;
    transition: width 0.3s ease;
}

.pencil-underline svg {
    width: 100%;
    height: 100%;
}

.entry:hover .pencil-underline {
    width: 220px;
}

.entry-text {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.8;
    color: var(--earth);
    margin-bottom: 16px;
}

.entry-annotation {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 15px;
    color: var(--pencil);
    display: inline-block;
}

.end-space {
    height: 30vh;
}

/* Responsive */
@media (max-width: 768px) {
    .entry-left,
    .entry-right,
    .entry-center {
        margin-left: 5%;
        margin-right: 5%;
        max-width: 90%;
    }

    .hero-title {
        font-size: 36px;
    }

    .entry-title {
        font-size: 26px;
    }

    .hero-botanical {
        display: none;
    }

    #top-nav {
        right: 16px;
        top: 16px;
    }
}
