/* Ported from apps/web/src/components/Header.module.css (CSS Module `.fooBar` -> `.header__foo-bar`). */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}
.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.header__name {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 14px;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  font-size: 14px;
}
.header__nav a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}
.header__nav a:hover {
  color: var(--text);
}
.header__lang {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 44px;
  font-weight: 600;
  font-size: 12px;
}
.header__cta {
  color: white !important;
  background: var(--accent);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.header__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.header__theme svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 760px) {
  .header__nav a:not(.header__cta):not(.header__lang) {
    display: none;
  }
}
@media (max-width: 380px) {
  .header__name {
    display: none;
  }
  .header__nav {
    gap: 8px;
  }
}

.header {
  border-bottom-color: transparent;
}
.header__row {
  min-height: 84px;
}
.header__brand-text {
  display: grid;
  gap: 3px;
}
.header__name {
  font-size: 19px;
  letter-spacing: 0.03em;
}
.header__parent {
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: 0.02em;
}
.header__cta {
  border-radius: 999px;
  background: var(--editorial-button);
}
.header__nav a:hover {
  color: var(--editorial-accent);
}
.header__theme {
  transition: color 0.2s;
}
.header__theme:hover {
  color: var(--text);
}
@media (max-width: 380px) {
  .header__name {
    display: block;
    font-size: 15px;
  }
  .header__parent {
    font-size: 8px;
  }
  .header__brand {
    gap: 4px;
  }
  .header__brand > svg {
    width: 27px;
  }
  .header__theme {
    width: 30px;
  }
}

.header__brand-lockup {
  display: grid;
  gap: 0;
  flex-shrink: 0;
}
.header__brand-lockup .header__parent {
  display: block;
  padding: 0 0 5px 46px;
  font-size: 11px;
  line-height: 1.3;
  text-decoration: none;
  color: var(--text-muted);
  letter-spacing: 0;
}
.header__parent strong {
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.03em;
}
.header__parent strong span {
  color: var(--editorial-accent);
}
.header__brand-lockup .header__parent:hover strong {
  color: var(--editorial-accent);
}
@media (max-width: 380px) {
  .header__brand-lockup .header__parent {
    padding-left: 31px;
    font-size: 10px;
  }
}

/* The theme button ships all three icons; site.js unhides the current one. */
.header__theme svg[hidden] {
  display: none;
}
