/* ------------------------------------------------------------------------------ */
/* ------------------------------------------------------------- 6.0/00 - 12-03-2023
/* colors   -> #EE741D | rgba(238,116,29) | hsla(25,86%,53%) */
/* ------------------------------------------------------------------------------ */
/* link     -> https://codepen.io/Sicontis/pen/vYpoMXO */
/* info     -> jump2article */
/* ------------------------------------------------------------------------------ */
/* ROOT and time4year */

@font-face {
  font-family: 'Oxanium';
  src: url('fonts/Oxanium-VariableFont_wght.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Anodina-Light';
  src: url('fonts/Anodina-Light.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/*
@font-face {
  font-family: 'Hanken-Grotesk';
  src: url('fonts/HankenGrotesk-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
*/
/*
@font-face {
  font-family: 'Staatliches';
  src: url('fonts/Staatliches-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
*/

:root {
	--hover-bgr:hsla(210,100%,56%,1);
    
    /* cards */
    --card-front-col: rgba(0,0,0,.6); /* black, gray OR client-color */
    --card-front-bgr: #fff;
    --card-back-col: #fff;
    --card-back-bgr: #EE741D;
    --card-ibox-hgt: 14rem;         /* min-height of the card - depends of the text card-back - def 14rem */
    --card-body-bdr: 1px solid rgba(0,0,0,.05);     /* border - def 1px */
    /* grid-area */
    --grid-area-gap: 1rem;          /* gap between flipboxes - def 1rem | min .3rem - check used shadow */
    --grid-area-pad: 1rem;          /* padding - check card-border-radius - def 1rem | min .3rem */
    --grid-area-bgr: none;          /* background - def none */
    --grid-area-bdr: 0px solid rgba(0,0,0,.25);     /* border - def 0px  */
    --grid-area-rad: 0rem;          /* border-radius - def 0rem */

    /* counter - card-front */ 
    --count-color: rgb(255,255,255,.6);	/* color of the counter - must be the same as card-back-background AND no transparent */
    --count-size: 3rem;                 	/* counter size - def 4rem */
	--count-font: Arial;					/* font-familiy ARIAL */
    /*--count-pos-top:1.4rem;             	/* counter position top - def 1rem NOT IN USE*/
    --count-pos-right:1.6rem;             	/* counter position right - def 1.2rem */
    /*--count-pos-left: 2rem;       		/* counter position left - NOT IN USE */
    --count-pos-bottom: 1.4rem;     			/* counter position bottom -  */ 
    --count-width: 1px;             		/* counter stroke - def 1px | max 3px */
    /* animation */
    --time-flip: 0.8s;              		/* def 0.8s */
	}

/* ------------------------------------------------------------------------------ */
/* ------------------------------------------------------------ 6.0/00 - 12-03-23 */
/* RESET COUNTER -> SEE design.css */
/* jump2article */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  --black: #1a1a1a;
  --white: #f3fdfd;
  --dark-blue: #025c85;

  --size-h1: 5rem;
  --size-h2: 1.2rem;
  --size-p: 1rem;
  --size-quote: 1.4rem;

  --serif-font: 'Anodina-Light';
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2em;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background-color: var(--white);
  background-image: url("../content/noisy.png");
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: var(--black);
  counter-reset: num;
}

img {
  width: 100%;
  height: auto;
}

h1 {
  font-family: var(--serif-font);
  font-size: var(--size-h1);
  color: var(--dark-blue);
}
h2 {
  height: min-content;
  font-size: var(--size-h2);
  font-weight: normal;
}
p {
  font-size: var(--size-p);
  line-height: 1.5rem;
  opacity: 0.8;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
}

article {
  margin: 4em 0;
  width: 100%;
  max-width: 1080px;
  padding: 1em;
  position: relative;
}

blockquote {
  padding: 1em 0 1em 1em;
  font-size: var(--size-quote);
  font-family: var(--serif-font);
  position: relative;
}
blockquote span {
  display: block;
  font-family: "Poppins", sans-serif !important;
  font-size: 1rem;
  font-family: inherit;
  text-transform: uppercase;
  margin-top: 0.5em;
}
blockquote::before {
  position: absolute;
  top: -50px;
  left: 0;
  content: "\201C";
  font-size: 8em;
  color: var(--dark-blue);
  opacity: 0.2;
}

.nav {
  position: sticky;
  width: min-content;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 40px);
  padding: 3px;
  justify-items: center;
  align-items: center;
  z-index: 10;
  background-color: var(--dark-blue);
  opacity: 0;
  transition: opacity 0.3s;
}
.nav.show {
  opacity: 1;
}

.item a {
  display: block;
  font-weight: bold;
  color: var(--white);
  opacity: 0.3;
}

.active a {
  opacity: 1;
}

.intro,
.middle,
.epilogue,
.final {
  margin-top: 6em;
}

.section {
  display: grid;
  grid-template-columns: 40% 1fr;
  column-gap: 1em;
  position: relative;
  counter-increment: num;
}
.section h2 {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--dark-blue);
}
.section:not(div.blank)::before {
  position: absolute;
  content: "0" counter(num);
  left: 0;
  top: 2%;
  font-size: 4rem;
  color: var(--dark-blue);
  opacity: 0.2;
}

.blank {
  counter-reset: num;
}
.blank img {
  grid-column: 2/3;
  margin: 1em 0;
}

.hero {
  display: grid;
  grid-template-columns: 40% 1fr;
  column-gap: 1em;
  align-items: center;
  position: relative;
}
.hero div {
  height: min-content;
  padding: 1em 2em 1em 0;
}
.hero h1 {
  font-size: var(--size-h1);
  line-height: calc(var(--size-h1) + 0.5rem);
}
.hero h2 {
  margin: 2em 0 0.3em 0;
  font-size: calc(var(--size-p) + 0.2rem);
}

.intro p {
  margin: 2em 0;
  column-count: 2;
  column-gap: 2em;
}
.middle p,
.epilogue p,
.final p {
  margin-bottom: 2em;
}

.middle img {
  width: 50%;
  float: left;
  padding-right: 2em;
}

.final p:last-of-type {
  column-count: 2;
  column-gap: 2em;
}

@media (max-width: 700px) {
  article {
    margin: 1em 0;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero div {
    margin-bottom: 2em;
  }
  .hero h1 {
    font-size: calc(var(--size-h1) - 1rem);
  }

  .section:not(div.blank)::before {
    top: 3%;
    font-size: 4rem;
  }

  .intro p {
    margin: 1em 0;
    column-count: 1;
  }
  .final p:last-of-type {
    column-count: 1;
    column-gap: 1em;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: calc(var(--size-h1) - 2rem);
  }
  .section {
    grid-template-columns: 1fr;
  }
  blockquote::before {
    top: -30px;
    font-size: 6em;
  }
  .section h2 {
    margin-bottom: 1em;
  }
  .section:not(div.blank)::before {
    top: -1.5em;
    font-size: 2rem;
  }

  html {
    scroll-padding-top: 5em;
  }
}


/* ------------------------------------------------------------------------------ */
/* ------------------------------------------------------------ 6.0/00 - 21-08-22 */
/* css-counter postion background */
/* https://stackoverflow.com/questions/43514987/css-increasing-number-as-background-images-for-css */
.count-reset {
	counter-reset:Element; /* reset must be here */
	}

.count-item::before { 
	position:absolute;
  	display:flex;
	/*top:var(--count-pos-top);*/
  	right:var(--count-pos-right);
  	bottom:var(--count-pos-bottom);
  /*left:var(--count-pos-left);*/
	justify-content:center;
  	align-items:center;
  	counter-increment:Element 1;
	content:counter(Element) '';
	font-size:var(--count-size); 
	font-family:var(--count-font);
	font: 800 Arial;
	  -webkit-text-fill-color:transparent; /* works FF, Chrome and Edge */
	  -webkit-text-stroke:var(--count-width);
	  -webkit-font-smoothing:antialiased;
	color:red; /*var(--count-color); /* must be the same color als card-back background */
    opacity:1;
	z-index:999;
	}
/* shadow */
/*
.shadow, .flex-item {
  box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.04), 0 2px 2px rgba(0, 0, 0, 0.04), 0 4px 4px rgba(0, 0, 0, 0.04), 0 8px 8px rgba(0, 0, 0, 0.04), 0 16px 16px rgba(0, 0, 0, 0.04);
}
*/	
/* ------------------------------------------------------------------------------ */
/* END */	
/* ------------------------------------------------------------------------------ */