Text this: Modeling photosynthetic resource allocation connects physiology with evolutionary environments