/* LLITTL.com - Neubrutalism meets Pastoral Romance */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Quicksand', 'Lato', sans-serif;
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #2b2b2b;
    background-color: #f4efe6;
    overflow-x: hidden;
    position: relative;
}

/* Noise texture overlay on body */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hidden SVG noise source */
.noise-svg {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ============================================
   BOTANICAL SILHOUETTES
   ============================================ */
.botanical {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
    will-change: transform;
}

.botanical-hero {
    bottom: -50px;
    right: -30px;
    width: 250px;
    height: 500px;
}

.botanical-mid {
    top: 50%;
    left: -40px;
    width: 200px;
    height: 400px;
}

.botanical-bottom {
    bottom: 20%;
    right: -20px;
    width: 180px;
    height: 350px;
}

.botanical svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   NAVIGATION PILL
   ============================================ */
.nav-pill {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    gap: 0;
    background: #f4efe6;
    border: 3px solid #2b2b2b;
    box-shadow: 4px 4px 0 #c9b99a;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.nav-pill.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.nav-link {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #2b2b2b;
    text-decoration: none;
    padding: 8px 18px;
    transition: background 0.2s ease, color 0.2s ease;
    letter-spacing: 0.02em;
}

.nav-link:hover {
    background: #c07850;
    color: #f4efe6;
}

.nav-link + .nav-link {
    border-left: 2px solid #2b2b2b;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10vw;
    position: relative;
    z-index: 1;
}

.hero-content {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content.fade-out {
    opacity: 0;
    transform: translateY(-60px);
}

.hero-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(4rem, 12vw, 10rem);
    color: #2b2b2b;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: #6b6358;
    letter-spacing: 0.01em;
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.timeline-section {
    position: relative;
    z-index: 1;
    padding: 80px 0 40px;
}

.timeline-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Timeline Spine */
.timeline-spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #8a7967;
    transform: translateX(-50%);
    transform-origin: top;
    z-index: 1;
}

.timeline-spine.animate {
    animation: drawSpine 2s ease-out forwards;
}

@keyframes drawSpine {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0 0 0% 0); }
}

/* ============================================
   TIMELINE NODES
   ============================================ */
.timeline-node {
    position: relative;
    display: flex;
    min-height: 60vh;
    margin-bottom: 120px;
    align-items: center;
}

.node-left {
    justify-content: flex-start;
    padding-right: 52%;
}

.node-right {
    justify-content: flex-end;
    padding-left: 52%;
}

/* Node Circle Marker */
.node-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    border: 3px solid #2b2b2b;
    border-radius: 50%;
    background: #c07850;
    transform: translate(-50%, -50%);
    z-index: 5;
    transition: transform 0.3s ease;
}

.node-marker.pulse {
    animation: markerPulse 0.6s ease-out;
}

@keyframes markerPulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* ============================================
   NODE CARDS
   ============================================ */
.node-card {
    position: relative;
    max-width: 100%;
    z-index: 3;
}

.card-content {
    background: #f4efe6;
    border: 3px solid #2b2b2b;
    box-shadow: 6px 6px 0 #c9b99a;
    padding: 36px 40px;
    position: relative;
    z-index: 2;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Noise overlay on cards */
.card-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.04;
    background: 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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: -1;
}

.node-card:hover .card-content {
    box-shadow: 2px 2px 0 #c9b99a;
    transform: translate(-4px, -4px);
}

/* Stacked paper backing */
.card-backing {
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid #8a7967;
    background: #e8e4d9;
    transform: rotate(2deg);
    z-index: 1;
}

/* Alternate card backgrounds */
.node-right .card-content {
    background: #e8e4d9;
}

.node-right .card-backing {
    background: #f4efe6;
    transform: rotate(-1.5deg);
}

/* ============================================
   CARD INNER ELEMENTS
   ============================================ */
.stamp-label {
    display: inline-block;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
    color: #6b6358;
    background: #e8c4a8;
    border: 2px solid #2b2b2b;
    padding: 4px 12px;
    margin-bottom: 20px;
    transform: rotate(-2deg);
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.stamp-label.stamp-animate {
    animation: stampPress 0.4s ease-out forwards;
}

@keyframes stampPress {
    0% {
        opacity: 0;
        transform: rotate(-4deg) scale(1.3);
    }
    60% {
        opacity: 1;
        transform: rotate(-1deg) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: rotate(-2deg) scale(1);
    }
}

.card-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    color: #2b2b2b;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.card-text {
    font-family: 'Quicksand', 'Lato', sans-serif;
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #2b2b2b;
    margin-bottom: 20px;
}

.card-meta {
    font-family: 'Caveat', cursive;
    font-size: 1.25rem;
    color: #8a7967;
    display: block;
    border-top: 2px dashed #c9b99a;
    padding-top: 12px;
    margin-top: 8px;
}

/* ============================================
   FINAL CARD / CLOSING
   ============================================ */
.card-final .card-content {
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
    padding: 40px 20px;
}

.card-final .card-content::after {
    display: none;
}

.card-final:hover .card-content {
    box-shadow: none;
    transform: none;
}

.card-closing {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #6b6358;
    font-style: italic;
    line-height: 1.6;
}

.node-final {
    min-height: 40vh;
    margin-bottom: 0;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.timeline-node {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.node-left {
    transform: translateX(-30px);
}

.node-right {
    transform: translateX(30px);
}

.timeline-node.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 40px 24px 60px;
    text-align: center;
    margin-top: 200px;
    position: relative;
    z-index: 1;
}

.footer-copyright {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    color: #8a7967;
    margin-bottom: 8px;
}

.footer-email {
    font-family: 'Caveat', cursive;
    font-size: 1.25rem;
    color: #c07850;
    text-decoration: none;
    border-bottom: 2px dashed #c9b99a;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-email:hover {
    color: #7a8c6e;
    border-color: #7a8c6e;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .timeline-spine {
        left: 24px;
    }

    .timeline-node {
        padding-left: 60px !important;
        padding-right: 16px !important;
        justify-content: flex-start !important;
    }

    .node-marker {
        left: 24px;
    }

    .node-left, .node-right {
        transform: translateX(-20px);
    }

    .timeline-node.visible {
        transform: translateX(0);
    }

    .hero {
        padding: 0 6vw;
    }

    .card-content {
        padding: 24px 28px;
    }

    .card-backing {
        top: 6px;
        left: 6px;
        right: -6px;
        bottom: -6px;
    }

    .nav-pill {
        top: 16px;
        right: 16px;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .botanical-hero {
        width: 150px;
        height: 300px;
    }

    .botanical-mid {
        width: 120px;
        height: 250px;
    }

    .botanical-bottom {
        width: 100px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .card-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .timeline-node {
        min-height: 40vh;
        margin-bottom: 80px;
    }

    .site-footer {
        margin-top: 120px;
    }
}
