/* Parable of the Polygons, by Vi Hart and Nicky Case (2014), played from its
 * own files in polygons/ (js/playables.js in the engine runs the frames).
 *
 * These slides keep the post's look: its light grey page (#eee), which its
 * pictures (the "drag & drop" arrow) are drawn on, with its bigger
 * simulations and its header on dark bands (#222). They stay light in dark
 * mode, since the post's pictures can't change colour. The words are the
 * post's own. They're set in Nunito Sans, the decks' stand-in for Gill Sans,
 * because the post is full of numbers (50%, 1/3, 1971) and in Gill Sans a 1
 * reads as a capital I.
 *
 * The talk (talk/index.html) shows the same slides and uses this sheet too.
 */
.s-paper-intro .deck-credit { font-size: 24px; line-height: 1.4; color: var(--ink-2); margin-top: 24px; }
.slide.pp {
  color-scheme: light; background: #eee; color: #1d1e20; padding: 44px 96px 40px;
  --ink: #1d1e20; --ink-2: #45474b; --ink-3: #75777b; --line: #d4d4d4; --accent: #3d63bf; --accent-2: #3d63bf;
  --f-head: "Nunito Sans", system-ui, -apple-system, sans-serif; --f-body: var(--f-head); font-family: var(--f-body);
}
.pp .post { font-size: 34px; line-height: 1.42; }
.pp .post + .post { margin-top: 14px; }
.pp h2 { font-size: 50px; line-height: 1.18; margin-bottom: 12px; }
.pp h2.bold { font-weight: 600; }
/* The post's instructions: bold, and centred over what they're about. */
.pp .do { text-align: center; font-size: 38px; font-weight: 600; line-height: 1.25; margin: 22px 0 0; }
.pp .hint { text-align: center; font-size: 25px; font-weight: 600; margin-top: 6px; }

/* The grey lines the post draws between neighbouring examples */
.pp-divider { flex: none; width: 4px; height: 290px; margin: 6px 30px 0; background: #bbb; }
.pp-divider.wide { width: 6px; height: 400px; margin: 12px 60px 0; }

/* A dark band behind a simulation, as in the post, out to the slide's
   sides and bottom. */
.pp-band { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 26px -96px -40px; padding: 20px 40px; background: #222; }
.pp-band .play-room { margin-top: 0; }
/* A simulation's slide: the post's words above it are set smaller and
   closer, since every pixel of height they take makes the simulation
   smaller. */
.slide.pp.pp-sim { padding-top: 28px; }
.pp-sim .post { font-size: 26px; line-height: 1.38; }
.pp-sim .do { font-size: 30px; margin-top: 6px; }
.pp-sim .pp-band { margin-top: 14px; padding: 12px 40px; }

/* Text on the left, a tall simulation on a dark band down the right. */
.slide.pp.pp-side { flex-direction: row; padding: 0; }
.pp-side .pp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 60px 64px 60px 96px; }
.pp-side .pp-band { flex: none; width: 790px; margin: 0; padding: 28px 40px; }
.pp-side .post { font-size: 38px; }
.pp-side .do, .pp-side .hint { text-align: left; }
.pp-side .do { font-size: 42px; margin-top: 44px; }
.pp-side .hint { font-size: 27px; margin-top: 12px; }

/* The post's one big line, on its own. */
.slide.pp.pp-statement { justify-content: center; padding: 60px 160px; }
.pp-statement h2 { font-size: 76px; line-height: 1.12; margin: 0; }
.pp-statement .post { font-size: 38px; color: var(--ink-2); margin-top: 40px; }

/* The post's header, which fills a black slide, and where the post lives. */
.slide.pp.pp-banner { background: #000; padding: 0; }
.pp-banner .play-room { position: absolute; inset: 0; margin: 0; }
.pp-source { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; font-size: 24px; color: #8a8a8a; }
.pp-source a { color: inherit; }
