.site-header {
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-line);
  left: 0;
  position: sticky;
  top: 0;
  transition: background 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  width: 100%;
  z-index: 50;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 250, 0.92);
  border-color: rgba(216, 208, 197, 0.72);
  box-shadow: 0 16px 40px rgba(31, 33, 26, 0.08);
  backdrop-filter: blur(18px);
}

.announcement {
  align-items: center;
  background: var(--color-charcoal);
  color: #fff;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 16px;
  justify-content: center;
  letter-spacing: 4px;
  min-height: 40px;
  overflow: hidden;
  transition: min-height 200ms ease, opacity 200ms ease;
}

.announcement .dot {
  color: var(--color-rust-light);
}

.site-header.is-scrolled .announcement {
  min-height: 0;
  opacity: 0;
}

.nav-wrap {
  align-items: center;
  display: grid;
  column-gap: clamp(28px, 4vw, 72px);
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  min-height: 88px;
  padding: 0 clamp(24px, 4.2vw, 78px);
  transition: min-height 240ms ease;
}

.site-header.is-scrolled .nav-wrap {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  justify-self: start;
  line-height: 0;
}

.brand img {
  display: block;
  height: auto;
  max-width: 178px;
  width: clamp(136px, 12vw, 178px);
}

.main-nav {
  align-items: center;
  display: flex;
  gap: clamp(22px, 2.5vw, 38px);
  justify-content: flex-start;
}

.main-nav a {
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1px;
  opacity: 0.86;
  position: relative;
}

.main-nav a::after {
  background: var(--color-rust-light);
  bottom: -8px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.main-nav a:hover {
  opacity: 1;
}

.nav-button {
  background: transparent;
  border: 1px solid rgba(34, 35, 29, 0.32);
  border-radius: 999px;
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 700;
  justify-self: end;
  min-width: 126px;
  padding: 15px 22px;
  text-align: center;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.nav-button:hover {
  background: var(--color-rust-light);
  border-color: var(--color-rust-light);
  color: var(--color-paper);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .announcement {
    display: none;
  }

  .nav-wrap {
    grid-template-columns: 1fr auto;
    min-height: 78px;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .nav-wrap {
    gap: 16px;
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 18px 24px;
  }

  .brand img {
    width: 142px;
  }

  .nav-button {
    justify-self: start;
    min-width: auto;
    padding: 12px 16px;
  }
}
