@hypersocial/decks-cli 0.9.25 → 0.9.27

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.
@@ -0,0 +1,89 @@
1
+ <!--
2
+ layout: question-text
3
+ summary: One open question with a box the viewer types a short answer in (500 characters at most). The deck waits for Send or Skip, then moves on; you see who wrote what.
4
+ brief: One open question, a short typed answer; the deck waits for Send or Skip.
5
+ says: a question for the viewer, in their words
6
+ needs: one question
7
+ use: its styles are required (see Style). what a choice can't list (what would stop you, what else to cover). Ask one thing they can answer in a line. The title is the question, 100 characters at most (data-title-mobile, what a phone shows, 40): the type steps down to fit, and check warns past it. Change the placeholder to an example of a good answer. One question a slide, 20 a deck, never the first or last slide; keep the slide's id (letters, digits, - or _) the same between releases (answers are stored under it). Enter sends, Shift+Enter is a new line, Esc skips. Keep data-question="text", the textarea (labelled by the title), Send, Skip, the count (data-answer-count) and the status line (data-answer-status): it is all a viewer sees when a save fails. A question is optional: the viewer answers or skips, and the first Next with no answer nudges them once. Add data-required to the slide only where the deck can't go on without the answer (a plan that picks the next slides, an email the sender must have): no Skip, and nothing passes it until it's answered; one or two a deck at most. data-answer-ui marks what a still (a thumbnail, an export, the PDF) leaves out; the box stays. Never ask for a password, a card number or anything private. Recipient links store answers; QA links, previews and your own opens don't. Read them with `hyperdecks answers <slug>` (`deck_answers`): counts per option, written answers in full, a row per person with what they changed or skipped; `--share <token> --wait` (`wait`) waits until that link has answered. You get one email per person when they finish. The presenter asks it large (data-presenter-size="xl"; l and m move the question nearer).
8
+ slot: bottom-left
9
+ presenter: stage
10
+ nopresenter: The question and its box take the full width of the slide.
11
+ cues: [look: #__ID__-box] at the question.
12
+ script: Last one, in your own words. [look: #__ID__-box] What would stop you starting this month? Type a line, or skip it.
13
+ -->
14
+ <style>
15
+ /* fitQuestion (the player; check --layout) steps --q-title down, then --q-text, until all of it is inside the slide. */
16
+ .l-question-text .ask { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: safe center; gap: calc(26px * var(--q-text, 1)); padding-left: 400px; }
17
+ .l-question-text .ask > * { flex-shrink: 0; }
18
+ .l-question-text .tt { font-size: max(42px, var(--t-title) * var(--q-title, 1)); text-wrap: balance; }
19
+ /* The box is the still's too: the textarea inside it goes where nothing can be typed. */
20
+ .l-question-text .box { display: flex; flex: 1 1 160px; min-height: 160px; max-height: 420px; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(22 * var(--round)); background: var(--card); color: var(--ink); 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); }
21
+ .l-question-text textarea { flex: 1; min-width: 0; padding: 22px 26px; border: 0; border-radius: inherit; background: none; color: inherit; font: var(--t-lead)/1.3 var(--font); resize: none; }
22
+ .l-question-text textarea::placeholder { color: color-mix(in srgb, currentColor 65%, transparent); opacity: 1; }
23
+ .l-question-text .foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
24
+ .l-question-text .foot button { font: 700 24px var(--font); color: inherit; cursor: pointer; }
25
+ .l-question-text .skip { min-width: 74px; min-height: 74px; padding: 8px 4px; border: 0; background: none; text-align: left; text-decoration: underline; text-underline-offset: .2em; }
26
+ .l-question-text .hint { font: 23.5px/1.2 var(--mono); letter-spacing: -.02em; opacity: .75; }
27
+ /* A row of its own, with room for the longest message (two lines) always kept, so none ever moves or cuts anything. */
28
+ .l-question-text .status { flex: 1 0 100%; min-height: 2.5em; font-size: 23.5px; line-height: 1.25; }
29
+ .l-question-text :is(button, textarea):focus-visible { outline: thick solid var(--accent-2); outline-offset: 4px; } /* never a theme unit: a theme without lines still shows the focus */
30
+ .l-question-text .foot .send { min-height: 74px; padding: 14px 28px; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(16 * var(--round)); background: var(--accent); color: var(--accent-ink); }
31
+ .l-question-text .foot .send:disabled { opacity: .5; cursor: default; }
32
+ /* A mouse or trackpad only: a hover would stick after a tap. */
33
+ @media (hover: hover) and (pointer: fine) {
34
+ .l-question-text .foot .send:not(:disabled):hover { background: color-mix(in srgb, var(--accent) 82%, var(--ink)); }
35
+ .l-question-text .skip:hover { text-decoration-thickness: .16em; }
36
+ }
37
+ @media (max-width: 650px) {
38
+ /* From the top, and the box takes all the height above the presenter (or the keyboard). */
39
+ /* The band kept for the presenter is as tall as its head and its caption, no more; with captions only, as tall as they are. */
40
+ .slide.l-question-text { padding-bottom: calc(28px + 122px * var(--hd-phone-presenter, 1)); }
41
+ :root:has(.hd-presenter[data-mode="none"]) .slide.l-question-text { padding-bottom: calc(28px + 92px * var(--hd-phone-presenter, 1)); }
42
+ /* A silent deck never shows a caption: Skip and the messages stand beside the head, where one would be. */
43
+ .hd-silent .slide.l-question-text { padding-bottom: 20px; }
44
+ .hd-silent .l-question-text .foot { align-content: center; min-height: calc(128px * var(--hd-phone-presenter, 1)); padding-right: calc(160px * var(--hd-phone-presenter, 1)); }
45
+ .l-question-text .tt { font-size: max(26px, var(--t-title) * var(--q-title, 1)); }
46
+ .l-question-text .ask { justify-content: var(--hd-phone-anchor, start); gap: calc(14px * var(--q-text, 1) * var(--q-title, 1)); padding-left: 0; }
47
+ .l-question-text .box { flex-basis: 72px; min-height: 72px; max-height: none; border-width: calc(2 * var(--line)); border-radius: calc(14 * var(--round)); 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); }
48
+ /* 16px or more: a smaller box makes an iPhone zoom in to type. */
49
+ .l-question-text textarea { padding: 12px 14px; font-size: max(16px, var(--t-body)); }
50
+ .l-question-text .foot { gap: 2px 14px; }
51
+ .l-question-text .foot button { font-size: 17px; }
52
+ .l-question-text .foot .send { min-height: 44px; padding: 8px 20px; border-width: calc(2 * var(--line)); border-radius: calc(12 * var(--round)); }
53
+ .l-question-text .skip { min-width: 48px; min-height: 44px; }
54
+ .l-question-text .status { font-size: 14px; }
55
+ /* The count is the row's smallest thing; silent beside a presenter, the message has a row of its own above the buttons (two lines kept, so they never move). */
56
+ .l-question-text .hint { font-size: 14px; }
57
+ .hd-silent:has(.hd-presenter:not([data-mode="none"])) .l-question-text .status { order: -1; flex: 1 0 100%; min-height: 2.5em; }
58
+ }
59
+ /* The question starts just past the presenter's head at each size (the layout's own, xl, is twice m here). The
60
+ presenter stands in the middle of the height. A live head fills about 70% of its box, so its box goes a little past the slide's
61
+ edge and under the question's; a still may fill it, so it stays whole, on the slide and clear of the question. */
62
+ @media not all and (max-width: 650px) {
63
+ .l-question-text[data-presenter-size="xl"] { --hd-presenter-scale: 2; }
64
+ .l-question-text[data-presenter-size="l"] .ask { padding-left: 440px; }
65
+ .l-question-text[data-presenter-size="xl"] .ask { padding-left: 590px; }
66
+ .l-question-text.slot-left .narration-slot { top: calc(50% - var(--hd-slot-h, 628px) * .6); bottom: auto; left: 24px; } /* the head, below its captions, in the middle */
67
+ :root:has(.hd-style-stage:is([data-mode="head"], [data-mode="loading"])) .l-question-text[data-presenter-size="xl"] .ask { padding-left: 504px; }
68
+ .l-question-text[data-presenter-size="xl"].slot-left .narration-slot { left: 0; }
69
+ :root:has(.hd-style-stage:is([data-mode="head"], [data-mode="loading"])) .l-question-text[data-presenter-size="xl"].slot-left .narration-slot { left: calc(var(--hd-slot-w, 640px) * -.075); }
70
+ }
71
+ /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
72
+ @media (min-width: 651px) {
73
+ :root.hd-no-presenter .l-question-text .ask { padding-left: 0 !important; } /* over the live head's, for one turned off */
74
+ }
75
+ </style>
76
+ <section class="slide on-tint-2 l-question-text slot-left" id="__ID__" data-question="text" data-interactive data-presenter-size="xl" data-chapter="In your words" data-note="A question for the viewer: no facts.">
77
+ <div class="ask">
78
+ <div class="kicker">In your words</div>
79
+ <h2 class="tt" id="__ID__-title" data-title-mobile="What would stop you?">What would stop you?</h2>
80
+ <div class="box" id="__ID__-box"><textarea data-answer-ui data-answer-text rows="3" maxlength="500" aria-labelledby="__ID__-title" placeholder="One line is plenty."></textarea></div>
81
+ <div class="foot" data-answer-ui>
82
+ <button class="send" type="button" data-answer-send>Send</button>
83
+ <button class="skip" type="button" data-answer-skip>Skip</button>
84
+ <span class="hint" data-answer-count>0 / 500</span>
85
+ <p class="status" role="status" data-answer-status></p>
86
+ </div>
87
+ </div>
88
+ <div class="narration-slot"></div>
89
+ </section>
@@ -20,7 +20,10 @@ script: In their words. [look: #__ID__-quote] Here is what they told us.
20
20
  @media (max-width: 650px) {
21
21
  .l-quote .content { padding-left: 0; justify-content: var(--hd-phone-anchor); gap: 18px; }
22
22
  /* A silent deck has the presenter's 172px back: the quote steps up to 40px (32px beside the presenter). */
23
- .l-quote .quote { font-size: calc(32px + 8px * (1 - var(--hd-phone-presenter))); }
23
+ /* On a phone the player grows the text marked data-phone-fit into the free room (packages/player/phone-fit.js): the quote up to 84px,
24
+ its opening mark hung no further than the card's 20px padding.
25
+ These sizes are its floor, and what check measures. */
26
+ .l-quote .quote { font-size: calc(32px + 8px * (1 - var(--hd-phone-presenter))); text-indent: max(-.42em, -18px); }
24
27
  .l-quote .avatar { width: 44px; height: 44px; font-size: 16px; }
25
28
  }
26
29
  /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
@@ -32,7 +35,7 @@ script: In their words. [look: #__ID__-quote] Here is what they told us.
32
35
  <section class="slide on-accent l-quote slot-left" id="__ID__" data-chapter="In their words" data-note="Quote: name who said it, where (email, call, review) and when.">
33
36
  <figure class="content">
34
37
  <div class="kicker">In their words</div>
35
- <h2 class="tt quote" id="__ID__-quote" data-title-mobile="“It explained itself.”">“The deck explained itself before I got on the call.”</h2>
38
+ <h2 class="tt quote" id="__ID__-quote" data-phone-fit="84px" data-title-mobile="“It explained itself.”">“The deck explained itself before I got on the call.”</h2>
36
39
  <figcaption><span class="avatar">AD</span><span><b>Their name</b><small>Role, company</small></span></figcaption>
37
40
  </figure>
38
41
  <div class="narration-slot"></div>
@@ -4,8 +4,8 @@ summary: Three to five named measures, each with its value and a state (on track
4
4
  brief: Three to five measures, each with a value and a state.
5
5
  says: where it stands
6
6
  needs: 3 to 5 measures with a value each
7
- use: a monthly update, goals against plan, a launch checklist. Each measure's name a few words (under about 35 characters), its value short (61%, 1,240, 3 of 4). Real values only, each from its source in data-note. Each state is a class on its .state: good (on track), watch or bad (fix); the mark beside the word (●, ▲, ✕) says it without colour too. A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the card, clear of the presenter.
8
- slot: bottom-right
7
+ use: a monthly update, goals against plan, a launch checklist. Each measure's name a few words (under about 35 characters), its value short (61%, 1,240, 3 of 4). Real values only, each from its source in data-note. Each state is a class on its .state: good (on track), watch or bad (fix); the mark beside the word (●, ▲, ✕) says it without colour too. The presenter stands bottom-left, under the title's column: keep the title to three lines (about 35 characters; check --layout counts them). A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the card, clear of the presenter.
8
+ slot: bottom-left
9
9
  presenter: stage
10
10
  nopresenter: The rows take the full width of the slide.
11
11
  cues: [look: #__ID__-rows] as the narration turns to them; [go: #__ID__-r4] at the one to fix, then [go: slot].
@@ -42,6 +42,18 @@ script: Here is where we stand. [look: #__ID__-rows] Three are on track. One nee
42
42
  .l-scorecard[data-presenter-size="xl"] .rows li { gap: 16px; padding: 12px 20px; }
43
43
  .l-scorecard[data-presenter-size="xl"] .val { font-size: var(--t-lead); }
44
44
  }
45
+ /* The presenter stands bottom-left (slot-left): the title in a column over it (380px, or its longest word), the rows down the
46
+ whole right side, from 536px (the stage presenter at m ends there). A large presenter: today's column, moved to the right.
47
+ Wide screens, with a presenter that is not corner (corner ignores its slot and
48
+ stands bottom-right, so it, a slide without slot-left, a silent deck and a phone keep the rules above). */
49
+ @media not all and (max-width: 650px) {
50
+ :root:not(.hd-no-presenter) .l-scorecard.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { display: grid; grid-template-columns: minmax(380px, min-content) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 84px; align-content: stretch; }
51
+ :root:not(.hd-no-presenter) .l-scorecard.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) > :is(.kicker, .tt, .lead) { grid-column: 1; }
52
+ :root:not(.hd-no-presenter) .l-scorecard.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) > .tt { font-size: var(--t-sub); line-height: 1.02; }
53
+ :root:not(.hd-no-presenter) .l-scorecard.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) .rows { grid-column: 2; grid-row: 1 / -1; max-width: none; width: 100%; margin: 0; align-self: stretch; }
54
+ :root:not(.hd-no-presenter) .l-scorecard.slot-left[data-presenter-size="l"]:not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { padding-left: 698px; }
55
+ :root:not(.hd-no-presenter) .l-scorecard.slot-left[data-presenter-size="xl"]:not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { padding-left: 848px; }
56
+ }
45
57
  /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
46
58
  @media (min-width: 651px) {
47
59
  :root.hd-no-presenter .l-scorecard :is(.rows, .tt) { max-width: none; }
@@ -58,7 +70,7 @@ script: Here is where we stand. [look: #__ID__-rows] Three are on track. One nee
58
70
  .l-scorecard[data-presenter-size="xl"] .rows li { --icon: 36; }
59
71
  }
60
72
  </style>
61
- <section class="slide on-tint-2 l-scorecard" id="__ID__" data-chapter="Where we stand" data-note="Source: name where each value comes from (a dashboard, a report) and its date.">
73
+ <section class="slide on-tint-2 l-scorecard slot-left" data-dock-clear=".rows li" id="__ID__" data-chapter="Where we stand" data-note="Source: name where each value comes from (a dashboard, a report) and its date.">
62
74
  <div class="kicker">This month</div>
63
75
  <h2 class="tt" data-title-mobile="Where we stand.">Where we stand.</h2>
64
76
  <ol class="rows" id="__ID__-rows">
@@ -4,8 +4,8 @@ summary: Three or four steps rising left to right, each standing on the last, a
4
4
  brief: Three or four steps rising left to right, each building on the last.
5
5
  says: how it builds
6
6
  needs: 3 to 4 steps
7
- use: a process where each step needs the one before, levels of a plan, a path from first use to habit. Each name a word or two, no word over about 14 letters, each line under about 45 characters (names are sized by the column and the number of steps, so every word fits whole). 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. A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the stairs, clear of the presenter.
8
- slot: bottom-right
7
+ use: a process where each step needs the one before, levels of a plan, a path from first use to habit. Each name a word or two, no word over about 14 letters, each line under about 45 characters (names are sized by the column and the number of steps, so every word fits whole). 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. The presenter stands top-left, over the low steps: keep the title to two lines and the first step short. A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the stairs, clear of the presenter.
8
+ slot: top-left
9
9
  presenter: stage
10
10
  nopresenter: The stairs take the full width of the slide.
11
11
  cues: [go: #__ID__-s1] at the first step, then each in turn, then [go: slot].
@@ -49,6 +49,33 @@ script: It starts when you [go: #__ID__-s1] ask. Your assistant [go: #__ID__-s2]
49
49
  .l-staircase[data-presenter-size="xl"] .steps b { font-size: min(var(--t-body), calc(100cqi / (var(--n) * 9))); }
50
50
  .l-staircase[data-presenter-size="xl"] .steps p { font-size: min(var(--t-body), calc(100cqi / (var(--n) * 11))); }
51
51
  }
52
+ /* The presenter stands top-left (slot-left, raised), over the low steps; the steps take the full width. The slot's
53
+ containing block runs from the top of the steps' row to the slide's bottom edge, so a longer title moves the presenter
54
+ down with the steps. It is placed by its bottom edge (the head's), 331px under the row's top (235px at s), or 240px over the slide's
55
+ bottom edge when a longer title or a lead leaves less room (check --layout says when they no longer fit): captions grow up from
56
+ there and never move the head. 36px from the left leaves a tall head's caption, beside the head, clear of the third step.
57
+ The steps stand in four rows: each one spans from its own row to the floor, so it is taller than the one before by at
58
+ least a 40px row, whatever its words. The bottom row grows with step 1's and step 2's words (a step spanning a
59
+ flexible row would not grow it), from 30% of the height; step 2's own row adds 15%, less as a longer title shortens
60
+ the steps, so step 2 starts under that caption when step 1's words leave room (check --layout says when not). The two
61
+ upper rows share what is left.
62
+ A large presenter stands bottom-left, beside today's column moved to the right. Wide screens, with a presenter that is
63
+ neither corner (it ignores its slot) nor glass (its caption always stands over its head, on the title): those, a slide
64
+ without slot-left, a silent deck and a phone keep the rules above, and glass stands bottom-right. */
65
+ @media not all and (max-width: 650px) {
66
+ :root:not(.hd-no-presenter) .l-staircase.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, auto) minmax(0, 1fr); row-gap: 0; align-content: stretch; }
67
+ :root:not(.hd-no-presenter) .l-staircase.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) > :not(.steps, .narration-slot) { margin-bottom: 24px; }
68
+ :root:not(.hd-no-presenter) .l-staircase.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .steps { grid-row: 5; max-width: none; width: 100%; grid-template-rows: minmax(40px, 1fr) minmax(40px, 1fr) max(40px, min(15%, 100% - 480px)) minmax(30%, auto); row-gap: 0; align-items: stretch; }
69
+ :root:not(.hd-no-presenter) .l-staircase.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .steps li { grid-row: 4 / 5; grid-column: 1; min-height: auto; }
70
+ :root:not(.hd-no-presenter) .l-staircase.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .steps li:nth-child(2) { grid-row: 3 / 5; grid-column: 2; }
71
+ :root:not(.hd-no-presenter) .l-staircase.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .steps li:nth-child(3) { grid-row: 2 / 5; grid-column: 3; }
72
+ :root:not(.hd-no-presenter) .l-staircase.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .steps li:nth-child(4) { grid-row: 1 / 5; grid-column: 4; }
73
+ :root:not(.hd-no-presenter) .l-staircase.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .narration-slot { grid-row: 5; left: 36px; bottom: max(100% - 331px, 240px); }
74
+ :root:not(.hd-no-presenter) .l-staircase.slot-left[data-presenter-size="s"]:not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .narration-slot { bottom: max(100% - 235px, 240px); }
75
+ :root:not(.hd-no-presenter) .l-staircase.slot-left[data-presenter-size="l"]:not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) { padding-left: 698px; }
76
+ :root:not(.hd-no-presenter) .l-staircase.slot-left[data-presenter-size="xl"]:not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) { padding-left: 848px; }
77
+ .l-staircase.slot-left:is([data-presenter-style="glass"], :root:has(script[data-presenter-style="glass"]) :not([data-presenter-style])) .narration-slot { left: auto; right: 56px; }
78
+ }
52
79
  /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
53
80
  @media (min-width: 651px) {
54
81
  :root.hd-no-presenter .l-staircase :is(.steps, .tt) { max-width: none; }
@@ -65,7 +92,7 @@ script: It starts when you [go: #__ID__-s1] ask. Your assistant [go: #__ID__-s2]
65
92
  .l-staircase:is([data-presenter-size="l"], [data-presenter-size="xl"]) .steps li { --icon: 40; }
66
93
  }
67
94
  </style>
68
- <section class="slide l-staircase" id="__ID__" data-chapter="How it works" data-note="Source: where each step is described (the docs, the product).">
95
+ <section class="slide l-staircase slot-left" data-dock-clear=".steps li" id="__ID__" data-chapter="How it works" data-note="Source: where each step is described (the docs, the product).">
69
96
  <div class="kicker">How a deck gets made</div>
70
97
  <h2 class="tt" data-title-mobile="Each step builds.">Each step stands on the last.</h2>
71
98
  <ol class="steps">
@@ -24,7 +24,13 @@ script: You may have heard [look: #__ID__-old] that an avatar deck is a deepfake
24
24
  @media (max-width: 650px) {
25
25
  .l-strike { gap: 14px; justify-content: var(--hd-phone-anchor); }
26
26
  .l-strike .old { font-size: var(--t-lead); max-width: none; }
27
+ /* On a phone the player grows the text marked data-phone-fit into the free room (packages/player/phone-fit.js): the new claim up to 1.3 times;
28
+ on a silent deck it stands at the foot of the free height, under the old one (beside the presenter the two stay
29
+ one block).
30
+ These sizes are its floor, and what check measures. */
27
31
  .l-strike .tt { max-width: none; font-size: var(--t-title); }
32
+ /* (A little of the free height stays under the claim: its letters reach below its tight last line.) */
33
+ @container style(--hd-phone-presenter: 0) { .l-strike .old { flex-grow: 1; } .l-strike .tt { flex-grow: .05; } }
28
34
  }
29
35
  /* A large presenter (data-presenter-size l or xl on this slide's section tag). */
30
36
  @media not all and (max-width: 650px) {
@@ -41,6 +47,6 @@ script: You may have heard [look: #__ID__-old] that an avatar deck is a deepfake
41
47
  <section class="slide l-strike" id="__ID__" data-chapter="What's true" data-note="Source: where the old claim is said, and what shows the new one is true.">
42
48
  <div class="kicker">What people think</div>
43
49
  <p class="old" id="__ID__-old">An avatar deck is a deepfake of you.</p>
44
- <h2 class="tt" id="__ID__-new">It's <mark>your avatar</mark>, made from your photo, and it says so.</h2>
50
+ <h2 class="tt" id="__ID__-new" data-phone-fit="1.3" data-phone-fit-words="off">It's <mark>your avatar</mark>, made from your photo, and it says so.</h2>
45
51
  <div class="narration-slot"></div>
46
52
  </section>
@@ -23,7 +23,9 @@ script: Meet the team. [go: #__ID__-p1] Ana builds it. [go: #__ID__-p2] Sam sell
23
23
  share but never shorter than its card's content; each face takes what its card leaves (a square, 48px to 120px),
24
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
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; }
26
+ /* Corners follow the theme up to an eighth of a card's width (--frame-min, about 160px), as framed pictures do:
27
+ rounder (Soft), a narrow card reads as a pill. */
28
+ .l-team .person { justify-content: center; padding: 12px; --frame-min: 160px; border-radius: min(calc(16 * var(--round)), var(--frame-min) / 8); gap: 2px; }
27
29
  .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
30
  .l-team b { font-size: var(--b, 16px); }
29
31
  .l-team small { font-size: var(--small, 10px); min-height: var(--role-lines, 0); }
@@ -33,6 +35,7 @@ script: Meet the team. [go: #__ID__-p1] Ana builds it. [go: #__ID__-p2] Sam sell
33
35
  to grow like four. The silent case is a style query, so a browser without one keeps the sizes that fitted. */
34
36
  .l-team .people:not(:has(> :nth-child(5))) { --b: var(--t-lead); --small: var(--t-label); --initials: 28px; --role-lines: 2lh; }
35
37
  .l-team .people:has(> :nth-child(5)) { grid-auto-rows: auto; align-content: start; }
38
+ .l-team .people:has(> :nth-child(5)) .person { justify-content: flex-start; }
36
39
  .l-team .people:has(> :nth-child(5)) .face { flex: none; height: 48px; }
37
40
  @container style(--hd-phone-presenter: 0) {
38
41
  .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; }
@@ -31,6 +31,15 @@ script: A PDF in an email gets finished [look: #__ID__-b1] about one time in fiv
31
31
  .l-two-bars .row { gap: 10px; }
32
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
33
  .l-two-bars .num { font-size: var(--t-sub); }
34
+ /* The player grows them into the free room (--hd-phone-grow, 0 to 1: packages/player/phone-fit.js); at 0 they are the sizes above,
35
+ which check measures. The bars stay bars (longer than tall: up to 48px thick beside the presenter, 72px on a
36
+ silent deck); the growth goes to the numbers (up to the title size on a silent deck, room kept for about six
37
+ characters, $12.4M) and the spacing (up to 184px between the two bars); the labels at the lead size at most. */
38
+ .l-two-bars .bars { --quiet: calc((1 - var(--hd-phone-presenter)) * var(--hd-phone-grow, 0)); --num-room: calc((var(--t-sub) + (var(--t-title) - var(--t-sub)) * var(--quiet)) * (4 - .2 * var(--hd-phone-grow, 0)) + 10px); gap: calc(18px + 6px * var(--hd-phone-grow, 0) + 160px * var(--quiet)); }
39
+ .l-two-bars .bars li { gap: calc(6px + 14px * var(--quiet)); }
40
+ .l-two-bars .lab { font-size: calc(var(--t-body) + (var(--t-lead) - var(--t-body)) * var(--quiet)); }
41
+ .l-two-bars .bar { height: calc(38px + 10px * var(--hd-phone-grow, 0) + 24px * var(--quiet)); }
42
+ .l-two-bars .num { font-size: calc(var(--t-sub) + (var(--t-title) - var(--t-sub)) * var(--quiet)); }
34
43
  }
35
44
  /* A large presenter (data-presenter-size l or xl on this slide's section tag). */
36
45
  @media not all and (max-width: 650px) {
@@ -42,7 +51,7 @@ script: A PDF in an email gets finished [look: #__ID__-b1] about one time in fiv
42
51
  :root.hd-no-presenter .l-two-bars :is(.bars, .tt) { max-width: none; }
43
52
  }
44
53
  </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.">
54
+ <section class="slide l-two-bars" id="__ID__" data-chapter="The difference" data-phone-grow=".bars" data-note="Source: name where each number comes from (a study, analytics) and its date.">
46
55
  <div class="kicker">Watched to the end</div>
47
56
  <h2 class="tt" data-title-mobile="Narrated decks get finished.">Narrated decks get finished.</h2>
48
57
  <ol class="bars">
@@ -4,8 +4,8 @@ summary: Four things placed on two axes, one in each quarter, yours marked: wher
4
4
  brief: Four things on two axes, one in each quarter, yours marked.
5
5
  says: where it sits
6
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
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. The presenter stands bottom-left, under the title's column: keep the title to two lines (about 14 characters a line: long words can take 28 to three) and the line under it to three (about 63 characters), so the captions fit over any head; check --layout counts them. 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-left
9
9
  presenter: stage
10
10
  nopresenter: The grid grows into the free corner.
11
11
  cues: [look: #__ID__-plane] as the narration names the axes; [go: #__ID__-us] at yours, then [go: slot].
@@ -53,6 +53,20 @@ script: Video is personal but slow. A PDF is quick but flat. [look: #__ID__-plan
53
53
  .l-two-by-two[data-presenter-size="xl"] :is(.tt, .lead) { max-width: 680px; }
54
54
  .l-two-by-two[data-presenter-size="xl"] .plane { max-width: 680px; }
55
55
  }
56
+ /* The presenter stands bottom-left (slot-left): the title and its line in a column over it (380px, or its longest word), the
57
+ grid larger, centred in the rest. A large presenter: today's column, moved to the right.
58
+ Wide screens, with a presenter that is not corner (corner ignores its slot and
59
+ stands bottom-right, so it, a slide without slot-left, a silent deck and a phone keep the rules above). */
60
+ @media not all and (max-width: 650px) {
61
+ :root:not(.hd-no-presenter) .l-two-by-two.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) { grid-template-columns: minmax(380px, min-content) minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); align-content: stretch; }
62
+ :root:not(.hd-no-presenter) .l-two-by-two.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .tt { font-size: var(--t-sub); line-height: 1.02; margin-top: 8px; }
63
+ :root:not(.hd-no-presenter) .l-two-by-two.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .lead { margin-top: 20px; }
64
+ :root:not(.hd-no-presenter) .l-two-by-two.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .plane { grid-row: 1 / 5; width: min(100% - 120px, 700px); margin: 0 auto; }
65
+ :root:not(.hd-no-presenter) .l-two-by-two.slot-left[data-presenter-size="l"]:not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) { padding-left: 698px; }
66
+ :root:not(.hd-no-presenter) .l-two-by-two.slot-left[data-presenter-size="xl"]:not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) { padding-left: 848px; }
67
+ /* Glass (a panel with its caption over its head, so it would cover the line) keeps the rules above, bottom-right. */
68
+ .l-two-by-two.slot-left:is([data-presenter-style="glass"], :root:has(script[data-presenter-style="glass"]) :not([data-presenter-style])) .narration-slot { left: auto; right: 56px; }
69
+ }
56
70
  /* 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
71
  @media (min-width: 651px) {
58
72
  :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; }
@@ -60,7 +74,7 @@ script: Video is personal but slow. A PDF is quick but flat. [look: #__ID__-plan
60
74
  :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
75
  }
62
76
  </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).">
77
+ <section class="slide l-two-by-two slot-left" data-dock-clear=".plane" 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
78
  <div class="kicker">Where it sits</div>
65
79
  <h2 class="tt" data-title-mobile="Personal and quick.">Personal, and quick to make.</h2>
66
80
  <p class="lead">A recorded video is personal but slow. A PDF is quick but flat.</p>
@@ -44,6 +44,7 @@ script: Watch it do the whole job. [look: #__ID__-clip] No cuts, no edits, start
44
44
  .l-video-full .clip { flex: none; height: auto; max-height: 420px; }
45
45
  .l-video-full div.clip { aspect-ratio: 16 / 9; }
46
46
  .l-video-full .bar { --t-sub: calc(28px * var(--display-scale)); flex: none; min-height: 0; padding: 14px 20px 16px; }
47
+ /* The player grows the title into the free room, up to 38px (packages/player/phone-fit.js). */
47
48
  .l-video-full .tt { font-size: var(--t-sub); line-height: 1.02; }
48
49
  .l-video-full .narration-slot { right: 12px; bottom: 12px; }
49
50
  }
@@ -56,7 +57,7 @@ script: Watch it do the whole job. [look: #__ID__-clip] No cuts, no edits, start
56
57
  <div class="clip" id="__ID__-clip" role="img" aria-label="Screen recording placeholder"></div>
57
58
  <div class="bar">
58
59
  <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
+ <h2 class="tt" data-phone-fit="1.36" data-title-mobile="Watch it work.">Watch it do the whole job, start to finish.</h2>
60
61
  </div>
61
62
  <div class="narration-slot"></div>
62
63
  </section>