/* Philosophy Atlas — shared styles
   --page-max: the site-wide content width (index.html, which doesn’t load this file,
   falls back to the same 1200px).
   Top navigation bar used on every page except index.html.
   Pages must define --ink, --paper and --paper-deep on :root.
   Any other sticky element on a page should use
   top: var(--topbar-height) so it sits below this bar. */

:root {
  --topbar-height: 70px;
  --page-max: 1200px; /* site-wide content width, used by every page’s main container */
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem 1.5rem;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  min-height: var(--topbar-height);
}
.topbar .home-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--ink);
  padding: 0.45rem 0.85rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.topbar .home-link::before { content: '⌂ '; margin-right: 0.15rem; }
.topbar .home-link:hover { background: var(--ink); color: var(--paper); }
.topbar .crumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.topbar .crumbs li { display: inline-flex; align-items: center; gap: 0.4rem; color: #6b5f54; }
.topbar .crumbs li:not(:last-child)::after { content: '/'; margin-left: 0.4rem; color: #6b5f54; opacity: 0.6; }
.topbar .crumbs a {
  color: #6b5f54;
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.topbar .crumbs a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.topbar .crumbs strong { color: var(--ink); font-weight: 700; }

@media (max-width: 600px) {
  .topbar { padding: 0.7rem 1rem; gap: 0.5rem; }
  .topbar .home-link { font-size: 0.7rem; padding: 0.35rem 0.65rem; }
  .topbar .crumbs { font-size: 0.65rem; gap: 0.3rem; }
  .topbar .crumbs li:not(:last-child)::after { margin-left: 0.3rem; }
}
