A mid-layer's primary function is to trap warm air close to the skin while allowing moisture to escape.