Democracy used to be seen as a relatively mechanical matter of merely adding up everyone's votes in free and fair elections. That mechanistic model has many virtues, among them …