/* Shared header/banner composition for every public page. */

:root {
  --site-header-max-width: 1600px;
  --site-header-padding-x: clamp(16px, 2vw, 24px);
  --site-header-inner-height: 48px;
}

html {
  scrollbar-gutter: stable;
}

.landing-header {
  padding: 1px var(--site-header-padding-x);
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(130deg,
      color-mix(in oklab, var(--glass-bg) 23%, transparent) 0%,
      color-mix(in oklab, var(--glass-bg) 42%, transparent) 48%,
      color-mix(in oklab, var(--glass-bg-strong) 36%, transparent) 100%);
  border-bottom: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  isolation: isolate;
  overflow: hidden;
  line-height: 1;
}

.landing-header::before,
.landing-header__inner::before {
  content: none;
}

.landing-header__inner {
  max-width: var(--site-header-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6, 24px);
  min-height: var(--site-header-inner-height);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.landing-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
  color: inherit;
  text-decoration: none;
  line-height: 1;
}

.landing-header__logo-img {
  height: 30px;
  width: auto;
  display: block;
  filter: none;
}

html.dark .landing-header__logo-img {
  filter: invert(1) brightness(1.04);
}

.landing-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-6, 24px);
  line-height: 1;
}

.landing-header__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, gap 0.2s ease;
}

.landing-header__link:hover {
  color: var(--foreground);
  background: color-mix(in oklab, var(--glass-bg-strong) 78%, transparent);
}

.landing-header__link--arrow {
  color: var(--foreground);
}

.landing-header__link--arrow:hover {
  gap: 10px;
}

.landing-header__link--arrow svg,
.landing-header__theme-toggle svg,
[data-theme-toggle] svg {
  width: 18px;
  height: 18px;
}

.landing-header__link--arrow svg {
  width: 14px;
  height: 14px;
}

.landing-header__theme-toggle,
.landing-header [data-theme-toggle] {
  background: var(--glass-bg-strong) !important;
  border: 1px solid var(--glass-border-strong) !important;
  padding: 6px 10px !important;
  cursor: pointer;
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  line-height: 1;
  border-radius: 999px;
  box-shadow: var(--glass-shadow-soft), var(--glass-inner-highlight);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

.landing-header__link:focus-visible,
.landing-header__theme-toggle:focus-visible,
.landing-header [data-theme-toggle]:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--ring) 40%, transparent);
  outline-offset: 2px;
  border-radius: 999px;
}

.landing-header__menu-toggle {
  display: none;
}

@media (max-width: 720px) {
  .landing-header__nav {
    gap: var(--space-3, 12px);
  }

  .landing-header__link--arrow {
    display: none;
  }
}
