oficina / base Public

Add Base layout, glass styles and fonts

internal/look holds the shared layout (atmosphere, preload of Timeless
Sans), the stylesheet ported from the approved mockup, the committed DM
Sans fallback, and a Renderer that lets each consumer supply its own page
templates. hack/fonts.sh fetches Timeless Sans with a pinned checksum.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 182795ea06076bdf8a2a8ea0a8bf0390b8d7641a parent 6a2ccb2
9 files changed, +541 −1
  • .gitignore +1 −0
  • Makefile +5 −1
  • hack/fonts.sh +80 −0
  • internal/look/look.go +105 −0
  • internal/look/look_test.go +88 −0
  • internal/look/static/app.css +154 −0
  • internal/look/static/fonts/dm-sans/4.004/DMSans-VF.woff2 binary
  • internal/look/static/fonts/dm-sans/OFL.txt +93 −0
  • internal/look/templates/layout.html +15 −0
diff --git a/.gitignore b/.gitignore
index c89cf5b..8944617 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,4 @@
/releases/
internal/look/static/fonts/timeless/*
!internal/look/static/fonts/timeless/.keep
+!internal/look/static/fonts/dm-sans/4.004/DMSans-VF.woff2
diff --git a/Makefile b/Makefile
index 0cb3adb..9ab28fb 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ RELEASE_VERSION = $(shell git rev-parse --short HEAD)
# One target at a time, even under make -j.
.NOTPARALLEL:
-.PHONY: build release test vet fmt-check staticcheck govulncheck gitleaks budget ci
+.PHONY: fonts build release test vet fmt-check staticcheck govulncheck gitleaks budget ci
RASTRILLO := go run amadan.net/rastrillo/rastrillo/cmd/rastrillo
@@ -65,3 +65,7 @@ gitleaks:
# ci is the one gate: what a runner executes and what you run before pushing.
ci: build vet fmt-check staticcheck govulncheck gitleaks budget test
+
+# Fetches Timeless Sans, which the licence keeps out of the repository.
+fonts:
+ ./hack/fonts.sh
diff --git a/hack/fonts.sh b/hack/fonts.sh
new file mode 100755
index 0000000..7a9671a
--- /dev/null
+++ b/hack/fonts.sh
@@ -0,0 +1,80 @@
+#!/bin/sh
+# Fetch Timeless Sans, the face Base is set in.
+#
+# The Timeless Free Font License 1.2 allows embedding in a website but
+# forbids putting the fonts in a public repository, so the repo holds this
+# fetch step and a pinned checksum instead of the font. The file lands in
+# internal/look/static/fonts/timeless/, which is git-ignored, and `go build`
+# embeds it from there. Without it the site still builds and runs, set in
+# DM Sans.
+#
+# make fonts fetch it (needs the network: media.timeless.co)
+# FORCE=1 make fonts fetch it again even if it is already there
+set -eu
+
+VERSION=1.094
+URL="https://media.timeless.co/type/Timeless-Type-Family-$VERSION.zip"
+SHA256=510685dfce6010b74a1a250af7de1204e1b9901be152a39f5dd6be85fc6d6084
+MEMBER=Timeless-Type-Family-$VERSION/Sans-Grotesk/TimelessSansVF.woff2
+
+root=$(cd "$(dirname "$0")/.." && pwd)
+dest="$root/internal/look/static/fonts/timeless/$VERSION"
+
+if [ -f "$dest/TimelessSansVF.woff2" ] && [ -z "${FORCE:-}" ]; then
+ echo "fonts: $dest/TimelessSansVF.woff2 is already there (FORCE=1 to fetch again)"
+ exit 0
+fi
+
+# Scratch space on disk, never a bare /tmp, which on shared machines is a
+# RAM disk everyone shares: $TMPDIR when set, else a directory in the user
+# cache. Both the scratch and that directory, if this made it, go at exit.
+if [ -n "${TMPDIR:-}" ]; then
+ scratch=$TMPDIR
+ made=
+else
+ scratch="${XDG_CACHE_HOME:-$HOME/.cache}/base-fonts"
+ made=
+ [ -d "$scratch" ] || made=1
+ mkdir -p "$scratch"
+fi
+work=$(mktemp -d "$scratch/base-fonts.XXXXXX")
+cleanup() {
+ rm -rf "$work"
+ if [ -n "$made" ]; then rmdir "$scratch" 2>/dev/null || true; fi
+}
+trap cleanup EXIT
+trap 'exit 1' INT TERM
+
+echo "fonts: downloading $URL"
+curl --fail --silent --show-error --location --proto '=https' --output "$work/timeless.zip" "$URL"
+
+if command -v sha256sum >/dev/null 2>&1; then
+ got=$(sha256sum "$work/timeless.zip" | cut -d' ' -f1)
+else
+ got=$(shasum -a 256 "$work/timeless.zip" | cut -d' ' -f1)
+fi
+if [ "$got" != "$SHA256" ]; then
+ echo "fonts: checksum mismatch for $URL" >&2
+ echo "fonts: want $SHA256" >&2
+ echo "fonts: got $got" >&2
+ exit 1
+fi
+
+# Only the one file comes out of the zip, into a scratch directory first,
+# so a failed extraction leaves nothing half-installed.
+mkdir "$work/out"
+if command -v unzip >/dev/null 2>&1; then
+ unzip -q -j -o "$work/timeless.zip" "$MEMBER" -d "$work/out"
+else
+ python3 -I -c '
+import sys, os, zipfile
+zf, member, out = sys.argv[1:4]
+with zipfile.ZipFile(zf) as z, z.open(member) as src:
+ with open(os.path.join(out, os.path.basename(member)), "wb") as dst:
+ dst.write(src.read())
+' "$work/timeless.zip" "$MEMBER" "$work/out"
+fi
+
+mkdir -p "$dest"
+mv "$work/out/TimelessSansVF.woff2" "$dest/TimelessSansVF.woff2"
+echo "fonts: wrote $dest/TimelessSansVF.woff2"
diff --git a/internal/look/look.go b/internal/look/look.go
new file mode 100644
index 0000000..344fa8a
--- /dev/null
+++ b/internal/look/look.go
@@ -0,0 +1,105 @@
+// Package look is Base's face: the layout, the stylesheet and the fonts.
+//
+// Each consumer (Base's own web package, and later the apps Base ships)
+// supplies its page templates as an fs.FS and renders them through a
+// Renderer, so every page shares the same atmosphere.
+package look
+
+import (
+ "bytes"
+ "embed"
+ "fmt"
+ "html/template"
+ "io/fs"
+ "net/http"
+ "strings"
+ "time"
+
+ "amadan.net/rastrillo/rastrillo"
+)
+
+// all: keeps the .keep file that holds the git-ignored timeless directory open.
+//
+//go:embed all:static templates
+var embedded embed.FS
+
+// Assets fingerprints the embedded static tree: {{asset "static/app.css"}}
+// in a template yields a content-hashed URL. Mount Assets.Handler() at
+// GET /static/.
+var Assets = rastrillo.NewAssets(embedded)
+
+const fontPrefix = "/static/fonts/"
+
+// FontHandler serves the embedded fonts. Mount it at GET /static/fonts/,
+// ahead of the generic static route. Font paths carry their version, so
+// files are immutable for a year. A font that is not there (Timeless Sans
+// until hack/fonts.sh has run) answers 404 and the page falls back to DM Sans.
+func FontHandler() http.Handler {
+ return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ if r.Method != http.MethodGet && r.Method != http.MethodHead {
+ w.Header().Set("Allow", "GET, HEAD")
+ http.Error(w, http.StatusText(http.StatusMethodNotAllowed), http.StatusMethodNotAllowed)
+ return
+ }
+ name := strings.TrimPrefix(r.URL.Path, "/")
+ if !strings.HasPrefix(r.URL.Path, fontPrefix) || !fs.ValidPath(name) || !strings.HasSuffix(name, ".woff2") {
+ http.NotFound(w, r)
+ return
+ }
+ body, err := embedded.ReadFile(name)
+ if err != nil {
+ http.NotFound(w, r)
+ return
+ }
+ w.Header().Set("Content-Type", "font/woff2")
+ w.Header().Set("Cache-Control", "public, max-age=31536000, immutable")
+ http.ServeContent(w, r, name, time.Time{}, bytes.NewReader(body))
+ })
+}
+
+// Renderer renders page templates inside the shared layout.
+type Renderer struct {
+ pages map[string]*template.Template
+}
+
+// NewRenderer parses every top-level *.html in pageFS as a page named after
+// the file (without .html). A page defines the layout's "title" and "main"
+// blocks. funcs are extra template functions; "asset" is always provided.
+func NewRenderer(pageFS fs.FS, funcs template.FuncMap) (*Renderer, error) {
+ files, err := fs.Glob(pageFS, "*.html")
+ if err != nil {
+ return nil, err
+ }
+ all := template.FuncMap{"asset": Assets.Path}
+ for k, v := range funcs {
+ all[k] = v
+ }
+ r := &Renderer{pages: make(map[string]*template.Template, len(files))}
+ for _, f := range files {
+ t, err := template.New("layout").Funcs(all).ParseFS(embedded, "templates/layout.html")
+ if err != nil {
+ return nil, err
+ }
+ if t, err = t.ParseFS(pageFS, f); err != nil {
+ return nil, fmt.Errorf("look: page %s: %w", f, err)
+ }
+ r.pages[strings.TrimSuffix(f, ".html")] = t
+ }
+ return r, nil
+}
+
+// Page renders the named page in layout.html with status 200. It executes
+// into a buffer first, so a template error writes nothing to w.
+func (r *Renderer) Page(w http.ResponseWriter, name string, data any) error {
+ t, ok := r.pages[name]
+ if !ok {
+ return fmt.Errorf("look: no page %q", name)
+ }
+ var buf bytes.Buffer
+ if err := t.ExecuteTemplate(&buf, "layout", data); err != nil {
+ return fmt.Errorf("look: render %s: %w", name, err)
+ }
+ w.Header().Set("Content-Type", "text/html; charset=utf-8")
+ _, err := buf.WriteTo(w)
+ return err
+}
diff --git a/internal/look/look_test.go b/internal/look/look_test.go
new file mode 100644
index 0000000..5b74014
--- /dev/null
+++ b/internal/look/look_test.go
@@ -0,0 +1,88 @@
+package look_test
+
+import (
+ "net/http"
+ "net/http/httptest"
+ "regexp"
+ "strings"
+ "testing"
+ "testing/fstest"
+
+ "amadan.net/carlos/base/internal/look"
+)
+
+var testPages = fstest.MapFS{
+ "hello.html": {Data: []byte(`{{define "title"}}Hello{{end}}{{define "main"}}<main>Hi {{.}}</main>{{end}}`)},
+}
+
+func render(t *testing.T) string {
+ t.Helper()
+ r, err := look.NewRenderer(testPages, nil)
+ if err != nil {
+ t.Fatal(err)
+ }
+ rec := httptest.NewRecorder()
+ if err := r.Page(rec, "hello", "Ana"); err != nil {
+ t.Fatal(err)
+ }
+ return rec.Body.String()
+}
+
+func TestLayoutPreloadsTimeless(t *testing.T) {
+ want := `<link rel="preload" href="/static/fonts/timeless/1.094/TimelessSansVF.woff2" as="font" type="font/woff2" crossorigin>`
+ if body := render(t); !strings.Contains(body, want) {
+ t.Fatalf("layout lacks preload:\n%s", body)
+ }
+}
+
+func TestLayoutCarriesAtmosphereAndPage(t *testing.T) {
+ body := render(t)
+ for _, want := range []string{`<div class="light"></div>`, `<div class="fog"><i></i><i></i><i></i><i></i></div>`,
+ "<title>Hello</title>", "<main>Hi Ana</main>", `href="/static/app.`} {
+ if !strings.Contains(body, want) {
+ t.Errorf("page lacks %q", want)
+ }
+ }
+}
+
+func TestFontsImmutable(t *testing.T) {
+ h := look.FontHandler()
+ get := func(path string) *httptest.ResponseRecorder {
+ rec := httptest.NewRecorder()
+ h.ServeHTTP(rec, httptest.NewRequest(http.MethodGet, path, nil))
+ return rec
+ }
+ rec := get("/static/fonts/dm-sans/4.004/DMSans-VF.woff2")
+ if rec.Code != 200 {
+ t.Fatalf("DM Sans: %d", rec.Code)
+ }
+ if got := rec.Header().Get("Cache-Control"); got != "public, max-age=31536000, immutable" {
+ t.Errorf("Cache-Control = %q", got)
+ }
+ if rec := get("/static/fonts/timeless/0.0/TimelessSansVF.woff2"); rec.Code != 404 {
+ t.Errorf("missing Timeless: %d, want 404", rec.Code)
+ }
+ if rec := get("/static/fonts/dm-sans/OFL.txt"); rec.Code != 404 {
+ t.Errorf("non-font file: %d, want 404", rec.Code)
+ }
+}
+
+func TestLayoutHasNoRequiredScript(t *testing.T) {
+ body := render(t)
+ for _, tag := range regexp.MustCompile(`(?i)<script[^>]*>`).FindAllString(body, -1) {
+ if !strings.Contains(tag, "defer") {
+ t.Errorf("script without defer: %s", tag)
+ }
+ }
+ if regexp.MustCompile(`(?i)\son[a-z]+=`).MatchString(body) {
+ t.Error("page has an inline event handler")
+ }
+}
+
+func TestPageUnknownNameErrors(t *testing.T) {
+ r, _ := look.NewRenderer(testPages, nil)
+ rec := httptest.NewRecorder()
+ if err := r.Page(rec, "nope", nil); err == nil || rec.Body.Len() != 0 {
+ t.Fatal("want an error and no output")
+ }
+}
diff --git a/internal/look/static/app.css b/internal/look/static/app.css
new file mode 100644
index 0000000..6500c89
--- /dev/null
+++ b/internal/look/static/app.css
@@ -0,0 +1,154 @@
+/* Timeless Sans, one variable file. STYL 100 is the Sans cut, STYL 0 the Grotesk cut.
+ Preloaded and font-display: block, so text never paints in a fallback face first. */
+@font-face { font-family: "Timeless Sans"; src: url(fonts/timeless/1.094/TimelessSansVF.woff2) format("woff2");
+ font-weight: 100 900; font-style: normal; font-display: block; }
+/* The fallback where the Timeless file is absent (it is fetched, never committed).
+ Sized and spaced to take Timeless Sans's place without moving a line break. */
+@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans/4.004/DMSans-VF.woff2) format("woff2");
+ font-weight: 400 700; font-style: normal; font-display: swap;
+ size-adjust: 98%; ascent-override: 98.3%; descent-override: 25.3%; line-gap-override: 0%; }
+:root {
+ --slate: #1A1F45; /* deep atmosphere: indigo night */
+ --harbour: #2C3470; /* mid atmosphere */
+ --mist: #C9D3E3; /* pale fog */
+ --lagoon: #2FC6C0; /* teal light */
+ --orchid: #8B5CF6; /* violet light */
+ --ember: #FFB066; /* warm light */
+ --rose: #F472B6; /* rose light */
+ --frost: #EEF2F8; /* text and highlights */
+ --haze: #DDE3F0; /* secondary text on glass */
+ --signal: #6EE7DC; /* accent: finished steps, progress */
+ --page: #DCE2EC;
+ --ink: #1E2738;
+ --font: "Timeless Sans", "DM Sans", system-ui, sans-serif;
+}
+* { box-sizing: border-box; }
+html { background: var(--slate); }
+body { margin: 0; min-height: 100vh; position: relative; isolation: isolate; font: 400 16px/1.5 var(--font); font-variation-settings: "STYL" 100; color: var(--frost);
+ background: linear-gradient(165deg, var(--harbour) 0%, var(--slate) 62%, #16193A 100%) fixed; }
+main { min-height: 100vh; }
+button, input { font-variation-settings: inherit; }
+h1, h2, .wordmark { font-variation-settings: "STYL" 0; }
+button, input { font: inherit; }
+:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
+
+/* The atmosphere sits behind the whole page: deep slate, banks of fog, one soft light from above. */
+/* Two beams of warm light that sway and breathe, and four banks of coloured fog,
+ each on its own slow path. The fog's colours shift a little over time. */
+.light { position: fixed; z-index: -1; pointer-events: none; top: -30%; left: 18%; width: 46%; height: 120%;
+ background: linear-gradient(180deg, rgba(255,214,170,.42), rgba(255,176,102,.12) 45%, rgba(255,176,102,0) 78%);
+ filter: blur(40px); transform-origin: 50% 0; animation: sway 9s ease-in-out infinite alternate, breathe 6s ease-in-out infinite alternate; }
+.light::after { content: ""; position: absolute; left: 95%; top: 0; width: 45%; height: 85%;
+ background: linear-gradient(180deg, rgba(238,242,248,.26), rgba(238,242,248,0) 80%);
+ transform-origin: 50% 0; animation: sway 13s ease-in-out -4s infinite alternate-reverse; }
+@keyframes sway { from { transform: skewX(-24deg) translateX(-18%); } to { transform: skewX(-4deg) translateX(22%); } }
+@keyframes breathe { from { opacity: .45; } to { opacity: 1; } }
+
+.fog { position: fixed; z-index: -1; inset: -20%; pointer-events: none; animation: tint 18s ease-in-out infinite alternate; }
+@keyframes tint { from { filter: hue-rotate(-20deg); } to { filter: hue-rotate(28deg); } }
+.fog i { position: absolute; border-radius: 50%; filter: blur(56px); will-change: transform; }
+.fog i:nth-child(1) { background: var(--lagoon); width: 62%; height: 34%; left: -4%; bottom: 10%; opacity: .5; animation: path-a 12s ease-in-out infinite alternate; }
+.fog i:nth-child(2) { background: var(--orchid); width: 58%; height: 36%; right: -6%; bottom: 20%; opacity: .55; animation: path-b 15s ease-in-out -5s infinite alternate; }
+.fog i:nth-child(3) { background: var(--rose); width: 36%; height: 22%; left: 40%; bottom: 2%; opacity: .32; animation: path-c 10s ease-in-out -3s infinite alternate; }
+.fog i:nth-child(4) { background: var(--mist); width: 70%; height: 18%; left: 10%; bottom: 30%; opacity: .14; animation: path-b 17s ease-in-out -9s infinite alternate-reverse; }
+@keyframes path-a { 0% { transform: translate(-18%, 6%) scale(.9); } 50% { transform: translate(14%, -28%) scale(1.25); } 100% { transform: translate(36%, 4%) scale(1); } }
+@keyframes path-b { 0% { transform: translate(16%, -4%) scale(1.1); } 50% { transform: translate(-20%, 22%) scale(.85); } 100% { transform: translate(-38%, -14%) scale(1.2); } }
+@keyframes path-c { 0% { transform: translate(10%, 10%) scale(.8); } 50% { transform: translate(-32%, -40%) scale(1.3); } 100% { transform: translate(28%, -18%) scale(1); } }
+
+/* Glass is tinted dark so text keeps its contrast whatever colour the fog is behind it. */
+.glass { background: linear-gradient(rgba(238,242,248,.07), rgba(238,242,248,.03)), rgba(14,17,42,.40); border: 1px solid rgba(238,242,248,.18);
+ backdrop-filter: blur(22px) saturate(130%); -webkit-backdrop-filter: blur(22px) saturate(130%);
+ box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 18px 40px -20px rgba(8,12,22,.6); }
+
+.wordmark { font-weight: 600; letter-spacing: -0.02em; font-size: 18px; display: flex; align-items: center; gap: 8px; }
+.wordmark::before { content: ""; width: 14px; height: 14px; border-radius: 4px;
+ background: linear-gradient(160deg, #fff, rgba(238,242,248,.35)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
+
+/* Buttons and fields share one control height: 44px, border included. */
+.btn, .input { height: 44px; line-height: 20px; }
+.btn { padding: 0 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 600; background: var(--frost); color: var(--ink); }
+.btn.ghost { background: rgba(238,242,248,.1); color: var(--frost); box-shadow: inset 0 0 0 1px rgba(238,242,248,.22); }
+.btn.danger { background: #F3C6C9; color: #5B1820; }
+.input { padding: 0 14px; border-radius: 10px; border: 1px solid rgba(238,242,248,.22); color: var(--frost);
+ background: rgba(10,16,28,.28); }
+.input::placeholder { color: var(--haze); }
+
+/* Sign in */
+.signin { display: grid; place-items: center; padding: 32px; }
+.signin .card { width: min(100%, 330px); padding: 30px 26px; border-radius: 18px; }
+.signin h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin: 26px 0 6px; }
+.signin p { margin: 0 0 22px; color: var(--haze); font-size: 15px; }
+.signin .input, .signin .btn { width: 100%; }
+.signin .input { margin-bottom: 10px; }
+.alt { margin-top: 14px; font-size: 14px; color: var(--haze); text-align: center; }
+
+/* Home */
+.home { padding: 18px 26px 28px; display: flex; flex-direction: column; }
+.topbar { display: flex; align-items: center; gap: 16px; padding: 8px 10px 8px 16px; border-radius: 14px; }
+.team { font-size: 14px; color: var(--haze); }
+.ask { flex: 1; max-width: 420px; margin-left: auto; padding: 8px 14px; border-radius: 10px; font-size: 14px; color: var(--haze);
+ background: rgba(10,16,28,.25); box-shadow: inset 0 0 0 1px rgba(238,242,248,.14); display: flex; justify-content: space-between; }
+.me { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: linear-gradient(140deg, var(--ember), var(--rose)); color: var(--ink); }
+.hello { margin: 46px 0 0; font-size: clamp(34px, 4.4vw, 52px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
+.lede { margin: 12px 0 24px; color: var(--haze); font-size: 17px; }
+
+.steps { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
+.steps li { padding: 9px 14px; border-radius: 12px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
+.steps .mark { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(238,242,248,.5); display: grid; place-items: center; font-size: 11px; }
+.steps .done .mark { background: var(--signal); box-shadow: none; color: var(--ink); }
+.steps .done { color: var(--haze); }
+
+.dock { display: flex; gap: 18px; flex-wrap: wrap; margin-top: auto; padding-top: 44px; }
+.app { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 80px; font-size: 13px; font-weight: 500; }
+.tile { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; }
+.tile svg { width: 28px; height: 28px; stroke: var(--frost); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
+.tile.t-amber { background: linear-gradient(155deg, rgba(255,176,102,.78), rgba(244,114,182,.22)); }
+.tile.t-teal { background: linear-gradient(155deg, rgba(47,198,192,.55), rgba(47,198,192,.12)); }
+.tile.t-violet { background: linear-gradient(155deg, rgba(139,92,246,.6), rgba(139,92,246,.14)); }
+.tile.t-mist { background: linear-gradient(155deg, rgba(201,211,227,.4), rgba(201,211,227,.08)); }
+.tile.t-rose { background: linear-gradient(155deg, rgba(244,114,182,.55), rgba(244,114,182,.12)); }
+.app.new { animation: condense 1.2s cubic-bezier(.2,.7,0,1) both; }
+@keyframes condense { from { opacity: 0; filter: blur(14px); transform: scale(.94); } to { opacity: 1; filter: none; transform: none; } }
+.app.leaving { animation: dissolve .5s ease forwards; }
+@keyframes dissolve { to { opacity: 0; filter: blur(12px); } }
+
+/* Inner pages: one large sheet of glass over the same atmosphere */
+.inner { padding: 18px; display: flex; flex-direction: column; }
+.sheet { flex: 1; border-radius: 16px; padding: 22px 24px 24px; }
+.crumb { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
+.crumb span { color: var(--haze); font-size: 14px; }
+.inner h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.025em; margin: 0 0 8px; }
+.inner .lead { margin: 0 0 22px; color: var(--haze); max-width: 50ch; }
+.invite { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
+.invite .input { flex: 1; min-width: 180px; }
+.people { list-style: none; margin: 0; padding: 0; }
+.people li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(238,242,248,.14); }
+.face { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
+.face.on { background: linear-gradient(140deg, var(--ember), var(--rose)); color: var(--ink); }
+.face.off { box-shadow: inset 0 0 0 1.5px rgba(238,242,248,.4); color: var(--haze); }
+.people .who { flex: 1; font-weight: 500; }
+.people .who small { display: block; color: var(--haze); font-size: 13px; font-weight: 400; }
+.tag { font-size: 13px; color: var(--haze); }
+
+.listing { display: flex; gap: 16px; align-items: center; padding: 16px 0;
+ border-top: 1px solid rgba(238,242,248,.14); border-bottom: 1px solid rgba(238,242,248,.14); }
+.listing .tile { flex: none; width: 56px; height: 56px; border-radius: 16px; }
+.listing .txt { flex: 1; }
+.listing .txt b { display: block; font-weight: 600; }
+.listing .txt span { color: var(--haze); font-size: 14px; }
+.actions { display: flex; gap: 6px; flex: none; }
+.installing { cursor: progress; color: var(--ink);
+ background: linear-gradient(var(--signal), var(--signal)) left / 0% 100% no-repeat, var(--mist);
+ animation: fill 1.8s cubic-bezier(.4,0,.2,1) forwards; }
+@keyframes fill { to { background-size: 100% 100%, auto; } }
+.confirm { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(243,198,201,.12); box-shadow: inset 0 0 0 1px rgba(243,198,201,.35); }
+.confirm p { margin: 0 0 12px; }
+.soon { margin-top: 22px; color: var(--haze); font-size: 14px; }
+.soon b { color: var(--frost); font-weight: 500; }
+.status { margin-top: 12px; font-size: 14px; min-height: 1.5em; }
+[hidden] { display: none !important; }
+
+@media (prefers-reduced-motion: reduce) {
+ .fog, .fog i, .light, .light::after, .app.new, .app.leaving, .installing { animation: none; }
+ .light { transform: skewX(-14deg); }
+}
diff --git a/internal/look/static/fonts/dm-sans/4.004/DMSans-VF.woff2 b/internal/look/static/fonts/dm-sans/4.004/DMSans-VF.woff2
new file mode 100644
index 0000000..9313206
Binary files /dev/null and b/internal/look/static/fonts/dm-sans/4.004/DMSans-VF.woff2 differ
diff --git a/internal/look/static/fonts/dm-sans/OFL.txt b/internal/look/static/fonts/dm-sans/OFL.txt
new file mode 100644
index 0000000..4430b85
--- /dev/null
+++ b/internal/look/static/fonts/dm-sans/OFL.txt
@@ -0,0 +1,93 @@
+Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts)
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+https://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/internal/look/templates/layout.html b/internal/look/templates/layout.html
new file mode 100644
index 0000000..9e87875
--- /dev/null
+++ b/internal/look/templates/layout.html
@@ -0,0 +1,15 @@
+{{define "layout"}}<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>{{block "title" .}}Base{{end}}</title>
+<link rel="preload" href="/static/fonts/timeless/1.094/TimelessSansVF.woff2" as="font" type="font/woff2" crossorigin>
+<link rel="stylesheet" href="{{asset "static/app.css"}}">
+</head>
+<body>
+<div class="light"></div><div class="fog"><i></i><i></i><i></i><i></i></div>
+{{block "main" .}}{{end}}
+</body>
+</html>
+{{end}}