01 - Preheat oven to 350°F. Grease and line three 8-inch round cake pans with parchment paper.
02 - Whisk together flour, baking powder, baking soda, and salt in a bowl. Set aside.
03 - Using an electric mixer, beat unsalted butter and granulated sugar until light and fluffy, about 3 to 4 minutes.
04 - Add eggs one at a time, beating well after each addition. Mix in lemon zest and vanilla extract.
05 - Mix in fresh lemon juice; the batter may appear curdled, which is normal.
06 - Add the dry ingredients in three additions, alternating with the milk, beginning and ending with dry ingredients. Mix just until combined.
07 - Divide the batter evenly among prepared pans and smooth the tops. Bake for 25 to 30 minutes until a toothpick inserted in the center comes out clean.
08 - Cool cakes in pans for 10 minutes, then transfer to wire racks and cool completely.
09 - Combine raspberries, sugar, and lemon juice in a saucepan over medium heat. Stir until raspberries break down, about 5 to 7 minutes. Add cornstarch slurry and cook 1 to 2 minutes until thickened. Cool completely.
10 - Beat unsalted butter until creamy. Gradually add powdered sugar, lemon juice, lemon zest, salt, and enough milk or cream to reach a smooth, spreadable consistency.
11 - Place one cake layer on a serving plate. Spread half the raspberry filling over the top, avoiding edges. Add a thin layer of buttercream. Repeat with second layer and remaining filling. Top with final layer.
12 - Cover the top and sides with lemon buttercream. Decorate with fresh raspberries and lemon zest curls if desired.