{% extends "base.html" %}

{% block title %}The Messianic Lineage - Biblical Family Tree - KJV Study{% endblock %}
{% block description %}The direct paternal line from Adam to Jesus Christ, traced through biblical genealogies.{% endblock %}

{% block content %}
<h1>The Messianic Lineage</h1>
<p class="subtitle">The Direct Paternal Line from Adam to Jesus Christ</p>

<section>
    <p>This visualization traces the direct paternal line from Adam, the first man, through the patriarchs, kings, and prophets, culminating in Jesus Christ. The genealogy is calculated using the Kekulé numbering system (also known as Ahnentafel), where each person's father has a number that is double their own.</p>

    <p>This represents the genealogical record preserved in Scripture (Genesis 5, Genesis 11, Ruth 4:18-22, 1 Chronicles 1-3, Matthew 1, Luke 3), showing God's redemptive plan working through specific family lines across the generations.</p>

    <p style="margin-top: 1.5rem;"><a href="/family-tree">← Back to Family Tree</a></p>
</section>

<section>
    <div style="max-width: 100%; overflow-x: auto; margin: 2rem 0;">
        <img src="/family-tree/lineage.svg" alt="Messianic Lineage from Adam to Jesus Christ" style="max-width: 100%; height: auto; display: block; margin: 0 auto;" />
    </div>
</section>

<section>
    <h2>About the Kekulé Numbering System</h2>
    <p>The Kekulé number (Ahnentafel number) is a genealogical numbering system where:</p>
    <ul>
        <li><strong>1</strong> = The subject (Jesus Christ)</li>
        <li><strong>2</strong> = Father (Joseph, legal father)</li>
        <li><strong>4</strong> = Paternal grandfather (Jacob)</li>
        <li><strong>8</strong> = Paternal great-grandfather</li>
        <li>And so on, with each father having a number that is double their child's</li>
    </ul>
    <p>The direct paternal line consists of all ancestors with Kekulé numbers that are powers of 2: 1, 2, 4, 8, 16, 32, 64, etc. This visualization shows only these direct ancestors, creating a clear line from Adam to Christ.</p>
</section>

<script>
(function() {
    document.addEventListener('keydown', function(e) {
        if (e.target.tagName === 'INPUT' || e.target.tagName === 'TEXTAREA') return;
        if (KJVNav.sidebarActive) return;

        if (e.key === 'ArrowLeft' || e.key === 'h') {
            e.preventDefault();
            history.back();
        }
    });
})();
</script>
{% endblock %}
