Landscape pattern is critical for the moderation of thermal extremes