Chat layout: roster, channel feed, composer

- The flock is a member list with live status (perched, flying,
  waiting on you, grounded); a scrolling strip on phones
- The Sentry and crows post into one channel; approvals are inline
  buttons on their messages; verdicts show as reactions
- "Who's flying" line above the composer; Ctrl/Cmd+Enter to send
- Consecutive messages from one author group under one name
- RIVE_CONTRACT.md: roster size and still message avatars

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UQnSw4RRWp8uqpj3nsnnXF
This commit is contained in:
SmokeyandClaude Opus 5.5 committed 2026-10-27 12:36:31 -06:00
1 parent d0ae4fd1c0
commit 0733ba1d9c
5 files changed
+346 -258

No files matched your search

+151 -124
View File
@@ -1,6 +1,6 @@
/* Art direction: pen and ink on cream.
Thin, slightly wobbly ink lines; shading is stipple (dots), dense near
the edge and fading out. Color stays out of the way: the crows bring it. */
/* Art direction: pen and ink on cream. Ink linework and type, stipple shading,
no outlines on boxes. Layout: a chat room. The flock is the member list; the
Sentry and crows post into one channel; you judge with inline buttons. */
:root {
color-scheme: light;
--paper: #f4eedf;
@@ -21,122 +21,201 @@
}
* { box-sizing: border-box; }
body {
margin: 0;
background: var(--paper);
color: var(--ink);
font: 500 18px/1.45 var(--body);
}
main { max-width: 680px; margin: 0 auto; padding: 0 16px 64px; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.45 var(--body); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Shared recipe: a hand-inked panel with a stippled shadow behind it.
::before is the paper and the pen line; ::after is the dot shading. */
/* Shared recipe: a filled panel with a stippled shadow. No pen lines. */
.inked { position: relative; isolation: isolate; background: none; border: 0; }
.inked::before, .inked::after { content: ""; position: absolute; border-radius: var(--corner); pointer-events: none; }
.inked::before { inset: 0; z-index: -1; background: var(--card); } /* no pen line: shape comes from fill and stipple */
.inked::before { inset: 0; z-index: -1; background: var(--card); }
.inked::after {
inset: 7px -7px -7px 7px; z-index: -2; background: var(--stipple);
inset: 6px -6px -6px 6px; z-index: -2; background: var(--stipple);
-webkit-mask-image: linear-gradient(135deg, transparent 30%, #000 90%);
mask-image: linear-gradient(135deg, transparent 30%, #000 90%);
}
/* ---------- header ---------- */
.top {
display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; justify-content: space-between;
max-width: 680px; margin: 0 auto; padding: 22px 16px 10px;
}
.top h1 { margin: 0; font: 400 34px/1 var(--display); position: relative; }
.who { color: var(--muted); font-style: italic; }
.who input {
margin-left: 6px; width: 140px; padding: 2px 4px; font: 500 18px var(--body); color: var(--ink);
background: transparent; border: 0; border-bottom: var(--pen);
}
.who input:focus { outline: none; border-bottom-width: 3px; }
/* ---------- buttons ---------- */
.btn {
font: 400 18px/1 var(--display); letter-spacing: 0.5px; padding: 14px 20px; cursor: pointer;
font: 400 17px/1 var(--display); letter-spacing: 0.4px; padding: 12px 18px; cursor: pointer;
color: var(--ink); transition: transform 70ms;
}
.btn::after { inset: 5px -5px -5px 5px; }
.btn:active:not(:disabled) { transform: translate(4px, 4px); }
.btn::after { inset: 4px -4px -4px 4px; }
.btn:active:not(:disabled) { transform: translate(3px, 3px); }
.btn:active:not(:disabled)::after { opacity: 0; }
.btn:disabled { cursor: default; color: var(--muted); }
.btn:disabled::before { background: linear-gradient(rgb(249 245 234 / 0.72), rgb(249 245 234 / 0.72)), var(--stipple-tile) 0 0 / 64px 64px, var(--stipple-tile) 23px 11px / 47px 47px, var(--card); }
.btn:disabled::after { opacity: 0; }
.btn:focus-visible { outline: none; text-decoration: underline 2px; text-underline-offset: 5px; }
.btn:focus-visible::after, .composer .field:focus-within::after { -webkit-mask-image: none; mask-image: none; }
.btn:focus-visible::after { -webkit-mask-image: none; mask-image: none; }
.btn-go { color: var(--paper); }
.btn-go::before { background: var(--ink); }
.btn-no { color: var(--red); }
.btn-no::before { background: var(--paper); }
/* ---------- composer ---------- */
.composer { display: grid; gap: 10px; margin: 8px 0 28px; }
.composer label { font-style: italic; color: var(--muted); }
.composer .field { padding: 2px; }
.composer textarea {
display: block; width: 100%; padding: 12px 14px; font: 500 18px/1.4 var(--body); color: var(--ink);
resize: vertical; background: transparent; border: 0;
}
.composer textarea:focus { outline: none; }
/* ---------- app frame: sidebar + room ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); height: 100vh; height: 100dvh; }
/* ---------- the perch ----------
Every crow stands on its own segment of one branch line; segments touch,
so each row reads as one branch. Names sit under the branch, all alike.
Each crow has a fixed 22px headroom row for marks ("?", sparkles). */
.perch { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; margin: 4px 0 26px; }
.crow { margin: 0; width: 76px; padding-top: 22px; display: grid; justify-items: center; position: relative; }
.side {
position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px;
padding: 18px 14px; background: var(--card); overflow-y: auto;
}
.side::after { /* stippled edge where the sidebar meets the room */
content: ""; position: absolute; top: 0; bottom: 0; right: -8px; width: 8px; background: var(--stipple); pointer-events: none;
-webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / 0.7), transparent); mask-image: linear-gradient(90deg, rgb(0 0 0 / 0.7), transparent);
}
.brand { font: 400 24px/1.1 var(--display); padding: 0 6px; }
.side h2 { margin: 8px 6px 0; font: italic 500 14px/1 var(--body); color: var(--muted); }
.who { margin-top: auto; padding: 0 6px; color: var(--muted); font-style: italic; font-size: 15px; }
.who input {
display: block; width: 100%; margin-top: 4px; padding: 2px 0; font: 500 17px var(--body); color: var(--ink);
background: transparent; border: 0; border-bottom: 2px solid var(--ink);
}
.who input:focus { outline: none; border-bottom-width: 3px; }
/* ---------- roster: live crows ---------- */
.roster { display: flex; flex-direction: column; gap: 2px; }
.crow { margin: 0; position: relative; }
.crow.role-sentry { order: -1; }
.crow.role-elder { order: 99; }
.crow-body { width: 72px; height: 66px; }
.crow .crow-body svg { width: 100%; height: 100%; overflow: visible; }
.crow .disc { fill: #b7e4c7; }
.crow.role-sentry .disc { fill: #ffe08a; }
.crow.role-elder .disc { fill: #d6dde6; }
.crow .bird { fill: #000; }
.roster .crow { display: grid; grid-template-columns: 40px 1fr 16px; align-items: center; gap: 10px; padding: 5px 6px; }
.roster .crow figcaption { order: 2; }
.roster .crow .badge { order: 3; }
.crow-body { width: 40px; height: 37px; }
.crow-body svg { display: block; width: 100%; height: 100%; overflow: visible; }
.crow figcaption { font: 400 16px/1.15 var(--display); min-width: 0; }
.crow figcaption::after { display: block; font: italic 500 13px/1.3 var(--body); color: var(--muted); content: "perched"; }
.pose-flying figcaption::after { content: "flying"; }
.pose-waiting figcaption::after { content: "waiting on you"; color: var(--red); }
.pose-grounded figcaption::after { content: "grounded"; }
.crow-art .disc, .crow .disc { fill: #b7e4c7; }
.role-sentry .disc { fill: #ffe08a; }
.role-elder .disc { fill: #d6dde6; }
.crow .bird, .crow-art .bird { fill: #000; }
.crow .jaw { transform-origin: 211px 182px; transition: transform 150ms; }
.crow figcaption {
justify-self: stretch; position: relative; margin-top: 0; padding-top: 6px;
border-top: 2px solid var(--ink); text-align: center; font: 400 15px/1.2 var(--display);
}
.crow figcaption::before {
content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--stipple);
-webkit-mask-image: linear-gradient(rgb(0 0 0 / 0.6), transparent); mask-image: linear-gradient(rgb(0 0 0 / 0.6), transparent);
}
/* Trust star: its own corner, top right of the headroom, clear of the beak. */
.crow .badge {
position: absolute; top: 4px; right: 4px; width: 18px; height: 18px;
fill: var(--card); stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round;
width: 16px; height: 16px; fill: var(--card); stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round;
opacity: 0; transition: opacity 150ms;
}
.crow[data-trust="1"] .badge { opacity: 1; }
.crow[data-trust="2"] .badge { opacity: 1; fill: var(--ink); }
/* Body layer: poses */
/* Poses and reactions: motion only, crows never change size. */
.pose-perched .crow-body { animation: breathe 3.2s ease-in-out infinite; }
.pose-flying .crow-body { animation: flap 0.5s ease-in-out infinite alternate; }
.pose-flying .jaw { transform: rotate(-10deg); }
.pose-waiting .crow-body { animation: tilt 1.4s ease-in-out infinite; }
.pose-waiting::after {
content: "?"; position: absolute; top: 0; left: 0; right: 0; text-align: center; font: 400 22px/1 var(--display);
animation: pop 1.4s ease-in-out infinite;
}
.pose-grounded .crow-body { opacity: 0.4; }
/* Reaction layer: one-shots on top */
.r-cheer .crow-body { animation: hop 0.8s ease-out; }
.r-cheer .jaw { transform: rotate(14deg); }
.r-sulk .crow-body { animation: droop 0.8s ease-out; }
.r-levelUp .crow-body { animation: levelup 2s ease-out; }
.r-levelUp .jaw { transform: rotate(16deg); }
.r-levelUp::before {
content: ""; position: absolute; top: -6px; left: calc(50% - 28px); width: 56px; height: 30px; animation: rise 2s ease-out forwards;
background: var(--sparkle) 16px 0 / 26px 26px no-repeat, var(--glint) 0 14px / 12px 12px no-repeat, var(--glint) 44px 10px / 10px 10px no-repeat;
content: ""; position: absolute; top: -8px; left: -4px; width: 56px; height: 30px; z-index: 2; pointer-events: none;
animation: rise 2s ease-out forwards;
background: var(--sparkle) 16px 0 / 22px 22px no-repeat, var(--glint) 0 12px / 10px 10px no-repeat, var(--glint) 42px 8px / 9px 9px no-repeat;
}
.r-levelDown .crow-body { animation: shrug 1s ease-out; }
.r-prank .crow-body { animation: prank 2.5s ease-in-out; }
@media (prefers-reduced-motion: reduce) {
.crow *, .crow::before, .crow::after { animation: none !important; transition: none !important; }
}
/* ---------- room: header, feed, composer ---------- */
.room { display: grid; grid-template-rows: auto 1fr auto auto; min-width: 0; min-height: 0; }
.room-head { position: relative; padding: 16px 24px 12px; }
.room-head h1 { margin: 0; font: 400 22px/1.1 var(--display); }
.room-sub { margin: 2px 0 0; color: var(--muted); font-style: italic; font-size: 15px; }
.room-head::after {
content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; background: var(--stipple); z-index: 1;
-webkit-mask-image: linear-gradient(rgb(0 0 0 / 0.55), transparent); mask-image: linear-gradient(rgb(0 0 0 / 0.55), transparent);
}
.feed { list-style: none; margin: 0; padding: 14px 0 6px; overflow-y: auto; min-height: 0; }
.msg { display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; padding: 8px 24px; }
@media (hover: hover) { .msg:hover { background: rgb(28 25 21 / 0.03); } }
/* Consecutive messages from one author group under a single name, Slack style. */
.msg.cont { padding-top: 0; }
.msg.cont > .avatar { visibility: hidden; height: 0; }
.msg.cont .msg-head { display: none; }
.msg.asking { background: rgb(155 47 34 / 0.05); }
.avatar { width: 40px; height: 37px; margin-top: 3px; }
.avatar.you {
display: grid; place-items: center; width: 36px; height: 36px; margin: 3px 2px 0; border-radius: 50%;
background: var(--ink); color: var(--paper); font: 400 18px/1 var(--display);
}
.msg-main { min-width: 0; }
.msg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.author { font: 400 17px/1.2 var(--display); }
.tag { font: italic 500 13px/1 var(--body); color: var(--muted); }
.msg-head time { font-size: 13px; color: var(--muted); }
.msg-body p { margin: 2px 0; }
.msg-body ol, .msg-body ul { margin: 4px 0; padding-left: 22px; }
.re { font-style: italic; color: var(--muted); font-size: 15px; }
.plan { font: 400 15px/1.3 var(--display); }
.reason, .with { color: var(--muted); font-style: italic; }
.answer { white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.actions:empty { display: none; }
.actions .btn { padding: 9px 16px; font-size: 15px; }
.err { flex-basis: 100%; margin: 4px 0 0; color: var(--red); font-size: 15px; }
.err:empty { display: none; }
.reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.reactions:empty { display: none; }
.reaction { padding: 1px 10px; border-radius: 999px; background: #ebe3cf; font-size: 14px; }
.reaction.good, .reaction.auto { color: var(--ink); }
.reaction.bad { color: var(--red); }
.msg.system { display: block; padding: 6px 24px; text-align: center; color: var(--muted); font-style: italic; font-size: 15px; }
.msg.system p { margin: 0; }
.msg.system.sparkle p::before {
content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px;
background: var(--sparkle) center / contain no-repeat;
}
.typing { margin: 0; min-height: 24px; padding: 2px 24px; color: var(--muted); font-style: italic; font-size: 14px; }
.composer { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 12px; padding: 4px 24px 16px; }
.composer .field { padding: 2px; }
.composer textarea {
display: block; width: 100%; max-height: 40vh; padding: 10px 12px; font: 500 17px/1.4 var(--body); color: var(--ink);
resize: vertical; background: transparent; border: 0;
}
.composer textarea:focus { outline: none; }
.composer .field:focus-within::after { -webkit-mask-image: none; mask-image: none; }
.hint { grid-column: 1 / -1; margin: 0; color: var(--muted); font-style: italic; font-size: 13px; }
/* ---------- phones: sidebar becomes a top bar with a scrolling flock ---------- */
@media (max-width: 759px) {
.app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.side { min-width: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px 6px; overflow: visible; }
.side::after { top: auto; bottom: -8px; left: 0; right: 0; width: auto; height: 8px;
-webkit-mask-image: linear-gradient(rgb(0 0 0 / 0.7), transparent); mask-image: linear-gradient(rgb(0 0 0 / 0.7), transparent); }
.side h2 { display: none; }
.brand { font-size: 20px; padding: 0; }
.who { order: 2; margin: 0 0 0 auto; padding: 0; font-size: 14px; }
.who input { display: inline-block; width: 96px; margin: 0 0 0 4px; font-size: 15px; }
.roster { order: 3; width: 100%; min-width: 0; flex-direction: row; overflow-x: auto; gap: 2px; padding-top: 10px; }
.roster .crow { display: flex; flex-direction: column; align-items: center; flex: none; width: 54px; padding: 0 2px; }
.roster .crow-body { width: 38px; height: 35px; }
.roster .crow figcaption { font-size: 12px; }
.roster .crow figcaption::after { display: none; }
.roster .crow .badge { position: absolute; top: -4px; right: 3px; width: 13px; height: 13px; }
.roster .pose-waiting::after { content: "?"; position: absolute; top: -10px; left: 4px; font: 400 15px/1 var(--display); color: var(--red); }
.room-head { padding: 12px 14px 10px; }
.room-head h1 { font-size: 19px; }
.room-sub { display: none; }
.msg { padding: 8px 14px; gap: 0 10px; grid-template-columns: 34px 1fr; }
.avatar { width: 34px; height: 31px; }
.avatar.you { width: 30px; height: 30px; font-size: 15px; }
.msg.system { padding: 6px 14px; }
.typing { padding: 2px 14px; }
.composer { padding: 4px 12px 12px; }
.hint { display: none; }
}
@keyframes breathe { 50% { transform: translateY(-2px); } }
@keyframes flap { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-8px) rotate(3deg); } }
@@ -151,55 +230,3 @@ main { max-width: 680px; margin: 0 auto; padding: 0 16px 64px; }
@keyframes rise { from { opacity: 1; transform: translateY(0) scale(0.6); } to { opacity: 0; transform: translateY(-30px) scale(1.4); } }
@keyframes shrug { 30% { transform: rotate(-5deg); } 60% { transform: rotate(5deg); } }
@keyframes prank { 25% { transform: translate(-120px, -60px) rotate(-30deg); opacity: 0; } 55% { transform: translate(120px, -60px); opacity: 0; } 80% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
.crow *, .crow::before, .crow::after { animation: none !important; transition: none !important; }
}
/* ---------- cards ---------- */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.card { padding: 14px 18px; }
.card::before { border: 0; }
.card::after {
inset: auto -2px -10px 10px; height: 60%;
-webkit-mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.55) 85%, #000);
mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.55) 85%, #000);
}
.card-head { display: flex; gap: 10px; align-items: flex-start; }
.card .text { margin: 0; font-weight: 700; }
.dot { flex: none; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; border: 1.5px solid var(--ink); }
.card[data-state="flying"] .dot { background: var(--stipple); animation: pop 0.8s infinite; }
.card[data-state="asking"] .dot { background: var(--ink); animation: pop 1.2s infinite; }
.card[data-state="asking"]::after { height: 85%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70%); mask-image: linear-gradient(to bottom, transparent, #000 70%); }
.card[data-state="done"] .dot { background: var(--ink); }
.card[data-state="rejected"] .dot, .card[data-state="skipped"] .dot { background: none; }
.card[data-state="skipped"] .text { text-decoration: line-through; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0 0 24px; }
.chips:empty { display: none; }
.chip { font: 400 15px/1.3 var(--display); border-bottom: 1.5px solid var(--ink); }
.chip.mode-murder { border-bottom-width: 3px; }
.chip.mode-split { border-bottom-style: double; border-bottom-width: 4px; }
.chip.crows { font: italic 500 15px/1.3 var(--body); color: var(--muted); border-bottom: 0; }
.reason { margin: 6px 0 0 24px; color: var(--muted); font-style: italic; }
.subtasks { margin: 6px 0 0 24px; padding-left: 18px; }
.subtasks:empty { display: none; }
.answer {
margin: 12px 0 0 24px; padding: 4px 0 4px 14px; border-left: 1.5px solid var(--ink);
white-space: pre-wrap; overflow-wrap: anywhere;
}
.actions:empty { display: none; }
.actions { margin: 14px 0 6px 24px; }
.question { margin: 0 0 12px; font: 400 19px/1.3 var(--display); }
.buttons { display: flex; gap: 14px; }
.buttons .btn { flex: 1; }
.note { margin: 0; color: var(--muted); font-style: italic; }
.err { margin: 8px 0 0; color: var(--red); }
.err:empty { display: none; }
.banner { margin: 0 0 20px; padding: 10px 16px; font: 400 18px/1.3 var(--display); text-align: center; }
.meter { margin: 22px 0 0; text-align: center; color: var(--muted); font-style: italic; }
.toast {
position: fixed; left: 16px; right: 16px; bottom: 20px; max-width: 520px; margin: 0 auto;
padding: 14px 18px; font: 400 18px/1.35 var(--display); text-align: center;
}