The price of eggs: increased investment in egg production reduces the offspring rearing capacity of parents