01 - Preheat oven to 350°F. Grease and flour two 9-inch round cake pans or line with parchment paper.
02 - Whisk together flour, sugar, baking soda, salt, and cocoa powder in a large bowl until evenly distributed.
03 - Whisk oil, buttermilk, eggs, red food coloring, vanilla, and vinegar in a separate bowl until well combined.
04 - Pour wet ingredients into dry ingredients and mix until just combined. Avoid overmixing to maintain cake texture.
05 - Divide batter evenly between the prepared cake pans, smoothing the tops with a spatula.
06 - Bake for 28-32 minutes or until a toothpick inserted in the center comes out clean.
07 - Let cakes cool in pans for 10 minutes, then turn out onto wire racks to cool completely before frosting.
08 - Beat cream cheese and butter together until smooth and creamy. Gradually add powdered sugar, beating until fluffy. Mix in vanilla and salt.
09 - Place one cake layer on a serving plate, spread with frosting, top with second layer, then frost the top and sides evenly.
10 - Refrigerate for 30 minutes before slicing to ensure clean cuts and optimal flavor.