/* deck.css: the deck page, /deck/. Loaded after site.css and built only from
   what that file already has: its tokens, its frame, its title, its pill, its
   footer. Nothing here is a new colour, font, radius or shadow. It is a file of
   its own so that no other page's stylesheet changes by a byte for this one. */

/* the same paper in the glass the document pages use: here the pill floats
   over slides, and 42% white over a slide's type is a smudge on it */
.deck-body .frame {
  background:
    linear-gradient(-75deg,
      rgba(255, 255, 255, 0.58),
      rgba(255, 255, 255, 0.80) 48%,
      rgba(255, 255, 255, 0.58)),
    rgba(247, 246, 244, 0.72);
}

/* One column, 1100px at most (the site's --measure), centred. The column is the
   container, so the gap between slides is measured off the slide itself. */
.deck-shell {
  position: relative;
  z-index: 1;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(112px, 14vh, 160px) var(--gutter) 0;
  container-type: inline-size;
}

/* the title and its one line on the left, the download beside them, their
   foot on the same line as the line's */
.deck-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(40px, 6vh, 64px);
}
.deck-say { min-width: 0; }
.deck-line {
  margin: clamp(12px, 1.8vh, 18px) 0 0;
  max-width: var(--read);
  font-size: var(--field);
  line-height: 1.5;
  color: var(--ink-body);
  text-wrap: pretty;
}
.deck-get { flex: 0 0 auto; }

/* Stacked in order, each at 16:9 across the whole column. A slide is a card:
   the card's radius, its ladder and its hairline, exactly as the home page sets
   one. The width and height attributes hold the box before a byte arrives, and
   the ground fills it until the picture does. */
.deck-slides {
  display: flex;
  flex-direction: column;
  /* about a quarter of a slide's height between one slide and the next (the
     founder found half too much): a slide is 56.25cqi tall, and its number
     takes 31px of the gap */
  gap: clamp(24px, 11cqi, 124px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.deck-slide { margin: 0; }
.deck-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-card);
  background: var(--ground);
  box-shadow: var(--ladder-lite), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
/* the site's smallest type, set the way it sets its markers */
.deck-slide figcaption {
  margin-top: 14px;
  font-size: var(--marker);
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--ink-quiet);
  font-variant-numeric: tabular-nums;
}

/* the footer closes the column the way it closes a document: one hairline */
.deck-body .foot {
  margin-top: clamp(56px, 10vh, 112px);
  border-top: 1px solid var(--hairline);
}

/* a finger gets 44px of the download without the pill changing its shape */
@media (pointer: coarse) {
  .deck-get { height: 44px; }
}

/* On a phone: full bleed less 16px each side, the download under the title at
   the column's width, and the slides closer together. */
@media (max-width: 700px) {
  .deck-shell { padding-inline: 16px; }
  .deck-head { flex-direction: column; align-items: stretch; gap: 22px; }
  .deck-get { justify-content: center; width: 100%; }
  .deck-slides { gap: 22px; }
  .deck-slide figcaption { margin-top: 10px; }
}
