Before the romantic relationship between James “Jim” R.D. and his fiancee Maria Z. fizzled, she adopted a 5–year–old orphan in Slovakia and brought the child, Scarlett Z.–D., to live with her and Jim in Elmhurst.Four years later, Maria moved out with Scarlett.Petitioning for a declaration of parental rights, Jim — who admitted he didn’t have statutory standing under Illinois law — invoked “functional parent theories,” which the Illinois Supreme Court described as  …