/*
  The smaller pages: privacy, terms, the license, releases and 404.
  No scripts and no scene: the bar sits at the top as it does without
  JavaScript on the landing page, then one column of reading, then a short
  footer without the Moon. Loaded after base.css, hero/hero.css (the bar)
  and sections.css (tables and footer).
*/

/* ================================================================= reading */

.plain {
  align-content: start;
  padding-top: clamp(8rem, 5rem + 8vw, 12rem);
  padding-bottom: var(--section-gap);
}

.plain-title {
  margin: 0;
  text-wrap: balance;
}

.plain-lead {
  max-width: 34ch;
  margin-top: var(--heading-gap);
  text-wrap: pretty;
}

/* The draft mark on pages that are not in force yet. */
.plain-status {
  margin-top: var(--s3);
  color: var(--ink-2);
}

.plain-body {
  max-width: 64ch;
  margin-top: var(--s6);
}

.plain-body > * + * {
  margin-top: var(--s2);
}

.plain-body h2 {
  margin-top: var(--s6);
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: 1.25;
}

.plain-body h2 + * {
  margin-top: var(--s2);
}

.plain-body > :first-child {
  margin-top: 0;
}

.plain-body ul {
  padding-left: 1.1em;
}

.plain-body li + li {
  margin-top: var(--s1);
}

.plain-body .table {
  margin-top: var(--s3);
}

@media (min-width: 64rem) {
  .plain-title,
  .plain-lead,
  .plain-status,
  .plain-body {
    grid-column: 1 / span 8;
  }
}

/* ================================================================ releases */

.releases {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  margin-top: var(--s6);
}

.release {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  padding-block: var(--s5) var(--s6);
}

.release-head {
  grid-column: 1 / -1;
  margin: 0;
}

.release-date {
  grid-column: 1 / -1;
  margin-top: var(--s1);
  color: var(--ink-2);
}

.release-body {
  grid-column: 1 / -1;
  max-width: 64ch;
  margin-top: var(--s4);
}

.release-body h3 {
  margin-top: var(--s4);
  color: var(--ink-2);
  font-weight: 500;
}

.release-body h3:first-child {
  margin-top: 0;
}

.release-body ul {
  margin-top: var(--s2);
  padding-left: 1.1em;
}

.release-body li + li {
  margin-top: var(--s2);
}

.release-body p + p,
.release-body p + ul,
.release-body ul + p {
  margin-top: var(--s2);
}

.release-body strong {
  font-weight: 500;
}

/* On wide screens the number stands to the left of its notes. */
@media (min-width: 64rem) {
  .release-head,
  .release-date {
    grid-column: 1 / span 4;
  }

  .release-head {
    grid-row: 1;
  }

  .release-date {
    grid-row: 2;
    align-self: start;
  }

  .release-body {
    grid-column: 5 / span 7;
    grid-row: 1 / span 3;
    margin-top: 0;
  }
}

/* ====================================================================== 404 */

.lost .plain {
  min-height: 70svh;
}

/* =================================================================== footer */

/* The short footer: the links and the year, no Moon and no name. */
.site-foot--page {
  min-height: 0;
  padding-top: var(--s5);
}

.site-foot--page .foot-line {
  margin-top: 0;
}

/* A fact the owner still has to fill in before the page goes live (S8
   checks that none is left). Loud on purpose. */
.fill {
  padding: 0 0.2em;
  background: var(--ink);
  color: var(--ground);
}
