Preheat the oven to 335°F. Grease two 8-inch round cake pans, line the bottoms with parchment, and dust the sides with cocoa powder to prevent sticking.
Make a cocoa paste: In a small bowl, whisk the cocoa powder with the hot brewed coffee until smooth and glossy. Set aside to cool slightly, 3–5 minutes.
In a medium bowl, whisk together the flour, baking powder, baking soda, and salt until evenly combined.
In a large mixing bowl, beat the eggs with the granulated sugar and brown sugar on medium-high speed until slightly thickened and lightened in color, about 2 minutes. With the mixer running on medium, slowly stream in the oil to emulsify, then mix in the vanilla and sour cream until smooth. Blend in the cocoa paste.
Add half of the dry ingredients to the bowl and mix on low just until a few dry streaks remain. Pour in all of the buttermilk and mix on low to combine. Add the remaining dry ingredients and mix until the batter is smooth. Let the batter rest for 5 minutes to allow bubbles to settle and the cocoa to hydrate.
Divide the batter evenly between the prepared pans (about 650–700 g per pan if weighing). Tap each pan firmly on the counter to release large air bubbles.
Bake at 335°F for 28–32 minutes, or until the centers spring back and a toothpick comes out with just a few moist crumbs. An internal temp near 205°F also indicates doneness.
Cool the cakes in the pans for 10 minutes, then run a knife around the edges, turn out onto a rack, peel off the parchment, and cool completely.
For the frosting, beat the softened butter on medium-high for 2–3 minutes until pale and fluffy. In a separate bowl, whisk together the sifted powdered sugar and cocoa. On low speed, add half of the cocoa-sugar mixture to the butter, followed by 3 tablespoons buttermilk. Add the remaining cocoa-sugar, vanilla, and a pinch of salt. Increase speed to medium-high and whip for 2–3 minutes. Adjust with the remaining buttermilk, 1 tablespoon at a time, until spreadable and silky.
Assemble: If needed, level the cake tops. Place one layer on a serving board and spread about 1 heaping cup of frosting over it. Top with the second layer. Apply a thin crumb coat around the cake and chill for 15 minutes, then finish with a generous final coat. Garnish with chocolate shavings or cocoa nibs, if using.