/* Page layout: header and footer come from the kit; this places the intro
   and the demo card on the same column as the header. */

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.intro,
.demo {
  width: min(var(--su-page-width), 100% - 2 * var(--su-gutter));
  margin-inline: auto;
}

/* "// In China, one hand counts to ten…" */
.intro {
  margin-top: 28px;
  color: var(--su-text-2);
  font-size: 17px;
  line-height: 1.5;
}

.intro__slashes {
  color: var(--brand-text);
  font-family: var(--mono);
}

.demo {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
  margin-bottom: 32px;
}

.button {
  appearance: none;
  padding: 8px 14px;
  border: 1px solid var(--su-line);
  border-radius: var(--su-radius);
  background: transparent;
  color: var(--text);
  font: 500 13px var(--mono);
  cursor: pointer;
}

.button:hover {
  background: var(--su-surface-2);
}

/* On a phone the camera, the prediction and the hands should all fit on one
   screen, so everything below the header is tighter than on a desktop. */
@media (max-width: 860px) {
  .intro {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
  }

  .demo {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 10px;
  }
}
