This is the best starting place to go deep. https://github.com/lnbook/lnbook
Discussion
And its companion book for on-chain bitcoin. Both are freely available online. You don't have to read them in any particular order. https://github.com/bitcoinbook/bitcoinbook