A key inflation gauge sets 40-year high as gas and food soar