Detecting climate signals in populations across life histories