pf2e.fyi
From Pathfinder Impossible Magic, which isn't enabled.

Elemental Defense

FEAT 2
Activity 1 action

You attune yourself to elemental power so that you gain a burst of protection when you call upon it. If your next action is to Cast a Spell that has at least one element trait (air, earth, fire, metal, water, or wood), you gain resistance to effects that have the element traits of your spell equal to twice the spell's rank. The resistance lasts until the beginning of your next turn.

Pathfinder Impossible MagicORC