Sex, attachment, and the development of reproductive strategies