Preheat oven to 350°F (175°C) and line two 8-inch pans with parchment paper.
Mix flour, sugars, baking powder, baking soda, and salt in a bowl. Add eggs, oil, and sour cream, then stir until smooth.
In a separate bowl, whisk cocoa powder, coffee, and boiling water. Combine with batter until smooth.
Divide batter between pans and bake for 30 minutes. Let cakes cool completely; chill if necessary.
Heat cream and butter in a saucepan until boiling. Pour over chocolate, cover, and let sit for 5 minutes. Stir until smooth, then chill until spreadable
Assemble cake with ganache layers, apply a crumb coat, refrigerate, then frost generously. Top with raspberries and serve.