/* ═══ Full-bleed slides ═══
 *
 * A full-bleed slide makes one photograph the stage. The image sits on black,
 * larger than the 1920 × 1080 canvas where the source has the pixels for it,
 * and the text is laid over a scrim on the left. A button opens the same image
 * at full resolution in the viewer (deck-cinema.js).
 *
 * The pattern is shared; the art direction is not. Each slide places its own
 * image by setting four custom properties on its <section>:
 *
 *   --fb-w    width of the image, in design pixels
 *   --fb-x    its left edge   (may be negative, or run past 1920)
 *   --fb-y    its top edge    (may be negative, or run past 1080)
 *   --fb-ar   its aspect ratio, as width / height
 *
 * and may narrow or widen the scrim with --fb-scrim, or match an image whose
 * background is not true black with --fb-space and --fb-space-rgb.
 *
 *   <section class="fb" style="--fb-w:1430px; --fb-x:805px; --fb-y:-155px; --fb-ar:1/1">
 *     <div class="fb-plate"><img …></div>
 *     <div class="fb-scrim"></div>
 *     <div class="fb-copy">
 *       <div class="fb-kicker">…</div> <h2>…</h2> <p class="fb-hook">…</p>
 *       <dl class="fb-ledger"><div><dt>…</dt><dd>value<span class="fb-note">note</span></dd></div>…</dl>
 *     </div>
 *     <div class="fb-aside">
 *       <button class="fb-explore" data-zoom="…" data-zoom-w="…" data-zoom-h="…">Explore the image</button>
 *       <p class="fb-credit">…</p>
 *     </div>
 *   </section>
 *
 * No text is set smaller than 24px, the deck's floor for a 1920 × 1080 design.
 * See docs/rfcs/0005-full-bleed-decks.md.
 */

.fb {
  /* The black the photograph itself sits on. Slide and scrim both use it, so
     the edge of the image is never visible against its surroundings. Most
     spacecraft frames are true black; a slide whose image is not (Saturn's
     mosaic is #030303) overrides both properties to match. */
  --fb-space: #000;
  --fb-space-rgb: 0, 0, 0;
  --fb-ink: #f0ece5;
  --fb-ink-2: #c9c2b6;
  --fb-ink-3: #958e82;

  background: var(--fb-space);
  color: var(--fb-ink);
  font-family: var(--font-body);
}

/* ── The image ─────────────────────────────────────────────────────────── */

.fb-plate {
  position: absolute;
  left: var(--fb-x, 0px);
  top: var(--fb-y, 0px);
  width: var(--fb-w, 1920px);
  aspect-ratio: var(--fb-ar, 16 / 9);
}
.fb-plate img { display: block; width: 100%; height: 100%; }

.fb-scrim {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--fb-scrim, 1100px);
  pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--fb-space-rgb), .96) 0%, rgba(var(--fb-space-rgb), .94) 22%, rgba(var(--fb-space-rgb), .80) 58%, rgba(var(--fb-space-rgb), 0) 100%);
}

/* ── The text ──────────────────────────────────────────────────────────── */

.fb-copy {
  position: absolute;
  left: 110px;
  top: 0;
  bottom: 0;
  width: 780px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fb-kicker {
  font-size: 24px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-400);
  margin-bottom: 16px;
}
.fb h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 150px;
  line-height: 1; /* room for the descenders of Jupiter and Mercury */
  letter-spacing: -0.025em;
  margin: 0 0 30px -5px;
}
.fb-hook { margin: 0 0 24px; font-size: 26px; line-height: 1.45; color: var(--fb-ink-2); max-width: 24em; }

.fb-ledger { margin: 0; border-top: 1px solid rgba(240, 236, 229, .5); font-feature-settings: 'tnum'; }
.fb-ledger > div {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 20px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(240, 236, 229, .16);
  align-items: baseline;
}
.fb-ledger > div:last-child { border-bottom: 0; }
.fb-ledger dt { font-size: 24px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fb-ink-3); }
.fb-ledger dd { margin: 0; font-size: 26px; line-height: 1.28; }

/* A fact is a value and, optionally, a quieter note beside it. */
.fb-note { color: var(--fb-ink-3); font-size: 24px; margin-left: .5em; white-space: nowrap; }
.fb-v { white-space: nowrap; }
/* When value and note cannot share a line, stack them deliberately. */
.fb-stack .fb-note { display: block; margin-left: 0; white-space: normal; }

/* Saturn's ring profile, drawn as a strip under the Rings row. */
.fb-ringstrip {
  display: block;
  width: 100%;
  height: 14px;
  margin: 8px 0 4px;
  object-fit: fill;
  background: #171614;
  animation: none !important; /* not a photograph: no Ken Burns */
}

/* ── Credit and the viewer control ─────────────────────────────────────── */

.fb-aside { position: absolute; right: 84px; bottom: 56px; width: 560px; text-align: right; }
/* The credit sits on its own dark plate: a caption laid straight over a
   photograph is unreadable wherever the photograph is bright. */
.fb-credit {
  display: inline-block;
  margin: 14px 0 0;
  padding: 10px 18px;
  border-radius: 16px;
  font-size: 24px;
  line-height: 1.35;
  text-align: right;
  color: var(--fb-ink-2);
  background: rgba(8, 8, 8, .68);
}
.fb-explore {
  -webkit-appearance: none;
  appearance: none;
  cursor: zoom-in;
  font: inherit;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: inherit;
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(12, 11, 10, .66);
  border: 1px solid rgba(240, 236, 229, .28);
}
.fb-explore:hover { border-color: var(--color-accent-400); color: var(--color-accent-400); }
.fb-explore:focus-visible { outline: 2px solid var(--color-accent-400); outline-offset: 2px; }
