Do not use spray foam. Seal small gaps. Even though most of the gaps spilling warm air into your attic are buried under insulation, you might be able to ...