01 - Preheat your oven to 350°F (175°C). Line a standard 12-cup muffin tin with cupcake liners, preparing for baking.
02 - In a large mixing bowl, thoroughly whisk together the all-purpose flour, granulated sugar, unsweetened cocoa powder, baking soda, and salt until uniformly combined.
03 - In a separate bowl, whisk together the vegetable oil, large eggs, buttermilk, vanilla extract, white vinegar, and red food coloring until the mixture is smooth and evenly colored.
04 - Pour the wet ingredient mixture into the dry ingredients. Mix gently with a spatula or whisk until the components are just combined. Take care not to overmix, as this can result in tough cupcakes.
05 - Divide the prepared cupcake batter evenly among the 12 lined muffin cups, filling each approximately two-thirds full to allow for rising.
06 - Transfer the muffin tin to the preheated oven and bake for 18 to 20 minutes, or until a wooden skewer or toothpick inserted into the center of a cupcake comes out clean, indicating they are fully cooked.
07 - Remove the muffin tin from the oven and allow the cupcakes to cool in the pan for 5 minutes. After this initial cooling, transfer them carefully to a wire rack to cool completely before proceeding with frosting.
08 - For the cream cheese frosting, combine the softened cream cheese and unsalted butter in a medium bowl. Beat with an electric mixer until the mixture is smooth and creamy, with no lumps.
09 - Gradually add the sifted powdered sugar to the cream cheese mixture, beating until the frosting is light, fluffy, and well aerated. Finally, mix in the vanilla extract and a pinch of salt.
10 - Once the cupcakes have cooled entirely, generously spread or pipe the prepared cream cheese frosting onto each cupcake. For an extra festive touch, garnish with sprinkles or edible hearts if desired.