/* =============================================
   lrx.st - License & Right eXchange
   Pastoral-romantic generative art aesthetic
   ============================================= */

/* CSS Custom Properties */
:root {
    --cream-canvas: #FBF4EC;
    --burnt-orange: #D4763A;
    --deep-terracotta: #A0522D;
    --sage-olive: #7B8B6F;
    --warm-charcoal: #3D3229;
    --soft-cream: #F5EDE0;
    --pale-gold: #E8D4B0;
    --white: #FFFFFF;
    --metadata-brown: #8B6B4A;

    --font-headline: 'DM Sans', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream-canvas);
    color: var(--warm-charcoal);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.7;
    overflow-x: hidden;
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    overflow: hidden;
    background-color: var(--cream-canvas);
}

#hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    overflow: hidden;
}

#generative-canvas {
    width: 100%;
    height: 100%;
}

#hero-content {
    position: relative;
    z-index: 2;
    margin-left: 60%;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem 3rem 3rem;
}

#logotype {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(44px, 5vw, 72px);
    color: var(--warm-charcoal);
    line-height: 1.1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

#logotype .dot {
    color: var(--burnt-orange);
}

#tagline {
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: clamp(16px, 1.6vw, 22px);
    color: var(--deep-terracotta);
    margin-top: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
}

#hero-description {
    font-family: var(--font-body);
    font-size: clamp(14px, 1vw, 17px);
    color: var(--metadata-brown);
    margin-top: 1.5rem;
    line-height: 1.8;
    max-width: 380px;
    opacity: 0;
    animation: fadeIn 1s ease-out 2.4s forwards;
}

/* =============================================
   GENERATIVE DIVIDERS
   ============================================= */
.generative-divider {
    width: 100%;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.generative-divider svg {
    width: 80%;
    max-width: 900px;
    height: 60px;
}

.generative-divider svg path {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    fill: none;
    transition: none;
}

.generative-divider.animate svg path {
    animation: drawPath 2s ease-in-out forwards;
}

/* =============================================
   CONTENT FLOW SECTIONS
   ============================================= */
#content-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 4rem 5vw 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.flow-block {
    width: var(--block-width, 60vw);
    max-width: 900px;
    background: var(--white);
    padding: 2.5rem 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(160, 82, 45, 0.08);
    margin-bottom: 0;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.flow-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.flow-left {
    justify-self: start;
}

.flow-right {
    justify-self: end;
}

.block-icon {
    margin-bottom: 1rem;
}

.flow-block h2 {
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: clamp(22px, 3.5vw, 44px);
    color: var(--warm-charcoal);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.flow-block p {
    margin-bottom: 0.8rem;
    color: var(--warm-charcoal);
}

.flow-block p:last-child {
    margin-bottom: 0;
}

.flow-block .metadata {
    margin-top: 1.2rem;
}

.flow-block .metadata code {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 13px;
    color: var(--metadata-brown);
    background: var(--soft-cream);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

/* Every other block uses soft cream background */
.flow-block:nth-child(odd) {
    background: var(--soft-cream);
}

.flow-block:nth-child(even) {
    background: var(--white);
}

/* =============================================
   BOTTOM GARDEN / FOOTER
   ============================================= */
#bottom-garden {
    position: relative;
    width: 100%;
    min-height: 350px;
    background: var(--soft-cream);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#garden-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

#footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem;
}

.footer-logo {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(28px, 3vw, 48px);
    color: var(--warm-charcoal);
    line-height: 1.1;
}

.footer-logo .dot {
    color: var(--burnt-orange);
}

.footer-tagline {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1.2vw, 18px);
    color: var(--deep-terracotta);
    margin-top: 0.5rem;
}

.footer-meta {
    margin-top: 1rem;
}

.footer-meta code {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 13px;
    color: var(--metadata-brown);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes drawPath {
    0% {
        stroke-dashoffset: 1500;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Hero canvas path draw animation */
#generative-canvas path {
    animation: heroPathDraw 3s ease-in-out forwards;
}

@keyframes heroPathDraw {
    0% {
        stroke-dashoffset: 2000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    #hero {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    #hero-canvas-container {
        position: relative;
        width: 100%;
        height: 50vh;
    }

    #hero-content {
        margin-left: 0;
        width: 100%;
        padding: 2rem;
        text-align: center;
    }

    #hero-description {
        max-width: 100%;
    }

    .flow-block {
        width: 90vw !important;
        justify-self: center !important;
    }

    .generative-divider svg {
        width: 90%;
    }
}

@media (max-width: 600px) {
    #hero-content {
        padding: 1.5rem;
    }

    .flow-block {
        padding: 1.5rem 1.8rem;
        width: 95vw !important;
    }

    #content-flow {
        padding: 2rem 3vw 4rem;
    }
}
