How birds adapt to changing climates