How do fireworks work? A chemist explains the science behind them

There are hundreds of chemical formulas – or as I like to think of them, pyrotechnic recipes – for fireworks