01 - Preheat oven to 350°F. Grease and line three 8-inch round cake pans with parchment paper.
02 - In a medium bowl, whisk together flour, baking powder, baking soda, and salt. Set aside.
03 - In a large bowl, cream butter and sugar with an electric mixer until light and fluffy, about 3 minutes.
04 - Beat in eggs one at a time, mixing well after each addition. Add lemon zest, lemon juice, and vanilla; mix to combine.
05 - Add dry ingredients in three additions, alternating with buttermilk, beginning and ending with flour mixture. Mix just until combined.
06 - Divide batter evenly among prepared pans. Smooth tops.
07 - Bake 25–30 minutes, or until a toothpick inserted in the center comes out clean. Cool cakes in pans 10 minutes, then turn out onto wire racks to cool completely.
08 - In a small saucepan, combine raspberries, sugar, cornstarch, water, and lemon juice. Cook over medium heat, stirring gently, until thickened and raspberries break down. Let cool completely.
09 - Beat butter on medium speed until creamy. Gradually add powdered sugar, beating well. Add lemon juice, lemon zest, and salt. Beat in heavy cream until desired consistency is reached.
10 - Place one cake layer on a serving plate. Spread a thin layer of buttercream, then half the raspberry filling. Repeat with second layer. Top with final cake layer and spread remaining buttercream over top and sides. Decorate with fresh raspberries and lemon zest if desired.