@hypersocial/decks-cli 0.9.23 → 0.9.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/package.json +1 -1
  2. package/skills/hyperdecks/SKILL.md +124 -67
  3. package/skills/hyperdecks/chat.md +11 -8
  4. package/skills/hyperdecks/terminal.md +83 -0
  5. package/src/bars.mjs +268 -0
  6. package/src/brand.mjs +51 -8
  7. package/src/check.mjs +333 -20
  8. package/src/checkRules.mjs +677 -27
  9. package/src/commands.mjs +171 -31
  10. package/src/deckSlug.mjs +41 -0
  11. package/src/embedCapture.mjs +126 -0
  12. package/src/embedSources.mjs +252 -0
  13. package/src/embedsGuide.mjs +36 -0
  14. package/src/export-video.mjs +20 -3
  15. package/src/files.mjs +36 -0
  16. package/src/guide.mjs +93 -13
  17. package/src/hosted.mjs +18 -8
  18. package/src/iconAliasNames.mjs +70 -0
  19. package/src/iconChoice.mjs +97 -0
  20. package/src/iconSets.mjs +89 -0
  21. package/src/iconSlots.mjs +48 -0
  22. package/src/icons.mjs +285 -45
  23. package/src/iconsCli.mjs +76 -0
  24. package/src/layoutRoutes.mjs +97 -0
  25. package/src/layouts.mjs +9 -4
  26. package/src/mediaPreviews.mjs +3 -1
  27. package/src/narrate.mjs +31 -4
  28. package/src/opening.mjs +9 -3
  29. package/src/ops.mjs +125 -0
  30. package/src/photosGuide.mjs +47 -0
  31. package/src/picturesGuide.mjs +54 -0
  32. package/src/play.mjs +3 -2
  33. package/src/presenter.mjs +3 -1
  34. package/src/preview-capture.mjs +70 -1
  35. package/src/release.mjs +13 -5
  36. package/src/runtime.mjs +9 -2
  37. package/src/scaffold.mjs +73 -13
  38. package/src/source.mjs +86 -14
  39. package/src/stockMedia.mjs +299 -0
  40. package/src/themeCli.mjs +41 -0
  41. package/src/themes.mjs +345 -0
  42. package/templates/icons/material.LICENSE +202 -0
  43. package/templates/icons/material.json.gz +0 -0
  44. package/templates/icons/phosphor.LICENSE +21 -0
  45. package/templates/icons/phosphor.json.gz +0 -0
  46. package/templates/icons/tabler.LICENSE +21 -0
  47. package/templates/icons/tabler.json.gz +0 -0
  48. package/templates/layouts/_deck.html +231 -41
  49. package/templates/layouts/bento.html +76 -0
  50. package/templates/layouts/chart.html +6 -4
  51. package/templates/layouts/closer.html +13 -4
  52. package/templates/layouts/compare.html +13 -4
  53. package/templates/layouts/cover-band.html +13 -9
  54. package/templates/layouts/cover-frame.html +13 -7
  55. package/templates/layouts/cover-poster.html +9 -5
  56. package/templates/layouts/cover-split.html +19 -7
  57. package/templates/layouts/cover-type.html +2 -1
  58. package/templates/layouts/embed.html +93 -0
  59. package/templates/layouts/features.html +18 -10
  60. package/templates/layouts/funnel.html +62 -0
  61. package/templates/layouts/hero.html +41 -23
  62. package/templates/layouts/lanes.html +63 -0
  63. package/templates/layouts/loop.html +81 -0
  64. package/templates/layouts/number.html +3 -2
  65. package/templates/layouts/phone-stage.html +78 -0
  66. package/templates/layouts/phones.html +1 -0
  67. package/templates/layouts/picture-full.html +58 -0
  68. package/templates/layouts/portrait.html +53 -0
  69. package/templates/layouts/product.html +7 -6
  70. package/templates/layouts/quote.html +5 -3
  71. package/templates/layouts/rail.html +74 -0
  72. package/templates/layouts/scorecard.html +71 -0
  73. package/templates/layouts/screens.html +85 -0
  74. package/templates/layouts/sentence.html +39 -0
  75. package/templates/layouts/split.html +35 -7
  76. package/templates/layouts/spotlight.html +80 -0
  77. package/templates/layouts/stack.html +84 -0
  78. package/templates/layouts/staircase.html +78 -0
  79. package/templates/layouts/strike.html +46 -0
  80. package/templates/layouts/tap-through.html +73 -0
  81. package/templates/layouts/team.html +21 -6
  82. package/templates/layouts/timeline.html +21 -8
  83. package/templates/layouts/two-bars.html +53 -0
  84. package/templates/layouts/two-by-two.html +75 -0
  85. package/templates/layouts/video-beats.html +66 -0
  86. package/templates/layouts/video-full.html +62 -0
  87. package/templates/layouts/wall.html +109 -0
  88. package/templates/layouts/zoom.html +144 -0
  89. package/templates/narrated-deck.html +12 -7
  90. package/templates/script.md +2 -2
  91. /package/templates/icons/{LICENSE → lucide.LICENSE} +0 -0
@@ -1,6 +1,7 @@
1
1
  <!--
2
2
  layout: team
3
3
  summary: Up to four people, a face, a name and a role each; the presenter flies under each as it names them.
4
+ brief: Up to four people, a face, a name and a role each.
4
5
  use: who is behind it, who to talk to. Use real photos only with permission; initials otherwise.
5
6
  slot: bottom-right
6
7
  presenter: stage
@@ -10,7 +11,7 @@ script: Meet the team. [go: #__ID__-p1] Ana builds it. [go: #__ID__-p2] Sam sell
10
11
  -->
11
12
  <style>
12
13
  .l-team .people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 20px; }
13
- .l-team .person { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px 26px; border-radius: 28px; background: var(--card); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent); }
14
+ .l-team .person { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px 26px; border-radius: calc(28 * var(--round)); background: var(--card); box-shadow: 0 0 0 calc(1 * var(--line)) color-mix(in srgb, var(--ink) 10%, transparent); }
14
15
  /* Swap the span for an <img class="face"> of your file with their permission. */
15
16
  .l-team .face { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 8px; border-radius: 50%; object-fit: cover; background: var(--accent); font: 700 34px var(--font); }
16
17
  .l-team .person:nth-child(2) .face { background: var(--accent-2); }
@@ -18,11 +19,25 @@ script: Meet the team. [go: #__ID__-p1] Ana builds it. [go: #__ID__-p2] Sam sell
18
19
  .l-team b { font-size: 30px; letter-spacing: -.02em; }
19
20
  .l-team small { font: var(--t-label) var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
20
21
  @media (max-width: 650px) {
21
- .l-team .people { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
22
- .l-team .person { padding: 12px; border-radius: 16px; gap: 2px; }
23
- .l-team .face { width: 48px; height: 48px; font-size: 17px; margin-bottom: 4px; }
24
- .l-team b { font-size: 16px; }
25
- .l-team small { font-size: 10px; }
22
+ /* Grow only into height that is free. The people take the height under the title, two to a row, each row an equal
23
+ share but never shorter than its card's content; each face takes what its card leaves (a square, 48px to 120px),
24
+ so a face shrinks before a card runs on; a slide that needs more than that runs past the card where check sees it. */
25
+ .l-team .people { flex: 1 1 0; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(min-content, 1fr); gap: 8px; margin-top: 4px; }
26
+ .l-team .person { justify-content: center; padding: 12px; border-radius: calc(16 * var(--round)); gap: 2px; }
27
+ .l-team .face { flex: 1 1 0; width: auto; height: auto; min-height: 48px; max-height: 120px; aspect-ratio: 1; margin-bottom: 4px; font-size: var(--initials, 17px); }
28
+ .l-team b { font-size: var(--b, 16px); }
29
+ .l-team small { font-size: var(--small, 10px); min-height: var(--role-lines, 0); }
30
+ /* Up to four people: the words step up (14px roles, two lines' room so the faces in a row match). Five or more keep
31
+ the sizes and rows they had (face 48px, name 16px, role 10px, each row as tall as its own cards: equal rows would
32
+ all take the tallest card's height and run on sooner), except five or six on a silent deck, which have the room
33
+ to grow like four. The silent case is a style query, so a browser without one keeps the sizes that fitted. */
34
+ .l-team .people:not(:has(> :nth-child(5))) { --b: var(--t-lead); --small: var(--t-label); --initials: 28px; --role-lines: 2lh; }
35
+ .l-team .people:has(> :nth-child(5)) { grid-auto-rows: auto; align-content: start; }
36
+ .l-team .people:has(> :nth-child(5)) .face { flex: none; height: 48px; }
37
+ @container style(--hd-phone-presenter: 0) {
38
+ .l-team .people:has(> :nth-child(5)):not(:has(> :nth-child(7))) { grid-auto-rows: minmax(min-content, 1fr); align-content: normal; --b: var(--t-lead); --small: var(--t-label); --initials: 28px; --role-lines: 2lh; }
39
+ .l-team .people:has(> :nth-child(5)):not(:has(> :nth-child(7))) .face { flex: 1 1 0; height: auto; }
40
+ }
26
41
  }
27
42
  /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
28
43
  @media (min-width: 651px) {
@@ -1,7 +1,8 @@
1
1
  <!--
2
2
  layout: timeline
3
3
  summary: Four milestones on a line, left to right, the presenter flying under each in turn.
4
- use: history, a roadmap, a process over time. Label future steps "Proposed" if not agreed.
4
+ brief: Four milestones on a line, the presenter flying under each.
5
+ use: history, a roadmap, a process over time. Label future steps "Proposed" if not agreed. Steps in order, undated, none bigger than another: rail; each step standing on the one before: staircase; dated milestones or a plan over time: timeline.
5
6
  slot: bottom-right
6
7
  presenter: stage
7
8
  nopresenter: The title and milestones centre vertically instead of leaving a strip below for the presenter.
@@ -10,26 +11,38 @@ script: It started [go: #__ID__-m1] with a sketch. Then [go: #__ID__-m2] a first
10
11
  -->
11
12
  <style>
12
13
  .l-timeline .line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 28px; position: relative; }
13
- .l-timeline .line::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
14
- .l-timeline li { list-style: none; position: relative; padding: 48px 26px 26px; border-radius: 24px; }
15
- .l-timeline li::before { content: ""; position: absolute; left: 26px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px var(--paper); }
16
- .l-timeline li.is-next::before { background: var(--paper); box-shadow: inset 0 0 0 4px var(--ink), 0 0 0 6px var(--paper); }
14
+ .l-timeline .line::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: calc(2 * var(--round)); background: color-mix(in srgb, var(--ink) 16%, transparent); }
15
+ .l-timeline li { list-style: none; position: relative; padding: 48px 26px 26px; border-radius: calc(24 * var(--round)); }
16
+ .l-timeline li::before { content: ""; position: absolute; left: 26px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 calc(6 * var(--line)) var(--paper); }
17
+ .l-timeline li.is-next::before { background: var(--paper); box-shadow: inset 0 0 0 calc(4 * var(--line)) var(--ink), 0 0 0 calc(6 * var(--line)) var(--paper); }
17
18
  .l-timeline time { display: block; font: 700 var(--t-label) var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
18
19
  .l-timeline b { display: block; font-size: 32px; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 8px; }
19
20
  .l-timeline p { font-size: 20px; line-height: 1.3; opacity: .7; }
20
21
  @media (max-width: 650px) {
21
- .l-timeline .line { grid-template-columns: 1fr; gap: 4px; margin-top: 4px; padding-left: 26px; }
22
+ /* The steps spread down the free height (each at most 130px, never shorter than its own words), the line running
23
+ the length of them. A flex column, not 1fr rows: those make every step as tall as the tallest. */
24
+ .l-timeline .line { flex: 1 1 0; min-height: auto; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding-left: 26px; }
25
+ .l-timeline .line > li { flex: 1 1 auto; max-height: 130px; }
22
26
  .l-timeline .line::before { left: 7px; right: auto; top: 6px; bottom: 6px; width: 3px; height: auto; }
23
27
  .l-timeline li { padding: 4px 0 8px 8px; border-radius: 0; }
24
- .l-timeline li::before { left: -26px; top: 6px; width: 15px; height: 15px; box-shadow: 0 0 0 4px var(--paper); }
28
+ .l-timeline li::before { left: -26px; top: 6px; width: 15px; height: 15px; box-shadow: 0 0 0 calc(4 * var(--line)) var(--paper); }
25
29
  .l-timeline time { margin-bottom: 2px; }
26
30
  .l-timeline b { font-size: 18px; margin-bottom: 2px; }
27
- .l-timeline p { font-size: 13px; }
31
+ .l-timeline p { font-size: var(--t-label); }
28
32
  }
29
33
  /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
30
34
  @media (min-width: 651px) {
31
35
  :root.hd-no-presenter .l-timeline { justify-content: center; }
32
36
  }
37
+ /* Icon slot (optional): an icon above each milestone's date (hyperdecks icons search <word> --for timeline). */
38
+ .l-timeline li { --icon: 44; }
39
+ .on-accent.l-timeline li { --icon-fill: var(--icon-tile-accent, var(--card)); --icon-fg: var(--icon-ink-accent, var(--ink)); }
40
+ .l-timeline li > .icon { margin-bottom: 14px; }
41
+ @media (max-width: 650px) {
42
+ .l-timeline li { --icon: 24; }
43
+ .l-timeline li:has(> .icon) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-content: start; }
44
+ .l-timeline li > .icon { grid-row: span 3; margin: 0; }
45
+ }
33
46
  </style>
34
47
  <section class="slide l-timeline" id="__ID__" data-chapter="How we got here" data-note="Source: name where each date comes from.">
35
48
  <div class="kicker">How we got here</div>
@@ -0,0 +1,53 @@
1
+ <!--
2
+ layout: two-bars
3
+ summary: Two quantities as two bars, each with its label and its number, the second in the accent: one against the other.
4
+ brief: Two quantities as two bars, a label and a number each.
5
+ says: it changed
6
+ needs: 2 numbers
7
+ use: before and after, them and us, last year and this one, when the gap between two numbers is the point. Real numbers only, each from its source in data-note. Set each bar's length as --v on its .bar, from 0 to 1 (its value over the larger one, or over a full scale such as 100%). Each label under about 40 characters; each number six characters at most (61%, $12.4M, 1,240). For more than two use chart. A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the bars, clear of the presenter.
8
+ slot: bottom-right
9
+ presenter: stage
10
+ nopresenter: The bars take the full width of the slide.
11
+ cues: [look: #__ID__-b1] at the first number, [go: #__ID__-b2] at the second, then [go: slot].
12
+ script: A PDF in an email gets finished [look: #__ID__-b1] about one time in five. A narrated deck: [go: #__ID__-b2] three times as often. [go: slot]
13
+ -->
14
+ <style>
15
+ /* The two bars share a scale across a column that ends left of the presenter's corner (the stage presenter at m reaches
16
+ 1064px across); each number sits at its bar's end, in room kept for about six characters at its size (--num-room),
17
+ so a full bar's number still ends inside the column (check --layout warns on a longer one). --v: 0 to 1. */
18
+ .l-two-bars .bars { --num-room: calc(var(--t-title) * 3.4 + 24px); list-style: none; display: flex; flex-direction: column; gap: 64px; max-width: 980px; margin: auto 0; }
19
+ .l-two-bars .bars li { display: flex; flex-direction: column; gap: 12px; }
20
+ .l-two-bars .lab { font-size: var(--t-lead); letter-spacing: -.01em; font-weight: 700; line-height: 1.15; }
21
+ .l-two-bars .row { display: flex; align-items: center; gap: 24px; }
22
+ .l-two-bars .bar { --v: .5; flex: none; width: calc(min(1, max(0.02, var(--v))) * (100% - var(--num-room))); height: 116px; border: calc(3 * var(--line)) solid var(--ink); border-radius: var(--bar-round); background: color-mix(in srgb, var(--ink) 14%, var(--paper)); box-shadow: calc(8 * var(--drop-x)) calc(8 * var(--drop-y)) calc(8 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
23
+ .l-two-bars li:last-child .bar { background: var(--accent); }
24
+ .on-accent.l-two-bars li:last-child .bar { background: var(--card); }
25
+ .on-ink.l-two-bars .bar { box-shadow: calc(8 * var(--drop-x)) calc(8 * var(--drop-y)) calc(8 * var(--drop-blur)) color-mix(in srgb, var(--accent-2) var(--drop-mix), transparent); }
26
+ .l-two-bars .num { font-family: var(--display, var(--font)); font-weight: var(--display-weight, 700); letter-spacing: var(--display-tracking, -.045em); font-size: var(--t-title); line-height: 1; white-space: nowrap; }
27
+ @media (max-width: 650px) {
28
+ .l-two-bars .bars { --num-room: calc(var(--t-sub) * 4 + 10px); gap: 18px; max-width: none; margin: 0; }
29
+ .l-two-bars .bars li { gap: 6px; }
30
+ .l-two-bars .lab { font-size: var(--t-body); }
31
+ .l-two-bars .row { gap: 10px; }
32
+ .l-two-bars .bar { height: 38px; border-width: calc(2 * var(--line)); border-radius: calc(var(--bar-round) * .6); box-shadow: calc(4 * var(--drop-x)) calc(4 * var(--drop-y)) calc(4 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
33
+ .l-two-bars .num { font-size: var(--t-sub); }
34
+ }
35
+ /* A large presenter (data-presenter-size l or xl on this slide's section tag). */
36
+ @media not all and (max-width: 650px) {
37
+ .l-two-bars[data-presenter-size="l"] :is(.bars, .tt) { max-width: 830px; }
38
+ .l-two-bars[data-presenter-size="xl"] :is(.bars, .tt) { max-width: 680px; }
39
+ }
40
+ /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
41
+ @media (min-width: 651px) {
42
+ :root.hd-no-presenter .l-two-bars :is(.bars, .tt) { max-width: none; }
43
+ }
44
+ </style>
45
+ <section class="slide l-two-bars" id="__ID__" data-chapter="The difference" data-note="Source: name where each number comes from (a study, analytics) and its date.">
46
+ <div class="kicker">Watched to the end</div>
47
+ <h2 class="tt" data-title-mobile="Narrated decks get finished.">Narrated decks get finished.</h2>
48
+ <ol class="bars">
49
+ <li id="__ID__-b1"><span class="lab">A PDF in an email</span><span class="row"><span class="bar" style="--v: .22"></span><span class="num">22%</span></span></li>
50
+ <li id="__ID__-b2"><span class="lab">A narrated deck</span><span class="row"><span class="bar" style="--v: .61"></span><span class="num">61%</span></span></li>
51
+ </ol>
52
+ <div class="narration-slot"></div>
53
+ </section>
@@ -0,0 +1,75 @@
1
+ <!--
2
+ layout: two-by-two
3
+ summary: Four things placed on two axes, one in each quarter, yours marked: where you sit against the alternatives.
4
+ brief: Four things on two axes, one in each quarter, yours marked.
5
+ says: where it sits
6
+ needs: 4 alternatives on two axes
7
+ use: positioning against the alternatives, a choice between four options, a priority grid. Each name two or three words; each axis a few words. Name both axes so higher and further right are better. The quarters run top-left, top-right, bottom-left, bottom-right; mark yours with class us. A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) puts the grid under the title and sizes it to fit, clear of the presenter.
8
+ slot: bottom-right
9
+ presenter: stage
10
+ nopresenter: The grid grows into the free corner.
11
+ cues: [look: #__ID__-plane] as the narration names the axes; [go: #__ID__-us] at yours, then [go: slot].
12
+ script: Video is personal but slow. A PDF is quick but flat. [look: #__ID__-plane] This sits where both are true: [go: #__ID__-us] personal, and quick to make. [go: slot]
13
+ -->
14
+ <style>
15
+ /* The title and a line beside the grid, which is square and ends left of the presenter's corner (the stage presenter
16
+ at m reaches 1064px across). Axis names run along the left and bottom edges. */
17
+ .l-two-by-two { display: grid; grid-template-columns: 380px minmax(0, 600px); grid-template-rows: auto auto auto; column-gap: 0; align-content: center; }
18
+ .l-two-by-two > :is(.kicker, .tt, .lead) { grid-column: 1; }
19
+ .l-two-by-two .tt { font-size: var(--t-title); }
20
+ .l-two-by-two .lead { align-self: start; font-size: var(--t-lead); line-height: 1.3; }
21
+ .l-two-by-two .plane { grid-column: 2; grid-row: 1 / 4; position: relative; align-self: center; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; width: min(100% - 48px, 600px); aspect-ratio: 1; margin-left: 48px;
22
+ --axis: 4px; background: linear-gradient(currentColor, currentColor) left bottom / var(--axis) 100% no-repeat, linear-gradient(currentColor, currentColor) left bottom / 100% var(--axis) no-repeat; }
23
+ /* The axes are painted, not outlined, so they show in a theme with no outlines too. */
24
+ .l-two-by-two .plane::before, .l-two-by-two .plane::after { content: ""; position: absolute; background: color-mix(in srgb, currentColor 22%, transparent); }
25
+ .l-two-by-two .plane::before { left: 50%; top: 0; bottom: 0; width: 2px; }
26
+ .l-two-by-two .plane::after { top: 50%; left: 0; right: 0; height: 2px; }
27
+ .l-two-by-two .q { container-type: inline-size; position: relative; z-index: 1; display: grid; place-items: center; min-width: 0; padding: 14px; }
28
+ .l-two-by-two .q b { padding: 12px 18px; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(16 * var(--round)); background: var(--card); color: var(--ink); font-size: min(var(--t-lead), 11cqi); line-height: 1.1; text-align: center; max-width: 100%; box-shadow: calc(6 * var(--drop-x)) calc(6 * var(--drop-y)) calc(6 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
29
+ .l-two-by-two .q.us b { background: var(--accent); color: var(--accent-ink); font-size: min(var(--t-sub), 11cqi); }
30
+ .on-accent.l-two-by-two .q.us b { background: var(--ink); color: var(--paper); }
31
+ .l-two-by-two .ax { position: absolute; font-family: var(--mono); font-size: var(--t-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
32
+ .l-two-by-two .ax.x { right: 0; top: 100%; margin-top: 8px; }
33
+ .l-two-by-two .ax.y { left: 0; bottom: 100%; margin-bottom: 8px; }
34
+ @media (max-width: 650px) {
35
+ .l-two-by-two { display: flex; }
36
+ .l-two-by-two .tt { font-size: var(--t-title); }
37
+ .l-two-by-two .lead { font-size: var(--t-body); }
38
+ /* The plane takes the free height and the column's width, up to 420px tall (30px under it for the x label),
39
+ never under the square it was (270px, 232px with a presenter): a long title makes the slide run over where check sees it. */
40
+ .l-two-by-two .plane { --axis: 3px; flex: 1 1 0; align-self: stretch; width: auto; aspect-ratio: auto; min-height: calc(270px - 38px * var(--hd-phone-presenter)); max-height: 420px; margin: 24px 0 30px 8px; }
41
+ .l-two-by-two .q { padding: 6px; }
42
+ .l-two-by-two .q b, .l-two-by-two .q.us b { padding: 6px 8px; border-width: calc(2 * var(--line)); border-radius: calc(10 * var(--round)); font-size: var(--t-label); box-shadow: calc(3 * var(--drop-x)) calc(3 * var(--drop-y)) calc(3 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
43
+ .l-two-by-two .ax { letter-spacing: .06em; }
44
+ /* The y label stands in the plane's 24px top margin, clear of the lead above. */
45
+ .l-two-by-two .ax.y { margin-bottom: 4px; }
46
+ }
47
+ /* A large presenter (data-presenter-size l or xl on this slide's section tag): the grid goes under the title, as wide
48
+ as the column allows and no taller than the height left. */
49
+ @media not all and (max-width: 650px) {
50
+ .l-two-by-two:is([data-presenter-size="l"], [data-presenter-size="xl"]) { display: flex; }
51
+ .l-two-by-two:is([data-presenter-size="l"], [data-presenter-size="xl"]) .plane { flex: 1 1 0; min-height: 0; width: auto; max-width: 830px; margin: 34px 0 30px; align-self: flex-start; }
52
+ .l-two-by-two[data-presenter-size="l"] :is(.tt, .lead) { max-width: 830px; }
53
+ .l-two-by-two[data-presenter-size="xl"] :is(.tt, .lead) { max-width: 680px; }
54
+ .l-two-by-two[data-presenter-size="xl"] .plane { max-width: 680px; }
55
+ }
56
+ /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
57
+ @media (min-width: 651px) {
58
+ :root.hd-no-presenter .l-two-by-two:not([data-presenter-size="l"], [data-presenter-size="xl"]) { grid-template-columns: 440px minmax(0, 720px); justify-content: center; }
59
+ :root.hd-no-presenter .l-two-by-two:not([data-presenter-size="l"], [data-presenter-size="xl"]) .plane { width: min(100% - 48px, 700px); }
60
+ :root.hd-no-presenter .l-two-by-two:is([data-presenter-size="l"], [data-presenter-size="xl"]) :is(.tt, .lead, .plane) { max-width: none; }
61
+ }
62
+ </style>
63
+ <section class="slide l-two-by-two" id="__ID__" data-chapter="Where it sits" data-note="Source: where each alternative's place comes from (a review, the team's own comparison).">
64
+ <div class="kicker">Where it sits</div>
65
+ <h2 class="tt" data-title-mobile="Personal and quick.">Personal, and quick to make.</h2>
66
+ <p class="lead">A recorded video is personal but slow. A PDF is quick but flat.</p>
67
+ <div class="plane figure" id="__ID__-plane">
68
+ <div class="q"><b>A recorded video</b></div>
69
+ <div class="q us" id="__ID__-us"><b>Hyperdecks</b></div>
70
+ <div class="q"><b>A brochure</b></div>
71
+ <div class="q"><b>A PDF deck</b></div>
72
+ <span class="ax y">Personal ↑</span><span class="ax x">Quick to make →</span>
73
+ </div>
74
+ <div class="narration-slot"></div>
75
+ </section>
@@ -0,0 +1,66 @@
1
+ <!--
2
+ layout: video-beats
3
+ summary: A screen recording beside the two to four moments that matter, each with its timestamp; each moment lights up as the narration reaches it, while the clip plays.
4
+ brief: A recording beside two to four timestamped moments, each lit on its cue.
5
+ says: watch it work
6
+ needs: 1 recording
7
+ use: a demo with a few moments to point at (it finds the file, it fixes it, it ships). Its .clip is a placeholder check fails on: put in the recording (upload_deck_asset / `hyperdecks asset add`) as <video class="clip" src="…" autoplay muted loop playsinline>; it plays with the slide, silent under the narration, and moves in an export. The moments light on the narration's [reveal] cues, not on the video's clock: a looping, buffering or paused clip would drift from its timestamps, while a cue always lands on its word (and Per step waits on each). Write each moment's time as it appears in the clip, and say it in the script at that moment. Two to four moments: add or remove a .beat and its cue.
8
+ slot: bottom-right
9
+ presenter: stage
10
+ nopresenter: The moments centre in the row instead of keeping clear of the bottom-right corner.
11
+ cues: [look: #__ID__-clip] as the narration turns to the recording; [reveal: #__ID__-b1], [reveal: #__ID__-b2], [reveal: #__ID__-b3] as it names each moment (each lights; the ones before stay lit).
12
+ script: Here it is, running for real. [look: #__ID__-clip] First [reveal: #__ID__-b1] it finds the file. Then [reveal: #__ID__-b2] it fixes the error. And [reveal: #__ID__-b3] it ships.
13
+ -->
14
+ <style>
15
+ .l-video-beats { display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "head head" "clip beats"; column-gap: 48px; row-gap: 28px; }
16
+ .l-video-beats .head { grid-area: head; display: flex; flex-direction: column; gap: 10px; }
17
+ .l-video-beats .tt { font-size: var(--t-sub); line-height: 1.02; }
18
+ .l-video-beats .clip { grid-area: clip; align-self: start; display: block; width: 100%; height: auto; max-height: 100%; aspect-ratio: 16 / 9; object-fit: contain; border: calc(3 * var(--line)) solid var(--ink); --frame-min: 556px; --shot-corner: min(calc(18 * var(--round)), (var(--frame-min) - 2 * var(--mat)) / 16); background: var(--ink); box-shadow: calc(12 * var(--drop-x)) calc(12 * var(--drop-y)) calc(12 * var(--drop-blur)) color-mix(in srgb, var(--accent) var(--drop-mix), transparent); }
19
+ .l-video-beats video.clip { aspect-ratio: auto; }
20
+ .on-accent.l-video-beats .clip { box-shadow: calc(12 * var(--drop-x)) calc(12 * var(--drop-y)) calc(12 * var(--drop-blur)) color-mix(in srgb, var(--accent-ink) var(--drop-mix), transparent); }
21
+ .l-video-beats div.clip { background: color-mix(in srgb, var(--paper) 10%, var(--ink)) repeating-linear-gradient(135deg, color-mix(in srgb, var(--paper) 8%, transparent) 0 2px, transparent 2px 22px); }
22
+ .l-video-beats .beats { grid-area: beats; align-self: start; list-style: none; display: flex; flex-direction: column; gap: 22px; }
23
+ /* A moment waits dimmed (not hidden: a deck without narration still reads them) and lights on its cue. */
24
+ .l-video-beats .beat.reveal { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: baseline; opacity: .45; transform: none; font-size: var(--t-body); line-height: 1.3; font-weight: 600; }
25
+ .l-video-beats .beat.reveal.is-revealed { opacity: 1; }
26
+ .l-video-beats .beat time { padding: 4px 12px; border-radius: calc(999 * var(--round)); border: calc(2 * var(--line)) solid currentColor; font: 700 var(--t-label) var(--mono); transition: background .5s, color .5s, border-color .5s; }
27
+ .l-video-beats .beat.is-revealed time { background: var(--ink); border-color: var(--ink); color: var(--paper); }
28
+ .on-ink.l-video-beats .beat.is-revealed time { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
29
+ @media (max-width: 650px) {
30
+ .l-video-beats { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "clip" "beats"; row-gap: 14px; }
31
+ .l-video-beats .head { gap: 6px; }
32
+ .l-video-beats .clip { justify-self: center; width: auto; max-width: 100%; max-height: 300px; border-width: calc(2 * var(--line)); --frame-min: 188px; --shot-corner: min(calc(10 * var(--round)), (var(--frame-min) - 2 * var(--mat)) / 16); box-shadow: calc(5 * var(--drop-x)) calc(5 * var(--drop-y)) calc(5 * var(--drop-blur)) color-mix(in srgb, var(--accent) var(--drop-mix), transparent); }
33
+ .l-video-beats div.clip { width: 100%; }
34
+ .on-accent.l-video-beats .clip { box-shadow: calc(5 * var(--drop-x)) calc(5 * var(--drop-y)) calc(5 * var(--drop-blur)) color-mix(in srgb, var(--accent-ink) var(--drop-mix), transparent); }
35
+ .l-video-beats .beats { gap: 8px; }
36
+ .l-video-beats .beat.reveal { column-gap: 10px; }
37
+ .l-video-beats .beat time { padding: 2px 8px; border-width: calc(1.5 * var(--line)); }
38
+ }
39
+ /* On a mat (a round theme, _deck.html): the clip's content box keeps 16:9 and shrinks by the mat, so the frame stays the
40
+ column's width and the ink letterbox (a content-box layer) never shows a band on the mat. */
41
+ @container not style(--shot-mat: 0px) {
42
+ .l-video-beats .clip { box-sizing: content-box; width: calc(100% - 2 * var(--mat)); max-height: calc(100% - 2 * var(--mat)); background: linear-gradient(var(--ink) 0 0) content-box, var(--card); }
43
+ .l-video-beats div.clip { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--paper) 8%, transparent) 0 2px, transparent 2px 22px) content-box, linear-gradient(color-mix(in srgb, var(--paper) 10%, var(--ink)) 0 0) content-box, var(--card); }
44
+ @media (max-width: 650px) {
45
+ .l-video-beats .clip { width: auto; max-width: calc(100% - 2 * var(--mat)); max-height: calc(300px - 2 * var(--mat)); }
46
+ .l-video-beats div.clip { width: calc(100% - 2 * var(--mat)); }
47
+ }
48
+ }
49
+ /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
50
+ @media (min-width: 651px) {
51
+ :root.hd-no-presenter .l-video-beats .beats { align-self: center; }
52
+ }
53
+ </style>
54
+ <section class="slide l-video-beats" id="__ID__" data-chapter="Demo" data-note="Recording: name what it shows, the build and the date it was recorded.">
55
+ <div class="head">
56
+ <div class="kicker">Demo · Three moments</div>
57
+ <h2 class="tt" data-title-mobile="It fixes it itself.">It finds the problem and fixes it on its own.</h2>
58
+ </div>
59
+ <div class="clip" id="__ID__-clip" role="img" aria-label="Screen recording placeholder"></div>
60
+ <ol class="beats">
61
+ <li class="beat reveal" id="__ID__-b1"><time>0:04</time><span>It finds the file</span></li>
62
+ <li class="beat reveal" id="__ID__-b2"><time>0:11</time><span>It fixes the error</span></li>
63
+ <li class="beat reveal" id="__ID__-b3"><time>0:19</time><span>It ships</span></li>
64
+ </ol>
65
+ <div class="narration-slot"></div>
66
+ </section>
@@ -0,0 +1,62 @@
1
+ <!--
2
+ layout: video-full
3
+ summary: A screen recording fills the slide: a 16:9 clip runs the full width over a solid bar holding the title and a small presenter; a narrower clip stands beside the bar on the right. Nothing sits on the recording.
4
+ brief: A recording fills the slide, the title and a small presenter on a bar under it (beside it for a tall clip).
5
+ says: watch it work
6
+ needs: 1 recording
7
+ use: a demo that should simply be watched (a 16:9 screen recording of the product doing the job). Its .clip is a placeholder check fails on: put in the recording (upload_deck_asset / `hyperdecks asset add`) as <video class="clip" src="…" poster="…" autoplay muted loop playsinline> (src a video file, poster a still image of it). It plays with the slide, silent under the narration, pauses when the slide is left, and moves in an export. The recording is shown whole and as recorded (contain on the slide's ground: a clip of another shape gets bands, never a crop), no tint, no filter. A 16:9 clip runs the full width over a 146px bar; a 4:3, square or portrait one stands at its own shape (as tall as the slide, as wide as the room beside the bar allows) beside the bar, which takes the rest (480px at least; release reads its shape; before release the layout assumes 16:9). The presenter is very small on this slide (its CSS sets --hd-presenter-scale) and stands at the bar's right end, never on the recording; keep the title short and the script short, and let the clip talk.
8
+ slot: bottom-right
9
+ presenter: stage
10
+ nopresenter: The bar's title centres in its height.
11
+ cues: [look: #__ID__-clip] as the narration turns to the recording; [play: #__ID__-clip] to start it on a word (then add data-hd-manual to the video).
12
+ script: Watch it do the whole job. [look: #__ID__-clip] No cuts, no edits, start to finish.
13
+ -->
14
+ <style>
15
+ /* The recording chooses by its own shape (--hd-ar, which release stamps on it; 16:9 until then): wider than 1.65:1
16
+ (a 16:9 screen recording) it runs the slide's full width over a 146px bar at its foot; narrower (4:3, square,
17
+ portrait) it stands at its own shape (as tall as the slide, as wide as the room allows) beside a bar on the right
18
+ that takes the rest (480px at least), where it shows larger. --wide is 1 or 0. The bar wraps
19
+ under the clip or sits beside it (flex-wrap), takes the slide's own ground (on-ink by default) and holds the
20
+ title; the presenter, small on this slide (--hd-presenter-scale; check reads it too), stands at the bar's
21
+ right end, so neither sits on the recording. */
22
+ .l-video-full { --bar: 146px; --hd-presenter-scale: .27; display: flex; flex-flow: row wrap; align-content: space-between; gap: 0; padding: 0; overflow: hidden; }
23
+ /* Shown whole: contain on the slide's ground, so a clip of another shape gets bands, never a crop. */
24
+ .l-video-full .clip { --wide: clamp(0, (var(--hd-ar, 16 / 9) - 1.65) * 1000, 1); display: block; flex: none; width: calc(100% - 480px * (1 - var(--wide))); height: calc(100% - var(--bar) * var(--wide)); min-height: 0; object-fit: contain; background: transparent;
25
+ }
26
+ /* A narrower clip's box takes its shape (up to the room beside the bar), so it stands flush with the bar and no band
27
+ shows on one side only; the bar takes what it leaves. A 16:9 clip keeps the full width (min-width 100%). */
28
+ @media not all and (max-width: 650px) {
29
+ .l-video-full .clip { width: auto; aspect-ratio: var(--hd-ar, 16 / 9); min-width: calc(100% * var(--wide)); max-width: calc(100% - 480px * (1 - var(--wide))); }
30
+ }
31
+ .l-video-full div.clip { background: color-mix(in srgb, var(--paper) 10%, var(--ink)) repeating-linear-gradient(135deg, color-mix(in srgb, var(--paper) 8%, transparent) 0 2px, transparent 2px 22px); }
32
+ /* Under a 16:9 clip two lines of title fit the bar (a 60-character title takes two), so a long one wraps and is never cut off. */
33
+ .l-video-full .bar { --t-sub: calc(40px * var(--display-scale)); flex: 1 1 480px; min-height: var(--bar); container-type: inline-size; display: flex; flex-direction: column; gap: 10px; padding: 18px 40px 0 36px; }
34
+ .l-video-full .tt { font-size: var(--t-sub); line-height: 1.02; }
35
+ /* Under the clip: one row, the title on the left, the presenter's room on the right. */
36
+ @container (min-width: 800px) {
37
+ .l-video-full .bar > * { max-width: calc(100% - 520px); }
38
+ }
39
+ .l-video-full .narration-slot { right: 32px; bottom: 4px; }
40
+ @media (max-width: 650px) {
41
+ /* Phones: the recording at its own shape across the card (up to 420px tall), the bar directly under it, one block at the phone anchor (--hd-phone-anchor). */
42
+ .l-video-full { --hd-presenter-scale: initial; flex-flow: column nowrap; justify-content: var(--hd-phone-anchor); padding: 0 0 200px; }
43
+ .l-video-full .clip { width: auto; }
44
+ .l-video-full .clip { flex: none; height: auto; max-height: 420px; }
45
+ .l-video-full div.clip { aspect-ratio: 16 / 9; }
46
+ .l-video-full .bar { --t-sub: calc(28px * var(--display-scale)); flex: none; min-height: 0; padding: 14px 20px 16px; }
47
+ .l-video-full .tt { font-size: var(--t-sub); line-height: 1.02; }
48
+ .l-video-full .narration-slot { right: 12px; bottom: 12px; }
49
+ }
50
+ /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
51
+ @media (min-width: 651px) {
52
+ :root.hd-no-presenter .l-video-full .bar { justify-content: center; padding-top: 0; }
53
+ }
54
+ </style>
55
+ <section class="slide on-ink l-video-full" id="__ID__" data-chapter="Demo" data-presenter-size="s" data-note="Recording: name what it shows, the build and the date it was recorded.">
56
+ <div class="clip" id="__ID__-clip" role="img" aria-label="Screen recording placeholder"></div>
57
+ <div class="bar">
58
+ <div class="kicker">Demo · Unedited</div>
59
+ <h2 class="tt" data-title-mobile="Watch it work.">Watch it do the whole job, start to finish.</h2>
60
+ </div>
61
+ <div class="narration-slot"></div>
62
+ </section>
@@ -0,0 +1,109 @@
1
+ <!--
2
+ layout: wall
3
+ summary: A wall of three to five pictures, one large, and one solid tile beside them for the sentence; the presenter sits at the tile's foot.
4
+ brief: Three to five photos, one large, and a solid tile for the sentence.
5
+ says: this is real
6
+ needs: 3 to 5 photos
7
+ use: people, an event, places, a set of things made: proof it happened, many times over. Each .pic is a placeholder check fails on: put in photos (`hyperdecks asset add`, upload_deck_asset; found ones: `hyperdecks photos add <id> --for wall`, deck_guide topic photos) as <img class="pic" src="…" alt="…" width="…" height="…">, the strongest first (it takes the large cell). On a wide screen the wall's cells are its shape, so each photo fills its cell (cover). Pick the cells for the set: by default they stand upright (about square with three photos, taller with four or five), for upright photos; for square photos write <div class="pics square"> (about square cells); for landscape photos <div class="pics wide"> (the large one across the top, the rest in a row under it, each about 16:9). check --layout warns when a cell crops a third of its photo and names the class; keep subjects near the middle, or set object-position on one. check asks to trim a photo's flat ground only when the trimmed photo still suits its cell; otherwise the cell crops the ground away. On a phone the photos fill the height under the words at their own shapes, so nothing is cut (wide: the first across, the rest two to a row), and a photo credit stands under them. Three to five: in the default cells five fill two columns of two beside the large one, three keep one column and four let the last stand tall (so four upright photos crop the last one hard: use three or five, or square cells); square cells stand four as the large one beside a column of three; wide cells put every photo after the first in one row under it. Real photos only, never generated or stock stand-ins for real people or events. A caption (optional, any theme): wrap the picture as <figure class="mount" data-caption="Where, when">…</figure>; short (about 40 characters), never the alt text.
8
+ slot: bottom-right
9
+ flip: data-flip on the section mirrors it: the tile on the left with the presenter at its foot, the photos on the right (the large one at the right edge). Alternate it with a neighbouring wall slide.
10
+ presenter: stage
11
+ nopresenter: The tile's sentence centres in its height instead of keeping clear of the presenter at its foot.
12
+ cues: [look: #__ID__-wall] as the narration turns to the pictures; [go: #__ID__-p1] for the large one if the script names it, then [go: slot].
13
+ script: This is what it looks like in real life. [look: #__ID__-wall] Every one of these happened. [go: #__ID__-p1] This one was the first. [go: slot]
14
+ -->
15
+ <style>
16
+ .l-wall { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 20px; }
17
+ .l-wall .pics { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); grid-template-columns: minmax(0, 2fr); grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 20px; min-height: 0; }
18
+ .l-wall .pic { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; border: calc(3 * var(--line)) solid var(--ink); --frame-min: 163px; border-radius: min(calc(18 * var(--round)), var(--frame-min) / 8); background: var(--card); }
19
+ .l-wall .pics > :is(.pic, .mount):first-child { grid-row: 1 / -1; }
20
+ /* Four pictures: the last stands tall, so no cell is left empty. */
21
+ .l-wall .pics:has(> :is(.pic, .mount):nth-child(4):last-child) > :is(.pic, .mount):last-child { grid-row: 1 / -1; }
22
+ /* The cells' shape is the author's, for the set's shape (wide screens only; a phone shows each picture at its own shape).
23
+ Default: upright cells, for upright photos. .pics.square: about square cells for square photos (a centred band, the
24
+ large one beside two or four; four stand as the large one beside a column of three). .pics.wide: the large one across
25
+ the top and the rest in a row under it, each about 16:9, the band as wide as the height allows. check --layout
26
+ warns when a cell crops a third of its picture and names the class. */
27
+ @media not all and (max-width: 650px) {
28
+ .l-wall .pics.square { align-self: center; aspect-ratio: 2; }
29
+ .l-wall .pics.square:not(:has(> :nth-child(4))) { aspect-ratio: 1.49; }
30
+ .l-wall .pics.square:has(> :nth-child(4):last-child) { align-self: stretch; aspect-ratio: auto; grid-template-columns: minmax(0, 3fr); grid-template-rows: repeat(3, minmax(0, 1fr)); }
31
+ .l-wall .pics.square:has(> :nth-child(4):last-child) > :is(.pic, .mount):last-child { grid-row: auto; }
32
+ .l-wall .pics.wide { align-self: center; justify-self: center; height: 100%; max-width: 100%; aspect-ratio: 1.4; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 4fr) minmax(0, 1fr); }
33
+ .l-wall .pics.wide:not(:has(> :nth-child(4))) { aspect-ratio: 1.163; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 2.04fr) minmax(0, 1fr); }
34
+ .l-wall .pics.wide:has(> :nth-child(4):last-child) { aspect-ratio: 1.31; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 3.1fr) minmax(0, 1fr); }
35
+ .l-wall .pics.wide > :is(.pic, .mount):first-child { grid-row: 1; grid-column: 1 / -1; }
36
+ .l-wall .pics.wide:has(> :nth-child(4):last-child) > :is(.pic, .mount):last-child { grid-row: auto; }
37
+ }
38
+ /* A captioned photo (figure.mount) is the cell; the picture fills what its label leaves. */
39
+ .l-wall .pics > .mount { width: auto; }
40
+ .l-wall .mount > .pic { flex: 1 1 0; height: auto; }
41
+ .l-wall div.pic { background: color-mix(in srgb, var(--ink) 6%, var(--paper)) repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 10%, transparent) 0 2px, transparent 2px 22px); }
42
+ /* The tile: a solid ground for the words, its foot left to the presenter. */
43
+ .l-wall .tile { display: flex; flex-direction: column; gap: 16px; padding: 36px 32px; border-radius: calc(18 * var(--round)); background: var(--ink-ground); color: var(--ink-text); }
44
+ .on-ink.l-wall .tile { background: var(--accent); color: var(--accent-ink); }
45
+ .l-wall .tt { font-size: var(--t-sub); line-height: 1.02; }
46
+ .l-wall .lead { font-size: var(--t-body); }
47
+ @media (max-width: 650px) {
48
+ /* Phones: the tile's words first, then the photos. */
49
+ .l-wall { display: flex; flex-direction: column; gap: 12px; }
50
+ .l-wall .tile { order: -1; gap: 8px; padding: 0; border-radius: 0; background: none; color: inherit; }
51
+ .on-ink.l-wall .tile { background: none; color: inherit; }
52
+ /* The photos take the free height in a grid, each as large as its cell allows at its own shape (never cropped,
53
+ never stretched): wide photos (.pics.wide) the strongest across the top and the rest two to a row (one row with the presenter); square
54
+ (.pics.square) two to a row; upright (the default) three to a row for three or five, two for four. A long title
55
+ leaves the grid at least 160px. */
56
+ .l-wall .pics { flex: 1 1 0; min-height: 160px; display: grid; grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 8px; place-items: center; }
57
+ /* With the presenter (--hd-phone-presenter: 1) the room is short, so wide photos stand at the title's width: the
58
+ strongest across, the rest in one row under it (four, three or two across), edge to edge. Each stands at its own
59
+ shape, top-aligned in the row: stretched to the row's tallest, a 1.62 photo beside 3:2 ones lost 7% to the crop.
60
+ A browser without style queries keeps the grid above, which fits too. */
61
+ @container style(--hd-phone-presenter: 1) {
62
+ .l-wall .pics.wide { flex: 0 1 auto; grid-template-rows: none; grid-auto-rows: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); place-items: start stretch; }
63
+ .l-wall .pics.wide:not(:has(> :nth-child(5))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
64
+ .l-wall .pics.wide:not(:has(> :nth-child(4))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
65
+ .l-wall .pics.wide > img.pic { width: 100%; max-height: none; }
66
+ }
67
+ .l-wall .pics > :is(.pic, .mount):first-child, .l-wall .pics:has(> :is(.pic, .mount):nth-child(4):last-child) > :is(.pic, .mount):last-child { grid-row: auto; }
68
+ .l-wall .pics:not(.wide, .square):has(> :is(.pic, .mount):nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
69
+ .l-wall .pics:not(.wide, .square):not(:has(> :is(.pic, .mount):nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
70
+ .l-wall .pics.wide { grid-template-rows: minmax(0, 2fr); }
71
+ .l-wall .pics.wide > :is(.pic, .mount):first-child { grid-column: 1 / -1; }
72
+ .l-wall .pic { border-width: calc(2 * var(--line)); --frame-min: 41px; border-radius: min(calc(10 * var(--round)), var(--frame-min) / 8); }
73
+ .l-wall .pics > img.pic { width: auto; height: auto; max-width: 100%; max-height: 100%; }
74
+ .l-wall .pics > div.pic { width: auto; height: 100%; max-width: 100%; aspect-ratio: 4 / 3; }
75
+ .l-wall .pics > div.pic:first-child { aspect-ratio: 1; }
76
+ .l-wall .pics > .mount { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; min-height: 0; }
77
+ .l-wall .mount > .pic { flex: 1 1 0; min-height: 0; width: auto; height: auto; max-width: 100%; }
78
+ /* A photo credit (.hd-credit, the player draws it at the slide's top corner) stands under the photos on a phone:
79
+ at the top it covered the kicker and title. */
80
+ section.slide.l-wall > .hd-credit { position: static; order: 1; align-self: flex-start; max-width: none; margin: 0; }
81
+ }
82
+ /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
83
+ @media (min-width: 651px) {
84
+ :root.hd-no-presenter .l-wall .tile { justify-content: center; }
85
+ }
86
+ /* Flipped (data-flip on the section): the mirror image, for a neighbour of the same layout. Wide screens only; a phone
87
+ stacks the same either way. The presenter follows the panel (layouts/_deck.html). */
88
+ @media not all and (max-width: 650px) {
89
+ .l-wall[data-flip] { grid-template-columns: 380px minmax(0, 1fr); }
90
+ .l-wall[data-flip] .tile { grid-column: 1; grid-row: 1; }
91
+ .l-wall[data-flip] .pics { grid-column: 2; grid-row: 1; direction: rtl; }
92
+ .l-wall[data-flip] .pics > * { direction: ltr; }
93
+ }
94
+ </style>
95
+ <section class="slide l-wall" id="__ID__" data-chapter="In real life" data-note="Photos: say who took them, where and when, and that you may show the people in them.">
96
+ <div class="pics" id="__ID__-wall">
97
+ <div class="pic" id="__ID__-p1" role="img" aria-label="Photo placeholder: the strongest picture"></div>
98
+ <div class="pic" role="img" aria-label="Photo placeholder"></div>
99
+ <div class="pic" role="img" aria-label="Photo placeholder"></div>
100
+ <div class="pic" role="img" aria-label="Photo placeholder"></div>
101
+ <div class="pic" role="img" aria-label="Photo placeholder"></div>
102
+ </div>
103
+ <div class="tile">
104
+ <div class="kicker">In real life</div>
105
+ <h2 class="tt" data-title-mobile="It happened.">Every one of these happened.</h2>
106
+ <p class="lead">One line on what the pictures prove.</p>
107
+ </div>
108
+ <div class="narration-slot"></div>
109
+ </section>