'A' is for the noun phrase, 'dark 12 months', not just the noun, 'months'. This noun phrase is singula. '12' is for the noun, 'months' only.
It could be rephrased as '... after 12 dark months for Starbucks'. In this case, the noun phrase, 'dark months' is plural. There are 12.