// -------------------------------------------------------------------
// :: TYPOGRAPHY
// -------------------------------------------------------------------
// - https://github.com/railsware/applepie
// - http://www.google.com/design/spec/style/typography.html
// - http://typecast.com/blog/a-more-modern-scale-for-web-typography
// - http://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights
// - http://modularscale.com


@include get-font("Flanders Art Sans Light", "../../fonts/FlandersArtSans-Light", 100);
@include get-font("Flanders Art Sans Regular", "../../fonts/FlandersArtSans-Regular", 400);
@include get-font("Flanders Art Sans Medium", "../../fonts/FlandersArtSans-Medium", 700);


// -------------------------------------------------------------------
// :: BASE
// -------------------------------------------------------------------

html {
	font-size: rem(16px);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	color: $font-color;
	font-family: $font-family-sans;
	font-size: rem($font-size-medium);
	line-height: $line-height;
}


// -------------------------------------------------------------------
// :: NORMALIZE
// -------------------------------------------------------------------
// If a margin/padding is set somewhere, remove it from below
// Keep it DRY and prevent overwrites

blockquote {
	font-weight: 100;
}

strong {
	font-weight: 700;
}

small {
	display: inline-block;
}


// -------------------------------------------------------------------
// :: MARGINS
// -------------------------------------------------------------------
// If a margin/padding is set somewhere, remove it from below
// Keep it DRY and prevent overwrites

h1,
h2,
h3,
h4,
p,
h5,
h6,
ul,
ol,
body {
	margin: 0;
}

// -------------------------------------------------------------------
// :: Generel fonts
// -------------------------------------------------------------------
.flanders {
	&Regular {
		font-family: $font-family;
	}

	&Medium {
		font-family: $font-family-bold;
	}

	&Light {
		font-family: $font-family-light;
	}
}

// -------------------------------------------------------------------
// :: BLOCK ELEMENTS
// -------------------------------------------------------------------

h1 {
	font-size: calc(#{$font-size-xxxlarge} * 0.75);
	line-height: 1.2727;
	color: $aqua;
	font-family: $font-family-bold;
	font-weight: 700;

	@include FLOW-at($desktop) {
		font-size: rem($font-size-xxxlarge);
	}

	[class*="icon"]:before{
		line-height: 1;
		vertical-align: top;
	}
}


h2 {
	font-size: rem($font-size-xxlarge);
	font-weight: 300;
	line-height: 1.38;
	font-family: $font-family-light;
	margin-top: 2rem;
}

h3 {
	font-size: rem($font-size-xlarge);
	line-height: 1.5;
	font-family: $font-family;
	font-weight: 300;
}

h4 {
	font-size: rem($font-size-xlarge);
	line-height: 1.45;
	font-family: $font-family-bold;
	font-weight: 500;
}

h5 {
	font-family: $font-family-bold;
	font-size: rem($font-size);
	line-height: 1.55;
	font-weight: 500;
	color: $dark;
}

h6 {
	font-family: $font-family-sans;
	line-height: 1.55;
	font-size: rem($font-size-small);
	text-transform: uppercase;
	font-weight: 300;
	color: $dark;
	letter-spacing: 0.2px;
}

p {
	font-size: calc(#{$font-size-medium} * 0.88);

	@include FLOW-at($desktop) {
		font-size: rem($font-size-medium);
	}

	line-height: 1.625;
	margin: 1.2em 0;

	&:first-child{
		margin: 0;
	}

	[class*="icon"]{
		line-height: 1;

		&:before{
			font-size: 2.5em;
		}
	}
}

small,
cite {
	font-size: rem($font-size-small);
	line-height: 1.857;
}


h1,
h2,
h3,
h4,
h5,
h6 {
	&.primary-color{
		color: $primary-color;
	}

	&.secondary-color{
		color: $secondary-color;
	}
}

h1 + p,
h5 + p,
h6 + p {
	margin-top: 0;
}


// -------------------------------------------------------------------
// :: DECORATORS
// -------------------------------------------------------------------

a,
.is-hyperlink {
	color: $primary-color;
	background: transparent;
}

a:hover,
a:active {
	text-decoration: none;
}

a:hover,
a:active,
a:focus {
	outline: none;
}

// Highlight text-selection
// And adjust font-color for
// deleted/updated content

mark {
	background: $ui-orange;
}

del {
	color: $font-color-medium;
}

hr {
	border: none;
	border-top: 1px solid $border-color;
	box-sizing: content-box;
	margin: 1.75em 0;
}

// Blockquote and
// author name (cite)

blockquote {
	font-family: $font-family-serif;
	font-weight: 100;
	font-size: rem(26px);
	line-height: 1.25;
	margin: 0;
}

cite {
	color: $font-color-medium;
	font-family: $font-family-sans;
	font-style: normal;
	margin-top: 0.75em;
	display: block;
}

cite:before {
	content: '\2014';
	margin: 0 0.3em;
}
