/* ==========================================================================
   akhilj.ca — global navigation for project mini-sites
   Self-contained (no dependency on base.css), so any mini-site with its own
   identity (e.g. /work/omniphi/) can show the SAME top bar as the main site:
   Akhil J. · Home · Work · About · Contact.
   Matches .site-header in components.css + v3.css (Instrument Sans, ivory
   paper, charcoal ink, wine full stop, underline-draw links).
   The mini-site's own sticky sub-navigation sits directly below it.
   ========================================================================== */
.gnav {
  --gnav-paper: #F4F1EC;
  --gnav-ink: #181715;
  --gnav-accent: #7A3138;
  --gnav-line: rgba(24, 23, 21, 0.13);
  position: relative;
  z-index: 110;
  height: 72px;
  background: var(--gnav-paper);
  border-bottom: 1px solid var(--gnav-line);
  font-family: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.gnav-in {
  /* Defaults match the main site container; a mini-site can override these
     two variables so the bar lines up with its own content width. */
  width: min(100% - (var(--gnav-pad, clamp(20px, 4vw, 56px)) * 2), var(--gnav-max, 1360px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.gnav-mark {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--gnav-ink);
  text-decoration: none;
  padding: 6px 0;
}
.gnav-mark span { color: var(--gnav-accent); }
.gnav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.gnav-links a {
  position: relative;
  padding: 6px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gnav-ink);
  text-decoration: none;
}
.gnav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 600ms cubic-bezier(0.19, 1, 0.22, 1);
}
.gnav-links a:hover::after,
.gnav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left center; }
.gnav a:focus-visible { outline: 2px solid var(--gnav-accent); outline-offset: 4px; border-radius: 2px; }

/* Small screens: no second menu button (the mini-site already has one);
   links stay visible and compact, and the wordmark doubles as Home. */
@media (max-width: 600px) {
  .gnav { height: 56px; }
  .gnav-links { gap: 16px; }
  .gnav-links a { font-size: 0.875rem; }
  .gnav-links .gnav-home { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gnav-links a::after { transition: none; }
}
