Regularized inner products and modular invariants for real quadratic fields | Synapse