Gravar-mail: Environmental conditions shape the temporal pattern of investment in reproduction and survival