Coffee has survived disease, economic crises and changing consumer habits, but climate change presents a challenge that is harder to predict or control.