Dice the raspberries, spread them on a plate, and freeze for 10–15 minutes to firm up. This helps them hold their shape in the dough.
In a medium bowl, whisk together 2 1/4 cups flour, cornstarch, baking soda, and salt. Remove 1 teaspoon of this flour mixture and set it aside to dust the berries later.
In a large mixing bowl, combine the sugar (3/4 cup plus 2 tablespoons) with the lemon zest. Use your fingertips to rub the zest into the sugar until it feels slightly damp and aromatic.
Add the softened butter to the lemon sugar and beat with a hand mixer (or stand mixer fitted with paddle) on medium speed until very light and fluffy, about 2–3 minutes. Beat in the egg, vanilla, almond extract, and lemon juice until smooth and creamy.
Mix the dry ingredients into the wet on low speed just until a soft dough forms with no dry patches. Toss the chilled raspberries with the reserved teaspoon of flour, then gently fold them into the dough with a spatula. Do not overmix.
Cover the bowl and chill the dough for 15 minutes. While it chills, heat the oven to 360°F (182°C) and line two baking sheets with parchment paper.
Scoop the dough into 1 1/2-tablespoon mounds (a #40 scoop works well) and place them 3 inches apart on the prepared sheets. If any berries are poking far out, nudge them back in to prevent excess bleeding.
Bake one sheet at a time for 10–12 minutes, rotating once halfway through, until the edges are set and the centers look slightly soft and puffy.
Cool on the pan for 5 minutes, then transfer the cookies to a rack to finish cooling. The cookies will settle as they cool, yielding tender centers and lightly crisp edges.