Why does Codeberg’s SSL certificate show as not validated with Curl or Firefox on my system?

https://codeberg.org does not load (however, I am able to ping codeberg.org, and on curl, I am able to get a response from http://codeberg.org)

Firefox says:

An error occurred during a connection to codeberg.org. SSL received a record that exceeded the maximum permissible length.

Curl says:

~ ❱ curl -v --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:151.0) Gecko/20100101 Firefox/151.0" https://codeberg.org
*   Trying [2a0a:4580:103f:c0de::1]:443...
* Immediate connect fail for 2a0a:4580:103f:c0de::1: Network is unreachable
* connect to 2a0a:4580:103f:c0de::1 port 443 from :: port 0 failed: Success
* Host codeberg.org:443 was resolved.
* IPv6: 2a0a:4580:103f:c0de::1
* IPv4: 217.197.84.140
*   Trying 217.197.84.140:443...
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* SSL Trust Anchors:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
* TLS connect error: error:0A00010B:SSL routines::wrong version number
* closing connection #0
curl: (35) TLS connect error: error:0A00010B:SSL routines::wrong version number

The user-agent had to be renamed for another experiment, omitting it has no effect.

Limiting curl to use up to TLSv1.0, v1.1, v1.2, or v1.3 does not make any difference in the given output, aside from the one line that signifies which version of TLS was used.

For Firefox, I tried most of the applicable advice given in this website, and nothing seems to work.

I don’t understand if anything of mine is out of date or incorrectly configured.

Google Chrome on Android opens Codeberg just fine with https.

According to ssldragon.com (is this a good source to test these sorts of things?), the Codeberg SSL certificate isn’t expired, however the Certificate Authority isn’t recognized. If that is the issue, what are my options?