/* Typography */
@font-face {
  font-family: "Suisse";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/regular.woff2") format('woff2'),
    url("../fonts/regular.woff") format('woff'),
    url("../fonts/regular.ttf") format('truetype');
  font-display: fallback;
}

@font-face {
  font-family: "Suisse";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/semibold.woff2") format('woff2'),
    url("../fonts/semibold.woff") format('woff'),
    url("../fonts/semibold.ttf") format('truetype');
  font-display: fallback;
}


*::-moz-selection {
  background: black;
  color: white;
}

*::selection {
  background: black;
  color: white;
}

body {
  background-color: white;
  box-sizing: border-box;
  color: #00001A;
  max-width: 1440px;
}

body {
  font: 400 15px/20px "Suisse", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  overflow: hidden;
}

h1,
h2 {
  display: inline;
}

.headline {
  display: block;
  margin: 25px 0;
}

.about {
  max-width: 470px;
}

h1,
h2 {
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -.1px;
  font-weight: 400;
}

h4 {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

h2 {
  font-weight: 400;
}

nav,
section {
  margin: 10px 15px;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a[href] {
  color:black;
  text-decoration: none;
}

main a.blue[href]:hover {
  color: #164DBA;
  text-decoration: none;
}

a.blue {
  text-decoration: underline;
}

.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 60px;
}

nav {
  z-index: 900;
  position: -webkit-sticky;
  position: sticky;
  top: 15px;
}

nav .name {
  text-decoration: none;
}

@supports (mix-blend-mode: difference) {
  nav .name {
    /* color: white; */
  }

  .invert {
    /* mix-blend-mode: difference; */
  }
}

.error {
  padding: 10px 15px;
  background: hsl(0, 100%, 90%);
}

#portfolio img,
#portfolio .video {
  margin-bottom: 30px;
}

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

  .headline,
  h1,
  .touch {
    margin-top: 0px;
  }
}

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

  .sticky {
    position: relative;
    top: 0;
  }
}

@media only screen and (max-width: 691px) {
  .headline,
  h1,
  h2 {
    font-size: 15px;
    line-height: 20px;
  }

  #home h1,
  #home h2,
  #home .headline,
  .name {
    font-size: 20px;
    line-height: 25px;
    letter-spacing: 0;
  }

  nav,
  section {
    margin: 10px 15px;
  }

  nav {
    top: 15px;
  }

  #portfolio img,
  #portfolio .video {
    margin-bottom: 15px;
  }

  .touch {
    margin-top: 25px;
  }
}

picture {
  width: 100%;
  display: block;
  position: relative;
}

img {
  display: block;
  width: 100%;
}

.lazyload,
.lazyloading {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.lazyloaded {
  opacity: 1;
  transform: translateY(0px) scale(1);
  transition:
    all 300ms ease-out 100ms,
    transform 300ms ease-out 100ms;
}

#overlay {
  z-index: 900 !important;
}

.cv-entry {
  margin-bottom: 75px;
}

.cv-entry h2 {
  display: inline-block;
  max-width: 400px;
  margin: 0;
}

.contacts {
  margin-top: 25px;
}

.touch {
  margin-bottom: 15px;
}

.touch:last-child {
  margin-bottom: 0;
}

.touch span {
  color: hsl(0, 0%, 60%);
}

.touch ul.details {
  list-style-type: none;
  padding: 0;
  padding-left: 13px;
  margin: 5px 0 0 0;
}

.touch ul.details li {
  display: block;
}

.touch ul.details li::before {
  content: "– ";
  margin-left: -13px;
}

.touch ul.chips {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.touch ul.chips li {
  display: inline-block;
  background: hsl(0, 0%, 95%);
  padding: 0 15px;
  line-height: 40px;
  margin: 0 10px 10px 0;
}

/* .touch ul.chips li:hover {
  background: hsl(0, 0%, 93%);
  cursor: pointer;
} */

.touch ul.chips li::before {
  margin: 0;
  padding: 0;
}

.touch ul.entry {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.touch ul.entry li {
  display: block;
}

ul.entry>li:nth-child(1) {
  font-weight: 600;
}

ul.entry>li:nth-child(3) {
  color: hsl(0, 0%, 60%);
}

.touch>b,
.touch>a,
.touch>span {
  display: block;
}

.touch>span {
  color: hsl(0, 0%, 60%);
}

.file {
  display: inline-block;
  text-decoration: none;
  margin-left: 10px;
}

.file:active {
  color: hsl(0, 0%, 80%) !important;
}