01 - Preheat oven to 350°F. Line a 12-cup muffin tin with paper liners.
02 - Whisk together flour, cocoa powder, baking soda, and salt in a medium bowl; set aside.
03 - Beat the butter and sugar in a large bowl until light and fluffy, about 2 to 3 minutes.
04 - Incorporate eggs one at a time, beating well after each addition.
05 - Mix in buttermilk, sour cream, vanilla extract, and red food coloring until combined.
06 - Add dry ingredients to the wet mixture in two additions, mixing until just blended.
07 - Stir in the white vinegar evenly.
08 - Spoon batter evenly into cupcake liners, filling each about two-thirds full.
09 - Bake for 16 to 18 minutes or until a toothpick inserted in the center comes out clean.
10 - Allow cupcakes to cool in the pan for 5 minutes, then transfer them to a wire rack to cool completely.
11 - Beat cream cheese and butter together until smooth and creamy.
12 - Gradually beat in powdered sugar, vanilla extract, and salt until fluffy.
13 - Once cupcakes are fully cooled, apply frosting generously using a piping bag or spatula.