:root {
  --primary: 170, 255, 221;
  --secondary: 215, 125, 205;
  --pos: 0;
}
* {
  box-sizing: border-box;
}
body {
  font-family: Trebuchet MS;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  padding-top: 100vh;
}

img {
  width: 100vw;
}
body > header {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: calc(
    24px + 6 * ((100vw - 320px) / 680)
  ); /*https://css-tricks.com/snippets/css/fluid-typography/*/
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: 100vw;
  transform-origin: 100% 100%;
  transition: all 0.25s 0.25s;
}
body > header h1 {
  display: flex;
  flex-direction: row;
  font-weight: 1;
  padding: 0.25em;
  margin: 0;
  background-color: rgba(var(--primary), 1);
  white-space: nowrap;
  order: 2;
  z-index: 10;
}
body > header h1 i {
  margin-right: 0.25em;
  transition: all 0.25s 0.5s;
  width: auto;
  max-width: 3em;
  font-style: normal;
}
body > header h1 i:last-of-type {
  margin-right: 0;
}
body > header p {
  background-color: rgba(var(--secondary), 1);
  margin: 0;
  font-size: 1.5em;
  font-weight: 1;
  padding: 0.25em;
  order: 1;
  transition: all 0.25s;
  z-index: 5;
}
article {
  width: 100%;
  padding: 0 3.25rem;
  margin: 0 -3.25rem;
  font-size: 1.5em;
  font-weight: 100;
  display: flex;
  flex-direction: column;
  position: relative;
}

article img {
  padding: 0;
}
article header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  transition: all 1s;
}
article h2,
article header p {
  position: relative;
  background-color: rgba(var(--primary), 1);
  margin: 0;
  height: calc(1.5em + 0.5rem);
  width: 100vw;
  white-space: nowrap;
  overflow-x: auto;
  padding: 0.25rem 0.5rem;
}
article header p {
  padding-top: 0;
}
article > p {
  background-color: rgba(var(--secondary), 1);
  color: #000;
  margin: 0 3.25rem;
  transition: opacity 0.25s;
  padding: 1rem 0.5rem;
  position: absolute;
  left: 0;
  z-index: 10;
  top: 6.5rem;
  width: 100%;
  font-size: calc(16px + 6 * ((100vw - 320px) / 680));
}
article img {
  transition: transform 0.25s 0.25s;
  transform: translateY(0);
}

video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -100;
  transform: translateX(-50%) translateY(-50%);
  background: url('/assets/images/poster.png') no-repeat;
  background-size: cover;
  transition: 1s opacity;
}

/* Inactivity */
body.inactive article > p {
  opacity: 0;
}
body.inactive > header {
  transform: scale(0.5);
}
body.inactive > header h1 i {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
}
body.inactive > header p {
  transform: translateX(10em);
  transition-delay: 0.5s;
}

@media (min-width: 40em) {
  article > p {
    max-width: 30em;
  }
}
