/* Shared production shell: the homepage and interior routes use this exact header,
   mobile disclosure, and footer rather than maintaining parallel variants. */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  top: 0;
  z-index: 20;
  border-radius: 8px;
  background: var(--depth);
  color: var(--surface);
}

.skip:focus {
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 18px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  left: 16px;
  top: 16px;
}

.site-head {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--clay);
  background: var(--paper);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

/* Legacy interior pages scope `.wrap` to their old body widths. The shared
   shell must retain the accepted homepage measure independently of that. */
.site-head .wrap,
footer.site .wrap {
  max-width: 1160px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--depth);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 26px;
  height: 26px;
}

.brand b { font-weight: 700; }

.site-head .links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-head .links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--muted);
  font: 500 14px/1.2 var(--body);
  text-decoration: none;
}

.site-head .links a:hover { color: var(--ink); }
.site-head .links a[aria-current="page"] { color: var(--depth); }
.site-head .links .nav-cta { color: var(--signal-h); }

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--clay);
  border-radius: 8px;
  background: transparent;
  color: var(--depth);
  cursor: pointer;
  font: 500 13px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  body.js .menu-toggle { display: inline-flex; align-items: center; }
  body.js .site-head .links { display: none; }
  body.js .site-head.menu-open .links {
    position: absolute;
    z-index: 10;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 16px;
    border-bottom: 1px solid var(--clay);
    background: var(--paper);
  }
  body.js .site-head.menu-open .links a {
    padding: 14px 0;
    border-top: 1px solid var(--clay);
  }
  .site-head { position: relative; }
  .site-head .links { flex-wrap: wrap; }
}

footer.site {
  padding: 0 0 clamp(40px, 6vw, 64px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--clay);
}
