/*
Theme Name: Carbon WP
Author: Tommy Ng
Version: 2.8
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
  --light: #DDE8EE;
  --light2: #CDD8DE;
  --light3: #9ba2a6;
  --light4: #82898D;
  --dark: #070809;
  --dark2: #121618;
  --dark3: #1D2327;
  --highlight: 230, 230, 230;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  line-height: 1.15;
  font-size: 62.5%;
  font-family: Inter, 'system-ui', sans-serif;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  scroll-behavior: smooth;
}

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

html,
body {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  min-height: 100vh;
  background-color: var(--dark2);
  color: var(--light2);
  overflow-x: hidden;
  transition: background 1s ease-in-out;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  font-size: 1.6rem;
  line-height: 1.65;
}

a:link,
a:visited {
  color: var(--light3);
  text-decoration: none;
  transition: all .4s
}

.container {
  max-width: 550px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

.page-template-default .container {
  max-width: 1023px;
}

.py {
  padding-top: 2rem;
  padding-bottom: 15rem
}

.text-center {
  text-align: center
}

img,
video,
iframe,
picture {
  display: block;
  height: auto;
  max-width: 100%;
  border: 0;
}

h1 {
  font-weight: 200;
  font-size: 6.5rem;
  letter-spacing: -5px;
  margin-bottom: 1rem;
  line-height: 1
}

h2 {
  font-weight: 300;
  font-size: 2.5rem;
  letter-spacing: -1px;
}

h3 {
  font-weight: 600;
  margin-bottom: .5rem
}

p {
  margin-top: .5rem;
  margin-bottom: 2.5rem;
}

hr {
  height: 1px;
  margin: 4rem auto;
  border: none;
  background: currentColor;
  opacity: .1 !important;
}

p.note {
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--light3);
  opacity: .9
}

nav{
  text-align: center;
}

.menu,
.subnav {
  padding-left: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap
}

.menu li a,
.subnav li a {
  color: var(--light3);
  display: inline-block;
  font-weight: 500;
  font-size: 1.7rem;
  padding: .5rem 1rem;
}

.subnav li a {
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1.4rem;
}

.page-template-default  .menu li:nth-child(3) a,
.b1 .menu li:nth-child(2) a,
li.current a {
  color: var(--light) !important;
  font-weight: 700 !important;
}

.credit{
  display: block;
  margin: 10rem 0;
  font-size: .875rem;
  color: var(--light4);
}

.credit a{
  color: var(--light4);
}

@media screen and (min-width: 420px) {

  .menu li a {
    padding: .5rem 1.5rem;
  }
}

@media screen and (min-width: 768px) {

  h1 {
    font-size: 7rem;
    letter-spacing: -6px;
  }

  h2 {
    font-size: 3.5rem;
    letter-spacing: -1px;
  }

  .menu li a {
    padding: .5rem 2rem;
  }
}

/* Animation */
.fade {
  position: relative;
  opacity: 0;
  transition: 1s cubic-bezier(.4, 0, .2, 1)
}

.fade.done {
  opacity: 1;
  transition: 1s cubic-bezier(.4, 0, .2, 1);
  transform: translateY(0);
}

/* Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Embla */
.embla {
  max-width: 100%;
  margin: auto;
  --slide-spacing: 5px;
  padding: 1rem 0 10rem
}

.embla__viewport {
  overflow: hidden;
}

.embla__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
  margin-left: calc(var(--slide-spacing) * -1);
}

.embla__slide {
  transform: translate3d(0, 0, 0);
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  height: 70vh;
  aspect-ratio: 0.75;
  padding-left: var(--slide-spacing);
}

p strong {
  color: var(--light);
}

.embla__slide>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  background-color: var(--dark3)
}

.embla__controls {
  display: grid;
  grid-template-columns: auto 1fr;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.embla__buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  align-items: center;
}

.embla__button {
  -webkit-tap-highlight-color: rgba(var(--highlight), 0.5);
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  width: 3.6rem;
  height: 3.6rem;
  z-index: 1;
  border-radius: 50%;
  color: var(--light2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.embla__button:disabled {
  color: var(--dark3);
}

.embla__button__svg {
  width: 35%;
  height: 35%;
}

.embla__progress {
  border-radius: 1.8rem;
  box-shadow: inset 0 0 0 0.2rem var(--dark3);
  background-color: var(--dark3);
  position: relative;
  height: 0.6rem;
  justify-self: flex-end;
  align-self: center;
  width: 13rem;
  max-width: 90%;
  overflow: hidden;
  margin-right: 1rem
}

.embla__progress__bar {
  background-color: var(--light2);
  position: absolute;
  width: 100%;
  top: 0;
  bottom: 0;
  left: -100%;
}