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 flour, baking powder, baking soda, and salt until evenly mixed.
03 - Using an electric mixer, beat the softened butter and sugar in a large bowl until light and fluffy, about 3 minutes.
04 - Add eggs one at a time, beating well after each addition. Mix in the lemon zest and vanilla extract.
05 - Alternately add the dry ingredients and milk to the butter mixture, beginning and ending with the dry. Stir in the lemon juice last, mixing just until combined.
06 - Divide the batter evenly among the prepared pans and smooth the surfaces with a spatula.
07 - Bake for 25 to 30 minutes until a toothpick inserted in the center comes out clean. Let cool in pans for 10 minutes, then transfer to wire racks to cool completely.
08 - Beat together cream cheese and butter in a large bowl until smooth. Gradually add powdered sugar, lemon zest, lemon juice, vanilla, and a pinch of salt. Beat until fluffy and well combined.
09 - Place one cake layer on a serving plate. Spread a thin layer of frosting, then half the raspberry preserves and scatter half the fresh raspberries. Repeat with the second layer. Top with the last cake layer and cover the entire cake with the remaining frosting.
10 - Decorate with fresh raspberries, lemon slices, and edible flowers as desired. Chill the assembled cake for at least 30 minutes before slicing.