/* Logo font */

@font-face {
	font-family: "Firjar";
	font-weight: 600;
	src: url("fonts/firjar/Firjar-Bold.ttf") format("truetype");
}

/* Variables */

:root {
	--max-width: 750px;
	--main-background: #f8f4eb; /* fffefb fffdf5 f9f6e8 fffcef*/
	--main-color: #17220f;
	--main-color-h1: #3e3f37;
	--logo-color: #007d1f; /* 008802 037905 038222 007d31 */
	--link-color: #067c23;
	--link-hover-color: #0d9e31;
	/* --link-visited-color: #808d07; */
	--link-visited-color: #067c23;
	--highlight-color: #1d3a09;
	--highlight-background: #dbe9d6; /* d1e5ca */
	/* --highlight-background: #cae5cd; */
}

html {
	width: 100%;
	height: 100%;
	margin: 0;
}

body {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: var(--main-background);
	color: var(--main-color);
	font-family: Noto Sans, Open Sans, -apple-system, 'open sans', 'helvetica neue', sans-serif;
	line-height: 1.5;
	font-size: 1.1em;
	padding: 30px;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	z-index: 1;
	opacity: 0.98;
}

body.landing-body {
	justify-content: center;
	height: 100%;
}

/* 
Her kommer et triks for å få grain/noise på bakgrunnen.
Funnet her: https://ibelick.com/blog/create-grainy-backgrounds-with-css 
*/

/* body:before {
	content: "";
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
	background-repeat: repeat;
	background-size: 42px;
	opacity: 0.4;
	top: 0;
	left: 0;
	position: absolute;
	width: 100%;
	height: 100%;
} */

/* CSS relatert til landingssiden */

article.landing {
	max-width: var(--max-width);
	position: relative;
	padding: 10px 10px 10vh 10px;
	height: fit-content;
}

article.landing > p:last-of-type {
	padding-bottom: 1.2em;
}

/* Logoen */

.logo {
	text-transform: lowercase;
	line-height: 0.85;
	font-family: Firjar, Noto Sans, Open Sans, -apple-system, 'open sans', 'helvetica neue', sans-serif;
	letter-spacing: -0.05em;
	color: var(--logo-color);
	opacity: 0.85;
	padding: 0;
}

a.logo, a.logo:visited {
	color: var(--logo-color);
}

a.logo:active, a.logo:hover, a.logo:focus {
	color: var(--link-hover-color);
}

article.landing > h1.logo {
	font-size: 3.25em;
	margin: 0 0 0.65em 0;
}

header > .logo {
	font-size: 2em;
	/* font-size: 3.25em; */
	margin: 0 0.5em 0.45em 0;
	display: block;
	text-decoration: none;
}

.highlighted {
	padding: 1px 6px 2px 6px;
	background: var(--highlight-background);
	border-radius: 6px;
	text-wrap: nowrap;
	color: var(--highlight-color);
}

/* landing-menu contains a few links after the short landing page text */

ul.landing-menu  {
	margin-top: 1em;
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: flex-start;
	list-style-type: none;
	flex-wrap: wrap;
}

ul.landing-menu li {
	display: block;
	width: fit-content;
	margin-right: 1.25em;
}

header > menu li:last-of-type {
	margin-right: 0;
}

article {
	max-width: var(--max-width);
	z-index: 1;
}

header {
	width: 100%;
	margin: 0.5em 0 1em 0;
	padding: 0;
	max-width: var(--max-width);
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	z-index: 1;
}

header > menu {
	margin: 0.25em 0 0.45em 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: flex-start;
	list-style-type: none;
	flex-wrap: wrap;
}

header > menu li {
	display: block;
	width: fit-content;
	margin-right: 1.25em;
}

header > menu li:last-of-type {
	margin-right: 0;
}

header > menu li a {
	/* text-decoration: none; */
	/* font-weight: 600; */
}

a, a:visited {
	text-underline-offset: 5px;
}

a {
	color: var(--link-color);
	text-decoration: underline var(--link-color);
}

a, a:visited {
	color: var(--link-visited-color);
	text-decoration: underline var(--link-visited-color);
}

a:active, a:hover, a:focus {
	color: var(--link-hover-color);
	text-underline-offset: 4px;
	text-decoration: none;
}

h1 {
	color: var(--main-color-h1);
	font-size: 2.15em;
	margin-bottom: 0.25em;
}

h2 {
	color: var(--main-color-h1);
	font-size: 1.4em;
	margin-bottom: 0.25em;
}

ul {
	padding-left: 1.6em;
}

img.icon {
	top: 0.15em;
	position: relative;
	opacity: 0.85;
	margin-right: 5px;
	width: 1em;
	height: 1em;
}

/* Noe spesialbehandling for smale skjermer */



@media only screen and (max-width: 600px) {
	header > .logo {
		font-size: 3.25em;
		margin: 0.1em 0 0.2em 0;
	}
	header {
		flex-direction: column;
	}
}
