/* Match the homepage shell without changing the demo's graph or interactions. */
:root {
  --page: hsl(40 18% 97%);
  --ink: hsl(0 0% 13%);
  --muted: hsl(0 0% 40%);
  --line: hsl(40 15% 90%);
}

html,
body,
.demo {
  background: var(--page);
}

body {
  font-family: "Inter", sans-serif;
}

.demo {
  padding-block: 0;
}

.wrap {
  width: calc(100% - 96px);
  margin-inline: auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  justify-items: stretch;
  width: 100%;
  gap: 24px;
  margin-bottom: 40px;
}

.intro h2 {
  max-width: none;
  font-size: clamp(1.75rem, 3.5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.1;
  text-wrap: wrap;
}

.intro p {
  width: 100%;
  min-width: 0;
  max-width: none;
  white-space: normal;
  text-wrap: wrap;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 300;
  line-height: 1.625;
  color: hsl(0 0% 13% / .8);
}

.action,
.ask {
  border-radius: 0;
  min-height: 48px;
  padding: 16px 24px;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
}

.action {
  background: var(--ink);
  color: var(--page);
}

.action:hover {
  background: hsl(0 0% 13% / .85);
}

.ask {
  box-shadow: none;
}

.add-memory button,
.dialog-top button {
  border-radius: 0;
  font-weight: 500;
}

.tab strong {
  font-weight: 500;
}

.contact-dialog {
  background: var(--page);
  border-color: var(--line);
}

.dialog-top h2 {
  letter-spacing: -.025em;
}

.contact-dialog p {
  font-weight: 300;
  line-height: 1.625;
}

/* Share the Northline hero's charcoal surfaces across all three examples. */
.experience {
  background: #0d121c;
  border-color: #29384e;
}

.stage {
  background: radial-gradient(ellipse at 75% 43%, #202735 0, #111721 32%, #0b1019 67%);
}

.stage-header {
  background: #0d121ce8;
  border-bottom-color: #323846;
}

.foot,
.source-card,
.archive-node,
.stage[data-phase=archive] .dock-label {
  background: #151c28;
}

.foot {
  border-top-color: #323846;
}

.stage[data-story=true] .source-area {
  background: linear-gradient(90deg, #151c28e6, #151c2850);
  border-color: #323846;
}

.stage[data-story=true] .source-card img,
.stage[data-phase=archive] .source-card img {
  background: #0b1019;
}

.archive-node:hover,
.add-memory button:hover {
  background: #292f3b;
}

.add-memory button,
.context-readout strong {
  background: #1b2230;
}

.tabs {
  background: #ebeae7;
  border-color: var(--line);
}

.tab {
  color: #424750;
}

.tab span {
  color: #626874;
}

.tab:hover {
  background: #dfdfdc;
}

.tab[aria-selected=true] {
  background: #151c28;
  border-color: #29384e;
}

@media (max-width: 767px) {
  .wrap {
    width: calc(100% - 48px);
  }

  .intro {
    gap: 20px;
    margin-bottom: 32px;
  }

  .archive-actions .ask {
    min-height: 44px;
    padding: 10px 8px;
  }
}
