State-Variable Public Goods and Social Comparisons over Time