@font-face {
  font-family: Social;
  font-style: normal;
  font-weight: normal;
  src: url(../media/social.woff) format('woff');
}

*,
*:after,
*:before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow: hidden;
}

html {
  background: radial-gradient(hsla(0, 0%, 0%, 0), hsla(0, 0%, 0%, 0.3)),
		url(../media/fridge.svg) no-repeat 90% 80%,
		url(../media/wallpaper.svg),
		hsl(0, 0%, 20%);
  color: hsl(0, 0%, 90%);
  font-family: 'Roboto Slab', sans-serif;
  font-size: 4vmin;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.preserve3d {
  background: hsl(0, 0%, 20%);
}

@media (max-height: 400px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  html {
    font-size: 16px;
  }
}

.site {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.site {
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

.site-hd,
.site-ft {
  position: absolute;
  left: 0;
  top: 0;
  clip: rect(1px, 1px, 1px, 1px);
}

.site-bd {
  position: relative;
  height: 100vh;
}

.site-bd,
.site-bd * {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.view {
  display: none;
}

.preserve3d .view {
  display: block;
  position: absolute;
  left: 66vw;
  top: 52vh;
  -webkit-transform: rotateX(-8deg)
		rotateY(22deg);
  transform: rotateX(-8deg)
		rotateY(22deg);
}

.room {
  position: absolute;
  left: 0;
  top: 0;
  -webkit-transform: translateX(66vw)
		translateY(50vh)
		translateZ(-66vmax);
  transform: translateX(66vw)
		translateY(50vh)
		translateZ(-66vmax);
}

.room-face {
  position: absolute;
  -webkit-transform-origin: left top;
  transform-origin: left top;
}

.room-face_back {
  bottom: 0;
  right: 0;
  background-position: right bottom;
}

.room-face_bottom {
  right: 0;
  top: 0;
  background-position: right top;
  -webkit-transform: rotateX(90deg);
  transform: rotateX(90deg);
}

.room-face_right {
  bottom: 0;
  left: 0;
  background-position: left bottom;
  -webkit-transform: rotateY(-90deg);
  transform: rotateY(-90deg);
}

.mix-room-face_floor {
  height: 100vmax;
  width: 150vmax;
  background-color: hsl(30, 50%, 60%);
  background-image: radial-gradient(hsla(30, 3%, 3%, 0) 50%, hsla(30, 6%, 6%, 0.3) 80%, hsla(30, 50%, 20%, 0.6) 93%),
		url(../media/flooring.jpg);
  background-size: 100%,
		200vh;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.mix-room-face_wall {
  height: 120vmax;
  width: 150vmax;
  background-color: hsl(0, 0%, 22%);
  background-image: radial-gradient(hsla(0, 0%, 0%, 0), hsla(0, 0%, 0%, 0.3)),
		url(../media/wallpaper.svg);
  background-size: 100%,
		30vh;
  border-bottom: 3vh solid hsl(0, 0%, 22%);
}

.fridge {
  position: absolute;
  bottom: 0;
  right: 0;
  -webkit-transform: translateX(12vw)
		translateY(50vh)
		translateZ(-10vmax)
		rotateY(-22deg)
		rotateX(8deg);
  transform: translateX(12vw)
		translateY(50vh)
		translateZ(-10vmax)
		rotateY(-22deg)
		rotateX(8deg);
  -webkit-transform-origin: center bottom;
  transform-origin: center bottom;
}

.fridge-face {
  position: absolute;
  bottom: 0;
  right: -30vw;
  height: 45vh;
  width: 66vw;
  background-image: url(../media/fridge.svg);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
}

@media (orientation: landscape) {
  .fridge {
    right: 0;
  }

  .fridge-face {
    right: -25vw;
    height: 75vh;
    width: 45vw;
  }
}

.content {
  position: relative;
  z-index: 1;
  padding: 1em 1.5em;
  text-shadow: 0 2px 3px hsla(0, 0%, 0%, 0.2);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.content > * + * {
  margin-top: 0.5em;
}

.content a {
  color: inherit;
  text-decoration: none;
  transition: -webkit-transform 100ms;
  transition: transform 100ms;
}

.content a:focus,
.content a:hover {
  outline: none;
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.content h2 {
  font-size: 3rem;
  font-weight: 300;
}

@media (orientation: landscape) {
  .content {
    padding: 1em 1.75em;
    width: 56%;
  }
}

.external > * {
  display: inline-block;
}

.external > * + * {
  margin-left: 0.75rem;
}

.icon {
  font-size: 0;
}

.icon:before {
  display: inline-block;
  font-family: Social;
  font-size: 2rem;
  font-style: normal;
  font-weight: normal;
}

.icon_twitter:before {
  content: '\ea91';
}

.icon_dribbble:before {
  content: '\eaa6';
}

.icon_github:before {
  content: '\eab1';
}

.icon_linkedin:before {
  content: '\eac9';
}

@media (orientation: landscape) and (min-height: 420px) {
  .icon:before {
    font-size: 1.6rem;
  }
}