A patient with a respiratory condition experiences rapid, shallow breathing, leading to an accumulation of carbon dioxide in the blood. The body's buffer system is activated to counteract this change. In this complex scenario, explain how the accumulation of carbon dioxide affects the pH of the blood, and elucidate the mechanisms by which the buffer system works to restore blood pH to its normal range.