Population and community body size structure across a complex environmental gradient