////
/// @group o-typography
/// @link http://registry.origami.ft.com/components/o-typography
////

/// When silent mode is active, css classes will not be output
/// @type Bool
$o-typography-is-silent: true !default;

/// When true, webfonts will be downloaded
/// @type Bool
$o-typography-load-fonts: true !default;

/// Sans font-family
/// @type String
$o-typography-sans: oFontsGetFontFamilyWithFallbacks(MetricWeb) !default;

/// Serif font-family
/// @type String
$o-typography-serif: Georgia, serif !default;

/// Display font-family
/// @type String
$o-typography-display: oFontsGetFontFamilyWithFallbacks(FinancierDisplayWeb) !default;

/// Unitless size representing the baseline grid
/// @type Number
$o-typography-baseline-unit: 4;

/// Prefix for the class used when loading fonts
/// @type String
$o-typography-loading-prefix: 'o-typography--loading' !default;

/// Scale of font-sizes and line-heights for all font-families
/// @type Map
$o-typography-font-scale: (
   -2: (12, 16),
   -1: (14, 16),
    0: (16, 20),
    1: (18, 20),
    2: (20, 24),
    3: (24, 28),
    4: (28, 32),
    5: (32, 32),
    6: (40, 40),
    7: (48, 48),
    8: (56, 56),
    9: (72, 72),
   10: (84, 84),
);

/// Configuration for fallback fonts when loading
/// fonts progressively
/// @type Map
$_o-typography-progressive-font-fallbacks: (
	sans: (
		font: $o-typography-sans,
		fallback: sans-serif,
		fallback-scale: 0.87
	),
	sansBold: (
		font: $o-typography-sans,
		fallback: sans-serif,
		fallback-scale: 0.83
	),
	sansItalic: (
		font: $o-typography-sans,
		fallback: sans-serif,
		fallback-scale: 0.87
	),
	display: (
		font: $o-typography-display,
		fallback: serif,
		fallback-scale: 0.9
	),
	displayBold: (
		font: $o-typography-display,
		fallback: serif,
		fallback-scale: 0.9
	),
	displayItalic: (
		font: $o-typography-display,
		fallback: serif,
		fallback-scale: 0.9
	)
);
