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

@import 'o-grid/main';
@import 'o-fonts/main';
@import 'o-colors/main';

@import 'src/scss/variables';
@import 'src/scss/color-use-cases';
@import 'src/scss/functions';
@import 'src/scss/mixins';

@import 'src/scss/type-mixins';

@import 'src/scss/use-cases/general';
@import 'src/scss/use-cases/headings';
@import 'src/scss/use-cases/article';
@import 'src/scss/use-cases/asides';
@import 'src/scss/use-cases/wrapper';


@if $o-typography-is-silent == false {

	@if $o-typography-load-fonts == true {
		@include oFontsIncludeAll();
	}

	// Headings
	.o-typography-headline,
	.o-typography-heading-level-1 {
		@include oTypographyHeadline;
	}

	.o-typography-headline--large,
	.o-typography-heading-level-1--large {
		@include oTypographyHeadlineLarge;
	}

	.o-typography-heading-level-2 {
		@include oTypographyHeadingLevel2;
	}

	.o-typography-heading-level-3 {
		@include oTypographyHeadingLevel3;
	}

	.o-typography-heading-level-4 {
		@include oTypographyHeadingLevel4;
	}

	.o-typography-heading-level-5 {
		@include oTypographyHeadingLevel5;
	}

	.o-typography-read-next {
		@include oTypographyReadNext;
	}

	.o-typography-collection-heading {
		@include oTypographyCollectionHeader;
	}

	// Body copy - common
	.o-typography-bold {
		@include oTypographyBold;
	}

	.o-typography-italic {
		@include oTypographyItalic;
	}

	.o-typography-sup {
		@include oTypographySuper;
	}
	.o-typography-sub {
		@include oTypographySub;
	}

	.o-typography-link {
		@include oTypographyLink;
	}

	.o-typography-caption {
		@include oTypographyCaption;
	}

	.o-typography-topic {
		@include oTypographyTopic;
	}

	.o-typography-author {
		@include oTypographyAuthor;
	}

	.o-typography-body {
		@include oTypographyBody;
	}

	.o-typography-standfirst {
		@include oTypographyStandfirst;
	}

	.o-typography-list {
		@include oTypographyList;
	}

	.o-typography-list--ordered {
		@include oTypographyListOrdered;
	}

	.o-typography-list--unordered {
		@include oTypographyListUnordered;
	}

	.o-typography-footer {
		@include oTypographyFooter;
	}

	.o-typography-blockquote {
		@include oTypographyBlockquote;
	}

	.o-typography-big-number {
		@include oTypographyBigNumber;
	}

	// Timestamps usecase
	.o-typography-timestamp {
		@include oTypographyTimestamp;
	}

	// Body wrapper
	.o-typography-wrapper {
		@include oTypographyWrapper;
	}

	// Don't output twice
	$o-typography-is-silent: true !global;
}
