:root {
  --white-01: hsl(0, 0%, 100%);
  --grey-01: hsl(0, 0%, 65%);
  --black-01: hsl(0, 0%, 0%);
  --blue-01: #5da1d8;
  --font-size-s: 17px;
  --font-height-s: 22px;
  --font-size-m: 20px;
  --font-height-m: 28px;
}

@keyframes exit {
  from {
    opacity: 1;
  } 
  to {
    opacity: 0;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-weight: 400;
  font-style: normal;
  font-size: var(--font-size-m);
  line-height: var(--font-height-m);
  color: var(--black-01);
  margin: 0;
}

a {
  color: var(--grey-01);
  text-decoration: none;
}

button {
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

hr {
  display: block;
  height: 2rem;
  border: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.active {
  color: var(--black-01);
}

.mobile {
  display: none;
}

/* header */

h1 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  padding: 16px 24px;
  background-color: var(--white-01);
  font-size: var(--font-size-s);
  line-height: var(--font-height-s);
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav ul:not(.languages):not(.legal) {
  display: flex;
  justify-content: space-between;
}

/* main */

main {
  margin-top: 64px;
  margin-left: 24px;
  margin-right: 24px;
  display: flex;
  gap: 16px;
}

main .margin {
  width: 15%;
}

/* languages */

.languages {
  position: fixed;
  top: 64px;
  left: 24px;
}

/* legal */

.legal {
  position: fixed;
  bottom: 16px;
  left: 24px;
}

/* layout */

main .content {
  width: 85%;
}

main .content .layout {
  display: flex;
}

main .content .layout .column:first-child {
  width: 40%;
}

main .content .layout .column:last-child {
  width: 60%;
}

.column h3 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

main .content .layout .column:last-child h3 {
  text-align: center;
}

main .content .layout .column figure {
  width: fit-content;
  margin: 1em auto;
  text-align: center;
  position: relative;
}

main .content .layout .column figure.portrait {
  max-width: 256px;
}

main .content .layout .column figure.landscape {
  max-width: 512px;
}

main .content .layout .column figure figcaption {
  text-align: left;
  font-size: 0.75em;
  width: 100%;
}

main .content .layout .column figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.layout a {
  color: var(--black-01);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* languages */

.languages {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* background and landing */

.background {
  pointer-events: none;
  position: fixed;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  /* padding: 16px 25vw 25vh 16px; */
  padding: 16px 15vw 10vh 5vw;
}

.background {
  z-index: -1;
}

.background svg {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: left;
  transform: translateY(-10%);
}

.background-menu { 
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 5vh 5vw;
  z-index: -1;
}

.background-menu svg { 
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: left;
}

/* list block */

.blocks {
  counter-reset: notes-counter;
}

.blocks ul {
  margin: 0;
  padding: 0 0 0 calc(var(--font-size-s) + 7px);
  text-indent: 0;
  font-size: var(--font-size-s);
  line-height: var(--font-height-s);
}
  
.blocks ul li {
  counter-increment: notes-counter;
  margin: 0 0 calc(var(--font-height-s) / 2) 0;
}

.blocks li::marker {
  content: "[" counter(notes-counter) "] ";
}

@media only screen and (max-width: 960px) {

  hr {
    height: 0;
  }

  .mobile {
    display: block;
  }
  
  .desktop {
    display: none;
  }

  .nav-header {
    display: flex;
    justify-content: space-between;
  }
  
  .nav-content {
    display: none;
  }

  nav.open .nav-content {
    display: block;
    pointer-events: all;
  }

  nav .nav-content {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-01);
  }

  nav .nav-content ul {
    padding: 16px 24px;
    flex-direction: column;
  }

  nav .nav-content ul:not(.languages):not(.legal) li a {
    color: var(--black-01);
  }
  
  nav .nav-content .languages {
    left: unset;
    right: 0;
    top: 0;
  }
  
  nav .nav-content .legal {
    left: 0;
    bottom: 0;
  }

  .background {
    padding: 5vh 5vw;
  }

  /* logo */

  .background {
    pointer-events: none;
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
  }

  .background svg {
    transform: translateY(0);
  }

  .background {
    padding: 10vh 5vw;
  }

  /* main */

  main .margin {
    display: none;
  }

  main .content {
    width: 100%;
  }

  main .content .layout {
    flex-direction: column-reverse;
  }

  main .content .layout .column:first-child,
  main .content .layout .column:last-child {
    width: 100%;
  }

}