easel-canvas 0.2.0 → 0.2.1

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 (33) hide show
  1. package/README.md +49 -24
  2. package/bin/mcp.mjs +10 -7
  3. package/examples/demo/CLAUDE.md +8 -0
  4. package/examples/demo/assets/fonts/OFL-Anton.txt +93 -0
  5. package/examples/demo/assets/fonts/OFL-JetBrainsMono.txt +93 -0
  6. package/examples/demo/assets/fonts/anton-latin-400.woff2 +0 -0
  7. package/examples/demo/assets/fonts/jetbrains-mono-latin-400.woff2 +0 -0
  8. package/examples/demo/assets/ticket-qr.svg +5 -0
  9. package/examples/demo/board.json +47 -20
  10. package/examples/demo/comments.json +27 -7
  11. package/examples/demo/screens/brand.html +155 -0
  12. package/examples/demo/screens/clash.html +94 -0
  13. package/examples/demo/screens/empty-day.html +114 -0
  14. package/examples/demo/screens/film.html +98 -0
  15. package/examples/demo/screens/home-daylight.html +144 -0
  16. package/examples/demo/screens/home.html +132 -38
  17. package/examples/demo/screens/poster.html +77 -0
  18. package/examples/demo/screens/programme.html +125 -0
  19. package/examples/demo/screens/site.html +118 -0
  20. package/examples/demo/screens/square.html +71 -0
  21. package/examples/demo/screens/ticket.html +107 -0
  22. package/examples/demo/screens/timetable.html +192 -0
  23. package/examples/demo/tokens.json +54 -22
  24. package/package.json +3 -2
  25. package/server/args.mjs +3 -2
  26. package/server/chat.mjs +26 -16
  27. package/server/html.mjs +1 -1
  28. package/examples/demo/screens/empty.html +0 -43
  29. package/examples/demo/screens/habit.html +0 -55
  30. package/examples/demo/screens/landing.html +0 -44
  31. package/examples/demo/screens/new-habit.html +0 -47
  32. package/examples/demo/screens/settings.html +0 -43
  33. package/examples/demo/screens/stats.html +0 -50
@@ -0,0 +1,155 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="board-size" content="1440x900">
7
+ <title>Brand sheet</title>
8
+ <style>
9
+ /* ===== Intercut base: the same block opens every board ===== */
10
+ @font-face{font-family:"Anton";src:url("../assets/fonts/anton-latin-400.woff2") format("woff2");font-display:block}
11
+ @font-face{font-family:"JetBrains Mono";src:url("../assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");font-display:block}
12
+ :root{
13
+ /* colour tokens: tokens.json, theme Night */
14
+ --field:#0A0A0A; --ink:#FFFFFF; --muted:#9C9C9C; --rule:#333333; --safelight:#FF3D14; --on-safelight:#0A0A0A; --signal:#FF3D14;
15
+ /* faces: swap them here, then retune the two numbers below */
16
+ --display:"Anton","HelveticaNeue-CondensedBlack",Impact,sans-serif;
17
+ --mono:"JetBrains Mono",Menlo,monospace;
18
+ --cap:.86; /* cap height ÷ font size: a display line box is exactly its caps */
19
+ --cap-nudge:.0065em; /* moves the caps down onto the box, so cap top = box top */
20
+ }
21
+ *{box-sizing:border-box;margin:0;padding:0}
22
+ html,body{background:var(--field);color:var(--ink)}
23
+ body{font-family:var(--mono);font-size:16px;line-height:24px;-webkit-font-smoothing:antialiased}
24
+ a{color:inherit;text-decoration:none}
25
+ /* display: Anton caps in a box exactly cap-high, so stacked lines butt and the waist sits at 50% */
26
+ .display{display:block;font-family:var(--display);font-weight:400;text-transform:uppercase;line-height:var(--cap);translate:0 var(--cap-nudge);white-space:nowrap}
27
+ /* small print: JetBrains Mono caps */
28
+ .mono{font-family:var(--mono);font-size:12px;line-height:16px;letter-spacing:.04em;text-transform:uppercase}
29
+ /* the splice: one live text node cut at the cap waist by an SVG filter (the filters sit in .defs at the end of body) */
30
+ .splice{filter:url(#splice)}
31
+ .cut-red{color:var(--safelight)} /* the wordmark under 56px: the cut becomes colour */
32
+ .slit{flood-color:var(--safelight)}
33
+ .defs{position:absolute;width:0;height:0;overflow:hidden}
34
+ /* ===== end of base ===== */
35
+ /* ===== Brand sheet: the key visual, the wordmark and its sizes, colour in two themes, type ===== */
36
+ .sheet{width:1440px;height:900px;position:relative;overflow:clip;display:grid;grid-template-columns:840px 600px}
37
+ /* left: the key visual on a Safelight field */
38
+ .key{position:relative;background:var(--safelight);color:var(--on-safelight)}
39
+ .key .lines{position:absolute;left:0;right:0;top:24px}
40
+ .key .lines .display{font-size:320px;padding-left:20px}
41
+ .key .lines .display + .display{margin-top:12px}
42
+ .key .edge{position:absolute;right:24px;top:24px;bottom:24px;writing-mode:vertical-rl;display:flex;justify-content:space-between}
43
+ /* right: the system */
44
+ .system{display:grid;grid-template-rows:376px 168px 220px 136px;border-left:1px solid var(--rule)}
45
+ .system > section{position:relative;border-bottom:1px solid var(--rule);padding:16px 24px 0}
46
+ .system > section:last-child{border-bottom:0}
47
+ .part{display:flex;justify-content:space-between;color:var(--muted)}
48
+ .big-mark{margin-top:32px;margin-left:-24px;padding-left:20px}
49
+ .big-mark .display{font-size:160px}
50
+ .big-mark .display + .display{margin-top:16px}
51
+ .big-mark .wm-cut{filter:url(#wordmark)}
52
+ .sizes{display:grid;grid-template-columns:264px 168px 120px;margin-top:16px}
53
+ .size{height:104px;display:flex;flex-direction:column;justify-content:space-between;border-left:1px solid var(--rule);padding-left:16px}
54
+ .size:first-child{border-left:0;padding-left:0}
55
+ .size .mono{color:var(--muted)}
56
+ .lockup{display:flex}
57
+ .lockup.slit-size .display{font-size:56px}
58
+ .lockup.slit-size .wm-cut{filter:url(#lockup)}
59
+ .lockup.colour-size .display{font-size:28px}
60
+ .icons{display:flex;align-items:flex-end;gap:16px}
61
+ .icon rect{fill:var(--safelight)}
62
+ .palette{display:grid;grid-template-columns:repeat(6,1fr);margin-top:16px;border-top:1px solid var(--rule);border-left:1px solid var(--rule)}
63
+ .chip{border-right:1px solid var(--rule)}
64
+ .chip .name{display:block;height:32px;padding:8px 0 0 8px}
65
+ .chip .night,.chip .day{display:block;height:56px;padding:4px 0 0 8px;font-family:var(--mono);font-size:12px;line-height:16px}
66
+ .chip .night{background:var(--swatch-night);color:var(--on-night)}
67
+ .chip .day{background:var(--swatch-day);color:var(--on-day)}
68
+ .faces{display:grid;grid-template-columns:1fr 1fr;margin-top:12px}
69
+ .faces .display{font-size:56px}
70
+ .faces .text{font-size:16px;line-height:24px;padding-top:8px}
71
+ .faces .mono{color:var(--muted);display:block;margin-top:8px}
72
+ .slit-ink{flood-color:var(--ink)}
73
+ </style>
74
+ </head>
75
+ <body>
76
+ <main class="sheet">
77
+ <section class="key" aria-label="Key visual">
78
+ <div class="lines">
79
+ <span class="display">Make</span>
80
+ <span class="display">your</span>
81
+ <span class="display splice">cut.</span>
82
+ </div>
83
+ <p class="edge mono"><span>Intercut No.14 · City film festival</span><span>04–14.03.2027 · 214 films · 6 cinemas</span></p>
84
+ </section>
85
+
86
+ <div class="system">
87
+ <section>
88
+ <h2 class="part mono"><span>01 Wordmark</span><span>Slit lock-up</span></h2>
89
+ <div class="big-mark" aria-label="Intercut">
90
+ <span class="display">Inter</span>
91
+ <span class="display wm-cut">Cut</span>
92
+ </div>
93
+ </section>
94
+
95
+ <section>
96
+ <h2 class="part mono"><span>02 Sizes</span><span>One cut, three cuts</span></h2>
97
+ <div class="sizes">
98
+ <div class="size"><span class="lockup slit-size"><span class="display">Inter</span><span class="display wm-cut">Cut</span></span><span class="mono">56 px and up</span></div>
99
+ <div class="size"><span class="lockup colour-size"><span class="display">Inter</span><span class="display cut-red">Cut</span></span><span class="mono">Under 56 px</span></div>
100
+ <div class="size"><span class="icons">
101
+ <svg class="icon" width="48" height="48" viewBox="0 0 48 48" role="img" aria-label="Icon, 48 px"><rect x="0" y="4" width="40" height="18"/><rect x="8" y="26" width="40" height="18"/></svg>
102
+ <svg class="icon" width="24" height="24" viewBox="0 0 24 24" role="img" aria-label="Icon, 24 px"><rect x="0" y="2" width="20" height="9"/><rect x="4" y="13" width="20" height="9"/></svg>
103
+ </span><span class="mono">Icon 48, 24</span></div>
104
+ </div>
105
+ </section>
106
+
107
+ <section>
108
+ <h2 class="part mono"><span>03 Colour</span><span>Night / Daylight</span></h2>
109
+ <div class="palette">
110
+ <div class="chip" style="--swatch-night:var(--safelight);--on-night:#0A0A0A;--swatch-day:var(--safelight);--on-day:#0A0A0A"><span class="name mono">Safelight</span><span class="night">FF3D14</span><span class="day">FF3D14</span></div>
111
+ <div class="chip" style="--swatch-night:#0A0A0A;--on-night:#FFFFFF;--swatch-day:#FFFFFF;--on-day:#0A0A0A"><span class="name mono">Field</span><span class="night">0A0A0A</span><span class="day">FFFFFF</span></div>
112
+ <div class="chip" style="--swatch-night:#FFFFFF;--on-night:#0A0A0A;--swatch-day:#0A0A0A;--on-day:#FFFFFF"><span class="name mono">Ink</span><span class="night">FFFFFF</span><span class="day">0A0A0A</span></div>
113
+ <div class="chip" style="--swatch-night:#9C9C9C;--on-night:#0A0A0A;--swatch-day:#333333;--on-day:#FFFFFF"><span class="name mono">Muted</span><span class="night">9C9C9C</span><span class="day">333333</span></div>
114
+ <div class="chip" style="--swatch-night:#333333;--on-night:#FFFFFF;--swatch-day:#9C9C9C;--on-day:#0A0A0A"><span class="name mono">Rule</span><span class="night">333333</span><span class="day">9C9C9C</span></div>
115
+ <div class="chip" style="--swatch-night:var(--signal);--on-night:#0A0A0A;--swatch-day:#0A0A0A;--on-day:#FFFFFF"><span class="name mono">Signal</span><span class="night">FF3D14</span><span class="day">0A0A0A</span></div>
116
+ </div>
117
+ </section>
118
+
119
+ <section>
120
+ <h2 class="part mono"><span>04 Type</span><span>Two faces, one weight each</span></h2>
121
+ <div class="faces">
122
+ <div><span class="display">Anton</span><span class="mono">Display · caps · 20 to 480</span></div>
123
+ <div><p class="text">JetBrains Mono</p><span class="mono">Small print · 12 and 16</span></div>
124
+ </div>
125
+ </section>
126
+ </div>
127
+ </main>
128
+
129
+ <svg class="defs" aria-hidden="true" focusable="false">
130
+ <!-- The splice: one text node, cut at the cap waist. Fractions of the filter box; Anton's cap waist sits at 50% of it in every
131
+ engine, so only the slit's two y numbers retune with the face. dx = shift ÷ element width; change dx if the width changes. -->
132
+ <!-- key visual, CUT. on the 840px field: shift .2em = 64px, an Ink slit -->
133
+ <filter id="splice" x="-.2" y="-.05" width="1.6" height="1.1" primitiveUnits="objectBoundingBox" color-interpolation-filters="sRGB">
134
+ <feOffset in="SourceGraphic" dx="0" x="-.2" y="-.05" width="1.6" height=".5258" result="upper"/>
135
+ <feFlood class="slit-ink" x="0" y=".4758" width=".9" height=".0398" result="slit"/>
136
+ <feOffset in="SourceGraphic" dx=".0762" x="-.2" y=".5156" width="1.6" height=".5344" result="lower"/>
137
+ <feMerge><feMergeNode in="upper"/><feMergeNode in="slit"/><feMergeNode in="lower"/></feMerge>
138
+ </filter>
139
+ <!-- the big wordmark: CUT is a 600px block, shift .2em = 32px, a Safelight slit across the panel -->
140
+ <filter id="wordmark" x="-.2" y="-.05" width="1.6" height="1.1" primitiveUnits="objectBoundingBox" color-interpolation-filters="sRGB">
141
+ <feOffset in="SourceGraphic" dx="0" x="-.2" y="-.05" width="1.6" height=".5258" result="upper"/>
142
+ <feFlood class="slit" x="0" y=".4758" width="1" height=".0398" result="slit"/>
143
+ <feOffset in="SourceGraphic" dx=".0533" x="-.2" y=".5156" width="1.6" height=".5344" result="lower"/>
144
+ <feMerge><feMergeNode in="upper"/><feMergeNode in="slit"/><feMergeNode in="lower"/></feMerge>
145
+ </filter>
146
+ <!-- the one-line lock-up: CUT is its own width (1.343em), shift .2em, the slit runs under CUT only -->
147
+ <filter id="lockup" x="-.2" y="-.05" width="1.6" height="1.1" primitiveUnits="objectBoundingBox" color-interpolation-filters="sRGB">
148
+ <feOffset in="SourceGraphic" dx="0" x="-.2" y="-.05" width="1.6" height=".5258" result="upper"/>
149
+ <feFlood class="slit" x="0" y=".4758" width="1.149" height=".0398" result="slit"/>
150
+ <feOffset in="SourceGraphic" dx=".149" x="-.2" y=".5156" width="1.6" height=".5344" result="lower"/>
151
+ <feMerge><feMergeNode in="upper"/><feMergeNode in="slit"/><feMergeNode in="lower"/></feMerge>
152
+ </filter>
153
+ </svg>
154
+ </body>
155
+ </html>
@@ -0,0 +1,94 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="board-size" content="390x844">
7
+ <title>State: clash</title>
8
+ <style>
9
+ /* ===== Intercut base: the same block opens every board ===== */
10
+ @font-face{font-family:"Anton";src:url("../assets/fonts/anton-latin-400.woff2") format("woff2");font-display:block}
11
+ @font-face{font-family:"JetBrains Mono";src:url("../assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");font-display:block}
12
+ :root{
13
+ /* colour tokens: tokens.json, theme Night */
14
+ --field:#0A0A0A; --ink:#FFFFFF; --muted:#9C9C9C; --rule:#333333; --safelight:#FF3D14; --on-safelight:#0A0A0A; --signal:#FF3D14;
15
+ /* faces: swap them here, then retune the two numbers below */
16
+ --display:"Anton","HelveticaNeue-CondensedBlack",Impact,sans-serif;
17
+ --mono:"JetBrains Mono",Menlo,monospace;
18
+ --cap:.86; /* cap height ÷ font size: a display line box is exactly its caps */
19
+ --cap-nudge:.0065em; /* moves the caps down onto the box, so cap top = box top */
20
+ }
21
+ *{box-sizing:border-box;margin:0;padding:0}
22
+ html,body{background:var(--field);color:var(--ink)}
23
+ body{font-family:var(--mono);font-size:16px;line-height:24px;-webkit-font-smoothing:antialiased}
24
+ a{color:inherit;text-decoration:none}
25
+ /* display: Anton caps in a box exactly cap-high, so stacked lines butt and the waist sits at 50% */
26
+ .display{display:block;font-family:var(--display);font-weight:400;text-transform:uppercase;line-height:var(--cap);translate:0 var(--cap-nudge);white-space:nowrap}
27
+ /* small print: JetBrains Mono caps */
28
+ .mono{font-family:var(--mono);font-size:12px;line-height:16px;letter-spacing:.04em;text-transform:uppercase}
29
+ /* the splice: one live text node cut at the cap waist by an SVG filter (the filters sit in .defs at the end of body) */
30
+ .splice{filter:url(#splice)}
31
+ .cut-red{color:var(--safelight)} /* the wordmark under 56px: the cut becomes colour */
32
+ .slit{flood-color:var(--safelight)}
33
+ .defs{position:absolute;width:0;height:0;overflow:hidden}
34
+ /* ===== end of base ===== */
35
+ /* ===== State: a clash. Two films overlap; the app says by how much and offers the way out ===== */
36
+ .screen{width:390px;height:844px;position:relative;overflow:clip}
37
+ .status{height:44px;display:flex;justify-content:space-between;align-items:center;padding:0 24px}
38
+ .status .time{font-family:var(--display);font-size:20px;line-height:20px}
39
+ .film-nav{height:48px;display:flex;border-bottom:1px solid var(--rule)}
40
+ .film-nav a{display:flex;align-items:center;padding:0 16px}
41
+ .clash-head{padding:24px 16px 24px}
42
+ .clash-head .label{color:var(--signal)}
43
+ .clash-head .display{font-size:120px;margin-top:20px}
44
+ .clash-head .display + .display{font-size:56px;margin-top:8px;color:var(--muted)}
45
+ /* the evening drawn to scale: 19:00 to 23:00, 88px an hour, the overlap hatched */
46
+ .evening{position:relative;width:352px;height:184px;margin:0 0 0 16px;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
47
+ .hour{position:absolute;top:8px;left:calc(var(--h) * 88px);color:var(--muted)}
48
+ .hour.end{translate:-100% 0}
49
+ .slot{position:absolute;left:calc(var(--from) * 88px);width:calc(var(--run) * 88px / 60);height:48px;display:flex;align-items:center;padding:0 8px;overflow:hidden}
50
+ .slot .display{font-size:20px}
51
+ .slot.kept{top:40px;background:var(--safelight);color:var(--on-safelight)}
52
+ .slot.added{top:96px;border:1px solid var(--ink)}
53
+ .overlap{position:absolute;top:32px;bottom:28px;left:calc(var(--from) * 88px);width:calc(var(--run) * 88px / 60);background:repeating-linear-gradient(135deg,var(--safelight) 0 2px,transparent 2px 8px)}
54
+ .overlap-label{position:absolute;bottom:8px;left:calc(var(--from) * 88px);color:var(--signal)}
55
+ .choices{position:absolute;left:0;right:0;bottom:0}
56
+ .choice{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-top:1px solid var(--rule)}
57
+ .choice .display{font-size:28px}
58
+ .choice .mono{color:var(--muted)}
59
+ .choice.best{background:var(--safelight);color:var(--on-safelight)}
60
+ .choice.best .mono{color:var(--on-safelight)}
61
+ </style>
62
+ </head>
63
+ <body>
64
+ <main class="screen">
65
+ <div class="status"><span class="time">18:54</span><span class="mono">5G · 82%</span></div>
66
+
67
+ <nav class="film-nav mono" aria-label="Back">
68
+ <a href="programme.html">← Programme</a>
69
+ </nav>
70
+
71
+ <header class="clash-head">
72
+ <span class="label mono">Clash in your cut · Sat 06.03</span>
73
+ <h1 class="display">22 min</h1>
74
+ <span class="display">overlap</span>
75
+ </header>
76
+
77
+ <figure class="evening" aria-label="Salt Winter 19:30 to 21:22 and Mirror Weather 21:00 to 22:41 overlap by 22 minutes">
78
+ <span class="hour mono" style="--h:0">19:00</span><span class="hour mono" style="--h:1">20</span><span class="hour mono" style="--h:2">21</span><span class="hour mono" style="--h:3">22</span><span class="hour end mono" style="--h:4">23:00</span>
79
+ <span class="overlap" style="--from:2;--run:22"></span>
80
+ <span class="slot kept" style="--from:.5;--run:112"><span class="display">Salt Winter</span></span>
81
+ <span class="slot added" style="--from:2;--run:101"><span class="display">Mirror Weather</span></span>
82
+ <span class="overlap-label mono" style="--from:2">21:00–21:22</span>
83
+ </figure>
84
+
85
+ <section class="choices" aria-label="Ways out">
86
+ <a class="choice best" href="home.html"><span class="display">Mon 08.03 · 16:45</span><span class="mono">Mirror Weather, C4</span></a>
87
+ <a class="choice" href="home.html"><span class="display">Keep Salt Winter</span><span class="mono">Drop the other</span></a>
88
+ <a class="choice" href="home.html"><span class="display">Leave at 21:00</span><span class="mono">Miss 22 min</span></a>
89
+ <a class="choice" href="programme.html"><span class="display">Keep both</span><span class="mono">I'll run</span></a>
90
+ </section>
91
+ </main>
92
+
93
+ </body>
94
+ </html>
@@ -0,0 +1,114 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="board-size" content="390x844">
7
+ <title>State: empty day</title>
8
+ <style>
9
+ /* ===== Intercut base: the same block opens every board ===== */
10
+ @font-face{font-family:"Anton";src:url("../assets/fonts/anton-latin-400.woff2") format("woff2");font-display:block}
11
+ @font-face{font-family:"JetBrains Mono";src:url("../assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");font-display:block}
12
+ :root{
13
+ /* colour tokens: tokens.json, theme Night */
14
+ --field:#0A0A0A; --ink:#FFFFFF; --muted:#9C9C9C; --rule:#333333; --safelight:#FF3D14; --on-safelight:#0A0A0A; --signal:#FF3D14;
15
+ /* faces: swap them here, then retune the two numbers below */
16
+ --display:"Anton","HelveticaNeue-CondensedBlack",Impact,sans-serif;
17
+ --mono:"JetBrains Mono",Menlo,monospace;
18
+ --cap:.86; /* cap height ÷ font size: a display line box is exactly its caps */
19
+ --cap-nudge:.0065em; /* moves the caps down onto the box, so cap top = box top */
20
+ }
21
+ *{box-sizing:border-box;margin:0;padding:0}
22
+ html,body{background:var(--field);color:var(--ink)}
23
+ body{font-family:var(--mono);font-size:16px;line-height:24px;-webkit-font-smoothing:antialiased}
24
+ a{color:inherit;text-decoration:none}
25
+ /* display: Anton caps in a box exactly cap-high, so stacked lines butt and the waist sits at 50% */
26
+ .display{display:block;font-family:var(--display);font-weight:400;text-transform:uppercase;line-height:var(--cap);translate:0 var(--cap-nudge);white-space:nowrap}
27
+ /* small print: JetBrains Mono caps */
28
+ .mono{font-family:var(--mono);font-size:12px;line-height:16px;letter-spacing:.04em;text-transform:uppercase}
29
+ /* the splice: one live text node cut at the cap waist by an SVG filter (the filters sit in .defs at the end of body) */
30
+ .splice{filter:url(#splice)}
31
+ .cut-red{color:var(--safelight)} /* the wordmark under 56px: the cut becomes colour */
32
+ .slit{flood-color:var(--safelight)}
33
+ .defs{position:absolute;width:0;height:0;overflow:hidden}
34
+ /* ===== end of base ===== */
35
+ /* ===== State: an empty day. Nothing cut yet on Wednesday; three ways in ===== */
36
+ .screen{width:390px;height:844px;position:relative;overflow:clip}
37
+ .status{height:44px;display:flex;justify-content:space-between;align-items:center;padding:0 24px}
38
+ .status .time{font-family:var(--display);font-size:20px;line-height:20px}
39
+ .topbar{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 0 0 16px;border-bottom:1px solid var(--rule)}
40
+ .wordmark{display:flex;align-items:center;height:55px}
41
+ .wordmark .display{font-size:28px}
42
+ .topbar .when{margin-left:auto;padding-right:16px;text-align:right;color:var(--muted)}
43
+ .days{display:flex;height:48px;border-bottom:1px solid var(--rule);width:max-content;translate:-192px 0}
44
+ .day-cell{width:48px;height:47px;border-right:1px solid var(--rule);display:flex;flex-direction:column;align-items:center;justify-content:center}
45
+ .day-cell .display{font-size:20px}
46
+ .day-cell .mono{color:var(--muted)}
47
+ .day-cell.past{color:var(--muted)}
48
+ .day-cell.today{background:var(--safelight);color:var(--on-safelight)}
49
+ .day-cell.today .mono{color:var(--on-safelight)}
50
+ .day-cell.open{box-shadow:inset 0 0 0 4px var(--ink)}
51
+ .open-head{padding:24px 16px 32px}
52
+ .open-head .label{color:var(--muted)}
53
+ .open-head .display{font-size:120px;margin-top:20px}
54
+ .open-head .display + .display{margin-top:8px;color:var(--muted)}
55
+ .picks-head{display:flex;justify-content:space-between;padding:12px 16px 8px;color:var(--muted);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
56
+ .film-row{height:64px;display:grid;grid-template-columns:56px 1fr 56px;align-items:center;padding-left:16px;border-bottom:1px solid var(--rule)}
57
+ .film-row .display{font-size:28px}
58
+ .film-row .meta{display:block;color:var(--muted)}
59
+ .film-row .add{height:63px;display:flex;align-items:center;justify-content:center;border-left:1px solid var(--rule)}
60
+ .programme-bar{position:absolute;left:0;right:0;bottom:56px;height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:var(--ink);color:var(--field)}
61
+ .programme-bar .display{font-size:28px}
62
+ .tabs{position:absolute;left:0;right:0;bottom:0;height:56px;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--rule);background:var(--field)}
63
+ .tab{display:flex;align-items:center;justify-content:center;color:var(--muted);position:relative}
64
+ .tab.on{color:var(--ink)}
65
+ .tab.on::before{content:"";position:absolute;left:0;right:0;top:-1px;height:4px;background:var(--safelight)}
66
+ </style>
67
+ </head>
68
+ <body>
69
+ <main class="screen">
70
+ <div class="status"><span class="time">18:55</span><span class="mono">5G · 82%</span></div>
71
+
72
+ <header class="topbar">
73
+ <a class="wordmark" href="home.html" aria-label="Intercut, my cut"><span class="display">Inter</span><span class="display cut-red">Cut</span></a>
74
+ <span class="when mono">Day 7 of 11<br>Wed 10.03</span>
75
+ </header>
76
+
77
+ <nav class="days" aria-label="Festival days">
78
+ <a class="day-cell past" href="home.html"><span class="display">04</span><span class="mono">Th</span></a>
79
+ <a class="day-cell past" href="home.html"><span class="display">05</span><span class="mono">Fr</span></a>
80
+ <a class="day-cell today" href="home.html"><span class="display">06</span><span class="mono">Sa</span></a>
81
+ <a class="day-cell" href="programme.html"><span class="display">07</span><span class="mono">Su</span></a>
82
+ <a class="day-cell" href="programme.html"><span class="display">08</span><span class="mono">Mo</span></a>
83
+ <a class="day-cell" href="programme.html"><span class="display">09</span><span class="mono">Tu</span></a>
84
+ <a class="day-cell open" href="empty-day.html"><span class="display">10</span><span class="mono">We</span></a>
85
+ <a class="day-cell" href="programme.html"><span class="display">11</span><span class="mono">Th</span></a>
86
+ <a class="day-cell" href="programme.html"><span class="display">12</span><span class="mono">Fr</span></a>
87
+ <a class="day-cell" href="programme.html"><span class="display">13</span><span class="mono">Sa</span></a>
88
+ <a class="day-cell" href="programme.html"><span class="display">14</span><span class="mono">Su</span></a>
89
+ </nav>
90
+
91
+ <header class="open-head">
92
+ <span class="label mono">Your cut · Wed 10.03 · 0 films</span>
93
+ <h1 class="display">Still</h1>
94
+ <span class="display">open.</span>
95
+ </header>
96
+
97
+ <section class="picks">
98
+ <h2 class="picks-head mono"><span>Three to start with</span><span>Free that evening</span></h2>
99
+ <a class="film-row" href="film.html"><span class="mono">16:00</span><span><span class="display">Velvet Ration</span><span class="meta mono">C5 · 100 min · Competition</span></span><span class="add mono">Add</span></a>
100
+ <a class="film-row" href="film.html"><span class="mono">19:45</span><span><span class="display">Hollow Bay</span><span class="meta mono">C1 · 98 min · First films</span></span><span class="add mono">Add</span></a>
101
+ <a class="film-row" href="film.html"><span class="mono">22:45</span><span><span class="display">Wide Awake Tuesday</span><span class="meta mono">C6 · 88 min · Midnight</span></span><span class="add mono">Add</span></a>
102
+ </section>
103
+
104
+ <a class="programme-bar" href="programme.html"><span class="display">Open the programme</span><span class="mono">29 that day</span></a>
105
+
106
+ <nav class="tabs mono" aria-label="Sections">
107
+ <a class="tab" href="programme.html">Programme</a>
108
+ <a class="tab on" href="home.html">My cut</a>
109
+ <a class="tab" href="ticket.html">Tickets</a>
110
+ </nav>
111
+ </main>
112
+
113
+ </body>
114
+ </html>
@@ -0,0 +1,98 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="board-size" content="390x844">
7
+ <title>Film: Salt Winter</title>
8
+ <style>
9
+ /* ===== Intercut base: the same block opens every board ===== */
10
+ @font-face{font-family:"Anton";src:url("../assets/fonts/anton-latin-400.woff2") format("woff2");font-display:block}
11
+ @font-face{font-family:"JetBrains Mono";src:url("../assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");font-display:block}
12
+ :root{
13
+ /* colour tokens: tokens.json, theme Night */
14
+ --field:#0A0A0A; --ink:#FFFFFF; --muted:#9C9C9C; --rule:#333333; --safelight:#FF3D14; --on-safelight:#0A0A0A; --signal:#FF3D14;
15
+ /* faces: swap them here, then retune the two numbers below */
16
+ --display:"Anton","HelveticaNeue-CondensedBlack",Impact,sans-serif;
17
+ --mono:"JetBrains Mono",Menlo,monospace;
18
+ --cap:.86; /* cap height ÷ font size: a display line box is exactly its caps */
19
+ --cap-nudge:.0065em; /* moves the caps down onto the box, so cap top = box top */
20
+ }
21
+ *{box-sizing:border-box;margin:0;padding:0}
22
+ html,body{background:var(--field);color:var(--ink)}
23
+ body{font-family:var(--mono);font-size:16px;line-height:24px;-webkit-font-smoothing:antialiased}
24
+ a{color:inherit;text-decoration:none}
25
+ /* display: Anton caps in a box exactly cap-high, so stacked lines butt and the waist sits at 50% */
26
+ .display{display:block;font-family:var(--display);font-weight:400;text-transform:uppercase;line-height:var(--cap);translate:0 var(--cap-nudge);white-space:nowrap}
27
+ /* small print: JetBrains Mono caps */
28
+ .mono{font-family:var(--mono);font-size:12px;line-height:16px;letter-spacing:.04em;text-transform:uppercase}
29
+ /* the splice: one live text node cut at the cap waist by an SVG filter (the filters sit in .defs at the end of body) */
30
+ .splice{filter:url(#splice)}
31
+ .cut-red{color:var(--safelight)} /* the wordmark under 56px: the cut becomes colour */
32
+ .slit{flood-color:var(--safelight)}
33
+ .defs{position:absolute;width:0;height:0;overflow:hidden}
34
+ /* ===== end of base ===== */
35
+ /* ===== Film page: the whole page is a Safelight field ===== */
36
+ body{background:var(--safelight);color:var(--on-safelight)}
37
+ .screen{width:390px;height:844px;position:relative;overflow:clip;background:var(--safelight);color:var(--on-safelight)}
38
+ .status{height:44px;display:flex;justify-content:space-between;align-items:center;padding:0 24px}
39
+ .status .time{font-family:var(--display);font-size:20px;line-height:20px}
40
+ .film-nav{height:48px;display:flex;border-bottom:1px solid var(--on-safelight)}
41
+ .film-nav a{display:flex;align-items:center;padding:0 16px;border-left:1px solid var(--on-safelight)}
42
+ .film-nav .back{margin-right:auto;border-left:0}
43
+ .film-title{padding:16px 0 24px}
44
+ .film-title .strand{display:block;padding:0 16px 16px}
45
+ .film-title .display{font-size:120px;padding-left:12px}
46
+ .film-title .display + .display{margin-top:8px}
47
+ .credits{padding:0 16px 16px}
48
+ .credits .mono{display:block;margin-bottom:8px}
49
+ .synopsis{font-size:16px;line-height:24px}
50
+ .sessions{border-top:1px solid var(--on-safelight)}
51
+ .session{height:56px;display:grid;grid-template-columns:96px 1fr 72px;align-items:center;padding:0 16px;border-bottom:1px solid var(--on-safelight)}
52
+ .session .display{font-size:28px}
53
+ .session .where{text-align:right}
54
+ .session.yours{background:var(--on-safelight);color:var(--safelight)}
55
+ .cta{position:absolute;left:0;right:0;bottom:0;height:64px;display:grid;grid-template-columns:1fr 120px;background:var(--on-safelight);color:var(--ink)}
56
+ .cta .ticket-link{display:flex;align-items:center;justify-content:space-between;padding:0 16px}
57
+ .cta .ticket-link .display{font-size:28px}
58
+ .cta .remove{display:flex;align-items:center;justify-content:center;border-left:1px solid var(--rule);color:var(--muted)}
59
+ .after{display:flex;flex-direction:column;gap:4px;padding:16px 16px 0}
60
+ </style>
61
+ </head>
62
+ <body>
63
+ <main class="screen">
64
+ <div class="status"><span class="time">18:53</span><span class="mono">5G · 82%</span></div>
65
+
66
+ <nav class="film-nav mono" aria-label="Film">
67
+ <a class="back" href="home.html">← My cut</a>
68
+ <a href="film.html">Share</a>
69
+ <a href="film.html">Trailer</a>
70
+ </nav>
71
+
72
+ <header class="film-title">
73
+ <span class="strand mono">Competition · No.07 of 38</span>
74
+ <h1 class="display">Salt</h1>
75
+ <span class="display">Winter</span>
76
+ </header>
77
+
78
+ <section class="credits">
79
+ <span class="mono">Dir. Ines Vardalou · 2026 · 112 min · OV/EN</span>
80
+ <p class="synopsis">A ferry captain keeps one island running through the longest winter on record.</p>
81
+ </section>
82
+
83
+ <section class="sessions" aria-label="Screenings">
84
+ <a class="session yours" href="ticket.html"><span class="mono">Sat 06.03</span><span class="display">19:30</span><span class="where mono">C1 · F12</span></a>
85
+ <a class="session" href="film.html"><span class="mono">Mon 08.03</span><span class="display">14:00</span><span class="where mono">C4</span></a>
86
+ <a class="session" href="film.html"><span class="mono">Thu 11.03</span><span class="display">21:15</span><span class="where mono">C2</span></a>
87
+ </section>
88
+
89
+ <p class="after mono"><span>Out at 21:22</span><span>Then Feral Monday · 22:45 · C6 Harbour · 9 min walk</span></p>
90
+
91
+ <div class="cta">
92
+ <a class="ticket-link" href="ticket.html"><span class="display">Show ticket</span><span class="display">→</span></a>
93
+ <a class="remove mono" href="home.html">Remove</a>
94
+ </div>
95
+ </main>
96
+
97
+ </body>
98
+ </html>
@@ -0,0 +1,144 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="board-size" content="390x844">
7
+ <title>My cut, daylight</title>
8
+ <style>
9
+ /* ===== Intercut base: the same block opens every board ===== */
10
+ @font-face{font-family:"Anton";src:url("../assets/fonts/anton-latin-400.woff2") format("woff2");font-display:block}
11
+ @font-face{font-family:"JetBrains Mono";src:url("../assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");font-display:block}
12
+ :root{
13
+ /* colour tokens: tokens.json, theme Daylight */
14
+ --field:#FFFFFF; --ink:#0A0A0A; --muted:#333333; --rule:#9C9C9C; --safelight:#FF3D14; --on-safelight:#0A0A0A; --signal:#0A0A0A;
15
+ /* faces: swap them here, then retune the two numbers below */
16
+ --display:"Anton","HelveticaNeue-CondensedBlack",Impact,sans-serif;
17
+ --mono:"JetBrains Mono",Menlo,monospace;
18
+ --cap:.86; /* cap height ÷ font size: a display line box is exactly its caps */
19
+ --cap-nudge:.0065em; /* moves the caps down onto the box, so cap top = box top */
20
+ }
21
+ *{box-sizing:border-box;margin:0;padding:0}
22
+ html,body{background:var(--field);color:var(--ink)}
23
+ body{font-family:var(--mono);font-size:16px;line-height:24px;-webkit-font-smoothing:antialiased}
24
+ a{color:inherit;text-decoration:none}
25
+ /* display: Anton caps in a box exactly cap-high, so stacked lines butt and the waist sits at 50% */
26
+ .display{display:block;font-family:var(--display);font-weight:400;text-transform:uppercase;line-height:var(--cap);translate:0 var(--cap-nudge);white-space:nowrap}
27
+ /* small print: JetBrains Mono caps */
28
+ .mono{font-family:var(--mono);font-size:12px;line-height:16px;letter-spacing:.04em;text-transform:uppercase}
29
+ /* the splice: one live text node cut at the cap waist by an SVG filter (the filters sit in .defs at the end of body) */
30
+ .splice{filter:url(#splice)}
31
+ .cut-red{color:var(--safelight)} /* the wordmark under 56px: the cut becomes colour */
32
+ .slit{flood-color:var(--safelight)}
33
+ .defs{position:absolute;width:0;height:0;overflow:hidden}
34
+ /* ===== end of base ===== */
35
+ /* ===== Home in daylight: the same board on the Daylight theme (only :root differs) ===== */
36
+ .screen{width:390px;height:844px;position:relative;overflow:clip}
37
+ .status{height:44px;display:flex;justify-content:space-between;align-items:center;padding:0 24px}
38
+ .status .time{font-family:var(--display);font-size:20px;line-height:20px}
39
+ .topbar{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 0 0 16px;border-bottom:1px solid var(--rule)}
40
+ .wordmark{display:flex;align-items:center;height:55px}
41
+ .wordmark .display{font-size:28px}
42
+ .topbar .when{margin-left:auto;padding-right:12px;text-align:right;color:var(--muted)}
43
+ .light-switch{width:56px;height:55px;display:flex;align-items:center;justify-content:center;border-left:1px solid var(--rule)}
44
+ .light-switch::before{content:"";width:20px;height:20px;border:2px solid var(--ink);background:linear-gradient(90deg,var(--ink) 50%,var(--field) 50%)}
45
+ /* day strip: one 48px cell per festival day, runs off the right edge */
46
+ .days{display:flex;height:48px;border-bottom:1px solid var(--rule);width:max-content}
47
+ .day-cell{width:48px;height:47px;border-right:1px solid var(--rule);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}
48
+ .day-cell .display{font-size:20px}
49
+ .day-cell .mono{color:var(--muted)}
50
+ .day-cell.past{color:var(--muted)}
51
+ .day-cell.today{background:var(--safelight);color:var(--on-safelight)}
52
+ .day-cell.today .mono{color:var(--on-safelight)}
53
+ /* next screening: the only spliced title on the screen */
54
+ .next{display:block;padding:16px 0 16px}
55
+ .next .label{padding:0 16px;color:var(--signal)}
56
+ .next .label span{color:var(--muted)}
57
+ .next-title{font-size:120px;padding-left:12px;margin-top:16px}
58
+ .next-title + .next-title{margin-top:8px}
59
+ .facts{display:grid;grid-template-columns:88px 1fr 64px 72px;border-top:1px solid var(--rule)}
60
+ .fact{height:64px;padding:12px 0 0 16px;border-right:1px solid var(--rule)}
61
+ .fact:last-child{border-right:0}
62
+ .fact .mono{display:block;color:var(--muted)}
63
+ .fact .display{font-size:28px;margin-top:8px}
64
+ .ticket-bar{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:var(--safelight);color:var(--on-safelight)}
65
+ .ticket-bar .display{font-size:28px}
66
+ /* today's cut */
67
+ .today-head{display:flex;justify-content:space-between;padding:12px 16px 8px;color:var(--muted);border-bottom:1px solid var(--rule)}
68
+ .film-row{height:48px;display:grid;grid-template-columns:64px 1fr 32px;align-items:center;padding:0 16px;border-bottom:1px solid var(--rule)}
69
+ .film-row .display{font-size:28px}
70
+ .film-row .cinema{text-align:right}
71
+ .film-row.seen{color:var(--muted)}
72
+ .film-row.seen .display{text-decoration:line-through;text-decoration-thickness:4px}
73
+ .film-row.now{color:var(--signal)}
74
+ .film-row.now .display{color:var(--safelight)}
75
+ .tabs{position:absolute;left:0;right:0;bottom:0;height:56px;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--rule);background:var(--field)}
76
+ .tab{display:flex;align-items:center;justify-content:center;color:var(--muted);position:relative}
77
+ .tab.on{color:var(--ink)}
78
+ .tab.on::before{content:"";position:absolute;left:0;right:0;top:-1px;height:4px;background:var(--safelight)}
79
+ </style>
80
+ </head>
81
+ <body>
82
+ <main class="screen">
83
+ <div class="status"><span class="time">18:52</span><span class="mono">5G · 82%</span></div>
84
+
85
+ <header class="topbar">
86
+ <a class="wordmark" href="home.html" aria-label="Intercut, my cut"><span class="display">Inter</span><span class="display cut-red">Cut</span></a>
87
+ <span class="when mono">Day 3 of 11<br>Sat 06.03</span>
88
+ <a class="light-switch" href="home.html" aria-label="Night"></a>
89
+ </header>
90
+
91
+ <nav class="days" aria-label="Festival days">
92
+ <a class="day-cell past" href="programme.html"><span class="display">04</span><span class="mono">Th</span></a>
93
+ <a class="day-cell past" href="programme.html"><span class="display">05</span><span class="mono">Fr</span></a>
94
+ <a class="day-cell today" href="home.html"><span class="display">06</span><span class="mono">Sa</span></a>
95
+ <a class="day-cell" href="programme.html"><span class="display">07</span><span class="mono">Su</span></a>
96
+ <a class="day-cell" href="programme.html"><span class="display">08</span><span class="mono">Mo</span></a>
97
+ <a class="day-cell" href="programme.html"><span class="display">09</span><span class="mono">Tu</span></a>
98
+ <a class="day-cell" href="empty-day.html"><span class="display">10</span><span class="mono">We</span></a>
99
+ <a class="day-cell" href="programme.html"><span class="display">11</span><span class="mono">Th</span></a>
100
+ <a class="day-cell" href="programme.html"><span class="display">12</span><span class="mono">Fr</span></a>
101
+ </nav>
102
+
103
+ <a class="next" href="film.html">
104
+ <span class="label mono">Next in your cut <span>· starts in 38 min</span></span>
105
+ <span class="next-title display">Salt</span>
106
+ <span class="next-title display splice">Winter</span>
107
+ </a>
108
+
109
+ <div class="facts">
110
+ <div class="fact"><span class="mono">Time</span><span class="display">19:30</span></div>
111
+ <div class="fact"><span class="mono">Cinema</span><span class="display">C1 Meridian</span></div>
112
+ <div class="fact"><span class="mono">Seat</span><span class="display">F12</span></div>
113
+ <div class="fact"><span class="mono">Run</span><span class="display">112′</span></div>
114
+ </div>
115
+
116
+ <a class="ticket-bar" href="ticket.html"><span class="display">Show ticket</span><span class="mono">Doors 19:10</span></a>
117
+
118
+ <section class="today">
119
+ <h2 class="today-head mono"><span>Today · 4 films</span><span>6 h 35 min in the dark</span></h2>
120
+ <a class="film-row seen" href="film.html"><span class="mono">11:00</span><span class="display">Glass Orchard</span><span class="cinema mono">C5</span></a>
121
+ <a class="film-row seen" href="film.html"><span class="mono">14:15</span><span class="display">Nobody Swims</span><span class="cinema mono">C3</span></a>
122
+ <a class="film-row now" href="film.html"><span class="mono">19:30</span><span class="display">Salt Winter</span><span class="cinema mono">C1</span></a>
123
+ <a class="film-row" href="film.html"><span class="mono">22:45</span><span class="display">Feral Monday</span><span class="cinema mono">C6</span></a>
124
+ </section>
125
+
126
+ <nav class="tabs mono" aria-label="Sections">
127
+ <a class="tab" href="programme.html">Programme</a>
128
+ <a class="tab on" href="home-daylight.html">My cut</a>
129
+ <a class="tab" href="ticket.html">Tickets</a>
130
+ </nav>
131
+ </main>
132
+
133
+ <svg class="defs" aria-hidden="true" focusable="false">
134
+ <!-- The splice: one text node, cut at the cap waist. Fractions of the filter box; Anton's cap waist sits at 50% of it in every
135
+ engine, so only the slit's two y numbers retune with the face. dx = shift ÷ element width; change dx if the width changes. -->
136
+ <filter id="splice" x="-.2" y="-.05" width="1.6" height="1.1" primitiveUnits="objectBoundingBox" color-interpolation-filters="sRGB">
137
+ <feOffset in="SourceGraphic" dx="0" x="-.2" y="-.05" width="1.6" height=".5258" result="upper"/>
138
+ <feFlood class="slit" x="0" y=".4758" width="1" height=".0398" result="slit"/>
139
+ <feOffset in="SourceGraphic" dx=".1231" x="-.2" y=".5156" width="1.6" height=".5344" result="lower"/>
140
+ <feMerge><feMergeNode in="upper"/><feMergeNode in="slit"/><feMergeNode in="lower"/></feMerge>
141
+ </filter>
142
+ </svg>
143
+ </body>
144
+ </html>