How to put your mind—as well as your body—to sleep