01 - Preheat the oven to 350°F. Grease and line three 8-inch round cake pans with parchment paper.
02 - In a medium bowl, whisk together the flour, baking powder, baking soda, and salt until evenly mixed.
03 - Using an electric mixer, beat the softened butter with the granulated sugar until light and fluffy, approximately 3 minutes.
04 - Add eggs one at a time, beating well after each addition. Stir in lemon zest and vanilla extract until combined.
05 - Gradually add the dry ingredients alternately with the whole milk, starting and finishing with the dry ingredients. Mix just until combined. Fold in the fresh lemon juice at the end.
06 - Divide the batter evenly among the prepared pans and smooth the surfaces.
07 - Bake for 25 to 30 minutes or until a toothpick inserted in the center comes out clean. Allow cakes to cool in the pans for 10 minutes, then invert onto wire racks to cool completely.
08 - Beat together cream cheese and softened butter until smooth and creamy. Gradually add powdered sugar, lemon zest, lemon juice, vanilla, and a pinch of salt, beating until light and fluffy.
09 - Place one cake layer on a serving plate. Spread a thin layer of frosting, then half of the raspberry preserves and a scattering of fresh raspberries. Repeat the process with the second layer. Top with the final layer and apply remaining frosting evenly over the cake.
10 - Decorate with fresh raspberries, lemon slices, or edible flowers if desired. Refrigerate for at least 30 minutes before slicing for cleaner cuts.