/* The landing page: static, and apart from the review's own styles. */

body.landing {
  overflow: auto;
  padding: 0;
  font: 1.125rem/1.5 system-ui, sans-serif;
  color: light-dark(#1d1d1f, #d6d8dc);
}

.landing header,
.landing main {
  box-sizing: border-box;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.landing header {
  padding-top: clamp(3rem, 14vh, 8rem);
  padding-bottom: 3rem;
}

.landing h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
}

.landing .pitch {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.landing .lede {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  color: light-dark(#5f6268, #9aa0a9);
}

.landing .own {
  margin: 1.5rem 0 0;
  font-size: 1rem;
}

.landing a {
  color: light-dark(#1f5fa8, #7db4ec);
}

.landing .cases {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0 0 4rem;
  list-style: none;
}

.landing .case {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.25rem;
  border: 1px solid light-dark(#b9bbc0, #3b3f47);
  border-radius: 0.5rem;
  background: light-dark(#fdfdfc, #1e2025);
}

.landing .case h3 {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: light-dark(#5f6268, #9aa0a9);
}

.landing .pain {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.landing .label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: light-dark(#5f6268, #9aa0a9);
}

.landing blockquote {
  margin: 0 0 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid light-dark(#b9bbc0, #3b3f47);
  font: 0.9rem/1.5 ui-monospace, "JetBrains Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

.landing .prompt {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: light-dark(#5f6268, #9aa0a9);
}

.landing .copy {
  display: flex;
  flex-direction: column;
}

.landing .demo {
  position: relative;
  container-type: inline-size;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid light-dark(#b9bbc0, #3b3f47);
  border-radius: 0.4rem;
  pointer-events: none;
}

/* The review, small: its sizes follow its font size. Only the proposals and
   the text are worth showing. */
.landing .demo .fly-root { font-size: 2.4cqw; }

/* The review fills the box and does not size it, so what it shows, which
   differs from proposal to proposal, never moves the page. */
.landing .demo > .fly-root { position: absolute; inset: 0; height: auto; }
.landing .demo .log,
.landing .demo .status,
.landing .demo .keys { display: none; }

/* All the choices show, in text sized to fit (ChoiceSizing), so they take up to
   half the review; the key legend would only take their room. */
.landing .demo .menu { max-height: 50%; }

@media (max-width: 52rem) {
  .landing .case { grid-template-columns: minmax(0, 1fr); }
  .landing .demo { min-height: 0; height: 18rem; }
}

.landing .try {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.4rem 1rem;
  border-radius: 0.4rem;
  background: light-dark(#1f5fa8, #7db4ec);
  color: light-dark(#ffffff, #10141a);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}

/* More of the text, at a size the choices below do not share. */
.landing .demo .document {
  max-width: none;
  font-size: 0.75em;
}
