Natural selection acts in opposite ways on correlated hormonal mediators of prenatal maternal effects in a wild bird population.