[data-opening-logo],
[data-site-header] [data-brand] {
  font-family: "BYCJ Montserrat", Montserrat, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.07em !important;
}

[data-site-header] [data-brand] {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  color: #000;
  background: transparent;
  border-radius: 0;
}

[data-site-header] [data-brand][data-brand-tone="light"] {
  color: #fff;
}

[data-brand-wordmark] {
  display: block;
  width: 2.95em;
  height: 0.8em;
  overflow: hidden;
  text-indent: -9999px;
  background: currentColor;
  -webkit-mask: url("./bycj-wordmark.svg") center / contain no-repeat;
  mask: url("./bycj-wordmark.svg") center / contain no-repeat;
}

[data-site-header] {
  mix-blend-mode: normal !important;
}

[data-site-header] > [data-header-intro],
[data-site-header] > nav,
[data-site-header] > [data-corner-mark] {
  mix-blend-mode: normal;
}

[data-site-header] > [data-header-intro],
[data-site-header] > nav a,
[data-site-header] > [data-corner-mark] {
  color: #000;
}

[data-site-header] [data-header-tone="light"] {
  color: #fff;
}

@media (min-width: 951px) {
  /* Let the fixed mark blend with the page instead of an isolated header layer. */
  [data-site-header] {
    position: static;
    z-index: auto;
  }

  [data-site-header] > * {
    position: fixed;
    z-index: 50;
  }

  [data-site-header] [data-brand] {
    color: #fff;
    mix-blend-mode: difference;
  }

  [data-site-header] [data-brand][data-brand-surface="image"] {
    mix-blend-mode: normal;
  }
}

[data-site-header] [data-brand]::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  background: currentColor;
  -webkit-mask: url("./bycj-symbol.svg") center / contain no-repeat;
  mask: url("./bycj-symbol.svg") center / contain no-repeat;
}

.brand .brand-name {
  font-family: "BYCJ Source Han Sans CN", sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
}

@media (max-width: 480px) {
  [data-site-header] [data-brand] {
    gap: 0.4rem;
  }

  [data-site-header] [data-brand]::before {
    width: 1.75rem;
    height: 1.75rem;
    flex-basis: 1.75rem;
  }
}
