Demand shocks and supply shocks

A shift in AD moves output and the price level the same way, while a shift in SRAS moves them opposite ways, which is why a supply shock can bring inflation and recession together.

From AP Macroeconomics.