/* xeek.dev theme, header.css: sticky frosted header, wordmark, tagline */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 24, 30, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--grad-line);
}

.nav-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font: 700 19px var(--font-logo);
}

.wordmark-gradient {
  background: var(--grad-brand-tight);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue);
}

.wordmark-muted {
  font-weight: 600;
  font-size: 17px;
  color: #8ba0b4;
}

/* the wordmark dot is a meshed pair: a big gear with a small one riding it */
.wordmark-gear-duo { width: 22px; height: 20px; margin: 0 1px; transform: translateY(2px); }
.wordmark-muted .wordmark-gear-duo { width: 20px; height: 18px; }

.site-tagline {
  font: 400 8px var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Header gears: spin everywhere except home (home uses .wordmark-muted).
   The small gear counter-rotates faster, matched to the radius ratio
   (pitch 9 vs 5.3, so 24s * 5.3/9 = 14.1s) */
.wordmark-gradient .wg-big {
  animation: wordmark-gear-spin 24s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.wordmark-gradient .wg-small-spin {
  animation: wordmark-gear-spin-r 14.1s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes wordmark-gear-spin {
  to { transform: rotate(360deg); }
}

@keyframes wordmark-gear-spin-r {
  to { transform: rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark-gradient .wg-big,
  .wordmark-gradient .wg-small-spin { animation: none; }
}
