/* The site header: the same on the homepage, the grid and every project page. */

/* Every page keeps room for a scroll bar, whether it scrolls or not, so the header (and the logo
   centred in it) sits in exactly the same place on every page. */
html { scrollbar-gutter: stable; }

.hk-header {
  --ink: #f4efe6;
  --muted: rgba(244, 239, 230, 0.56);
  --red: #e3261b;
  --gutter: clamp(16px, 4vw, 48px);
  font-family: shzc, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.hk-header *, .hk-header *::before, .hk-header *::after { box-sizing: border-box; }
.hk-header a:focus-visible,
.hk-header button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 4px;
}
.hk-nav a.is-current { color: var(--ink); }

.hk-header {
  position: fixed;
  z-index: 10;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--gutter) 0;
  pointer-events: none;
  transition: opacity 0.5s, visibility 0.5s;
}
.hk-header > * { pointer-events: auto; }

.hk-nav { display: flex; gap: 22px; }
.hk-nav a,
.hk-link {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.hk-nav a[aria-current],
.hk-nav a:hover,
.hk-link:hover { color: var(--ink); }

.hk-logo img { display: block; width: 60px; height: 60px; }

.hk-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hk-sound {
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.hk-sound:hover { color: var(--ink); }
.hk-sound .off,
.hk-sound[aria-pressed="false"] .on { display: none; }
.hk-sound[aria-pressed="false"] .off { display: inline; }


/* Project pages: this header replaces the old portfolio one and scrolls with the page. */
.hk-header--page { position: absolute; }
.site-header.js-site-header,
.header-placeholder,
.js-responsive-nav { display: none !important; }
.hk-header--page ~ .site-wrap { padding-top: 104px; }
