01 - Preheat oven to 350°F. Grease and flour two 9-inch round cake pans.
02 - Sift together flour, sugar, baking soda, salt, and cocoa powder in a medium bowl.
03 - Whisk oil, buttermilk, eggs, food coloring, vanilla, and vinegar in a large bowl until well combined.
04 - Gradually add dry ingredients to wet ingredients, mixing just until smooth.
05 - Divide batter evenly between prepared cake pans.
06 - Bake for 28-30 minutes, or until a toothpick inserted into the center comes out clean.
07 - Let cakes cool in pans for 10 minutes, then transfer to a wire rack to cool completely.
08 - Beat cream cheese and butter until smooth. Add powdered sugar gradually, then vanilla and salt. Beat until light and fluffy.
09 - Place one cake layer on a serving plate. Spread frosting on top. Place second layer over first and frost the top and sides.
10 - Chill for 30 minutes before slicing for clean cuts.