/* ==========================================================================
   LDS menu, on every page.
   1. Scrolled state: frosted bone glass. Same bone tint the menu already used
      (244,240,230), translucent with a soft blur so the photography shows
      through. Menu text steps up to ink so it stays legible when dark sections
      pass behind the glass.
   2. Scroll-aware: /lds-nav.js adds .lds-nav-hidden while scrolling down; the
      menu slides up out of view and returns on any upward scroll.
   The `html body` prefix outranks each page's own `.nav` rules.
   ========================================================================== */
html body .nav.scrolled {
  background: rgba(244, 240, 230, 0.56);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: rgba(33, 28, 21, 0.08);
  box-shadow: inset 0 -0.5px 0 rgba(255, 255, 255, 0.3);
  --ink3: #211C15;
  --ink2: #211C15;
}
html body .nav.scrolled .lang-btn { color: #50483B; }
html body .nav.scrolled .lang-btn.active { color: var(--ink); }

/* no blur support, or the visitor asked for less transparency: solid bone */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  html body .nav.scrolled { background: rgba(244, 240, 230, 0.95); }
}
@media (prefers-reduced-transparency: reduce) {
  html body .nav.scrolled { background: rgba(244, 240, 230, 0.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- 2. hide on scroll down, show on scroll up ---------- */
html body .nav {
  transition: background-color 500ms cubic-bezier(.22,1,.36,1), border-color 500ms cubic-bezier(.22,1,.36,1),
              transform 280ms cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
html body .nav.lds-nav-hidden { transform: translate3d(0, -100%, 0); }
html body .nav.lds-nav-hidden:has(:focus-visible) { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html body .nav { transition: background-color 200ms linear, border-color 200ms linear, transform 1ms linear; }
}

/* ---------- 3. menu links one step larger (preview 21) ----------
   Projects, Studio, Journal, Contact (and Spanish) on the desktop bar:
   11px → 13px, and 10px → 12px on the narrower desktop range of the home,
   projects, studio and contact pages. Labels unchanged. */
html body .nav .nav-links a,
html body .nav .lds-nl a { font-size: 13px; }
@media (min-width: 901px) and (max-width: 1360px) {
  html body .nav .nav-links a { font-size: 12px; }
}
