Best resource I have run in to about this is this talk: https://www.youtube.com/watch?v=NGFhc8R_uO4
It quickly introduces the various hacks we do in order to get ~30nm features on silicon. But the talk is quite dated (early 2010's), but never ceases to amaze me. Semiconductors are indistinguishable from magic indeed.