/* The site header, the same on every page. Needs Press Start 2P loaded. */
.site-head {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: 400 10px/1 "Press Start 2P", ui-monospace, monospace;
  letter-spacing: 1px;
  color: #1C2340;
}
.site-head a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.site-head a:focus-visible { outline: 3px solid #1C2340; outline-offset: 3px; }

.site-head .brand {
  flex: none;
  padding: 8px 12px;
  background: #fff;
  border: 3px solid #1C2340;
  box-shadow: 3px 3px 0 #FF5A36;
  white-space: nowrap;
  transition: transform 90ms ease-out, box-shadow 90ms ease-out;
}
.site-head .brand:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #FF5A36; }

.site-head nav { display: flex; gap: 6px; }
.site-head nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 3px solid transparent;
  border-radius: 12px;
  white-space: nowrap;
}
.site-head nav img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid #fff;
}
.site-head nav a:hover { background: rgba(255, 255, 255, 0.45); }
.site-head nav a[aria-current="page"] {
  background: #fff;
  border-color: #1C2340;
}

@media (max-width: 520px) {
  .site-head nav a { padding: 3px; }
  .site-head nav span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-head .brand { transition: none; }
}
