{{!-- Sans-serif font is always loaded, because it's the default font for some part of the theme regardless of the settings --}}
{{> "typography/sans"}}

{{#match @custom.title_font "Modern sans-serif"}}
    {{#match @custom.body_font "Elegant serif"}}
        {{> "typography/serif"}}
    {{/match}}
{{else match @custom.title_font "Elegant serif"}}
    {{> "typography/serif"}}
{{else}}
    {{> "typography/mono"}}
    {{#match @custom.body_font "Elegant serif"}}
        {{> "typography/serif"}}
    {{/match}}
{{/match}}