:root {
  --site-nav-bg: rgba(244, 240, 231, 0.97);
  --site-nav-ink: #17221d;
  --site-nav-line: #b9b2a5;
  --site-nav-accent: #8f5c3f;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--site-nav-line);
  background: var(--site-nav-bg);
  color: var(--site-nav-ink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.global-brand {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
  text-decoration: none;
}

.global-brand small {
  margin-top: 5px;
  font-family: Arial, "Noto Sans KR", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.global-links {
  display: flex;
  align-items: center;
  gap: clamp(11px, 1.55vw, 24px);
}

.global-links a {
  position: relative;
  margin: 0;
  padding: 10px 0 8px;
  color: inherit;
  font-family: Arial, "Noto Sans KR", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.global-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.global-links a:hover::after,
.global-links a:focus-visible::after,
.global-links a[aria-current="page"]::after,
.global-links a[aria-current="location"]::after {
  opacity: 1;
  transform: scaleX(1);
}

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

.site-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--site-nav-line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-menu-toggle span,
.site-menu-toggle span::before,
.site-menu-toggle span::after {
  display: block;
  width: 19px;
  height: 1px;
  margin: auto;
  background: currentColor;
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-menu-toggle span::before { transform: translateY(-6px); }
.site-menu-toggle span::after { transform: translateY(5px); }
.site-menu-toggle[aria-expanded="true"] span { background: transparent; }
.site-menu-toggle[aria-expanded="true"] span::before { transform: translateY(0) rotate(45deg); }
.site-menu-toggle[aria-expanded="true"] span::after { transform: translateY(-1px) rotate(-45deg); }

@media (max-width: 1100px) {
  .global-header { min-height: 70px; }
  .site-menu-toggle { display: block; }
  .global-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 10px 20px 22px;
    border-bottom: 1px solid var(--site-nav-line);
    background: #f4f0e7;
  }
  .global-links.is-open { display: grid; }
  .global-links a {
    padding: 13px 2px;
    border-bottom: 1px solid rgba(23, 34, 29, 0.14);
    font-size: 15px;
  }
  .global-links a::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .global-links a::after,
  .site-menu-toggle span,
  .site-menu-toggle span::before,
  .site-menu-toggle span::after { transition: none; }
}
