/* What used to be the three inner pages: download, install, changelog.
 * They are the two sheets on the home page now (index.html #guide and
 * #log), so this is loaded there and nowhere else. */

.pagehead {
  padding-block: clamp(36px, 6vw, 72px) clamp(20px, 2.6vw, 30px);
  border-bottom: var(--rule) solid var(--k);
}

.pagehead h1 {
  font-size: clamp(32px, 6vw, 54px);
  margin-bottom: 12px;
}

.pagehead .lede {
  max-width: 36em;
}

/* The sticky bar must not land on the heading a jump link points at. */
section[id] {
  scroll-margin-top: calc(var(--chrome, 90px) + 12px);
}

/* A box for the one thing that must not be missed: marked by a heavy edge,
 * not by colour. */
.callout {
  border: var(--rule) solid var(--k);
  border-left-width: 10px;
  background: var(--w);
  padding: clamp(18px, 2.6vw, 26px);
}

.callout h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.callout p:last-of-type {
  margin-bottom: 0;
}

.filename {
  font-family: var(--mono);
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 500;
  word-break: break-all;
  margin: 10px 0 4px;
}

.filemeta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--g3);
  margin-bottom: 12px;
}

pre.cmd {
  margin: 12px 0 0;
  padding: 12px 14px;
  overflow-x: auto;
  background: var(--sunk);
  border: var(--hair) solid var(--g4);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
}

pre.cmd code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

/* A still of one panel beside the text. */
.figure {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: 0;
}

.figure .pw3 {
  width: min(100%, 240px);
  height: auto;
}

.figure figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--g3);
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

@media (max-width: 720px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split .figure {
    order: -1;
  }
}

/* Changelog: a ruled timeline. */
.tl {
  display: grid;
  margin: 0 0 0 6px;
  padding: 0;
  border-left: var(--rule) solid var(--k);
}

.tl > li {
  position: relative;
  padding: 0 0 clamp(24px, 3.5vw, 36px) clamp(20px, 3vw, 30px);
  list-style: none;
}

.tl > li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 7px;
  width: 12px;
  height: 12px;
  background: var(--w);
  border: var(--rule) solid var(--k);
}

.tl > li.now::before {
  background: var(--k);
}

.tl > li:last-child {
  padding-bottom: 0;
}

.tl .when {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--g3);
  display: block;
  margin-bottom: 3px;
}

.tl h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.tl ul {
  margin: 8px 0 0;
  padding-left: 1.1em;
  display: grid;
  gap: 5px;
  color: var(--g2);
  font-size: 14px;
}

.tl p {
  color: var(--g2);
  font-size: 14px;
  margin-bottom: 0;
}

.vtag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  border: var(--hair) solid var(--g4);
  padding: 1px 6px;
  margin-left: 7px;
  color: var(--g3);
  vertical-align: 2px;
  font-weight: 400;
}
