Preheat the oven to 350°F (175°C). Line a muffin tin with cupcake liners.
Whisk dry ingredients in a medium bowl. Set aside.
Cream butter and sugar until light and fluffy.
Add eggs, vanilla, lemon zest, and lemon juice, mixing well.
Add dry ingredients alternately with buttermilk. Mix until combined.
Gently fold in fresh raspberries.
Spoon batter into cupcake liners, filling 2/3 full.
Bake for 18-20 minutes. Cool completely.
For frosting, beat butter, then gradually add powdered sugar. Add lemon juice, zest, salt, and raspberries. Frost cooled cupcakes.