The lower the offset number the closer the centre line is to the hub surface which will push the wheel out.
With tyre size, 215 is your width 65 is the % of width as sidewall height. You're right in what you say if you have a larger rim, go for a lower sidewall profile to have the same size tyre/wheel radius.