/* Human Archive — shared global header.
   Matches the site's cream background, JetBrains Mono type, and
   golden-ratio spacing already used across the marketing and legal pages. */
:root {
  --ha-header-h: 76px;
  --ha-header-h-mobile: 64px;
}

.ha-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fbf8f0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.ha-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: var(--ha-header-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "JetBrains Mono", Menlo, Consolas, monospace;
}

.ha-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.ha-logo img {
  height: 30px;
  width: auto;
  display: block;
}

.ha-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.ha-nav-link {
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #000;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

.ha-nav-link:hover {
  opacity: 1;
}

.ha-menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.35);
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.ha-menu-toggle span,
.ha-menu-toggle span::before,
.ha-menu-toggle span::after {
  content: "";
  display: block;
  width: 16px;
  height: 1px;
  background: #000;
  position: relative;
}
.ha-menu-toggle span::before { position: absolute; top: -5px; }
.ha-menu-toggle span::after { position: absolute; top: 5px; }

@media (max-width: 720px) {
  .ha-header-inner {
    height: var(--ha-header-h-mobile);
    padding: 0 20px;
  }

  .ha-logo img { height: 24px; }

  .ha-nav {
    position: fixed;
    top: var(--ha-header-h-mobile);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fbf8f0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .ha-nav.ha-open {
    max-height: 400px;
  }

  .ha-nav-link {
    width: 100%;
    padding: 16px 20px;
    opacity: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
  }

  .ha-menu-toggle { display: flex; }
}
