I coded 100% of the theme myself.
I started by studying the WordPress themes that came with WP and learned how everything fits together. It took me a long time and many different versions of the theme (what you see is version 5) to get it just right.
The WordPress Codex is a GREAT place to start. You can find everything you need there.