* {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}

*:not(a):not(a *) {
  cursor: default;
}

html {
  height: 100%;
}

body {
  background: #101214;
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  color: #8E9094;
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

h1, h2 {
  font-weight: normal;
  color: white;
}

h1 {
  font-size: 25px;
}

h2 {
  font-size: 22.5px;
}

.full-size {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

#clip-paths {
  position: absolute;
  top: 0;
  left: 0;
}

#page {
  display: grid;
  grid-template-columns: 2fr 3fr;
  max-width: 1000px;
  grid-column-gap: 5vw;
  padding: 10vh 10vw;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#header-content {
  text-align: center;
}

#header-logo {
  text-align: center;
}

#profile-glitch-canvas {
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
}

#profile-glitch-canvas canvas {
  border-radius: 50%;
}

#header-content p {
  padding-top: 2px;
}

#contact {
  padding-top: 12px;
}

#contact a {
  display: inline-block;
  margin-right: 8px;
}

#contact a,
#contact a svg {
  width: 31.25px;
  height: 23.75px;
  cursor: pointer;
}

#contact a#medium,
#contact a#medium svg {
  width: 23.75px;
  height: 23.75px;
}

#contact a#youtube,
#contact a#youtube svg {
  width: 33.75px;
  height: 23.75px;
}

#contact a svg path {
  fill: #8E9094;
}
#contact a:hover svg path {
  fill: #adb0b6;
}

#lang-switcher {
  padding-top: 22px;
  font-size: 14px;
  color: #8E9094;
}

#lang-switcher a {
  color: #8E9094;
  text-decoration: none;
}

#lang-switcher a:hover {
  color: #adb0b6;
}

#lang-switcher a.active {
  color: white;
}

#site-legal {
  padding-top: 10px;
  font-size: 12px;
}

#site-legal a {
  color: #6d6f73;
  text-decoration: none;
}

#site-legal a:hover {
  color: #adb0b6;
}

#content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

section {
  margin-bottom: 30px;
}

section ul {
  line-height: 24px;
  list-style: none;
  padding-top: 2px;
  padding-bottom: 5px;
}

section a {
  color: #8E9094;
  text-decoration: none;
}
section a:hover {
  color: #adb0b6;
}

section p a {
  color: var(--inline-link-color, #8E9094);
}

#work ul li:nth-child(n+4) {
  display: none;
}

#work.is-expanded ul li.is-in {
  display: list-item;
}
#work.is-expanded > a.more {
  display: none;
}

a.more {
  font-size: 16px;
  text-decoration: none;
  color: #B0B1B3;
}

a.more svg {
  width: 6px;
  height: 10px;
  margin-left: 7px;
}
a.more .arrow {
  fill: #B0B1B3;
}
a.more:hover {
  color: #adb0b6;
}
a.more:hover .arrow {
  fill: #adb0b6;
}

#intro {
  background: #101214;
  pointer-events: none;
}

#loader {
  background: #101214;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 250ms linear;
  animation: loader-timeout 1ms linear 8s forwards;
}

#loader.is-loaded {
  opacity: 0;
}

#loader span {
  position: relative;
  width: 120px;
  height: 2px;
  background: rgba(142, 144, 148, 0.2);
  overflow: hidden;
}

#loader span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  --loader-hue: 0;
  background: hsl(var(--loader-hue), 80%, 65%);
  animation:
    loader-scan 1.2s ease-in-out infinite alternate,
    loader-hue 5s linear infinite;
}

@property --loader-hue {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@keyframes loader-hue {
  to { --loader-hue: 360; }
}

@keyframes loader-scan {
  to { transform: translateX(80px); }
}

@keyframes loader-timeout {
  to { opacity: 0; visibility: hidden; }
}

@media only screen and (prefers-reduced-motion: reduce) {
  #loader span::after {
    animation: none;
    width: 100%;
    background: #8E9094;
    opacity: 0.35;
  }
}

#logo-container {
  transform-origin: 50% 50%;
  transform: scale(0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}

#logo-container > svg {
  width: 70vw;
  height: 70vh;
  max-width: 640px;
  max-height: 536px;
}

@media only screen and (max-width: 800px) {
  #page {
    position: initial;
    padding: 10vw;
    grid-row-gap: 5vh;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }
  header {
    position: static;
  }
}

@media (pointer: coarse) {
  #work ul li a,
  #articles ul li a {
    display: block;
    padding: 4px 0;
  }

  a.more {
    display: inline-block;
    padding: 12px 0;
  }

  #lang-switcher {
    padding-top: 12px;
  }

  #lang-switcher a {
    display: inline-block;
    padding: 11px 8px;
  }

  #site-legal {
    padding-top: 0;
  }

  #site-legal a {
    display: inline-block;
    padding: 11px 8px 11px 0;
  }
}
