.app-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--container-width));
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}

.app-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 3px solid var(--brand);
}

.app-brand__mark {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.app-brand__pipe {
  width: 1px;
  height: 2.4rem;
  background: currentColor;
  opacity: 0.55;
}

.app-brand__sub {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.app-topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.nav-list {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.page-hero__title {
  font-size: 1.65rem;
}

.page-hero__subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1200px) {
  .app-topbar,
  .page-hero,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
