/* relative.quest - Typography: Lato 400/500 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #FAF7F2; color: #6B5744; font-family: 'Lato', sans-serif; font-weight: 400; line-height: 1.7; }

/* Hero Section with Parallax */
.hero {
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-layers {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 200px 200px;
    opacity: 0.05;
    z-index: 1;
}

.layer-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-inner {
    max-width: 560px;
    margin: 0 auto;
}

.headline {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.6rem);
    color: #2C1810;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: #6B5744;
    margin-bottom: 2rem;
}

.search-row {
    display: inline-block;
    background: #8B4513;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
}

.search-label {
    cursor: pointer;
}

/* Path Cards Section */
.paths {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.path-card {
    background: #EDE6D8;
    border: 1px dotted #D4C5A9;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 4px;
}

.path-icon {
    font-size: 1.5rem;
    color: #8B4513;
    display: block;
    margin-bottom: 0.75rem;
}

.path-title {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #2C1810;
    margin-bottom: 0.5rem;
}

.path-desc {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6B5744;
    margin-bottom: 1rem;
}

.path-btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    color: #8B4513;
    border: 1px solid #8B4513;
    border-radius: 4px;
    padding: 0.3rem 0.8rem;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.path-btn:hover {
    background: #8B4513;
    color: #FFFFFF;
}

/* Timeline Stories Section */
.stories {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #8B4513;
    transform: translateX(-50%);
}

.story {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
}

.story.left {
    justify-content: flex-start;
    padding-right: 55%;
}

.story.right {
    justify-content: flex-end;
    padding-left: 55%;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8B4513;
    transform: translateX(-50%);
}

.story-content { }

.gen-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 400;
    color: #8B4513;
    border: 1px solid #8B4513;
    border-radius: 9999px;
    padding: 0.1rem 0.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.story-title {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2C1810;
    margin-bottom: 0.3rem;
}

.story-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6B5744;
}

.branch-connector {
    height: 20px;
    width: 2px;
    background: #3D6B5E;
    margin-top: 0.5rem;
    margin-left: 0;
}

/* Family Tree Section */
.family-tree {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.section-title {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 2rem;
    color: #2C1810;
    margin-bottom: 2rem;
}

.tree-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.tree-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.node-label {
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #2C1810;
    background: #EDE6D8;
    padding: 0.5rem 1rem;
    border: 1px solid #D4C5A9;
    border-radius: 4px;
    min-width: 100px;
    text-align: center;
    font-weight: 400;
    font-weight: 500;
}

.tree-node.active .node-label {
    background: #8B4513;
    color: #FFFFFF;
    border-color: #8B4513;
}

.node-line-down {
    width: 2px;
    height: 20px;
    background: #3D6B5E;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 2rem 5rem;
}

.footer-text {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #6B5744;
}

/* Animations and Transitions */
@media (max-width: 560px) {
    .hero {
        height: auto;
        padding: 3rem 2rem 2rem;
    }

    .path-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }

    .path-card {
        margin-top: 0 !important;
    }

    .story.left, .story.right {
        padding: 0 0 0 55%;
        justify-content: flex-start;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
    }
}

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

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