@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
  color: #111;
}

.shell {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 56px));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 1000;
  pointer-events: none;
}

.top-logo,
.top-nav {
  pointer-events: auto;
}

.top-logo {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transition: opacity 0.15s ease;
}

.top-logo:hover {
  opacity: 0.62;
}

.top-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-nav li {
  position: relative;
}

.has-dropdown {
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  min-width: 110px;
  height: 12px;
}

.menu-link,
.menu-button {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: opacity 0.15s ease;
  cursor: pointer;
}

.menu-link:hover,
.menu-button:hover,
.has-dropdown:hover .menu-button {
  opacity: 0.62;
}

.menu-link.disabled {
  pointer-events: none;
}

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  transform: translateY(-2px);
  min-width: 120px;
  margin: 0;
  padding: 2px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(17, 17, 17, 0.2);
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.dropdown a {
  display: block;
  padding: 2px 10px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 17px;
  line-height: 1;
}

.dropdown a:hover {
  opacity: 0.62;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .shell {
    top: 12px;
    width: calc(100% - 24px);
  }

  .top-nav ul {
    gap: 10px;
  }

  .top-logo {
    font-size: 13px;
  }

  .menu-link,
  .menu-button {
    font-size: 13px;
  }

  .dropdown a {
    font-size: 15px;
    padding: 2px 8px;
  }
}
