Recent price volatility has been driven by supply uncertainty, exacerbated by tariffs on imports from Brazil, the world’s largest coffee producer.