/* ==========================================================================
   munju.club - Cottagecore Pastoral Design
   Colors: #F5F1E8, #3D5A3D, #A8B8A3, #C8A3A0, #D4BEC9, #8B8C5F, #9D7556, #E3E8D8
   Fonts: Playfair Display, Lora, Source Serif 4, Alegreya Sans
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F5F1E8;
    color: #3D5A3D;
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- Typography --- */
.section-heading,
.season-heading {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: lowercase;
    color: #3D5A3D;
    margin-bottom: 1.5rem;
}

.plant-common-name {
    font-family: 'Lora', 'Georgia', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.8rem;
    text-transform: lowercase;
    color: #3D5A3D;
    margin-bottom: 0.4rem;
}

.plant-botanical-name {
    font-family: 'Alegreya Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    color: #8B8C5F;
    display: block;
    margin-bottom: 1.2rem;
    letter-spacing: 0.03em;
}

.body-text,
.plant-description {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #3D5A3D;
    max-width: 52em;
    margin-bottom: 1rem;
}

.margin-annotation {
    font-family: 'Alegreya Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    color: #A8B8A3;
    opacity: 0.8;
    display: block;
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #E3E8D8;
    max-width: 30em;
    line-height: 1.5;
    pointer-events: none;
}

/* --- Easing --- */
:root {
    --ease-organic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Navigation --- */
.nav-bar {
    position: fixed;
    top: -60px;
    left: 20px;
    z-index: 100;
    background: #F5F1E8;
    border-radius: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 18px;
    transition: top 0.5s var(--ease-organic);
}

.nav-bar.visible {
    top: 20px;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.nav-icon {
    flex-shrink: 0;
}

.nav-title {
    font-family: 'Lora', 'Georgia', serif;
    font-style: italic;
    font-size: 12px;
    color: #3D5A3D;
    cursor: default;
}

.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background: #F5F1E8;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 8px 14px;
    margin-top: 8px;
    min-width: 120px;
}

.nav-bar:hover .nav-links {
    display: flex;
}

.nav-links a {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-size: 14px;
    color: #3D5A3D;
    text-decoration: none;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s var(--ease-organic);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #9D7556;
    transition: width 0.4s var(--ease-organic);
}

.nav-links a:hover {
    color: #9D7556;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Watercolor Washes --- */
.watercolor-wash {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
}

.wash-gate {
    top: 5%;
    right: 5%;
    width: 50vw;
    height: 50vh;
    background: #D4BEC9;
    opacity: 0.2;
}

.wash-paths {
    top: 20%;
    left: -10%;
    width: 40vw;
    height: 40vh;
    background: #E3E8D8;
    opacity: 0.2;
}

.wash-profiles {
    top: 10%;
    right: -5%;
    width: 45vw;
    height: 50vh;
    background: #E3E8D8;
    opacity: 0.18;
}

.wash-spring {
    top: 0;
    left: 10%;
    width: 50vw;
    height: 40vh;
    background: #D4BEC9;
    opacity: 0.15;
}

.wash-autumn {
    top: 55%;
    right: 5%;
    width: 45vw;
    height: 35vh;
    background: #C8A3A0;
    opacity: 0.15;
}

.wash-harvest {
    top: 15%;
    left: -5%;
    width: 55vw;
    height: 50vh;
    background: #E3E8D8;
    opacity: 0.2;
}

/* --- Section: The Gate --- */
.section-gate {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 8vw 8vh;
    overflow: hidden;
}

.gate-content {
    position: relative;
    z-index: 2;
    max-width: 65%;
}

.gate-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: #3D5A3D;
    text-transform: lowercase;
    margin-bottom: 0.8rem;
}

.gate-tagline {
    font-family: 'Lora', 'Georgia', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #8B8C5F;
    margin-bottom: 2rem;
}

.gate-illustration {
    position: absolute;
    top: 5%;
    right: 5%;
    width: 40%;
    max-width: 400px;
    z-index: 1;
    opacity: 0.85;
}

.botanical-gate-svg {
    width: 100%;
    height: auto;
    transform: rotate(2deg);
}

.pressed-flower-divider {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.pressed-flower-divider svg {
    width: 60px;
    height: auto;
}

.divider-gate {
    position: relative;
    z-index: 2;
}

/* --- Section: The Paths --- */
.section-paths {
    position: relative;
    padding: 4vh 8vw 8vh;
}

.paths-content {
    position: relative;
    z-index: 2;
}

.content-cluster {
    display: flex;
    align-items: flex-start;
    gap: 4vw;
    margin-bottom: 10vh;
}

.content-cluster.cluster-reversed {
    flex-direction: row-reverse;
}

.content-card {
    flex: 1;
    position: relative;
}

.card-text {
    background: #F5F1E8;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s var(--ease-organic), box-shadow 0.3s var(--ease-organic);
    max-width: 65%;
}

.card-text:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 35%;
}

.botanical-illustration {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.ill-foxglove {
    transform: rotate(3deg);
}

.ill-lavender {
    transform: rotate(-4deg);
}

.ill-wild-rose {
    transform: rotate(2.5deg);
}

/* --- Botanical Ornaments --- */
.botanical-ornament {
    display: flex;
    justify-content: center;
    padding: 3vh 0;
}

.botanical-ornament svg {
    width: 200px;
    height: auto;
}

/* --- Section: Plant Profiles --- */
.section-profiles {
    position: relative;
    padding: 6vh 8vw;
}

.plant-profile {
    display: flex;
    align-items: flex-start;
    gap: 4vw;
    margin-bottom: 12vh;
    position: relative;
}

.profile-left .plant-illustration {
    flex: 0 0 55%;
    max-width: 55%;
}

.profile-left .plant-info {
    flex: 0 0 40%;
    max-width: 40%;
    padding-top: 3rem;
}

.profile-right {
    flex-direction: row-reverse;
}

.profile-right .plant-illustration {
    flex: 0 0 50%;
    max-width: 50%;
}

.profile-right .plant-info {
    flex: 0 0 45%;
    max-width: 45%;
    padding-top: 3rem;
}

.plant-illustration svg {
    width: 100%;
    height: auto;
}

.ill-hollyhock {
    transform: rotate(4deg);
}

.ill-violet {
    transform: rotate(-3deg);
}

.ill-lavender-full {
    transform: rotate(3.5deg);
}

.ill-sweet-william {
    transform: rotate(-2.5deg);
}

/* --- Section: Seasonal Stories --- */
.section-seasons {
    position: relative;
    padding: 6vh 8vw;
    max-width: 52em;
    margin: 0 auto;
}

.season-block {
    margin-bottom: 10vh;
    position: relative;
}

.season-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    color: #3D5A3D;
}

.season-text-with-illustration {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.season-text {
    flex: 1;
}

.season-inline-illustration {
    flex: 0 0 100px;
    display: flex;
    align-items: flex-start;
    padding-top: 1rem;
}

.season-inline-illustration svg {
    width: 100px;
    height: auto;
    opacity: 0.7;
}

.season-inline-illustration.illustration-left {
    order: -1;
}

.divider-season {
    padding: 1rem 0 2rem;
}

/* --- Section: The Harvest --- */
.section-harvest {
    position: relative;
    padding: 6vh 8vw 4vh;
}

.harvest-content {
    display: flex;
    align-items: flex-start;
    gap: 4vw;
    position: relative;
    z-index: 2;
}

.harvest-illustration {
    flex: 0 0 50%;
    max-width: 50%;
}

.harvest-illustration svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    transform: rotate(-2deg);
}

.harvest-text {
    flex: 1;
    padding-top: 4rem;
}

/* --- Footer --- */
.site-footer {
    background: #E3E8D8;
    padding: 4rem 8vw;
    text-align: center;
}

.footer-content {
    max-width: 40em;
    margin: 0 auto;
}

.footer-name {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #3D5A3D;
    text-transform: lowercase;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-text {
    font-family: 'Lora', 'Georgia', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: #A8B8A3;
    margin-bottom: 1.5rem;
}

.footer-ornament {
    display: flex;
    justify-content: center;
}

.footer-ornament svg {
    width: 80px;
    height: auto;
}

/* --- Fade Reveal --- */
.fade-reveal {
    opacity: 0;
    transition: opacity 0.7s var(--ease-organic);
}

.fade-reveal.revealed {
    opacity: 1;
}

.margin-annotation.fade-reveal {
    transition: opacity 0.6s var(--ease-organic);
}

/* --- Illustration Rotation on Scroll --- */
.botanical-illustration,
.botanical-gate-svg {
    transition: transform 0.4s var(--ease-organic);
}

/* --- Gradient Section Divider --- */
.divider-paths,
.divider-profiles,
.divider-seasons {
    background: linear-gradient(135deg, #A8B8A3, #E3E8D8);
    padding: 3rem 0;
    opacity: 0.3;
}

/* --- Links --- */
a {
    color: #3D5A3D;
    text-decoration: none;
    position: relative;
    transition: color 0.3s var(--ease-organic);
}

a:hover {
    color: #9D7556;
}

/* --- Responsive: Tablet (1024px) --- */
@media (max-width: 1024px) {
    .content-cluster {
        gap: 2vw;
    }

    .card-text {
        max-width: 60%;
        padding: 2rem;
    }

    .card-illustration {
        max-width: 40%;
    }

    .profile-left .plant-illustration,
    .profile-right .plant-illustration {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .profile-left .plant-info,
    .profile-right .plant-info {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .harvest-illustration {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .section-seasons {
        padding: 6vh 6vw;
    }
}

/* --- Responsive: Mobile (768px) --- */
@media (max-width: 768px) {
    .section-gate {
        padding: 0 5vw 6vh;
    }

    .gate-content {
        max-width: 100%;
    }

    .gate-illustration {
        position: relative;
        top: auto;
        right: auto;
        width: 60%;
        max-width: 280px;
        margin: 3rem auto 2rem;
    }

    .section-gate {
        justify-content: center;
        align-items: flex-start;
    }

    .section-paths,
    .section-profiles,
    .section-harvest {
        padding: 4vh 5vw;
    }

    .content-cluster,
    .content-cluster.cluster-reversed {
        flex-direction: column;
    }

    .card-text {
        max-width: 100%;
    }

    .card-illustration {
        max-width: 70%;
        margin: 0 auto;
    }

    .plant-profile,
    .profile-right {
        flex-direction: column;
    }

    .profile-left .plant-illustration,
    .profile-left .plant-info,
    .profile-right .plant-illustration,
    .profile-right .plant-info {
        flex: none;
        max-width: 100%;
    }

    .plant-illustration {
        max-width: 70%;
        margin: 0 auto 2rem;
    }

    .harvest-content {
        flex-direction: column;
    }

    .harvest-illustration {
        flex: none;
        max-width: 70%;
        margin: 0 auto 2rem;
    }

    .harvest-text {
        padding-top: 0;
    }

    .section-seasons {
        padding: 4vh 5vw;
        max-width: 100%;
    }

    .season-text-with-illustration {
        flex-direction: column;
    }

    .season-inline-illustration {
        flex: none;
        order: -1;
        margin-bottom: 1rem;
    }

    .season-inline-illustration.illustration-left {
        order: -1;
    }

    .margin-annotation {
        position: relative;
        display: block;
        margin-top: 1.5rem;
    }

    .nav-bar {
        left: 10px;
        padding: 8px 14px;
    }

    .nav-bar.visible {
        top: 10px;
    }
}

/* --- Paper Texture Overlay --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
