.sidebar {
  position: fixed;
  left: -300px;
  top: 0;
  width: min(82vw, 300px);
  height: 100vh;
  background: #050505;
  color: #fff;
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.28);
  transition: left 0.28s ease;
  z-index: 3000;
  padding: 64px 26px 36px;
}

.sidebar.open {
  left: 0;
}

.sidebar nav ul {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: auto;
  padding: 0;
  border-bottom: 0;
  color: #fff;
  font-size: clamp(26px, 7.5vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-decoration: none;
  opacity: 0.96;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.sidebar-link:hover {
  opacity: 1;
  transform: translateX(2px);
}

.sidebar-link .chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

.close-btn {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 64px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0 26px;
  text-align: left;
}

.back-arrow {
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-right: 0;
  border-bottom: 0;
  transform: rotate(-45deg);
}

@media (prefers-color-scheme: dark) {
  .close-btn {
    background: #050505;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  .back-arrow {
    color: #fff !important;
    border-color: #fff !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    forced-color-adjust: none !important;
  }
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 2990;
}

.sidebar-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
