/* szumski.art — /css/nav.css · v1.2 · 2026-06-07
   Single source of truth for all navigation styles.
   Linked by every page. Never duplicate nav CSS in page files.
   ─────────────────────────────────────────────────────────── */

/* ── SHARED NAV SHELL ── */
nav,
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: visible;
}

/* ── LOGO ── */
.nav-logo,
.nav__brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: #f2ece3;
  text-decoration: none;
  text-transform: uppercase;
  flex-shrink: 0;
}
.nav__brand span { color: #b84016; }

/* ── BREADCRUMB PATH (mathematics page) ── */
.nav-path {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: #8a7060;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* ── DESKTOP LINKS ── */
.nav-links,
.nav__links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex: 1;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a,
.nav__links a,
.nav__link {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: #a89080;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav__links a:hover,
.nav__link:hover  { color: #f2ece3; }
.nav-links a.current,
.nav__link--active { color: #c8922a; pointer-events: none; }
.nav-link--private,
.nav__link--private       { color: #8c1f17; }
.nav-link--private:hover,
.nav__link--private:hover { color: #c0392b; }

/* ── DESKTOP LANG BUTTONS ── */
.nav-lang,
.nav__lang {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
  margin-left: 1rem;
}
.nav-lang button,
.nav__lang-btn {
  background: none;
  border: 1px solid #4a3828;
  color: #a89080;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
}
.nav-lang button.active,
.nav__lang-btn--active,
.nav-lang button:hover,
.nav__lang-btn:hover {
  border-color: #c8922a;
  color: #c8922a;
}

/* ── INLINE LANG (shown in nav bar on mobile, left of burger) ── */
.nav__inline-lang {
  display: none;
  gap: 0.25rem;
  align-items: center;
  flex-shrink: 0;
}
.nav__inline-lang-btn {
  background: none;
  border: 1px solid transparent;
  color: #a89080;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.nav__inline-lang-btn--active,
.nav__inline-lang-btn:hover {
  border-color: #c8922a;
  color: #c8922a;
}

/* ── BURGER ── */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 0;
  line-height: 0;
  flex-shrink: 0;
}
.nav__burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: #f0e8de;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}
.nav__burger--open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav__burger--open span:nth-child(2) { opacity: 0; }
.nav__burger--open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.nav__mobile {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 199;
  background: rgba(6,4,3,0.97);
  border-bottom: 1px solid #4a3828;
  overflow: hidden;
  max-height: 0;
  visibility: hidden;
  pointer-events: none;
  transition: max-height 0.35s ease, visibility 0s linear 0.35s;
}
.nav__mobile--open {
  max-height: 480px;
  visibility: visible;
  pointer-events: auto;
  transition: max-height 0.35s ease, visibility 0s linear 0s;
}
.nav__mobile-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a89080;
  text-decoration: none;
  padding: 14px 28px;
  border-bottom: 1px solid #4a3828;
  transition: color 0.2s;
}
.nav__mobile-link:last-child { border-bottom: none; }
.nav__mobile-link:hover      { color: #f2ece3; }
.nav__mobile-link--private   { color: #8c1f17; }

/* ── MOBILE BREAKPOINT ── */
@media (max-width: 900px) {
  .nav-links,
  .nav__links   { display: none !important; }
  .nav-lang,
  .nav__lang    { display: none !important; }
  .nav-path     { display: none !important; }
  .nav__burger        { display: flex; }
  .nav__inline-lang   { display: flex; }
  nav, .nav     { overflow: visible; }
}

/* ── DESKTOP — force menu closed ── */
@media (min-width: 901px) {
  body            { overflow-x: hidden; }
  .nav__burger    { display: none !important; }
  .nav__inline-lang { display: none !important; }
  .nav__mobile {
    max-height: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}