Environmental conditions shape the temporal pattern of investment in reproduction and survival. Issue 1870 (10th January 2018)