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

:root {
  --body-bg: #fffbf9;
  --body-bg-darker: #f1eae6;
  --nav-unselected: rgba(0, 0, 0, 0.5);
  --brand-orange: #ff8000;
  --brand-brown: #b76215;
  --soft-grey: rgba(0, 0, 0, 0.4);
  --soft-grey-1-5: rgba(0, 0, 0, 0.3);
  --soft-grey-2: rgba(0, 0, 0, 0.1);
  --container-padding: 1.4rem 5rem 1.4rem 5rem;
  --underliner-height: 0.08rem;
  --brand-font-ibm: 'IBM Plex Sans';
  --brand-font-mono: 'IBM Plex Mono';
  font-size: calc(12px + 0.3vw);
}

@font-face {
  font-family: 'Clash Grotesk';
  src: url(/assets/fonts/clash-grotesk/ClashGrotesk-Regular.eot),
    url(/assets/fonts/clash-grotesk/ClashGrotesk-Regular.woff),
    url(/assets/fonts/clash-grotesk/ClashGrotesk-Regular.woff2),
    url(/assets/fonts/clash-grotesk/ClashGrotesk-Regular.ttf);
  font-weight: 300;
  font-display: fallback;
}

@font-face {
  font-family: 'Clash Grotesk';
  src: url(/assets/fonts/clash-grotesk/ClashGrotesk-Medium.eot),
    url(/assets/fonts/clash-grotesk/ClashGrotesk-Medium.woff),
    url(/assets/fonts/clash-grotesk/ClashGrotesk-Medium.woff2),
    url(/assets/fonts/clash-grotesk/ClashGrotesk-Medium.ttf);
  font-weight: 400;
  font-display: fallback;
}

body {
  background-color: var(--body-bg);
}

header {
  position: fixed;
  top: 0px;
  z-index: 5;
  width: 100%;
  background-color: var(--body-bg);
  animation: HEADER 0.7s ease;
}

a {
  text-decoration: none;
  color: var(--nav-unselected);
}

ul li {
  list-style: none;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

#nav-logo {
  width: 2.5rem;
  height: 2.3rem;
}

.container {
  padding: 1.4rem 5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.nav {
  align-items: center;
  display: flex;
}

.nav-list {
  font-family: var(--brand-font-ibm), -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
    sans-serif;
  display: flex;
  margin-right: 0px;
  margin-left: auto;
}

.nav-item {
  position: relative;
  font-size: 1rem;
  margin-left: 3rem;
  transition: 0.3s ease;
}

.nav-item--selected {
  color: black;
}

.--uns::after {
  position: absolute;
  content: '';
  background-color: var(--soft-grey);
  width: 100%;
  height: var(--underliner-height);
  top: calc(100% + 10px);
  left: 0px;
  opacity: 0;
  transition: 0.3s ease;
}

.nav-item--selected::after {
  position: absolute;
  content: '';
  background-color: var(--brand-orange);
  width: 100%;
  height: 2px;
  top: calc(100% + 5px);
  left: 0px;
}

#hamburger-icon,
#cls-icon {
  width: 1.6rem;
  height: 1.1rem;
}

#cls-icon {
  height: 1.5rem;
}

/* UNSELECTED NAV ITEM HOVER FX */
.--uns:hover.--uns::after {
  position: absolute;
  content: '';
  background-color: var(--soft-grey);
  width: 100%;
  height: var(--underliner-height);
  top: calc(100% + 5px);
  left: 0px;
  opacity: 0.3;
  z-index: 1;
}

/* SELECTED NAV ITEM HOVER FX */
.nav-item:hover {
  color: black;
}

/* MOBILE NAV */
.nav-list--mobile--invisible {
  position: absolute;
  z-index: 80;
  top: 0px;
  font-family: var(--brand-font-ibm), -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
    sans-serif;
  display: flex;
  flex-direction: column;
  background-color: white;
  box-shadow: 0px 2rem 100px 0px var(--soft-grey-1-5);
  padding: var(--container-padding);
  transition: 0.6s ease;
  height: 100vh;
  right: -90vw;
}

.nav-list--mobile--visible {
  position: absolute;
  opacity: 1;
  top: 0px;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  display: flex;
  flex-direction: column;
  background-color: white;
  box-shadow: 0px 2rem 100px 0px var(--soft-grey-1-5);
  padding: var(--container-padding);
  transition: 0.5s ease;
  height: 100vh;
  right: 0vw;
  z-index: 80;
}

.cls-icon-container {
  display: flex;
}

.cls-icon-circle,
.hmbrg-icon-circle {
  border-radius: 50%;
  width: 5rem;
  height: 5rem;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0px;
  margin-left: auto;
  cursor: pointer;
  transition: 0.3s ease;
}

.cls-icon-circle:hover,
.hmbrg-icon-circle:hover {
  background-color: var(--soft-grey-2);
}

.cls-icon-circle:active,
.hmbrg-icon-circle:active {
  transform: scale(0.7);
}

.nav-item-m {
  font-size: 2rem;
  padding: 2rem 0px;
  border-top: 1px solid var(--soft-grey-2);
}

.nav-item-m:nth-of-type(1) {
  margin-top: 3rem;
  border-top: 0px;
}

.nav-item--selected-m {
  font-weight: 500;
  color: black;
}

/* MOBILE NAV IS RENDERED INVISIBLE & INACCESSIBLE ON DESKTOP SCREENS */
.hmbrg-circle-mq {
  display: none;
}

.page-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-flex__subheader {
  font-family: var(--brand-font-mono), 'Courier New', Courier, monospace;
  font-weight: 300;
  font-size: 1.5rem;
  margin-top: 1rem;
  color: var(--soft-grey-1-5);
  text-align: center;
}

.page-flex__text-body {
  text-align: center;
  margin-top: 2rem;
  width: 70%;
  font-size: 1.1rem;
  font-weight: 300;
  font-family: var(--brand-font-mono), 'Courier New', Courier, monospace;
}

.page-header {
  text-align: center;
  font-family: var(--brand-font-ibm), sans-serif;
  font-size: 6rem;
  font-weight: 400;
  margin-top: 8rem;
  margin-bottom: 1.5rem;
  line-height: 0.8;
}

#btn-text-a {
  display: inline-block;
  transition: 0.4s ease;
}

footer {
  position: fixed;
  z-index: 3;
  bottom: 0px;
  width: 100%;
  border-top: 2px solid white;
  box-shadow: 0px -0.3rem 40px 0px var(--soft-grey-2);
  animation: FOOTER 0.7s ease;
}

.footer-flex {
  display: flex;
}

.footer__text {
  font-family: 'Clash Grotesk', sans-serif;
  font-weight: 400;
  font-size: 14px;
  margin: auto;
}

#jt-signature {
  font-weight: 300;
}

.hidden {
  display: none;
}

.typography-demonstration {
  margin: 50px;
  font-family: 'IBM Plex Sans';
}

.typography-demonstration p {
  width: 400px;
  margin-bottom: 50px;
}

.f-16 {
  font-size: 16px;
}

.f-mod {
  font-size: calc(12px + 0.3vw);
}

/* UTILITY CLASSES */
.norm {
  font-weight: 300;
}

.bold-1 {
  font-weight: 500;
}

.bold-2 {
  font-weight: 600;
}

.bold-3 {
  font-weight: 700;
}

.soft-1 {
  color: var(--soft-grey);
}

.soft-1-5 {
  color: var(--soft-grey-1-5);
}

.soft-2 {
  color: var(--soft-grey-2);
}

.size-1-1-rem {
  font-size: 1.1rem;
}

#spacer {
  height: 4rem;
}
/* ANIMATIONS */

/* On page load animations => */

@keyframes HEADER {
  0% {
    opacity: 0;
    transform: translateY(-3rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0rem);
  }
}

@media (max-width: 772px) {
  :root {
    --container-padding: 1.4rem 3rem;
  }
  .hmbrg-circle-mq {
    display: flex;
  }

  .nav-list {
    display: none;
  }

  .container {
    padding: 1.4rem 3rem;
  }

  .cls-icon-circle,
  .hmbrg-icon-circle {
    width: 3rem;
    height: 3rem;
  }
}

@media (max-width: 550px) {
  .page-flex__text-body {
    width: 100%;
  }
}

@media (max-width: 450px) {
  .page-flex {
    height: 100vh;
    align-items: center;
    justify-content: center;
  }
  .page-header {
    font-size: 4rem;
    margin-top: 0rem;
  }

  .page-flex__subheader {
    font-size: 1.3rem;
  }

  .nav-list--mobile--invisible {
    right: -118vw;
    transition: 1.2s ease;
  }

  .nav-list--mobile--visible {
    right: 0vw;
    transition: 0.9s ease;
  }
}
