/* chloe.cx - Cottagecore Pastoral Blog / Cursor Reactive Creative */
/* Palette: #faf5ef #f4a7bb #a3b18a #c8b6e2 #daa520 #e8dcc8 #3c3633 #ffffff */

:root {
    --canvas: #faf5ef;
    --blush: #f4a7bb;
    --sage: #a3b18a;
    --lavender: #c8b6e2;
    --honey: #daa520;
    --tape: #e8dcc8;
    --ink: #3c3633;
    --white: #ffffff;
}

/* =============================================
   RESET & BASE
   ============================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--canvas);
    background-image: radial-gradient(circle, rgba(60,54,51,0.04) 1px, transparent 1px);
    background-size: 22px 22px;
    color: var(--ink);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
    min-height: 100vh;
}

/* =============================================
   CURSOR TRAIL LAYER
   ============================================= */

.trail-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 60;
}

.trail-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    animation: trailFade 1.8s ease-out forwards;
}

@keyframes trailFade {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.3); }
}

/* =============================================
   CURSOR GARDEN LAYER
   ============================================= */

.garden-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.garden-flower {
    position: absolute;
    animation: sprout 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes sprout {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* =============================================
   STRING LIGHTS
   ============================================= */

.string-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 40;
    pointer-events: none;
}

.light-wire {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawWire 2.5s ease forwards 0.3s;
    opacity: 0.3;
}

@keyframes drawWire {
    to { stroke-dashoffset: 0; }
}

.light-bulb {
    fill: var(--honey);
    opacity: 0;
    animation: bulbAppear 0.3s ease forwards, twinkle 3s ease-in-out infinite;
    animation-delay: 2.8s, 3.2s;
}

.light-bulb:nth-child(2) { animation-delay: 2.9s, 3.3s; }
.light-bulb:nth-child(3) { animation-delay: 3.0s, 3.5s; }
.light-bulb:nth-child(4) { animation-delay: 2.85s, 3.1s; }
.light-bulb:nth-child(5) { animation-delay: 3.1s, 3.6s; }
.light-bulb:nth-child(6) { animation-delay: 2.95s, 3.4s; }
.light-bulb:nth-child(7) { animation-delay: 3.05s, 3.2s; }
.light-bulb:nth-child(8) { animation-delay: 3.15s, 3.7s; }
.light-bulb:nth-child(9) { animation-delay: 2.88s, 3.3s; }
.light-bulb:nth-child(10) { animation-delay: 3.2s, 3.8s; }
.light-bulb:nth-child(11) { animation-delay: 2.92s, 3.5s; }
.light-bulb:nth-child(12) { animation-delay: 3.08s, 3.1s; }
.light-bulb:nth-child(13) { animation-delay: 3.18s, 3.6s; }
.light-bulb:nth-child(14) { animation-delay: 2.98s, 3.4s; }
.light-bulb:nth-child(15) { animation-delay: 3.12s, 3.2s; }
.light-bulb:nth-child(16) { animation-delay: 3.22s, 3.9s; }

@keyframes bulbAppear {
    0% { opacity: 0; }
    100% { opacity: 0.6; }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.5;
        filter: drop-shadow(0 0 3px rgba(218,165,32,0.3));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(218,165,32,0.7));
    }
}

.string-lights.lights-bright .light-bulb {
    filter: drop-shadow(0 0 14px rgba(218,165,32,0.9));
}

.string-lights.lights-bright .light-wire {
    opacity: 0.5;
}

/* =============================================
   SECTIONS BASE
   ============================================= */

.section {
    max-width: 820px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
}

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

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 110px;
    position: relative;
}

/* SVG name with stroke animation */
.hero-name-svg {
    width: clamp(280px, 60vw, 520px);
    height: auto;
    transform: rotate(-2deg);
    margin-left: -5vw;
}

.hero-name-text {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: writeName 3s ease forwards 0.8s;
}

.hero-name-fill {
    opacity: 0;
    animation: revealFill 1s ease forwards 3.5s;
}

@keyframes writeName {
    to { stroke-dashoffset: 0; }
}

@keyframes revealFill {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-sub {
    font-family: 'Caveat', cursive;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(60, 54, 51, 0.5);
    margin-top: 1.2rem;
    opacity: 0;
    animation: gentleFadeIn 1.5s ease forwards 4s;
}

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

/* Hero polaroid */
.hero-polaroid {
    position: absolute;
    bottom: 18%;
    right: 8%;
    background: var(--white);
    padding: 10px;
    padding-bottom: 35px;
    box-shadow: 2px 3px 8px rgba(60,54,51,0.12);
    opacity: 0;
    animation: gentleFadeIn 1.2s ease forwards 4.5s;
}

.hero-polaroid .polaroid-img {
    width: 120px;
    height: 120px;
}

.hero-polaroid .polaroid-caption {
    font-family: 'Caveat', cursive;
    font-size: 0.85rem;
    color: rgba(60,54,51,0.5);
    text-align: center;
    margin-top: 6px;
}

/* =============================================
   DRIED FLOWERS
   ============================================= */

.dried-flower {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    animation: fadeFlower 2s ease forwards 1.5s;
}

@keyframes fadeFlower {
    to { opacity: 1; }
}

.df-hero-1 {
    top: 12%;
    right: 8%;
}

.df-hero-2 {
    bottom: 22%;
    left: 6%;
}

.df-cluster-3 {
    position: absolute;
    bottom: -30px;
    right: -30px;
    opacity: 0;
    animation: fadeFlower 2s ease forwards 0.5s;
}

.df-wall {
    position: absolute;
    bottom: 2rem;
    right: 0;
    opacity: 0;
    animation: fadeFlower 2s ease forwards 0.5s;
}

/* =============================================
   WASHI TAPE
   ============================================= */

.washi-tape {
    position: absolute;
    z-index: 5;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.tape-hero {
    width: 150px;
    background: rgba(232, 220, 200, 0.55);
    top: 22%;
    right: 14%;
    transform: rotate(-7deg);
    opacity: 0;
    animation: gentleFadeIn 1s ease forwards 3.8s;
}

.tape-text {
    font-family: 'Caveat', cursive;
    font-size: 0.85rem;
    color: rgba(60, 54, 51, 0.5);
}

.tape-section {
    width: 120px;
    background: rgba(232, 220, 200, 0.5);
    top: -8px;
    left: 18px;
}

.tape-accent {
    width: 80px;
    background: rgba(244, 167, 187, 0.25);
}

.tape-cluster-1 {
    top: 10px;
    right: -20px;
    transform: rotate(15deg);
}

.tape-quote {
    width: 100px;
    background: rgba(200, 182, 226, 0.3);
    top: -6px;
    left: 10px;
}

.tape-wall-1 {
    width: 70px;
    background: rgba(232, 220, 200, 0.5);
    top: 15px;
    right: -20px;
    z-index: 10;
}

.tape-wall-cross {
    width: 250px;
    background: rgba(232, 220, 200, 0.35);
    top: 55%;
    left: 10%;
    pointer-events: none;
}

/* =============================================
   SCATTERED STARS
   ============================================= */

.scattered-star {
    position: absolute;
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: var(--honey);
    opacity: 0.15;
    pointer-events: none;
}

.star-1 { top: 30%; left: 5%; font-size: 0.9rem; }
.star-2 { top: 60%; right: 3%; font-size: 1.1rem; }
.star-3 { bottom: 15%; left: 12%; font-size: 0.8rem; }
.star-4 { bottom: 10%; right: 5%; font-size: 0.85rem; }
.star-5 { top: 20%; right: 8%; font-size: 1rem; }
.star-6 { bottom: 30%; left: 3%; font-size: 0.75rem; }
.star-7 { top: 15%; left: 4%; font-size: 0.9rem; }
.star-8 { bottom: 20%; right: 6%; font-size: 1rem; }

/* =============================================
   SCRAPBOOK SECTION
   ============================================= */

.scrapbook {
    padding-top: 3rem;
    min-height: 180vh;
}

.cluster {
    position: relative;
    margin-bottom: 5rem;
}

.cluster-1 {
    margin-left: 5%;
}

.cluster-2 {
    margin-left: 15%;
    max-width: 500px;
}

.cluster-3 {
    margin-left: auto;
    margin-right: 8%;
    width: fit-content;
}

.cluster-4 {
    margin-left: 8%;
    max-width: 450px;
}

.cluster-5 {
    margin-left: auto;
    margin-right: 12%;
    width: fit-content;
}

/* =============================================
   POLAROID
   ============================================= */

.polaroid {
    background: var(--white);
    padding: 12px;
    padding-bottom: 40px;
    box-shadow: 2px 3px 8px rgba(60, 54, 51, 0.15);
    display: inline-block;
    position: relative;
    transition: transform 0.4s ease;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.02);
}

.polaroid-inner {
    overflow: hidden;
}

.polaroid-img {
    width: 180px;
    height: 180px;
}

.polaroid-caption {
    font-family: 'Caveat', cursive;
    font-size: 0.9rem;
    color: rgba(60, 54, 51, 0.6);
    text-align: center;
    margin-top: 8px;
}

/* =============================================
   ANNOTATIONS
   ============================================= */

.annotation {
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: var(--blush);
    display: block;
    margin-top: 0.75rem;
}

.annotation-side {
    position: absolute;
    right: -110px;
    bottom: 0;
    width: 130px;
}

/* =============================================
   PAPER CLIPS
   ============================================= */

.paper-clip {
    position: absolute;
    width: 16px;
    height: 42px;
    border: 2px solid rgba(60, 54, 51, 0.18);
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    pointer-events: none;
}

.clip-1 {
    top: -8px;
    right: 30px;
    transform: rotate(5deg);
}

.clip-2 {
    top: -10px;
    right: 18px;
    transform: rotate(-3deg);
}

/* =============================================
   SCRAPBOOK QUOTE
   ============================================= */

.scrapbook-quote {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--ink);
    line-height: 1.6;
    padding: 1.5rem 0;
    border-left: 3px solid rgba(244, 167, 187, 0.4);
    padding-left: 1.5rem;
}

/* =============================================
   SECTION TITLES
   ============================================= */

.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

.body-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink);
    margin-bottom: 1rem;
}

.wall-intro {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: rgba(60, 54, 51, 0.45);
    margin-bottom: 2rem;
}

/* =============================================
   CREATIVE WALL
   ============================================= */

.creative-wall {
    padding-top: 6rem;
    padding-bottom: 4rem;
    min-height: 90vh;
}

.wall-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    justify-content: center;
    margin-top: 2rem;
}

.wall-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.wall-item:hover {
    transform: rotate(0deg) scale(1.05);
}

.wall-polaroid {
    position: relative;
}

.swatch {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    box-shadow: 1px 2px 6px rgba(60, 54, 51, 0.1);
}

.caveat-note {
    font-family: 'Caveat', cursive;
    font-size: 0.9rem;
    color: rgba(60, 54, 51, 0.5);
    display: block;
    margin-top: 0.5rem;
}

/* Type sample card */
.type-sample-card {
    background: var(--white);
    padding: 1.5rem;
    box-shadow: 1px 2px 6px rgba(60, 54, 51, 0.1);
    text-align: center;
    width: 160px;
}

.type-sample-display {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 2rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.type-sample-body {
    font-family: 'Nunito', sans-serif;
    font-size: 0.7rem;
    color: rgba(60, 54, 51, 0.5);
    line-height: 1.5;
}

/* Pattern thumbnails */
.pattern-thumb {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    box-shadow: 1px 2px 6px rgba(60, 54, 51, 0.1);
}

.pattern-dots {
    background-color: var(--canvas);
    background-image: radial-gradient(circle, var(--sage) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
}

.pattern-stripes {
    background-color: var(--canvas);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 4px,
        rgba(163, 177, 138, 0.2) 4px,
        rgba(163, 177, 138, 0.2) 5px
    );
}

/* =============================================
   GOODBYE SECTION
   ============================================= */

.goodbye-section {
    text-align: center;
    padding: 6rem 2rem 4rem;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.goodbye-text {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--ink);
    margin-bottom: 2rem;
}

.made-with {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: var(--blush);
    margin-bottom: 1.5rem;
}

.goodbye-flower {
    margin: 1rem 0;
}

.listening {
    font-family: 'Caveat', cursive;
    font-size: 0.9rem;
    color: rgba(60, 54, 51, 0.4);
    margin-top: 1rem;
}

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

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

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

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

@media (max-width: 768px) {
    .section {
        padding: 3rem 1.5rem;
    }

    .cluster-1,
    .cluster-2,
    .cluster-3,
    .cluster-4,
    .cluster-5 {
        margin-left: 0;
        margin-right: 0;
    }

    .annotation-side {
        position: static;
        width: auto;
    }

    .polaroid-img {
        width: 140px;
        height: 140px;
    }

    .hero-polaroid {
        display: none;
    }

    .hero-name-svg {
        margin-left: 0;
    }

    .df-hero-1,
    .df-hero-2 {
        display: none;
    }

    .tape-wall-cross {
        display: none;
    }

    .wall-grid {
        gap: 1.2rem;
    }

    .swatch {
        width: 80px;
        height: 80px;
    }

    .type-sample-card {
        width: 130px;
        padding: 1rem;
    }

    .pattern-thumb {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 80px;
    }

    .scrapbook {
        min-height: auto;
    }

    .wall-grid {
        gap: 1rem;
    }
}
