I don’t think you could write that thick of a book about wireguard.
For IPSEC you’re going to need a bookshelf.