/* haroo.day - Cottagecore Pastoral Blog */
/* Palette: #fef7ee, #3d2e1f, #78350f, #65a30d, #ca8a04, #c2410c, #6b7280 */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #fef7ee;
    color: #3d2e1f;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    overflow-x: hidden;
}

/* ================================================
   HERO / DAWN SECTION
   ================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: linear-gradient(180deg, #fef7ee 0%, #fdf2e4 60%, #fce8d0 100%);
}

.sun-glow {
    width: 160px;
    height: 80px;
    border-radius: 160px 160px 0 0;
    background: radial-gradient(ellipse at bottom, rgba(202, 138, 4, 0.25) 0%, transparent 70%);
    position: absolute;
    top: calc(50% - 80px);
    animation: sunGlow 4s ease-in-out infinite alternate;
}

@keyframes sunGlow {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.15); }
}

.sun-arc {
    width: 80px;
    height: 40px;
    border-radius: 80px 80px 0 0;
    background: #ca8a04;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
    animation: sunRise 2s ease-out forwards;
    box-shadow: 0 -8px 30px rgba(202, 138, 4, 0.3);
}

@keyframes sunRise {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.horizon {
    width: 240px;
    height: 1px;
    background: linear-gradient(to right, transparent, #c4b8a8, transparent);
    position: relative;
    z-index: 1;
}

.brand {
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #3d2e1f;
    margin-top: 2rem;
    letter-spacing: -0.02em;
    animation: fadeUp 1.5s ease-out 0.5s both;
}

.tagline {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #78350f;
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
    animation: fadeUp 1.5s ease-out 1s both;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ================================================
   JOURNAL / HOURS SECTION
   ================================================ */

.journal {
    max-width: 620px;
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
    position: relative;
}

/* Dotted timeline along the left */
.timeline-line {
    position: absolute;
    left: 1.5rem;
    top: 4rem;
    bottom: 3rem;
    width: 1px;
    background: repeating-linear-gradient(
        to bottom,
        #d6cfc7 0px,
        #d6cfc7 4px,
        transparent 4px,
        transparent 10px
    );
}

.entry {
    position: relative;
    padding: 1.75rem 0 1.75rem 2.5rem;
}

.entry-leaf {
    width: 12px;
    height: 12px;
    background: #65a30d;
    border-radius: 0 50% 0 50%;
    transform: rotate(45deg);
    position: absolute;
    left: -4px;
    top: 2rem;
    z-index: 1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.entry:hover .entry-leaf {
    transform: rotate(45deg) scale(1.3);
    box-shadow: 0 0 8px rgba(101, 163, 13, 0.4);
}

.entry-date {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    color: #78350f;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.entry-title {
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: #78350f;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.entry-text {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #5c4433;
    line-height: 1.9;
}

/* Wavy SVG dividers */
.wave-divider {
    padding: 0.5rem 0 0.5rem 2.5rem;
}

.wave-divider svg {
    width: 100%;
    height: 12px;
    display: block;
}

/* ================================================
   SEASONS STRIP
   ================================================ */

.seasons {
    display: flex;
    max-width: 620px;
    margin: 2rem auto 0;
    overflow: hidden;
    border-radius: 4px;
}

.season {
    flex: 1;
    text-align: center;
    padding: 1.25rem 0.5rem;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: flex 0.5s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.season::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
}

.season:hover::before {
    background: rgba(255, 255, 255, 0.1);
}

.season:hover {
    flex: 1.4;
}

.season-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.season-label {
    position: relative;
    z-index: 1;
}

.season.spring { background: #65a30d; }
.season.summer { background: #ca8a04; }
.season.autumn { background: #c2410c; }
.season.winter { background: #6b7280; }

/* ================================================
   EVENING / FOOTER SECTION
   ================================================ */

.evening {
    background: #3d2e1f;
    color: #e7e5e4;
    text-align: center;
    padding: 6rem 2rem 4rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #e7e5e4;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) { animation-delay: 0s; }
.star:nth-child(2) { animation-delay: 0.7s; }
.star:nth-child(3) { animation-delay: 1.4s; }
.star:nth-child(4) { animation-delay: 2.1s; }
.star:nth-child(5) { animation-delay: 0.3s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.6; }
}

.moon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e7e5e4;
    box-shadow: inset -14px 0 0 #3d2e1f;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.evening-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.evening-subtext {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: #a8a29e;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.evening-brand {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #78716c;
    letter-spacing: 0.15em;
    display: block;
    position: relative;
    z-index: 1;
}

/* ================================================
   FADE-IN ANIMATION (scroll-triggered via JS)
   ================================================ */

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 640px) {
    .journal {
        padding: 3rem 1.25rem 2rem;
    }

    .timeline-line {
        left: 1.25rem;
        top: 3rem;
        bottom: 2rem;
    }

    .entry {
        padding-left: 2rem;
    }

    .wave-divider {
        padding-left: 2rem;
    }

    .seasons {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .season {
        padding: 1rem 0.25rem;
        font-size: 0.65rem;
    }

    .season-icon {
        font-size: 0.9rem;
    }

    .evening {
        padding: 4rem 1.5rem 3rem;
    }
}
