Gulping down coffee to stay awake at night delays the body’s natural surge of the sleep hormone melatonin.