Sin isn’t only doing bad things, it is more fundamentally making good things into ultimate things. Sin is building your life and meaning on anything, even a very good thing, more than on God. Whatever we build our life on will drive us and enslave us. Sin is primarily idolatry.
Here are the links to both articles:
Tim Keller, “Talking about Idolatry in a Postmodern Age”
David Powlison, “Idols of the Heart and ‘Vanity Fair’”