@import "_reset.css";
@import "index.css";

:root {
  --safe-area-background: #000000; /* Default safe area background */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--textfont);
  font-weight: var(--textfont-weight);
  font-size: var(--fontsmall);
  line-height: var(--lineheight);
  color: var(--backgroundcolor);
  background-color: var(--fontcolor);
  background: var(--fontcolor);
  background-color: var(--safe-area-background);
}

main {
  padding-bottom: 300px;
}

a {
  color: var(--backgroundcolor);
  background-color: none;
  text-decoration: none;
}

a:hover {
  color: var(--fontcolor);
  background-color: var(--backgroundcolor);
}

::selection {
  color: var(--fontcolor);
  background-color: var(--backgroundcolor);
}

/* -------------------------------------------------------------- CONTENT -------------------------------------------------------------- */
#aip {
  position: fixed;
  top: 0;
  padding: 10px;
  font-size: var(--fontsmall);
  line-height: var(--lineheight);
  pointer-events: all;
  cursor: pointer;
  z-index: 1000;
}

#extra {
  position: fixed;
  top: 0;
  left: 0;
  font-size: var(--fontmiddle);
  line-height: var(--lineheight);
  padding-left: var(--leftrow);
  padding-right: 40px;
  padding-top: 2em;
  padding-bottom: 1em;
}

#intro .sec2 {
  display: none;
}

.about-list {
  display: flex;
  flex-direction: column;
}

section {
  display: flex;
  flex-direction: column;
  padding: 10px;
  padding-left: calc(50vw);
}

.item {
  height: fit-content;
}

section h1 {
  position: sticky;
  top: 10px;
  font-size: var(--fontsmall);
  line-height: var(--lineheight);
}

.about-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  font-size: var(--fontmiddle);
  line-height: var(--lineheight);
  padding-left: var(--leftrow);
  padding-right: 10px;
  padding-top: 2em;
  padding-bottom: 1em;
}

.about-info p {
  padding-bottom: 1em;
  width: 100%;
}

.about-info .footnotes {
  width: 100%;
  font-size: var(--fontsmall);
}

.about-info .footnotes p {
  padding: 0;
  line-height: 120%;
}

hr {
  display: none;
}

.about-list img {
  height: 20vh;
  width: auto;
  padding-bottom: 1em;
  padding-right: 10px;
}

.about-list img.active {
  height: auto;
  width: auto;
  max-height: 70vh;
  max-width: calc(50vw - var(--leftrow));
}

a em {
  background-color: var(--backgroundcolor);
  color: var(--fontcolor);
  font-family: var(--unica);
  opacity: 1;
}

a:hover em {
  opacity: 0.5;
  font-family: var(--unica);
}

#background .sec8 li {
  padding-bottom: 10px;
}

.about-info .footnotes {
  width: 100%;
  font-size: var(--fontsmall);
  line-height: var(--lineheight);
}

.about-info .footnotes p {
  padding: 0;
}

hr {
  display: none;
}

.footnotes ol li {
  scroll-margin-top: 100px;
  padding-top: 100px;
  margin-top: -100px;
  z-index: -50;
}

.footnote-ref {
  font-feature-settings: "sups";
}

.footnotes {
  font-size: var(--fontsmall);
  line-height: var(--lineheight);
  width: 100%;
}

.footnotes ol {
  list-style-type: none;
  margin-left: 0;
  pointer-events: none;
}

.footnotes ol > li {
  counter-increment: customlistcounter;
}

.footnotes ol > li:before {
  content: counter(customlistcounter) " ";
  /* font-feature-settings: "sups"; */
  float: left;
  width: var(--leftrow);
}

.footnotes ol:first-child {
  counter-reset: customlistcounter;
}

.footnote-backref {
  pointer-events: all;
}

.footnotes li:target p,
sup:target a {
  background: grey;
}

/* -------------------------------------------------------------- HEADER -------------------------------------------------------------- */
header {
  mix-blend-mode: lighten !important;
  color: black;
}

.button {
  color: var(--fontcolor);
  background: var(--backgroundcolor);
}

#view {
  display: grid;
  grid-template-columns: var(--headercolumn);
  grid-template-rows: repeat(2, var(--buttonheight));
  position: relative;
  top: calc(6 * var(--buttonheight));
}

#view > a {
  opacity: 0;
  pointer-events: none;
}

#view > a:nth-of-type(1) {
  opacity: 1;
  pointer-events: all;
}

#navigation.on #view > a {
  opacity: 1;
  pointer-events: all;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(5, var(--buttonheight));
  position: relative;
  top: calc(6 * var(--buttonheight));
}

.about-container > a {
  opacity: 0;
  pointer-events: none;
}

.about-container > a:nth-of-type(1) {
  opacity: 1;
  pointer-events: all;
}

#navigation.on .about-container > a {
  opacity: 1;
  pointer-events: all;
}

.about-container.what {
  top: calc(5 * var(--buttonheight));
}

.about-container.what > a {
  opacity: 0;
  pointer-events: none;
}

.about-container.what > a:nth-of-type(2) {
  opacity: 1;
  pointer-events: all;
}

#navigation.on .about-container.what > a {
  opacity: 1;
  pointer-events: all;
}

.about-container.network {
  top: calc(4 * var(--buttonheight));
}

.about-container.network > a {
  opacity: 0;
  pointer-events: none;
}

.about-container.network > a:nth-of-type(3) {
  opacity: 1;
  pointer-events: all;
}

#navigation.on .about-container.network > a {
  opacity: 1;
  pointer-events: all;
}

.about-container.projects {
  top: calc(3 * var(--buttonheight));
}

.about-container.projects > a {
  opacity: 0;
  pointer-events: none;
}

.about-container.projects > a:nth-of-type(4) {
  opacity: 1;
  pointer-events: all;
}

#navigation.on .about-container.projects > a {
  opacity: 1;
  pointer-events: all;
}

.about-container.background {
  top: calc(2 * var(--buttonheight));
}

.about-container.background > a {
  opacity: 0;
  pointer-events: none;
}

.about-container.background > a:nth-of-type(5) {
  opacity: 1;
  pointer-events: all;
}

#navigation.on .about-container.background > a {
  opacity: 1;
  pointer-events: all;
}

.about-container.imprint {
  top: var(--buttonheight);
}

.about-container.imprint > a {
  opacity: 0;
  pointer-events: none;
}

.about-container.imprint > a:nth-of-type(6) {
  opacity: 1;
  pointer-events: all;
}

#navigation.on .about-container.imprint > a {
  opacity: 1;
  pointer-events: all;
}

@media screen and (max-width: 1080px) {
  #about,
  .button.about {
    display: none;
  }

  header {
    mix-blend-mode: initial !important;
  }

  #view > a {
    opacity: 1;
    pointer-events: all;
    width: 50vw;
    height: max-content;
  }

  h1 {
    top: 10px;
  }

  #aip {
    position: relative;
    height: 2em;
    display: block;
  }

  section {
    display: flex;
    flex-direction: column;
    width: 100vw;
    padding: 10px;
    padding-bottom: 0;
  }

  .about-info {
    padding-top: 0.2em;
  }

  .about-info p {
    text-wrap: pretty;
    hyphens: auto;
    hyphenate-limit-chars: auto 3;
    hyphenate-limit-lines: 2;
  }

  #intro .sec2 {
    display: block;
  }

  #extra {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  h1 {
    top: 35px;
  }
}
