@font-face {
  font-family: "Mono";
  src: url(/components/mono.woff2);
  font-display: block;
}

@font-face {
  font-family: "Mess";
  src: url(/components/mess.woff2);
  font-display: block;
}

@font-face {
  font-family: "Icons";
  src: url(/components/icons.woff2);
  font-display: block;
}

@keyframes fadeIn {
  from {
    filter: blur(5px);
  }
  to {
    opacity: 1;
  }
}

html {
  background: #000;
  margin: 0;
  padding: 0;
  font-family: "Mono";
}

body {
  background: #000;
  color: white;
  padding: 0;
  margin: 0;
  font-size: 14px;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: url("/components/cross.png"), auto;
}

::selection {
  background: #1a1a1a;
  color: #adff00;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: 0.2s;
  height: 75px;
  right: 0;
  user-select: none;
  z-index: 2000;
  overflow: hidden;
}

nav #home {
    position: absolute;
    left: 50%;
    text-transform: uppercase;
    transform: translateX(-50%);
    top: calc(1rem + 0.3rem);
    background: transparent;
    z-index: 222;
  }

nav #studio {
    position: absolute;
    right: 0rem;
    top: 1rem;
    background: transparent;
    /* color: black; */
    z-index: 20;
  }

:is(nav #studio):hover,:is(nav #studio):focus {
      color: #adff00;
    }

nav h2 {
    font-size: 100%;
    text-decoration: underline;
    text-transform: uppercase;
    padding: 0 1rem 0;
    margin: 1.25rem 0 0.666rem 0;
    font-weight: 200;
  }

nav input {
    position: relative;
    z-index: 20;
    display: none;
  }

nav label {
    margin: 1rem 0 0 0.5rem;
    display: inline-block;
    cursor: pointer;
    position: relative;
    z-index: 20;
    background: #adff00;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    color: black;
  }

:is(nav label):hover,:is(nav label):focus {
      color: white;
      background: black;
    }

nav ul {
    color: #999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    overflow-y: scroll;
    list-style: none;
    margin: 0;
    padding: 4em 0 10em;
    box-sizing: border-box;
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
    transform: translate(0, -3.5em);
    height: calc(100lvh + 10em);
    max-height: 100lvh;
  }

:is(nav ul)::-webkit-scrollbar {
      display: none;
    }

:is(nav ul) li:last-of-type {
      margin-bottom: 5em;
    }

nav a {
    color: inherit;
    text-decoration: none;
    padding: 0.3rem 1rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
  }

:is(nav a):hover,:is(nav a):focus {
      background: #adff00;
      color: #000;
    }

:is(:is(nav a):hover,:is(nav a):focus) strong {
        color: #000;
      }

:is(:is(nav a):hover,:is(nav a):focus) ex-tag {
        color: #000;
      }

:is(nav a) span {
      flex: 1;
    }

:is(nav a) span:last-of-type {
      text-align: right;
    }

nav strong {
    color: white;
  }

nav:has( > input:checked) ul {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, 0rem);
  }

nav:has( > input:checked) {
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.7);
    height: calc(100vh + 5em);
  }

nav:has( > input) label::after {
    content: "INDEX";
  }

nav:has( > input:checked) label {
    color: white;
    background: black;
  }

nav:has( > input:checked) label::after {
    content: "CLOSE";
  }

ex-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: flex;
}

ex-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: auto;
  }

.tags {
  margin: 5rem auto 2rem auto;
}

ex-tag {
  border: 1px solid currentColor;
  display: inline-block;
  padding: 0.444em 0.888em;
  border-radius: 2em;
  margin: 0.25em;
  font-size: 70%;
  font-weight: 800;
  color: white;
  white-space: nowrap;
}

/* body::before {
  content: ' ';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.06),
      rgba(0, 255, 0, 0.02),
      rgba(0, 0, 255, 0.06)
    );
  z-index: 50;
  background-size: 100% 2px, 4px 100%;
  pointer-events: none;
} */

section {
  padding: 100px 0;
  min-height: 100svh;
  box-sizing: border-box;
  line-height: 1.5;
  text-wrap: pretty;
  /* text-transform: uppercase; */
}

section h1,section h2,section h3,section h4,section h5,section h6 {
    font-size: 100%;
    font-weight: 200;
    line-height: 1.2;
    padding-bottom: 0.7rem;
    text-transform: uppercase;
  }

section small {
    text-transform: uppercase;
  }

section p,section ul,section ol {
    max-width: 600px;
    text-wrap: pretty;
  }

section ol,section ul {
    padding: 0 0;
    margin-top: -1em;
    list-style: none;
  }

:is(section ol,section ul) li {
      text-align: left;
    }

:is(section ol,section ul) li::before {
      content: "+ ";
      color: #adff00;
    }

section.page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

section.page a {
    color: inherit;
  }

:is(section.page a):hover {
      color: #adff00;
    }

section.page img {
    width: 100%;
    max-height: 100%;
    max-width: 800px;
    height: auto !important;
    position: relative;
    filter: grayscale(100%) contrast(1.8);
    mix-blend-mode: multiply;
  }

section.project {
  text-align: center;
  display: flex;
}

section.project p,section.project ol,section.project ul {
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;
    text-align: left;
    text-wrap: pretty;
  }

section.project h1,section.project h2,section.project h3,section.project h4,section.project h5,section.project h6 {
    color: #adff00;
    font-size: 150%;
    margin: 4rem auto 0;
  }

.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0 0 2rem;
}

.card-list h2 {
    flex: 1 1 100%;
    margin-bottom: -1rem;
  }

section.card {
  flex: 1 1 300px;
  margin: 0;
  min-height: auto;
  padding: 1rem 2rem 2rem;
  /* background: #212121; */
  border-radius: 0.5rem;
  border: 2px solid #333333;
}

section.card ol,section.card ul {
    margin: 0;
  }

ex-img {
  display: flex;
  opacity: 0;
}

ex-img img,ex-img video {
    display: block;
    margin: auto;
    max-width: 90vw;
    max-height: 70svh;
    height: auto;
    width: auto;
    border-radius: 0.5em;
  }

ex-img.fade {
    animation: fadeIn 0.666s forwards;
  }

ex-gallery {
  position: fixed;
  display: flex;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  z-index: 500;
  pointer-events: none;
}

ex-gallery ex-img {
  width: 100%;
  height: auto;
  position: fixed;

  left: 50%;

  transform: translateY(-50%) translateX(-50%);
  -webkit-transform: translateY(-50%) translateX(-50%);
}

#content {
  position: relative;
  z-index: 5;
  margin: auto;
  /* pointer-events: none; */
  padding: 0 2rem;
  transition: filter 1.5s;
}

#content h1 {
    font-size: clamp(2rem, 10vw, 4rem);
    font-family: "Mess";
    word-break: break-all;
  }

#content li {
    margin-bottom: 1rem;
  }

#content small {
    color: #999;
  }

#content a {
    color: inherit;
  }

:is(#content a):hover {
      color: #adff00;
    }

#content.blur {
  filter: blur(5px);
  z-index: 1;
}

.dt {
  display: none;
}

@media (min-width: 800px) {
  .dt {
    display: initial;
  }
}
