Sleep debt is the cumulative gap between the sleep your body needs and the sleep you actually get, and it builds up night after night when you fall short. Studies of restricted sleep suggest that catching up on lost sleep can partly reverse some effects, such as slower reaction times, but it does not fully erase every cost.
Recovery works mainly through extra deep, slow-wave sleep and REM sleep after a shortfall, and the body tends to prioritize these stages when it gets the chance. However, long-term restriction can leave lasting effects on metabolism, mood, and attention, so a single long weekend of sleep is not a complete fix.