@import url('https://rsms.me/inter/inter.css');
@import 'buttons.css';

/* Reset */
a,body,embed,h1,h2,h3,h4,h5,h6,html,iframe,img,object,video{margin:0;padding:0;border:0;vertical-align:baseline}body{line-height:1}

/* Variables */
:root {
  --font-family: 'Inter', 'Roboto', sans-serif;
  --font-family-mono: "Fira Mono", "DejaVu Sans Mono", Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace;
  --font-size: 16px;
  --line-height: 1.6rem;
  --default-bg: #F2F2F2;
  --dark-bg: #0F0E11;
  --content-max-width: 720px;

  --color-text: #333;
  --color-on-dark: #FAF9FA;
  --color-on-dark-dim: #B8B5C0;
  --color-link: #000;
  --color-footer: #a49fad;

  /*--color-twitch: #6441A4;*/
  --color-twitch: #8A50FB;
  --color-nitrous: #0494EF;
  --color-facebook: #3A5998;
  --color-airbnb: #FF5A5E;
  --color-dcovery: #B10201;
  --color-envoy: #F03934;
  --color-available: #3A1872;
  --color-aws: #f91;

  --link-icon-size: 34px;
  --link-icon-color: #706A7C;
  --link-icon-color-hover: #322F37;
  --link-bg-hover: #EFEEF1;

  --footer-font-size: .7rem;
}

/* Styles */
* {box-sizing: border-box;}
html, body {height: 100%;}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-family);
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--default-bg);
  transition: background .15s linear;
  overflow-x: hidden;
}

.page {
  position: relative;
}

.centered {
  text-align: center;
}

h1 {
  font-size: 42px;
  line-height: 3rem;
  font-weight: bold;
  padding-bottom: 1rem;
}

h2 {
  font-size: 30px;
  line-height: 2.4rem;
  font-weight: normal;
  padding-bottom: .25rem;
}

h3 {
  font-size: 40px;
  line-height: 3rem;
  font-weight: bold;
  padding-bottom: .2rem;
}

h4 {
  font-size: 13px;
  line-height: 1.6rem;
  text-transform: uppercase;
  font-weight: normal;
  color: var(--color-on-dark-dim);
}

h5 {
  font-size: 48px;
  line-height: 4rem;
  text-align: center;
}

h6 {
  font-size: 12px;
  line-height: 1.6rem;
  text-transform: uppercase;
  font-weight: normal;
  text-align: center;
  opacity: .7;
}

a {
  text-decoration: none;
  font-weight: bold;
  color: var(--color-link);
}

a.subtle-link {
  font-weight: 400;
  border-bottom: 4px solid var(--color-footer);
  transition: all .15s ease-in-out;
}

a.subtle-link:hover {
  font-weight: bold;
}

a.twitch:hover,
a.twitch:focus {
  border-bottom: 4px solid var(--color-twitch);
}

a.twitch:hover,
a.twitch:focus,
a.twitch:active,
a.twitch:visited {
  color: var(--color-twitch);
}

a.aws:hover,
a.aws:focus {
  border-bottom: 4px solid var(--color-aws);
}

a.aws:hover,
a.aws:focus,
a.aws:active,
a.aws:visited {
  color: var(--color-aws);
}

label {
  cursor: pointer;
}


/* Top Links */
.links {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
}

.link {
  width: var(--link-icon-size);
  height: var(--link-icon-size);
  position: relative;
  margin: 0 .5rem;
  font-weight: normal;
  display: flex;
  border-radius: 2px;
  justify-content: center;
  align-items: center;
}

.link:hover {
  background-color: var(--link-bg-hover);
}

.link:hover svg {
  fill: var(--link-icon-color-hover);
}

.link svg {
  fill: var(--link-icon-color);
}

.link span {
  position: absolute;
  text-indent: -99999px;
}

/* Row */
.row {
  min-height: 100vh;
  padding: 5.4rem;
  display: flex;
  justify-content: center;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.row > div {
  width: 100%;
  max-width: var(--content-max-width);
  flex: 1 0 100%;
}

.hero {
  height: 100vh;
  align-items: center;
}

.hero:after {
  content: '';
  position: absolute;
  display: block;
  bottom: 2rem;
  left: 50%;
  margin-left: -12px;
  border-left: 2px solid var(--link-icon-color);
  border-bottom: 2px solid var(--link-icon-color);
  transform: rotate(-45deg);
  width: 24px;
  height: 24px;
  animation: bounce .5s cubic-bezier(.5,0.05,1,.5);
  animation-direction: alternate;
  animation-iteration-count: infinite;
}

.dark {
  background: var(--dark-bg);
  color: var(--color-on-dark);
}

.company {
  max-width: var(--content-max-width);
  margin: 0 auto 4rem auto;
  border-radius: 8px;
}

.life {}

.life > div {
  padding: 20vh 0;
}


/* Rows */
.row-heading {
  padding: 1rem 0 2rem 0;
}

.redacted {
  min-height: auto;
}

.redacted span {
  position: relative;
  white-space: pre;
  position: relative;
  display: inline-block;
}

.redacted span:after {
  background: black;
  border-radius: 0.1em;
  box-shadow: 0 0 1px rgba(0,0,0,0.35);
  content: " ";
  width: 100%;
  height: 1.2em;
  left: 0;
  position: absolute;
  transform: skewY(-5deg) rotate(5deg);
}

.company > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.company.nitrous {
  background: var(--color-nitrous);
  color: #FFF;
}

.company.facebook {
  background: var(--color-facebook);
  color: #FFF;
}

.company.airbnb {
  background: var(--color-airbnb);
  color: #FFF;
}

.company.dcovery {
  background: var(--color-dcovery);
  color: #FFF;
}

.company.envoy {
  background: var(--color-envoy);
  color: #FFF;
}

.company.available {
  background: var(--color-available);
  color: #FFF;
}

/* Side Projects */
.projects {
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
}

.projects div {
  display: flex;
  flex-grow: 1;
}

.grid {
  margin-top: 1rem;
}

.cards, .card {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 15px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.cards {
  width: 100%;
}

.card {}

.card-box {
  padding: 20px;
  border-radius: 20px;
  transition: all .15s ease-in-out;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.card-box--link {
  background: #FCFCFC;
}

.card-box--link:hover {
  box-shadow: 0 0 0 2px rgba(0,0,0,.8);
}

.card__title {
  font-weight: 800;
  font-size: var(--font-size);
  text-transform: none;
}

.card__url {
  font-family: var(--font-family-mono);
  font-weight: 400;
  font-size: 12px;
}

.card__desc {
  font-weight: 400;
  flex-grow: 1;
  display: flex;
  align-content: center;
  align-self: center;
  align-items: center;
  justify-content: center;
  margin: 0;
}


/* Isometric */
.isometric {
  position: absolute;
  /*top: -450px;*/
  top: 0;
  right: 110vh;
  transform: rotateX(60deg) rotateZ(-45deg) scale(1.2);
}

.isometric__item {
  position: relative;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform .3s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: translate3d(0, 0, 20px);
}

.isometric__item:hover {
  transform: translate3d(0, 0, 50px) rotateX(-5deg);
  transform-origin: center bottom;
}


/* Life */
.life__story {
  font-size: 1.8rem;
  line-height: 3.2rem;
}

.life__vis {
  display: inline;
}

.life__vis--fr {

}

.life__vis--asia {

}

.life__vis--usa {

}

.life__vis--fr:hover ~ .vis .vis__block:not(.vis__block--fr) {
  opacity: .2;
}

.life__vis--asia:hover ~ .vis .vis__block:not(.vis__block--asia) {
  opacity: .2;
}

.life__vis--usa:hover ~ .vis .vis__block:not(.vis__block--usa) {
  opacity: .2;
}


/* Visualization */

.vis {
  padding-top: 4rem;
  line-height: 1.5rem;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
  z-index: 1;
}

.vis__block {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0 .05rem;
  padding: 0;
  display: inline-block;
  transition: opacity .15s ease-in-out;
  border-radius: 1.15rem;
  transform: translate3d(0,0,0);
}


.vis__block--fr {
  background: #353a41;
}

.vis__block--asia {
  background: #6a7481;
}

.vis__block--usa {
  background: #a8afb8;
}

.vis__block--now {
  animation: blink 3s ease-in-out;
  animation-iteration-count: infinite;
}


/* Footer */
footer {
  padding: 0 0 2rem 0;
  display: block;
  text-align: center;
}

footer span {
  font-size: var(--footer-font-size);
  color: var(--color-footer);
  display: block;
  letter-spacing: .1rem;
}

/* Transitions */
@keyframes bounce {
  from {
    transform: translate3d(0, 0, 0) rotate(-45deg);
  }
  to {
    transform: translate3d(0, 1rem, 0) rotate(-45deg);
  }
}

@keyframes blink {
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}