There are different schools of thought wrt energy intake. There are the traditional CICO folks who will restrict their intake going by the old “cut 3,500 kcal to lose a pound of body fat” practical wisdom. There are the proponents of hormonal obesity theory a.k.a. the carbohydrate-insulin model, who will restrict carbs to the greatest extent possible, aiming to lower baseline serum insulin and improve insulin sensitivity, as per the practical wisdom that “no insulin equals no anabolism”. There are others yet who will limit their intake indirectly, cutting out the ultra-palatable, ultra-processed and ultra-calorie-dense, instead relying solely on whole foods or more generally whatever they find to best boost their satiety and effectively keep overconsumption potential at bay. And others focusing on protein, plant-based, the behavioral / emotional side of eating, or anything and everything under the sun really. Seach and play around, mix and match, until you’ve settled on whichever path appeals most to you and feels sustainable. The answer to your second question will vary accordingly.
Personally:
I just eat whatever I plan for lunch, tea, and dinner and don’t worry about calories. I try to have a keto dinner because then I don’t have any craving for food before noon. I also 16/8. I started simply, just figuring out what foods make it harder to fast the next day and how late in the afternoon I can have carbs without making the next morning hard. Discovered I don’t need to track calories, so I don’t. Keep it as simple as possible.