Modern humans get similar amounts of sleep as those from pre-industrial times, but increased exposure to artificial light has led to a decline in sleep quality.