Anatomy of a pandemic