How would you propose child custody would work if the institution of marriage was repealed?
That's adorable that you don't think the courts work this out every day, like you're so naive you believe the majority of children are born in wedlock, it's like you're 5 years old or living in another century or something.