@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200;400&family=Playfair+Display:ital,wght@0,400;1,400&display=swap");

.astro-side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10000;
  pointer-events: none;
}

.astro-side-nav__trigger {
  position: fixed;
  top: clamp(1rem, 14vh, 7rem);
  left: 0;
  z-index: 11000;
  pointer-events: auto;
  width: 90px;
  height: 220px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 2px 2px 20px 4px rgba(255, 255, 255, 0.5);
  color: #10131f;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

.astro-side-nav__trigger:hover,
.astro-side-nav__trigger:focus-visible {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  outline: none;
}

.astro-side-nav__trigger-label {
  position: absolute;
  top: 34px;
  left: 26px;
  writing-mode: vertical-rl;
  font-family: "Oswald", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #171717;
  pointer-events: none;
}

.astro-side-nav__trigger-icon,
.astro-side-nav__trigger-icon::before,
.astro-side-nav__trigger-icon::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #10131f; /* default black */
  transition: transform 0.28s ease, opacity 0.28s ease, background-color 0.28s ease;
}

.astro-side-nav__trigger-icon {
  position: relative;
  /* moved lower in the trigger to match original layout */
  margin-top: 140px;
  margin-left: 36px;
  align-self: center;
}

.astro-side-nav__trigger-icon::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.astro-side-nav__trigger-icon::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.astro-side-nav.is-open .astro-side-nav__trigger {
  background: rgba(242, 244, 250, 0.96);
  /* hide the trigger when menu is open to match original behavior */
  opacity: 0;
  pointer-events: none;
  transform: translateX(-20px);
}

.astro-side-nav.is-open .astro-side-nav__trigger-icon {
  background: transparent;
}

/* on hover, change the three lines to blue */
.astro-side-nav__trigger:hover .astro-side-nav__trigger-icon,
.astro-side-nav__trigger:hover .astro-side-nav__trigger-icon::before,
.astro-side-nav__trigger:hover .astro-side-nav__trigger-icon::after {
  background: #beccff;
}

.astro-side-nav.is-open .astro-side-nav__trigger-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.astro-side-nav.is-open .astro-side-nav__trigger-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.astro-side-nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(5, 8, 18, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.astro-side-nav__panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10002;
  width: 300px;
  height: 100vh;
  padding: 28px 34px 40px;
  box-sizing: border-box;
  background: #ffffff;
  color: #10131f;
  box-shadow: 2px 2px 15px rgba(51, 51, 51, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateX(-300px);
  transition: transform 0.4s ease, opacity 0.3s ease;
  pointer-events: auto;
  position: fixed;
  overflow: hidden;
}

/* show EXPLORE label when panel is open, centered near top */
.astro-side-nav.is-open .astro-side-nav__panel::before {
  content: "EXPLORE";
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Playfair Display", serif;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #10131f;
  pointer-events: none;
}

.astro-side-nav__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #beccff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.astro-side-nav__close:hover,
.astro-side-nav__close:focus-visible {
  color: #10131f;
  outline: none;
}

.astro-side-nav__close-icon,
.astro-side-nav__close-icon::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.astro-side-nav__close-icon {
  position: relative;
  transform: rotate(45deg);
}

.astro-side-nav__close-icon::before {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(90deg);
}

.astro-side-nav__brand {
  display: none;
}

.astro-side-nav__brand-small {
  display: block;
  margin-bottom: 0.85rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(16, 19, 31, 0.56);
}

.astro-side-nav__brand-title {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 0.94;
  color: #10131f;
}

.astro-side-nav__menu {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: stretch;
  width: 100%;
  margin-top: 34vh;
}

.astro-side-nav__link {
  color: #beccff; /* default blue */
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 2em;
  font-weight: 100;
  line-height: 1.05;
  padding: 1rem 0;
  margin: 0 -34px;
  transition: background-color 0.2s ease, color 0.2s ease;
  width: calc(100% + 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.astro-side-nav__link:hover,
.astro-side-nav__link:focus,
.astro-side-nav__link:active {
  background: #beccff;
  color: #10131f;
  outline: none;
}

.astro-side-nav.is-open .astro-side-nav__panel,
.astro-side-nav__panel.astro-side-nav--open {
  transform: translateX(0);
}

.astro-side-nav.is-open .astro-side-nav__overlay,
.astro-side-nav__overlay.astro-side-nav--open {
  opacity: 1;
  pointer-events: auto;
}
  
@media (max-width: 640px) {
  .astro-side-nav__trigger {
    top: 1rem;
    width: 82px;
    height: 170px;
  }

  .astro-side-nav__trigger-label {
    top: 28px;
    left: 22px;
    font-size: 0.72rem;
  }

  .astro-side-nav__trigger-icon {
    margin-top: 24px;
    margin-left: 22px;
  }

  .astro-side-nav__panel {
    width: min(310px, 90vw);
    padding: 24px 24px 34px;
  }

  .astro-side-nav__link {
    margin: 0 -24px;
    width: calc(100% + 48px);
  }

  .astro-side-nav__brand {
    margin-top: 3vh;
    margin-bottom: 14vh;
  }

  .astro-side-nav__menu {
    margin-top: 24vh;
  }
}
