/* The start page: one cloud of points in the middle, the line of thought beneath it, and the way in. */

:root {
  --mark: #32cd32;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --mark: #1f9d2f;
  }
}
:root[data-theme='light'] {
  --mark: #1f9d2f;
}

.splash {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background:
    radial-gradient(120% 80% at 50% 38%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 62%),
    var(--editor);
}
.splash a.btn {
  text-decoration: none;
  color: var(--fg);
}
.splash a.btn.pri {
  color: var(--on-accent);
}
.sp-top {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  color: var(--muted);
  font-size: 12px;
}
.sp-top b {
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
}
.sp-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 20px;
}

/* the cloud */
.sp-stage {
  position: relative;
  width: min(960px, 100%);
  flex: 1 1 300px;
  min-height: 230px;
  max-height: 480px;
}
#cloud {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: manipulation;
}
.sp-seen {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.sp-seen .seg button {
  height: 26px;
  padding: 0 12px;
}
#sp-line {
  margin: 0;
  height: 20px;
  color: var(--muted);
  transition:
    opacity 0.25s,
    transform 0.25s;
}
#sp-line.out {
  opacity: 0;
  transform: translateY(4px);
}

/* the line of thought and the way in */
.sp-copy {
  flex: none;
  max-width: 660px;
  text-align: center;
  margin-top: clamp(18px, 4vh, 40px);
}
.sp-copy h1 {
  margin: 0;
  font-size: clamp(30px, 5.4vw, 50px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.sp-copy h1 em {
  font-style: normal;
  color: var(--mark);
}
.sp-copy p {
  margin: 14px auto 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}
.sp-acts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.sp-acts .btn {
  height: 36px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 6px;
}

@media (max-height: 620px) {
  .sp-stage {
    flex-basis: 200px;
    min-height: 170px;
  }
  .sp-copy p {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #sp-line {
    transition: none;
  }
}
