/// Silent mode
///
/// @type Bool
$o-fonts-is-silent: true !default;

/// Origami Build Service path to font files.
///
/// @deprecated - Use "$o-fonts-build-service-path" or "$o-fonts-self-host-path" instead.
/// @type String
$o-fonts-path: 'https://www.ft.com/__origami/service/build/v3/font?version=1.12' !default;

/// Origami Build Service path to font files.
///
/// @type String
$o-fonts-build-service-path: $o-fonts-path !default;

/// Alternative path to self hosted font files, hosted on a service which does not 
/// conform to the Origami Build Service api. For example this is used by 
/// Financial-Times/ft-app to support offline fonts.
///
/// @see $o-fonts-build-service-path - If not set the Origami Build Service is used to host fonts.
/// @type String
$o-fonts-self-host-path: '' !default;

/// The default `font-display` property of included font faces.
/// https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display
///
/// @type String|Null
$o-fonts-display: swap !default;

/// A list of all weight and style variants of the MetricWeb font.
/// @type List
/// @access private
$_o-fonts-all-metric-variants: (
	(weight: 'thin', style: normal),
	(weight: 'light', style: normal),
	(weight: 'light', style: italic),
	(weight: 'regular', style: normal),
	(weight: 'regular', style: italic),
	(weight: 'medium', style: normal),
	(weight: 'semibold', style: normal),
	(weight: 'bold', style: normal),
	(weight: 'bold', style: italic),
	(weight: 'black', style: normal)
);

/// A list of all weight and style variants of the FinancierDisplayWeb font.
/// @type List
/// @access private
$_o-fonts-all-financier-display-variants: (
	(weight: 'light', style: normal),
	(weight: 'light', style: italic),
	(weight: 'regular', style: normal),
	(weight: 'regular', style: italic),
	(weight: 'medium', style: italic),
	(weight: 'medium', style: normal),
	(weight: 'semibold', style: normal),
	(weight: 'semibold', style: italic),
	(weight: 'bold', style: normal),
	(weight: 'black', style: normal)
);

/// A list of all weight and style variants of the FinancierTextWeb font.
/// @type List
/// @access private
$_o-fonts-all-financier-text-variants: (
	(weight: 'regular', style: italic),
	(weight: 'regular', style: normal),
	(weight: 'medium', style: normal),
	(weight: 'bold', style: normal),
	(weight: 'black', style: normal)
);

/// The fonts to include by default, which vary per brand.
/// @see oFonts
/// @access private
$_o-fonts-default: ();

@if oBrandIs('core') {
	$_o-fonts-default: (
		'metric': $_o-fonts-all-metric-variants,
		'financier-display': $_o-fonts-all-financier-display-variants
	) !global;
}

@if oBrandIs('internal') {
	$_o-fonts-default: (
		'metric': $_o-fonts-all-metric-variants,
		'financier-display': ()
	) !global;
}

/// The MetricWeb variants to include by recommended, which vary per brand.
/// @see oFonts
/// @access private
$_o-fonts-recommended: (
	'metric': (),
	'financier-display': (),
	'financier-text': ()
);

@if oBrandIs('core') {
	$_o-fonts-recommended: (
		'metric': (
			(weight: regular, style: normal),
			(weight: semibold, style: normal)
		),
		'financier-display': (
			(weight: medium, style: normal),
			(weight: bold, style: normal)
		),
		'financier-text': ()
	);
}

@if oBrandIs('internal') {
	$_o-fonts-recommended: (
		'metric': (
			(weight: regular, style: normal),
			(weight: semibold, style: normal)
		),
		'financier-display': (),
		'financier-text': ()
	);
}

/// All available font families.
///
/// @type Map
/// @access private
$_o-fonts-families: (
	MetricWeb: (
		font-family: 'MetricWeb, sans-serif',
		variants: $_o-fonts-all-metric-variants
	),
	FinancierDisplayWeb: (
		font-family: 'FinancierDisplayWeb, serif',
		variants: $_o-fonts-all-financier-display-variants
	),
	FinancierTextWeb: (
		font-family: 'FinancierTextWeb, serif',
		variants: $_o-fonts-all-financier-text-variants
	),
) !default;

/// Human-readable Font-weights
///
/// @type Map
/// @access private
$_o-fonts-weights: (
	'thin':       100,
	'light':      300,
	'regular':    400,
	'normal':     400,
	'medium':     500,
	'semibold':   600,
	'bold':       700,
	'black':      900,
) !default;

/// Map of families and styles which have already been included
/// Used to avoid declarations from being multiple times in the CSS output
///
/// @access private
$_o-fonts-families-included: () !default;
