@import url(///typ.problemas.se/fonter/lib/hk-grotesk/stylesheet.css);

:root {
	--text: 0 0% 15%;
	--grangron-komp: calc(164 + 180) 60% 20%;
	--grangron: 164 100% 15%;
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 12px;
  box-sizing: border-box;
  background: hsl(var(--grangron)) url(../bilder/granen.jpeg) fixed no-repeat top center;
  background-size: cover;
  color: hsl(var(--text));
}

::selection {
	background: hsl(var(--grangron-komp));
	color: white;
}

a {
  color: hsl(var(--grangron-komp));
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.center {
  text-align: center;
}
main {
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  display: block;
  margin: 32px auto;
  padding: 32px;
  max-width: 640px;
  background: rgba(231, 220, 198, 0.5);
  -moz-box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
  -moz-transform-style: inherit;
  -moz-backdrop-filter: blur(4px) contrast(50%);
  -webkit-backdrop-filter: blur(4px) contrast(50%);
  backdrop-filter: blur(4px) contrast(50%);
  border-radius: 15px;
  border: 1px solid transparent;
}

main header {
  text-align: center;
}
main header img {
  width: 70%;
}
main header span {
  display: inline-block;
}
main .images {
  transform-style: inherit;
  padding: 0 12px;
}
main section figure {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: column;
  max-width: 100%;
  transform-style: inherit;
  margin: 6px 0;
  position: relative;
  padding: 4px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.7);
  background: rgba(231, 220, 198, 0.8);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
}

figure {
	transform: rotate(2deg);
}
figure:nth-of-type(even) {
	transform: rotate(-2deg);
}

main section img {
  box-sizing: border-box;
  max-width: 100%;
}

@media (min-width: 600px) {
  main section figure {
	  width: calc(50% - 20px);
	  float: left;
	  margin-right: 20px;
  }
  
  main section figure:nth-of-type(odd) {
	  float: right;
	  margin-right: 0;
	  margin-left: 20px;
	  position: relative;
	  top:-36px;
	  margin-bottom: -24px;
  }
  h2:nth-of-type(odd) {
	  width: 50%;
  }
  h2:last-of-type {
	  width: auto;
  }
}

figure figcaption {
	font: 14px/1.3 'HK Grotesk', georgia, serif;
	font-variant-ligatures: no-discretionary-ligatures;
	margin: 2px 5px;
	transform-style: inherit;
 }


section {
  display: block;
  transform-style: inherit;
  position: relative;
}
section h1 {
  font: 36px/1.1 'HK Grotesk', sans-serif;
  font-weight: 900;
  color: hsl(var(--grangron-komp));
  margin: 24px 0 8px;
}


section h2 {
  font: 24px/1.1 'HK Grotesk', sans-serif;
  font-weight: 800;
  color: hsl(var(--grangron-komp));
  letter-spacing: 1px;
  transform: translateZ(0);
  clear:both;
  margin: 24px 0 8px;
}

section p {
  max-width: 800px;
  margin: 0 0 12px ;
  font: 16px/1.5 'HK Grotesk', sans-serif;
  transform: translateZ(0);
}
section p.intro {
  font: 18px/1.5 'HK Grotesk', sans-serif;
	
}
hr {
    border: 0;
	height: 1px;
	background-image: linear-gradient(to right, rgba(0, 0, 0, .1), rgba(0, 0, 0, .7), rgba(0, 0, 0, .1));	clear: both;
	margin: 12px 0;
	
}

section nav {
  font: 800 14px/1.5 'HK Grotesk', sans-serif;
  display: block;
  margin: 20px 0 0 0;
}
section nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}
section nav ul li {
  padding: 0px;
  margin: 0 4px;
  display: inline-block;
}
section nav ul li a {
  text-decoration: none;
}
section nav ul li a:hover {
  text-decoration: underline;
}

