Lessons from a Democrat who won in a Republican state.