:root {
  --site-font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --site-bg: #090909;
  --site-fg: #f5f4ef;
  --site-line: #ffffff29;
  --site-accent: #d3f563;
}

html,
body,
body * {
  font-family: var(--site-font) !important;
}

body.menu-open {
  overflow: hidden;
}

.topbar {
  position: fixed !important;
  z-index: 100 !important;
  inset: 0 0 auto 0;
  width: 100% !important;
  height: 82px;
  min-height: 82px;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 clamp(22px, 4.2vw, 76px) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  color: var(--site-fg);
  background: var(--site-bg);
  border-bottom: 1px solid var(--site-line);
  mix-blend-mode: normal;
}

.topbar .logo {
  position: relative;
  z-index: 110;
  flex: 0 0 auto;
  color: var(--site-fg);
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.075em;
  text-decoration: none;
}

.topbar .nav {
  position: relative;
  z-index: 105;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .03em;
}

.topbar .nav a {
  display: inline-flex;
  align-items: center;
  color: var(--site-fg);
  font: inherit;
  line-height: 1;
  text-decoration: none;
}

.topbar .nav a:hover,
.topbar .nav a[aria-current="page"] {
  color: var(--site-accent);
}

.topbar .nav a:last-child {
  margin-left: 8px;
}

.topbar .menu-button {
  position: relative;
  z-index: 120;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: var(--site-fg);
  background: transparent;
  font: 700 28px/1 var(--site-font);
  cursor: pointer;
}

@media (min-width: 951px) {
  .topbar .nav {
    font-size: 14px;
  }
}

@media (max-width: 650px) {
  .topbar {
    height: 68px;
    min-height: 68px;
    padding: 0 22px !important;
    background: var(--site-bg);
    mix-blend-mode: normal;
  }

  .topbar .menu-button {
    display: grid;
    place-items: center;
    color: var(--site-fg);
    text-shadow: 0 1px 14px #000;
  }

  .topbar .nav {
    position: fixed;
    z-index: 90;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100vh;
    margin: 0;
    padding: 92px 22px max(32px, env(safe-area-inset-bottom));
    overflow-y: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    white-space: normal;
    background: var(--site-bg);
    border: 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.04em;
  }

  .topbar .nav.open {
    display: flex;
  }

  .topbar .nav a {
    min-height: 58px;
    padding: 12px 0;
    border-bottom: 1px solid #ffffff1f;
    display: inline-flex !important;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
  }

  .topbar .nav a:last-child {
    margin-left: 0;
  }
}
