How rice adapts to high temperatures