Fair Value Measurement - Summary of Financial Instruments Recorded at Fair Value on Recurring Basis (Details) - USD ($) $ in Thousands | Mar. 31, 2023 | Dec. 31, 2022 |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | $ 214,908 | $ 301,125 |
U.S. Treasury securities | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 135,420 | 219,104 |
U.S. Agency securities | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 37,672 | 19,264 |
Certificates of deposit | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 17,286 | 26,509 |
Corporate debt securities | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 6,183 | 13,848 |
Commercial paper | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 18,347 | 22,400 |
Fair Value Measurements Recurring | | |
Fair Value (Recurring) [Line Items] | | |
Cash equivalents - money market mutual funds | 98,617 | 5,608 |
Total cash equivalents and marketable securities | 313,525 | 306,733 |
Fair Value Measurements Recurring | Level 1 | | |
Fair Value (Recurring) [Line Items] | | |
Cash equivalents - money market mutual funds | 98,617 | 5,608 |
Total cash equivalents and marketable securities | 98,617 | 5,608 |
Fair Value Measurements Recurring | Level 2 | | |
Fair Value (Recurring) [Line Items] | | |
Cash equivalents - money market mutual funds | 0 | 0 |
Total cash equivalents and marketable securities | 214,908 | 301,125 |
Fair Value Measurements Recurring | Level 3 | | |
Fair Value (Recurring) [Line Items] | | |
Cash equivalents - money market mutual funds | 0 | 0 |
Total cash equivalents and marketable securities | 0 | 0 |
Fair Value Measurements Recurring | U.S. Treasury securities | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 135,420 | 219,104 |
Fair Value Measurements Recurring | U.S. Treasury securities | Level 1 | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 0 | 0 |
Fair Value Measurements Recurring | U.S. Treasury securities | Level 2 | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 135,420 | 219,104 |
Fair Value Measurements Recurring | U.S. Treasury securities | Level 3 | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 0 | 0 |
Fair Value Measurements Recurring | U.S. Agency securities | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 37,672 | 19,264 |
Fair Value Measurements Recurring | U.S. Agency securities | Level 1 | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 0 | 0 |
Fair Value Measurements Recurring | U.S. Agency securities | Level 2 | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 37,672 | 19,264 |
Fair Value Measurements Recurring | U.S. Agency securities | Level 3 | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 0 | 0 |
Fair Value Measurements Recurring | Certificates of deposit | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 17,286 | 26,509 |
Fair Value Measurements Recurring | Certificates of deposit | Level 1 | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 0 | 0 |
Fair Value Measurements Recurring | Certificates of deposit | Level 2 | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 17,286 | 26,509 |
Fair Value Measurements Recurring | Certificates of deposit | Level 3 | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 0 | 0 |
Fair Value Measurements Recurring | Corporate debt securities | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 6,183 | 13,848 |
Fair Value Measurements Recurring | Corporate debt securities | Level 1 | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 0 | 0 |
Fair Value Measurements Recurring | Corporate debt securities | Level 2 | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 6,183 | 13,848 |
Fair Value Measurements Recurring | Corporate debt securities | Level 3 | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 0 | 0 |
Fair Value Measurements Recurring | Commercial paper | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 18,347 | 22,400 |
Fair Value Measurements Recurring | Commercial paper | Level 1 | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 0 | 0 |
Fair Value Measurements Recurring | Commercial paper | Level 2 | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | 18,347 | 22,400 |
Fair Value Measurements Recurring | Commercial paper | Level 3 | | |
Fair Value (Recurring) [Line Items] | | |
Total marketable securities, Fair Value | $ 0 | $ 0 |