/* The deonmenezes.com navbar: a thin, sticky, frosted white bar.
   Self-contained on purpose. Every colour, font and easing it needs is set here on .nav,
   so a page gets the whole navbar from this file and does not have to define any CSS
   variable for it. Everything is scoped under .nav so it cannot leak into a page's own
   .chip or .brand. 2026-10-09 redesign, matches the /resources hub. */

.nav {
  --nav-ink: #1d1d1f;
  --nav-faint: #86868b;
  --nav-hair: rgba(0, 0, 0, 0.08);
  --nav-accent: #0071e3;
  --nav-ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --nav-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;

  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-sizing: border-box;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 10px clamp(16px, 4vw, 40px);
  border: 0;
  border-bottom: 1px solid var(--nav-hair);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: none;
  color: var(--nav-ink);
  font: 400 13px/1.47 var(--nav-font);
  letter-spacing: -0.187px; /* what the hub's body (17px, -0.011em) hands down to the links */
  text-align: left;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
}

.nav *,
.nav *::before,
.nav *::after {
  box-sizing: border-box;
}

.nav a {
  color: inherit;
  text-decoration: none;
}

.nav a:focus-visible {
  outline: 3px solid var(--nav-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--nav-ink);
}

.nav .brand-pin {
  align-self: center;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--nav-ink);
  box-shadow: none;
}

.nav .brand-name {
  font-family: var(--nav-font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav .brand-tag {
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: var(--nav-faint);
}

.nav .nav-links {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--nav-ink);
}

.nav .nav-links a {
  position: relative;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 400;
  color: var(--nav-ink);
  opacity: 0.8;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.nav .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--nav-accent);
  transition: width 0.25s var(--nav-ease);
}

.nav .nav-links a:hover,
.nav .nav-links a[aria-current="page"] {
  color: var(--nav-ink);
  opacity: 1;
}

.nav .nav-links a[aria-current="page"] {
  font-weight: 600;
}

.nav .nav-links a:hover::after,
.nav .nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav .nav-links .nav-virelity {
  color: var(--nav-accent);
  opacity: 1;
}

.nav .nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* The "All resources" chip: a small black pill */
.nav .chip {
  display: inline-block;
  padding: 7px 14px;
  border: 0;
  border-radius: 980px;
  background: var(--nav-ink);
  color: #fff;
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.15s var(--nav-ease), background 0.2s;
}

.nav .chip:hover {
  background: #000;
  transform: translateY(-1px);
}

/* Narrow screens: the links drop to their own row and wrap, so nothing sits off-screen */
@media (max-width: 920px) {
  .nav {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .nav .nav-links {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-bottom: 6px;
  }

  .nav .brand-tag {
    display: none;
  }
}

@media (max-width: 540px) {
  .nav .nav-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav .nav-links a,
  .nav .nav-links a::after,
  .nav .chip {
    transition: none;
  }

  .nav .chip:hover {
    transform: none;
  }
}
