SMS dit: A behavioral theory of elections