/*!
Author: Max Gruson
Author URI: https://www.maxgruson.com/
License: Nobody else may use, copy, distribute, or modify this work.
Version: 2.0
*/
/* JOST* */
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-400-book-webfont.woff2") format("woff2"), url("../fonts/jost-400-book-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal; }

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-600-semi-webfont.woff2") format("woff2"), url("../fonts/jost-600-semi-webfont.woff") format("woff");
  font-weight: bold;
  font-style: normal; }

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-400-bookitalic-webfont.woff2") format("woff2"), url("../fonts/jost-400-bookitalic-webfont.woff") format("woff");
  font-weight: normal;
  font-style: italic; }

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-600-semiitalic-webfont.woff2") format("woff2"), url("../fonts/jost-600-semiitalic-webfont.woff") format("woff");
  font-weight: bold;
  font-style: italic; }

* {
  box-sizing: border-box; 
}

html {
  font-size: 62.5%; 
}

body {
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  padding: 0 5em;
  transition: all 400ms ease-in-out;
  color: black;
  background-color: white;
}
body.darkmode {
  color: white;
  background-color: black;
}

h1, h2, h3 {
  font-weight: bold; 
}

a {
  color: dimgrey;
  text-decoration-thickness: 0.05em;
  transition: all 400ms ease-in-out;
}
body.darkmode a {
  color: lightgrey;
}

p {
  margin-top: 0;
  margin-bottom: 0.5em;
  line-height: 1.5; 
}
img {
  max-width: 100%;
  max-height: 50vw;
  overflow: hidden;
  object-fit: cover;
  object-position: center;
}

p:last-child {
  margin-bottom: 0; 
}
small {
  display: block;
  font-size: 0.88em;
}

header, main {
  max-width: 1200px;
  margin: 0 auto;
}
header {
  position: relative;
}
header h1 {
  margin-top: 5rem;
  margin-bottom: 3rem;
  font-size: 1.5rem;
  text-align: center;
  text-transform: lowercase;
  font-weight: normal;
}
header h2 {
  font-size: 3.5rem;
  font-family: "Jost", sans-serif;
  text-align: center;
  margin-bottom: 3rem;
}
header p {
  font-size: 1.7rem;
  max-width: 56rem;
  margin: 0 auto 0.7em;
  position: relative;
}
header>*:last-child {
  margin: 0 auto 10rem; 
}

#socials {
  margin-top: 3.5rem;
  text-align: center;
}
#socials a {
  color: black !important;
  display: inline-block;
  text-decoration-line: none;
  transition: all 400ms ease-in-out;
}
#socials span {
  text-decoration: underline;
  text-decoration-thickness: inherit;
}
.darkmode #socials a {
  color: white !important;
}
#socials svg {
  transition: all 400ms ease-in-out;
  display: inline-block;
}
#instagram {
  height: 1.5rem;
  margin-bottom: -0.15rem;
}
#mail {
  height: 1.2rem;
  margin-bottom: -0.04rem;
}
.darkmode #socials svg {
  fill: white;
}

main > ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
main > ul > li {
  display: flex !important;
  flex-direction: row;
  margin-bottom: 8rem;
}
main > ul> li:nth-child(even) {
  flex-direction: row-reverse;
}
main > ul > li> div {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: start;
}
main > ul> li > div:nth-child(2) {
  padding: 0 0 0 3rem;
}
main > ul > li:nth-child(even) > div:nth-child(2) {
  text-align: right;
  padding: 0 3rem 0 0;
}
main h3 {
  font-size: 3.5rem;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
main p, main > ul ol > li, main > ul ul > li {
  font-size: 1.7rem;
  margin-top: 0;
  margin-bottom: 0.5em;
  line-height: 1.5; 
}
main time {
  font-size: 1.5rem;
  margin-bottom: 1.7rem;
}

footer {
  margin-top: 3rem;
  margin-bottom: 5rem;
  text-align: center;
  font-size: 1.5rem;
}

@media screen and (max-width: 1000px) {
  html {
    font-size: 55%;
  }
}
@media screen and (max-width: 880px) {
  main h3 {
    text-align: center;
  }
  main > ul > li {
    flex-direction: column !important;
  }
  main > ul > li > div {
    width: 100% !important;
    text-align: left !important;
    align-items: center !important;
    padding: 0 !important;
  }
  main time {
    margin-top: 1.5rem;
  }
  img {
    display: inline-block;
    max-width: 50rem;
    max-height: 50rem;
    min-height: auto;
    width: 100%;
  }
}
@media print {
  main > ul > li {
    page-break-inside: avoid;
    page-break-before: always;
  }
}

#darkmode-toggle, #lang-toggle {
  border: none;
  cursor: pointer;
  background-color: black;
  color: white;
  top: 1em;
  height: 2.1em;
  width: 1em;
  border-radius: 1em;
  margin: 0;
  padding: 0;
  font-size: 2em;
  position: absolute;
  transition: all 400ms ease-in-out;
  z-index: 999;
}
#darkmode-toggle {
  right: 1em;
}
#lang-toggle {
  right: 2.4em;
}
#darkmode-toggle:after, #lang-toggle:after {
  content: "";
  position: absolute;
  height: 0.7em;
  width: 0.7em;
  background-color: white;
  top: 0.15em;
  left: 0.15em;
  box-sizing: border-box;
  transition: all 400ms ease-in-out;
  border-radius: 100%;
}
.darkmode #darkmode-toggle, .darkmode #lang-toggle {
  background-color: white;
  color: black;
}
.darkmode #darkmode-toggle:after {
  background-color: black;
  top: 1.25em;
}
.darkmode #moon {
  opacity: 0;
}
.darkmode #sun {
  opacity: 1;
}
#darkmode-toggle > svg, #lang-toggle > * {
  position: absolute;
  transition: all 400ms ease-in-out;
}
#sun {
  top: 0.15em;
  left: 0.15em;
  height: 0.7em;
  opacity: 0;
  fill: black;
}
#moon {
  bottom: 0.2em;
  left: 0.2em;
  height: 0.6em;
  opacity: 1;
  fill: white;
}

.darkmode #lang-toggle:after {
  background-color: black;
}
#lang-toggle>* {
  left: 0;
  width: 100%;
  text-align: center;
}
#lang-toggle>*:first-child {
  top: -0.1em;
}
#lang-toggle>*:last-child {
  bottom: 0.1em;
}
#lang-toggle span {
  font-size: 0.5em;
  font-weight: bold;
}
html[lang="en"] #lang-toggle:after {
  top: 1.25em;
}
html[lang="nl"] #lang-toggle > *:first-child, html[lang="en"] #lang-toggle > *:last-child {
  opacity: 0;
}
html[lang="en"] #lang-toggle > *:first-child, html[lang="nl"] #lang-toggle > *:last-child {
  opacity: 1;
}
html[lang="nl"] *[lang="nl"], html[lang="en"] *[lang="en"] {
  display: initial;
}
html[lang="en"] *[lang="nl"], html[lang="nl"] *[lang="en"] {
  display: none;
}