@font-face {
  font-family: "Agustina Regular";
  font-style: normal;
  font-weight: normal;
  src: url("/fonts/Agustina.woff") format("woff");
  font-display: swap;
}

.header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(109, 40, 217, 0.1);
  max-width: 100%;
  padding: 12px 24px;
  margin: 0 auto;
  box-shadow: 0 14px 30px -28px rgba(15, 23, 42, 0.38);
}

.header.dark-menu {
  background: rgba(8, 13, 18, 0.86) !important;
  color: #f8f6ff;
  border-bottom-color: rgba(148, 163, 184, 0.16) !important;
}

.header .logo {
  display: block;
  text-decoration: none;
  font-size: 1.5em;
  line-height: normal;
}

.header .logo-name {
  font-family: "Agustina Regular", cursive;
  font-weight: bold;
  color: #6d28d9;
  padding: 0 10px;
}

.header .grey-color {
  color: #70748a;
}

.header-nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav-links li a {
  display: block;
  padding: 15px 20px;
  color: #17152a;
  text-decoration: none;
  font-weight: 600;
}

.header.dark-menu li a {
  color: #f8f6ff;
}

.header-nav-links li a:hover {
  background: #f6f3ff;
  color: #6d28d9;
}

.header.dark-menu li a:hover {
  background: rgba(139, 92, 246, 0.12) !important;
}

.header .menu-btn {
  display: none;
}

.header .menu-icon {
  cursor: pointer;
  display: none;
  float: right;
  padding: 28px 20px;
}

.header .navicon {
  background: #252238;
  display: block;
  height: 2px;
  position: relative;
  width: 18px;
}

.header .navicon:before,
.header .navicon:after {
  background: #252238;
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  width: 100%;
}

.header .navicon:before {
  top: 5px;
}

.header .navicon:after {
  top: -5px;
}

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

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: linear-gradient(135deg, #e6efee, #f8faf9);
  border: 1px solid rgba(109, 40, 217, 0.12);
  border-radius: 34px;
  display: flex;
  align-items: center;
}

.slider::before {
  position: absolute;
  content: "";
  height: 26px;
  width: 28px;
  left: 0;
  bottom: 0;
  background: #f8f6ff;
  border-radius: 50%;
  transition: transform 0.28s ease;
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.switch input:checked + .slider::before,
.switch input:checked + .slider .emoji {
  transform: translateX(22px);
}

.slider .emoji {
  z-index: 10;
  margin-left: 4px;
  font-size: 13px;
  line-height: 1;
}

@media (min-width: 48em) {
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .header .menu {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .header-nav-links {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    overflow-x: auto;
    gap: 0.1rem;
  }

  .header-nav-links li a {
    padding: 10px 13px;
    font-size: 0.92rem;
    white-space: nowrap;
    border-radius: 999px;
  }

  .header-nav-actions {
    padding-left: 0.5rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
  }

  .header.dark-menu .header-nav-actions {
    border-left-color: rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 47.99em) {
  .header .menu-icon {
    display: inline-block;
  }

  .header .menu {
    clear: both;
    max-height: 0;
    overflow: hidden;
  }

  .header .menu-btn:checked ~ .menu {
    max-height: min(88vh, 920px);
  }
}

html.dark-mode,
body.dark-mode {
  background: #080d12;
  color: #e2e8f0;
}
