/* ============================================================
   The masthead, for every page that is not the homepage.
   ------------------------------------------------------------
   These pages carried three different mastheads: discuss had its
   own, the catalogues inherited the homepage's from site.css, and
   privacy and terms had a bespoke `.nav` pill. Moving them all to
   the homepage's markup left that last pair unstyled — a bare
   wordmark and a CTA rendering as an underlined link — because
   their CSS was written for selectors that no longer exist.

   So this owns the whole bar rather than patching it: header,
   pill, brand and CTA, matched to the homepage's own computed
   values. It loads last, so it wins wherever a page still has
   masthead rules of its own.
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 8px 0 0;
  border-bottom: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  /* The homepage's own box: inset 18px from each edge, capped at 1376px. */
  width: min(calc(100% - 36px), 1376px);
  min-height: 56px;
  margin-inline: auto;
  padding: 0 8px 0 12px;
  border: 1px solid color-mix(in srgb, var(--ink) 13%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 46%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--body, "DM Sans", sans-serif);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
}
.site-header .brand > span:not(.brand-mark) { display: inline-block; }

.site-header .brand-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  background-image: none;
  -webkit-mask: url("assets/brand/logo.png") center / contain no-repeat;
  mask: url("assets/brand/logo.png") center / contain no-repeat;
}
.site-header .brand-mark::after { display: none; }

.site-header .site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* The pill's fill belongs to button-system.css, which owns every primary CTA
   in both skins. Only its shape and metrics are here. */
.site-header .site-nav .nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}
.site-header .site-nav .nav-contact .button-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-header .menu-button { display: inline-flex; }
  .site-header .site-nav { display: none; }
  .site-header .site-nav.is-open { display: flex; }
  .site-header .header-inner { gap: 12px; }
}
