body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
}

#app {
  max-width: var(--column-width);
  margin: 0 auto;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
}

#app.landing-active {
  max-width: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--bg-primary) 65%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* Feed page keeps content borders */
#app.feed-active .page {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 90%;
  padding: 0 16px;
}

.page {
  flex: 1;
}

/* ── Responsive: tablet (768px) ─────────────────── */
@media (max-width: 768px) {
  #app { max-width: 95%; }
  .nav {
    height: auto;
    min-height: var(--nav-height);
  }
  .nav-inner {
    flex-wrap: wrap;
    width: 100%;
    gap: 0;
  }
  #app.feed-active .page {
    border-left: none;
    border-right: none;
  }
}

/* ── Responsive: phone (480px) ──────────────────── */
@media (max-width: 480px) {
  #app { max-width: 100%; }
}
