/*!
Theme Name: Freelance Developer
Author: Ruben Meines
Author URI: https://rubenmeines.com
Description: Theme for Ruben Meines
*/
/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

@font-face {
  font-family: "PPNeueMontreal-Book";
  src: url("fonts/PPNeueMontreal-Book.woff2") format("woff2"), url("fonts/PPNeueMontreal-Book.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "PPNeueMontreal-Medium";
  src: url("fonts/PPNeueMontreal-Medium.woff2") format("woff2"), url("fonts/PPNeueMontreal-Medium.woff") format("woff");
  font-display: swap;
}
*,
html {
  -webkit-font-smoothing: antialiased;
}

video,
picture,
img {
  border: 0;
  vertical-align: top;
  width: 100%;
}

iframe {
  background: transparent;
}

video,
img,
svg {
  max-width: 100%;
  height: auto;
}

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

button, input[type=submit], input[type=reset] {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: inherit;
}

textarea:focus, input:focus {
  outline: none !important;
}

button,
form,
input {
  -webkit-appearance: none;
}

input[type=checkbox] {
  -webkit-appearance: auto;
}

img,
picture {
  align-self: flex-start;
  display: block;
}

@-webkit-keyframes circleup {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px) translateX(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes circleup {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px) translateX(-8px);
  }
  100% {
    transform: translateY(0);
  }
}
@-webkit-keyframes circledown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px) translateX(8px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes circledown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px) translateX(8px);
  }
  100% {
    transform: translateY(0);
  }
}
body,
.header__title,
.chapters-menu__item,
.chapter.active .chapter__number,
.chapter.active .chapter__title,
a,
.header__switch-circle,
.chapter ul li::before {
  transition: all cubic-bezier(0, 0.55, 0.45, 1) 500ms 500ms;
}

body {
  background-color: #202421;
  color: #debaba;
}

.chapters-menu__item,
.header__title,
.chapters-menu__item,
.chapter.active .chapter__number,
.chapter.active .chapter__title,
body,
a {
  color: #debaba;
}

.header__switch-circle:first-child {
  background-color: #202421;
  border-color: #debaba;
}

.header__switch-circle:last-child {
  background-color: #debaba;
  border-color: #debaba;
}

.chapter ul li::before {
  background-color: #debaba;
}

body.invert-colors {
  background-color: #FCF8F8;
  color: #343030;
}
body.invert-colors .header__title,
body.invert-colors .chapters-menu__item,
body.invert-colors .chapter.active .chapter__number,
body.invert-colors .chapter.active .chapter__title,
body.invert-colors a {
  color: #343030;
}
body.invert-colors .header__switch-circle:first-child {
  background-color: #343030;
  border-color: #343030;
}
body.invert-colors .header__switch-circle:last-child {
  background-color: #FCF8F8;
  border-color: #343030;
}
body.invert-colors .header__switch-circle:first-child {
  -webkit-animation: circleup 890ms cubic-bezier(0, 0.55, 0.45, 1);
          animation: circleup 890ms cubic-bezier(0, 0.55, 0.45, 1);
}
body.invert-colors .header__switch-circle:last-child {
  -webkit-animation: circledown 890ms cubic-bezier(0, 0.55, 0.45, 1);
          animation: circledown 890ms cubic-bezier(0, 0.55, 0.45, 1);
}
body.invert-colors .chapter ul li::before {
  background-color: #343030;
}

body, html {
  font-family: "PPNeueMontreal-Book";
  font-weight: normal;
  font-size: 29px;
  line-height: 36px;
}

h1,
h2,
.footer p,
.chapters-menu li,
.chapter__number,
.p--big {
  font-family: "PPNeueMontreal-Medium";
  font-size: 29px;
  line-height: 36px;
}

h2 {
  margin-bottom: 32px;
}

a {
  text-decoration: underline;
}

.wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-color: #202421;
  z-index: 100;
  transition: opacity cubic-bezier(0.76, 0, 0.24, 1) 1300ms 200ms;
  opacity: 1;
}

.ready .overlay {
  opacity: 0;
}

.footer a {
  opacity: 0.2;
  transition: all cubic-bezier(0, 0.55, 0.45, 1) 500ms 500ms, opacity cubic-bezier(0.165, 0.84, 0.44, 1) 500ms;
}
.footer,
.header {
  position: fixed;
  left: 0;
  top: 0;
  padding-left: 14px;
  padding-top: 10px;
}

.footer {
  top: auto;
  bottom: 0;
  padding-bottom: 10px;
}

.header__switch {
  position: absolute;
  right: 13px;
  top: 21px;
  cursor: pointer;
  display: block;
  height: 17px;
  width: 31px;
  opacity: 0;
  transition: cubic-bezier(0.85, 0, 0.15, 1) 1000ms all, opacity 500ms linear 700ms;
}

.ready .header__switch {
  opacity: 1;
}

.invert-colors .header__switch {
  transform: rotate(180deg);
}

.header__switch-circle {
  position: absolute;
  top: 0;
  right: 0;
  height: 17px;
  width: 17px;
  display: block;
  border-width: 1px;
  border-style: solid;
  z-index: 0;
  border-radius: 100px;
}

.header__switch-circle:first-child {
  right: 14px;
  z-index: 1;
}

.chapters {
  display: flex;
  flex-direction: column;
  width: auto;
  margin-left: 45%;
  margin-right: 14px;
  padding-top: 200px;
  transition: opacity cubic-bezier(0.85, 0, 0.15, 1) 1000ms 0ms;
}

.mobile-menu--open .chapters {
  opacity: 0;
}

.chapter {
  position: relative;
  padding-bottom: 72px;
  opacity: 0.2;
  transition: cubic-bezier(0.76, 0, 0.24, 1) 1000ms opacity;
}

.chapter:first-of-type {
  min-height: calc(70vh - 200px);
}

.chapter:last-of-type {
  min-height: calc(100vh - 200px);
}

.chapter:nth-child(2) {
  margin-top: 25vh;
  padding-top: 5vh;
}

.chapter.active {
  opacity: 1;
}

.chapter__inner {
  position: relative;
  display: flex;
  flex-direction: column;
}

.chapter__number {
  position: absolute;
  right: 100%;
  top: 0;
  margin-right: 10px;
}

.chapter__number,
.chapter__title {
  display: inline;
}

.chapter__title {
  display: none;
}

.chapter p {
  display: block;
  margin-top: 36px;
}

.chapter p strong {
  color: #DB6D6D;
}

.chapter p:first-of-type {
  display: inline;
  margin-top: 0;
}

.chapter ul li {
  padding-left: 28px;
  margin-bottom: 18px;
  position: relative;
  font-family: "PPNeueMontreal-Book";
  font-weight: normal;
  font-size: 29px;
  line-height: 36px;
}
.chapter ul li:last-child {
  margin-bottom: 0;
}

.chapter ul li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
}

.chapters-menu {
  position: fixed;
  left: 14px;
  top: 200px;
  max-width: 40%;
  padding-right: 10px;
  z-index: 1;
}

.chapters-menu__mobile-trigger-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 0, 0, 0.2);
  pointer-events: none;
}

.chapters-menu__item {
  position: relative;
  cursor: pointer;
  opacity: 0.2;
  transition: all cubic-bezier(0, 0.55, 0.45, 1) 500ms 500ms, cubic-bezier(0.76, 0, 0.24, 1) 1000ms opacity;
}
.chapters-menu__item.active {
  opacity: 1;
}

.chapter-menu__item-number {
  display: inline-block;
  position: absolute;
}

.chapter-menu__item-title {
  padding-left: 63px;
  display: inline-block;
}

@media screen and (max-width: 1439px) {
  body, html {
    font-size: 24px;
    line-height: 31px;
  }
  h1,
h2,
.footer p,
.chapters-menu li,
.chapter__number,
.p--big {
    font-size: 24px;
    line-height: 31px;
  }
  h2 {
    margin-bottom: 32px;
  }
  .chapter p {
    margin-top: 32px;
  }
  .chapter ul li {
    font-size: 24px;
    line-height: 31px;
  }
  .chapter ul li {
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 1023px) {
  .footer,
.header {
    position: relative;
  }
  .header {
    position: absolute;
    padding-right: 60px;
  }
  .chapters {
    margin-left: 14px;
    padding-top: 20vh;
  }
  .chapter:first-of-type {
    min-height: 0;
    opacity: 1;
  }
  .chapter:last-of-type {
    min-height: 0;
  }
  .chapter:nth-child(2) {
    margin-top: 0;
    padding-top: 25vh;
  }
  .chapter__inner {
    padding-left: 45px;
  }
  .chapter__number {
    right: auto;
    top: auto;
    left: 0;
    display: none;
  }
  .chapter__title {
    display: inline;
  }
  .chapters-menu {
    width: auto;
    position: absolute;
    top: 20vh;
  }
  .chapters-menu__mobile-trigger-overlay {
    pointer-events: all;
  }
  .chapter-menu__item-number {
    position: relative;
    display: block;
  }
  .chapter-menu__item-title {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100vw - 80px);
  }
  .mobile-menu--open .chapter-menu__item-title {
    opacity: 1;
  }
}

@media screen and (max-height: 800px) {
  .chapters {
    padding-top: 120px;
  }
  .chapters-menu {
    top: 120px;
  }
}

@media screen and (max-width: 767px) {
  .chapter:nth-child(2) {
    padding-top: 0;
  }
}

@media screen and (max-height: 720px) {
  body, html {
    font-size: 24px;
    line-height: 31px;
  }
  h1,
h2,
.footer p,
.chapters-menu li,
.chapter__number,
.p--big {
    font-size: 24px;
    line-height: 31px;
  }
  h2 {
    margin-bottom: 32px;
  }
  .chapter p {
    margin-top: 32px;
  }
  .chapter ul li {
    font-size: 24px;
    line-height: 31px;
  }
  .chapter ul li {
    margin-bottom: 15px;
  }
}

@media screen and (min-width: 1920px) {
  .chapters {
    max-width: 45%;
  }
}

@media (hover: hover) {
  p a:hover {
    text-decoration: underline;
  }
  .footer a:hover {
    opacity: 1;
  }
  .chapters-menu__item:hover {
    opacity: 1;
  }
}
