Scientists (yes, there are compost scientists) have found that it's best to maintain a carbon/nitrogen ratio between 25-30 parts carbon to 1 part nitrogen.
Carbon-to-Nitrogen Ratio - an overview
The Carbon/Nitrogen Ratio
Understanding Carbon-Nitrogen Ratio in Soil
Thresholds in aridity and soil carbon-to-nitrogen ratio govern the accumulation of soil microbial residues
Sustainability, Free Full-Text
Compost 101 - Maintain a 25:1 Carbon to Nitrogen ratio
Evaluating the Perfect Carbon: Nitrogen (C:N) Ratio for Decomposing Compost
Fermentation, Free Full-Text
C/N Ratio - CORNELL Composting
Global Change Biology, Environmental Change Journal
Explaining carbon to nitrogen ratio in crop residue
Carbon to Nitrogen (C:N) Ratio for Living
What is the relation between C:N ratio and crop yields?
Nitrogen concentration, C/N ratio, and water content in selected crop
Carbon-nitrogen ratio management - Responsible Seafood Advocate