Extreme weather and experience influence reproduction in an endangered bird.