.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 0.75rem var(--gutter) 0;
  pointer-events: none;
}

.nav-bar,
.content,
.site-footer {
  width: min(var(--content-max), calc(100vw - var(--gutter) * 2));
  margin-left: auto;
  margin-right: auto;
}

.nav-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 3.5rem;
  padding: 0 0.7rem 0 1rem;
  border-radius: 999px;
  background: rgba(28, 27, 24, 0.55);
  backdrop-filter: blur(20px) saturate(1.35);
  box-shadow: var(--shadow-float);
}

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

.brand img { height: 26px; width: auto; display: block; }
.brand-mark { display: flex; flex-direction: column; line-height: 1.15; }

.brand-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 0.2rem; flex-shrink: 0; }

.nav a {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  transition: background 120ms var(--ease);
}

.nav a:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.nav a.is-active { background: var(--yellow); color: #16161a; }

.user-chip {
  color: var(--faint);
  font-size: 0.78rem;
  padding: 0 0.55rem;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  margin-top: auto;
  padding: 1.25rem 0 1.6rem;
  color: var(--faint);
  font-size: 0.82rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.heart {
  display: inline-block;
  margin: 0 0.15em;
  font-style: normal;
  transform: translateY(0.04em);
}

.content { padding-top: var(--nav-pad); padding-bottom: 2.4rem; }

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-title > div { min-width: 0; flex: 1; }
.page-title .btn,
.page-title .btn-quiet { flex-shrink: 0; align-self: center; }

.page-title h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lede { margin: 0.4rem 0 0; color: var(--muted); max-width: 42rem; }

@media (max-width: 720px) {
  .brand-mark, .user-chip { display: none; }
}
