01 - Preheat the 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 softened butter and granulated sugar in a large bowl until light and fluffy, approximately 2 to 3 minutes.
04 - Add eggs one at a time to the butter mixture, beating well after each addition.
05 - Mix in buttermilk, sour cream, vanilla extract, and red food coloring until fully combined.
06 - Add the dry ingredient mixture to the wet in two parts, gently mixing until just combined.
07 - Stir in white vinegar carefully to complete the batter.
08 - Divide the batter evenly among the liners, filling each approximately two-thirds full.
09 - Bake for 16 to 18 minutes or until a toothpick inserted into the center emerges clean.
10 - Allow cupcakes to cool in the pan for 5 minutes, then transfer to a wire rack to cool completely.
11 - Beat cream cheese and butter until smooth and creamy.
12 - Gradually add powdered sugar, vanilla extract, and salt, then beat until light and fluffy.
13 - Pipe or spread frosting evenly on completely cooled cupcakes.