/* Top bar: logo on the left, status pill on the right. */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(16px, 4vw, 40px);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .02em;
}

/* Logo: the yellow square turns into a circle on hover */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--yellow);
  transition:
    transform .6s ease,
    border-radius .6s ease;
}

.logo:hover .logo-mark {
  transform: rotate(90deg);
  border-radius: 50%;
}

/* Status pill with a pulsing dot */
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(22, 22, 22, .6);
  backdrop-filter: blur(6px);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse 3s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--yellow) 40%, transparent); }
  70%  { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* On narrow screens, shorten "building something new" to "building" */
@media (max-width: 560px) {
  .status-long {
    display: none;
  }
}
