Christianity: In Matthew 1, is Jesus traced back to King David via his father, Joseph, instead of God? Who, then, is Jesus's true father?
I have a question regarding the genealogy of Jesus as described in Matthew 1.
For context, Matthew 1 attempts to trace Jesus to King David through his patrilineal ancestry, because patrilineal Davidic lineage is a requirement for the Jewish Messiah. However, Matthew 1 (NIV) seems to trace Jesus's Davidic origin via Joseph:
The Genealogy of Jesus the Messiah
1 This is the genealogy of Jesus the Messiah the son of David, the son of Abraham:
2 Abraham was the father of Isaac, Isaac the father of Jacob, Jacob the father of Judah and his brothers,
...
6 and Jesse the father of King David. David was the father of Solomon, whose mother had been Uriah’s wife,
...
11 and Josiah the father of Jeconiah and his brothers at the time of the exile to Babylon.
...
16 and Jacob the father of Joseph, the husband of Mary, and Mary was the mother of Jesus who is called the Messiah.
Why exactly is Jesus' patrilineal ancestry being traced through Joseph despite the Virgin Birth? Since the verse does not directly state that Joseph is his father, does it imply that Joseph became his father by marrying Mary?
The remaining verses attempt to explain Jesus's relation to Joseph:
Joseph Accepts Jesus as His Son
18 This is how the birth of Jesus the Messiah came about: His mother Mary was pledged to be married to Joseph, but before they came together, she was found to be pregnant through the Holy Spirit.
...
20 ...[A]n angel of the Lord appeared to him in a dream and said, “Joseph son of David, do not be afraid to take Mary home as your wife, because what is conceived in her is from the Holy Spirit.
21 She will give birth to a son, and you are to give him the name Jesus, because he will save his people from their sins.”
...
24 When Joseph woke up, he did what the angel of the Lord had commanded him and took Mary home as his wife.
25 But he did not consummate their marriage until she gave birth to a son. And he gave him the name Jesus.
Does this imply that Joseph, in a way, adopted Jesus? Was this completed by taking Mary as his wife, by naming the baby Jesus, or by consummating his marriage to Mary upon Jesus's birth?
How does Joseph accepting Jesus as his son provide Jesus Davidic patrilineal descent? Does this concept not rely on true paternal relation as do the previously listed generations in verses 2-16?
Furthermore, this appears to create a paradox: Is Jesus Christ both the son of God and Joseph?
Thank you for taking the time to approach this matter, and thank you in advance for your response.