/* ==========================================================================
   Schemiql — page composition.

   The app is a narrow index beside a wide detail pane. The page is built the
   same way: a slim column of text on the left, the views running wide on the
   right and bleeding off the edge, because a schema always continues past what
   fits on screen.
   ========================================================================== */

:root {
  --accent: #8B97FF;

  --gutter: clamp(1.25rem, 6vw, 4rem);
  --page: 76rem;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* --- Masthead ------------------------------------------------------------ */

.top { padding-top: clamp(3rem, 10vh, 6rem); }

.top .home {
  display: inline-block;
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  margin-bottom: clamp(2.5rem, 8vh, 5rem);
}
.top .home:hover { color: var(--ink); }

/* Set in the monospace face: it is a developer's tool, and the name is a pun
   on a query language. The type should say so before the copy does. */
.title {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.lede {
  margin: clamp(1.1rem, 2.5vw, 1.6rem) 0 0;
  max-width: 28ch;
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: balance;
}

.top .platforms { display: block; margin-top: 1.4rem; }

/* --- Index beside detail ------------------------------------------------- */

.split {
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  display: grid;
  grid-template-columns: 20rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.side p { margin: 0 0 1rem; color: var(--ink-soft); font-size: 1rem; }
.side p.first { color: var(--ink); font-size: 1.1rem; line-height: 1.5; }

/* Points set as a schema index: monospace label, plain description under it. */
.points { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.points li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.points li:last-child { border-bottom: 1px solid var(--rule); }
.points strong {
  display: block;
  font: 500 0.72rem/1.6 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.get { margin-top: 2rem; }

.privacy-line {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.privacy-line a { color: var(--ink-soft); }

/* The views run off the right edge: a schema is always wider than the window. */
.views { margin-right: calc(-1 * var(--gutter)); display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.views img { width: 100%; max-width: 1388px; }

.views figure { margin: 0; }

@media (max-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .views { margin-inline: calc(-1 * var(--gutter)); }
}
