From cooling temperatures during heatwaves to soaking up heavy rain, healthy soil is key to dealing with both extremes.