/* lupine.day — Ethereal Golden-Hour Reverie */
/* Palette: #FCEABB, #F8CBA6, #F8B4A0, #E8A0A0, #D4956A, #8B5E3C, #3D2315, #F0E6DC, #8B6F5E, #A8B87A, #9B7CB8 */
/* Fonts: Playfair Display (display), Lora (body) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif;
    background-color: #FCEABB;
    color: #3D2315;
    overflow-x: hidden;
}

/* ============================================
   WARM GRAIN OVERLAY
   ============================================ */
.grain-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: soft-light;
    transition: opacity 0.8s ease;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0.2 0 0 0.1 0 0.8 0 0 0.05 0 0 0.5 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.grain-overlay.visible {
    opacity: 0.025;
}

.grain-overlay.active {
    opacity: 0.035;
}

/* ============================================
   LIGHT PARTICLES
   ============================================ */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: #FCEABB;
    pointer-events: none;
}

@keyframes floatParticle {
    0% {
        transform: translate(0, 0);
        opacity: var(--p-opacity);
    }
    100% {
        transform: translate(50px, -200px);
        opacity: 0;
    }
}

/* ============================================
   HERO — GOLDEN HORIZON
   ============================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20vh;
    background: linear-gradient(to bottom, #FCEABB 0%, #F8CBA6 50%, #F8B4A0 100%);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(252, 234, 187, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    max-width: 720px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #3D2315;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-caption {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 0.85rem;
    color: #8B6F5E;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.6s ease 0.4s;
}

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

.horizon-line {
    display: block;
    width: 100%;
    max-width: 400px;
    height: 30px;
    margin: 20px auto 0;
}

.horizon-path {
    fill: none;
    stroke: #D4956A;
    stroke-width: 1;
    stroke-opacity: 0.3;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0.6s ease-out, stroke-width 0.2s ease;
}

.horizon-path.visible {
    stroke-dashoffset: 0;
}

.horizon-line:hover .horizon-path,
.horizon-line-band:hover .horizon-path {
    stroke-width: 1.5;
}

/* ============================================
   MEADOW BANDS
   ============================================ */
.meadow-band {
    position: relative;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, #F8CBA6, #F8B4A0);
    overflow: hidden;
}

.meadow-band-warm {
    background: linear-gradient(to bottom, #F8B4A0, #E8A0A0);
}

.meadow-band-deep {
    background: linear-gradient(to bottom, #E8A0A0, #D4956A);
}

.meadow-band-dusk {
    background: linear-gradient(to bottom, #D4956A, #8B5E3C);
}

.lupine-stalks {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
}

.lupine-stalk {
    fill: none;
    stroke: #A8B87A;
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.1;
    transform-origin: bottom center;
    transform: scaleY(0);
    transition: transform 0.6s ease-out, opacity 0.4s ease;
}

.lupine-stalk.visible {
    transform: scaleY(1);
    opacity: 0.1;
}

.lupine-stalk:hover {
    animation: sway 1s ease-in-out;
}

@keyframes sway {
    0%, 100% { transform: scaleY(1) rotate(0deg); }
    25% { transform: scaleY(1) rotate(2deg); }
    75% { transform: scaleY(1) rotate(-2deg); }
}

.lupine-violet {
    stroke: #9B7CB8;
}

.horizon-line-band {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 30px;
}

.horizon-line-band .horizon-path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
}

/* ============================================
   CONTENT SECTIONS — ATMOSPHERIC STRATA
   ============================================ */
.content-section {
    position: relative;
    min-height: 80vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-peach {
    background: linear-gradient(to bottom, #F8CBA6, #F8B4A0);
}

.section-coral {
    background: linear-gradient(to bottom, #F8B4A0, #E8A0A0);
}

.section-rose {
    background: linear-gradient(to bottom, #E8A0A0, #D4956A);
}

.section-earth {
    background: linear-gradient(to bottom, #8B5E3C, #3D2315);
}

/* Background ghost text */
.section-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 25vw;
    color: #FCEABB;
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.section-earth .section-bg-text {
    color: #D4956A;
    opacity: 0.06;
}

/* Section content */
.section-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 60px 24px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.section-content.visible {
    opacity: 1;
}

/* Text glow halo */
.text-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    background: radial-gradient(ellipse at center, rgba(252, 234, 187, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.section-content:hover .text-glow {
    background: radial-gradient(ellipse at center, rgba(252, 234, 187, 0.5) 0%, transparent 70%);
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: #3D2315;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    line-height: 1.2;
}

.section-body {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.85;
    color: #5C3D2E;
    margin-bottom: 20px;
}

.section-body:last-child {
    margin-bottom: 0;
}

.section-body-light {
    color: #F0E6DC;
}

.section-earth .section-heading {
    color: #F0E6DC;
}

.section-epigraph {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    color: #6B3A28;
    margin-bottom: 3rem;
    margin-top: 3rem;
    line-height: 1.4;
}

.section-earth .section-epigraph {
    color: #F0E6DC;
}

/* Fleuron before epigraph */
.section-epigraph::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4956A'%3E%3Cpath d='M12 2C8 6 4 10 4 14c0 3 2 5 4 5 1.5 0 3-1 4-3 1 2 2.5 3 4 3 2 0 4-2 4-5 0-4-4-8-8-12z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(to bottom, #3D2315, #2A1810);
    padding: 80px 40px;
    text-align: center;
}

.footer-content {
    max-width: 400px;
    margin: 0 auto;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: #F0E6DC;
    letter-spacing: -0.01em;
}

.footer-caption {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 0.85rem;
    color: #8B6F5E;
    margin-top: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .meadow-band {
        height: 80px;
    }

    .section-content {
        padding: 40px 20px;
    }

    .hero-section {
        padding-bottom: 25vh;
    }

    .section-bg-text {
        font-size: 40vw;
    }
}
