@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

/* reset */
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

body {
  background-color: hsl(0, 0%, 100%);
  font-family: 'Open Sans', sans-serif;
  color: #fff;
}

ol,
ul,
menu {
  list-style: none;
}

h1 {
  font-size: 3rem;
  padding-bottom: 1rem;
}

/* -------------------------------- 
Icons 
-------------------------------- */

.cd-icon {
  --size: 1rem;
  font-size: var(--size);
  height: 1rem;
  width: 1rem;
  display: inline-block;
  color: inherit;
  fill: currentColor;
  line-height: 1;
  flex-shrink: 0;
  max-width: initial;
}

.cd-icon use {
  color: inherit;
  fill: currentColor;
}

/* -------------------------------- 
Component 
-------------------------------- */

:root {
  --cha-header-height: 54px;

  /* light theme colors */
  --color-primary: hsl(250, 84%, 54%);
  --color-bg: hsl(0, 0%, 100%);
  --color-contrast-medium: hsl(225, 4%, 47%);
  --color-contrast-high: hsl(230, 7%, 23%);
  --color-contrast-higher: #1f445a;
}

[data-theme="dark"] {
  --color-primary: hsl(342, 89%, 48%);
  --color-bg: hsl(232, 11%, 15%);
  --color-contrast-medium: hsl(231, 3%, 57%);
  --color-contrast-high: hsl(240, 5%, 82%);
  --color-contrast-higher: hsl(240, 100%, 99%);
}

@media (min-width: 64rem) {
  :root {
    --cha-header-height: 70px;
  }
}

.cha-header-clip {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}

.cha-section {
  background-color: var(--color-bg);
  color: var(--color-contrast-high);
}

.cha-header {
    position: fixed;
  /* height: var(--cha-header-height); */
  background-color: var(--color-bg);
  pointer-events: auto;
  position: fixed;
  z-index: 111111111111111;
  top: 0;
  left: 0;
  width: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  padding: 10px 0;

}

.cha-header__logo {
  display: block;
  width: 40px;
  height: 40px;
}

.cha-header__nav {
  display: none;
}

.cha-header__nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 0 !important;
}

.cha-header__nav-link,
.cha-header__nav-btn {
  font-size: 0.9375rem;
  font-weight: 600;
}

.cha-header__nav-link {
  color: var(--color-contrast-higher);
  text-decoration: none;
  transition: opacity 0.3s;
}

.cha-header__nav-link:hover {
  opacity: 0.5;
  color: #b8a161;
}

.cha-header__trigger,
.cha-modal__close {
  display: block;
}

.cha-header__trigger .cd-icon,
.cha-modal__close .cd-icon {
  --size: 24px;
  display: block;
  color: var(--color-contrast-higher);
}

.cha-modal {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--color-bg);
  display: none;
  z-index: 15;
}

.cha-modal__inner {
  height: 100%;
  overflow: auto;
}

.cha-modal__header {
  background-color: var(--color-bg);
  padding: 0 1.5rem;
  position: -webkit-sticky;
  position: sticky;
  z-index: 1;
  top: 0;
  height: var(--cha-header-height);
}

.cha-modal__label {
  color: var(--color-contrast-medium);
}

.cha-modal__nav {
  padding: 3rem 1.5rem;
}

.cha-modal__nav-list {
  display: grid;
  gap: 0.25rem;
}

.cha-modal__nav-link {
  font-size: 1.375rem;
  text-decoration: none;
  display: block;
  color: var(--color-contrast-higher);
  padding: 0.25rem 0;
}

@media (min-width: 64rem) {
  .cha-header__nav {
    display: block;
  }

  .cha-header__trigger,
  .cha-modal {
    display: none !important;
  }
}

.cd-container {
  width: calc(100% - 3rem);
  margin-left: auto;
  margin-right: auto;
}

.cd-max-width-sm {
  max-width: 48rem;
}

.cd-max-width-lg {
  max-width: 80rem;
}

.cd-position-relative {
  position: relative;
}

.cd-padding-y-3xl {
  padding-top: 7.75rem;
  padding-bottom: 5.75rem;
}

.cd-height-100\% {
  height: 100%;
}

.cd-flex {
  display: flex;
}

.cd-block {
  display: block;
}

.cd-justify-between {
  justify-content: space-between;
}

.cd-items-center {
  align-items: center;
}
