Microbes act as the cleaning crew for your gut and need time to repair it.
Not eating for 12 to 14 hours, including sleep, is a good start for fasting.
Regularly snacking late in the evening isn't good for health.
Possibly linked to health issues, it's best to avoid caffeine in the evening.