SMS: A behavioral theory of elections