Good news! Three good hours of sleep are better than a bad eight

What actually happens while you sleep, and why the timing matters as much as the total.