diff --git a/.impeccable/.gitignore b/.impeccable/.gitignore new file mode 100644 index 0000000..288bd16 --- /dev/null +++ b/.impeccable/.gitignore @@ -0,0 +1,6 @@ +review/ +questions/ +live/ +mocks/ +hook.cache.json +config.local.json diff --git a/.impeccable/critique/2026-09-23T20-16-21Z__de-persistentworkareas-site-redesign-docs-61373bb8.md b/.impeccable/critique/2026-09-23T20-16-21Z__de-persistentworkareas-site-redesign-docs-61373bb8.md new file mode 100644 index 0000000..0b02a58 --- /dev/null +++ b/.impeccable/critique/2026-09-23T20-16-21Z__de-persistentworkareas-site-redesign-docs-61373bb8.md @@ -0,0 +1,20 @@ +--- +target_identity: "file:C:\\Users\\Kyler\\code\\PersistentWorkAreas-site-redesign\\file:C:\\Users\\Kyler\\code\\PersistentWorkAreas-site-redesign\\docs" +timestamp: 2026-09-23T20-16-21Z +slug: de-persistentworkareas-site-redesign-docs-61373bb8 +--- +--- +target: Persistent Work Areas site +total_score: 29 +max_score: 40 +na_heuristics: +p0_count: 0 +p1_count: 5 +--- +# Critique: Persistent Work Areas site (docs/) +Method: dual-agent (A design review, B detector + browser + audit) +Tests: (1) PARTIAL - desktop headline/lede/demo carry it but the demo starts empty (no outline at rest), planting-tool outlines never shown, control names missing; phone FAIL (134px header, demo at y=742); (2) FAIL - no played/not-played status anywhere, six version-history leftovers (faq #builder/#persist/#planting/#language, troubleshooting #builder-hut, install #update), "safe in co-op" overclaims; (3) MOSTLY PASS - Assets vs source.zip, tree, nesting warning, fallbacks verified with JS off / 403 / mocked release; weak: the `loaded.` line not named, "restart if it asks", "choose Replace". +Heuristics 29/40 (Good). Cognitive load moderate (home repeats display-only/co-op/performance; 14-entry troubleshooting TOC). +Priority: [P1] no honest status; [P1] version history on player pages; [P1] phone first screen / sticky header covers anchor targets (134px vs 84px scroll-padding); [P1] light-theme focus ring 1.58:1; [P1] hero shows no outline at rest; [P2] co-op/version overclaims; [P2] demo focus lost after Deselect/Clear, focus = selected style, 28px buildings, 8px labels on phones, empty ground doesn't deselect, no Esc; [P2] install confirm step; [P2] template sameness (numbered cards, chips, spec table, centered CTA); [P2] 404 without header/footer; [P3] gold GitHub pill competes, inline styles, WORKING AREA casing. +Identity: the palette is the mod's own (in-game pin panel: #1a2e2b, gold #ebb859, green #a8e075, outline cream #f5e6a3) and the demo is authored; everything around it is template. +Perf: <13 KB gzipped per page, no fonts, CLS 0; site.js (own release lookup, sessionStorage cache) falls back cleanly on 403. diff --git a/.impeccable/design.json b/.impeccable/design.json new file mode 100644 index 0000000..072c4ad --- /dev/null +++ b/.impeccable/design.json @@ -0,0 +1,680 @@ +{ + "schemaVersion": 2, + "generatedAt": "2026-09-23T21:00:00Z", + "title": "Design System: Persistent Work Areas", + "extensions": { + "colorMeta": { + "plan": { + "role": "neutral", + "displayName": "Plan Paper", + "canonical": "oklch(93.9% 0.011 100.8)", + "tonalRamp": [ + "#0c0b07", + "#26251f", + "#43423c", + "#62615b", + "#83837b", + "#a6a59e", + "#cac9c2", + "#f0efe7" + ] + }, + "plan-dark": { + "role": "neutral", + "displayName": "Plan Paper, under the lamp", + "canonical": "oklch(24.0% 0.017 176.2)", + "tonalRamp": [ + "#040d0b", + "#1d2825", + "#394542", + "#586461", + "#788682", + "#9ba9a5", + "#bfcdc9", + "#e4f2ee" + ] + }, + "vellum": { + "role": "neutral", + "displayName": "Vellum", + "canonical": "oklch(97.2% 0.009 100.0)", + "tonalRamp": [ + "#0c0b07", + "#262520", + "#43423d", + "#62615b", + "#83827c", + "#a6a59f", + "#cac9c3", + "#f0efe8" + ] + }, + "vellum-dark": { + "role": "neutral", + "displayName": "Vellum, under the lamp", + "canonical": "oklch(28.0% 0.019 179.1)", + "tonalRamp": [ + "#030e0b", + "#1b2825", + "#384542", + "#566561", + "#778682", + "#99a9a5", + "#bdcdc9", + "#e2f3ef" + ] + }, + "ink": { + "role": "neutral", + "displayName": "Graphite Ink", + "canonical": "oklch(28.4% 0.007 182.5)", + "tonalRamp": [ + "#080c0b", + "#212625", + "#3e4342", + "#5d6361", + "#7e8483", + "#a0a7a5", + "#c4cbc9", + "#e9f0ef" + ] + }, + "ink-dark": { + "role": "neutral", + "displayName": "Graphite Ink, under the lamp", + "canonical": "oklch(92.8% 0.008 121.6)", + "tonalRamp": [ + "#0b0c08", + "#242621", + "#41433e", + "#60625d", + "#81837e", + "#a4a6a0", + "#c8cac4", + "#edefe9" + ] + }, + "muted": { + "role": "neutral", + "displayName": "Soft Graphite", + "canonical": "oklch(46.4% 0.010 168.4)", + "tonalRamp": [ + "#070d0a", + "#212724", + "#3d4441", + "#5c6360", + "#7d8481", + "#9fa7a4", + "#c3cbc8", + "#e8f1ed" + ] + }, + "muted-dark": { + "role": "neutral", + "displayName": "Soft Graphite, under the lamp", + "canonical": "oklch(76.2% 0.017 160.5)", + "tonalRamp": [ + "#050d09", + "#1e2822", + "#3b453f", + "#59645e", + "#7a867f", + "#9da8a1", + "#c0cdc5", + "#e5f2eb" + ] + }, + "rule": { + "role": "neutral", + "displayName": "Pencil Rule", + "canonical": "oklch(84.3% 0.021 97.6)", + "tonalRamp": [ + "#0d0b03", + "#28251a", + "#454236", + "#646254", + "#858375", + "#a8a597", + "#cccabb", + "#f2efdf" + ] + }, + "rule-dark": { + "role": "neutral", + "displayName": "Pencil Rule, under the lamp", + "canonical": "oklch(37.1% 0.022 174.0)", + "tonalRamp": [ + "#020e0a", + "#1a2924", + "#364641", + "#556660", + "#758781", + "#98aaa4", + "#bbcec8", + "#e0f4ed" + ] + }, + "link": { + "role": "tertiary", + "displayName": "Survey Teal", + "canonical": "oklch(43.4% 0.063 184.6)", + "tonalRamp": [ + "#00120e", + "#002e29", + "#0a4d46", + "#326d66", + "#548f87", + "#77b2aa", + "#9bd7ce", + "#bffdf4" + ] + }, + "link-hover": { + "role": "tertiary", + "displayName": "Survey Teal, deep", + "canonical": "oklch(33.6% 0.049 184.9)", + "tonalRamp": [ + "#00110e", + "#002d28", + "#1f4b45", + "#3f6b65", + "#608c86", + "#82b0a9", + "#a6d4cd", + "#cbfaf3" + ] + }, + "link-dark": { + "role": "tertiary", + "displayName": "Lamp Gold Link", + "canonical": "oklch(87.1% 0.113 91.1)", + "tonalRamp": [ + "#1c0300", + "#391f00", + "#583d00", + "#795d00", + "#9c7f20", + "#bfa24a", + "#e4c76f", + "#ffec94" + ] + }, + "link-hover-dark": { + "role": "tertiary", + "displayName": "Lamp Gold Link, hover", + "canonical": "oklch(92.7% 0.072 91.8)", + "tonalRamp": [ + "#160800", + "#322300", + "#504009", + "#70602d", + "#92814e", + "#b5a470", + "#dac893", + "#ffeeb8" + ] + }, + "outline": { + "role": "primary", + "displayName": "Outline Gold", + "canonical": "oklch(66.1% 0.127 83.0)", + "tonalRamp": [ + "#210000", + "#401a00", + "#603900", + "#825900", + "#a57a12", + "#c99e42", + "#efc268", + "#ffe78d" + ] + }, + "outline-ink": { + "role": "primary", + "displayName": "Outline Ink", + "canonical": "oklch(48.8% 0.095 82.9)", + "tonalRamp": [ + "#1d0300", + "#3b1d00", + "#5a3c00", + "#7b5b10", + "#9e7d39", + "#c2a05c", + "#e7c480", + "#ffe9a4" + ] + }, + "outline-dark": { + "role": "primary", + "displayName": "Outline Gold, in game", + "canonical": "oklch(81.1% 0.127 80.8)", + "tonalRamp": [ + "#220000", + "#411800", + "#623700", + "#835800", + "#a77914", + "#cb9c42", + "#f1c169", + "#ffe68e" + ] + }, + "outline-cream": { + "role": "primary", + "displayName": "Outline Cream", + "canonical": "oklch(92.2% 0.087 97.0)", + "tonalRamp": [ + "#160800", + "#312300", + "#4f4100", + "#6f611e", + "#918342", + "#b4a665", + "#d9ca88", + "#ffefac" + ] + }, + "pin": { + "role": "secondary", + "displayName": "Pin Green", + "canonical": "oklch(53.0% 0.120 133.1)", + "tonalRamp": [ + "#001200", + "#072f00", + "#264e00", + "#456f1e", + "#659142", + "#87b565", + "#aada88", + "#cfffac" + ] + }, + "pin-dark": { + "role": "secondary", + "displayName": "Pin Green, in game", + "canonical": "oklch(84.5% 0.149 131.6)", + "tonalRamp": [ + "#001200", + "#0b2f00", + "#284e00", + "#476e1b", + "#679140", + "#89b563", + "#adda86", + "#d1ffab" + ] + }, + "panel-frame": { + "role": "neutral", + "displayName": "Panel Frame", + "canonical": "oklch(21.7% 0.020 184.5)", + "tonalRamp": [ + "#030e0c", + "#1a2826", + "#364643", + "#556562", + "#768684", + "#98a9a6", + "#bccecb", + "#e1f3f0" + ] + }, + "panel-bg": { + "role": "neutral", + "displayName": "Panel Teal", + "canonical": "oklch(28.3% 0.027 183.9)", + "tonalRamp": [ + "#000f0c", + "#152926", + "#324743", + "#516663", + "#718884", + "#93aba7", + "#b7cfcb", + "#dcf5f0" + ] + }, + "panel-line": { + "role": "neutral", + "displayName": "Panel Line", + "canonical": "oklch(53.3% 0.048 154.0)", + "tonalRamp": [ + "#001003", + "#102c1a", + "#2d4a36", + "#4c6955", + "#6c8b75", + "#8eae98", + "#b2d3bb", + "#d7f9e0" + ] + }, + "panel-cream": { + "role": "neutral", + "displayName": "Panel Cream", + "canonical": "oklch(96.1% 0.055 92.5)", + "tonalRamp": [ + "#130900", + "#2e2400", + "#4c411d", + "#6c613c", + "#8e825c", + "#b1a57e", + "#d5c9a1", + "#fbeec5" + ] + }, + "panel-hint": { + "role": "neutral", + "displayName": "Panel Hint", + "canonical": "oklch(85.7% 0.031 145.3)", + "tonalRamp": [ + "#040f04", + "#1b291c", + "#384738", + "#566657", + "#778877", + "#99ab99", + "#bdcfbd", + "#e2f5e2" + ] + }, + "panel-button": { + "role": "neutral", + "displayName": "Panel Button", + "canonical": "oklch(39.6% 0.047 174.8)", + "tonalRamp": [ + "#00110a", + "#032c24", + "#244a40", + "#446a60", + "#658c81", + "#87afa3", + "#aad4c7", + "#cff9ec" + ] + }, + "panel-button-edge": { + "role": "neutral", + "displayName": "Panel Button Edge", + "canonical": "oklch(70.0% 0.083 137.9)", + "tonalRamp": [ + "#001200", + "#0c2e00", + "#2a4c1d", + "#496c3d", + "#6a8e5d", + "#8cb27e", + "#afd7a2", + "#d4fdc6" + ] + }, + "panel-check-ink": { + "role": "neutral", + "displayName": "Check Ink", + "canonical": "oklch(28.3% 0.044 153.0)", + "tonalRamp": [ + "#001003", + "#122b1b", + "#2f4937", + "#4e6955", + "#6f8a76", + "#91ae98", + "#b4d2bc", + "#d9f8e1" + ] + }, + "map-ground": { + "role": "neutral", + "displayName": "Map Ground", + "canonical": "oklch(32.4% 0.039 157.7)", + "tonalRamp": [ + "#001005", + "#132b1e", + "#30483a", + "#4f6859", + "#6f8a79", + "#91ad9c", + "#b5d1bf", + "#daf7e4" + ] + } + }, + "typographyMeta": { + "display": { + "displayName": "Display", + "purpose": "The home page title only; guide titles use clamp(2.4rem, 5.4vw, 3.6rem)." + }, + "headline": { + "displayName": "Headline", + "purpose": "Section titles; in guide prose clamp(1.6rem, 3vw, 2.1rem) under a 2px ink rule." + }, + "pitch": { + "displayName": "Pitch", + "purpose": "The one-line pitch under the home title, in Outline Ink." + }, + "title": { + "displayName": "Title", + "purpose": "Sheet titles, definition terms, table heads, buttons." + }, + "body": { + "displayName": "Body", + "purpose": "All reading text; bold is 650." + }, + "label": { + "displayName": "Title-block Label", + "purpose": "Uppercase tracked labels in the compatibility title block only." + }, + "mono": { + "displayName": "Mono", + "purpose": "Paths, file names, log lines." + } + }, + "shadows": [ + { + "name": "panel-stripe", + "value": "inset 4px 0 0 #ebb859", + "purpose": "The in-game panel's left stripe, green (#a8e075) when pinned. The only shadow in the system; there are no drop shadows." + } + ], + "motion": [ + { + "name": "ease-lift", + "value": "cubic-bezier(.2, .8, .2, 1)", + "purpose": "Button lift (translateY(-1px), 0.15s) and FAQ chevron turn (0.2s)." + }, + { + "name": "duration-button", + "value": "0.15s", + "purpose": "Button hover lift and fill change." + }, + { + "name": "duration-chevron", + "value": "0.2s", + "purpose": "FAQ chevron rotation." + }, + { + "name": "reduced-motion", + "value": "transition: none; animation: none", + "purpose": "All motion removed under prefers-reduced-motion." + } + ], + "breakpoints": [ + { + "name": "hero-stack", + "value": "960px" + }, + { + "name": "single-column", + "value": "860px" + }, + { + "name": "phone", + "value": "720px" + } + ], + "textures": [ + { + "name": "plan-light / plan-dark", + "value": "assets/textures/plan-light.webp, plan-dark.webp", + "purpose": "Page ground: plan paper with a 24px fine and 96px firm survey grid. Provenance in the .json beside each." + }, + { + "name": "vellum-light / vellum-dark", + "value": "assets/textures/vellum-light.png (alpha 190), vellum-dark.png (alpha 196)", + "purpose": "Sheet background, the raster only, about 74-77% alpha so the grid reads through." + }, + { + "name": "tape", + "value": "assets/textures/tape.png", + "purpose": "Drafting tape, 76x24px at both top corners of every sheet, -4deg and 3deg." + } + ], + "focus": [ + { + "name": "page-focus", + "value": "outline: 3px solid var(--focus); outline-offset: 3px", + "purpose": "Teal #1f5c55 in light, cream #f5e6a3 in dark." + }, + { + "name": "demo-focus", + "value": "outline: 3px dashed #fff2c9; building stroke dashed 5 3", + "purpose": "Focus inside the demo; selection is a solid 3.5px gold (#ebb859) stroke." + } + ] + }, + "components": [ + { + "name": "Primary Button", + "kind": "button", + "refersTo": "button-primary", + "description": "Download and main actions: graphite stamp with plan-paper text.", + "html": "Download latest release", + "css": ".ds-btn{display:inline-flex;align-items:center;gap:10px;min-height:50px;padding:0 22px;border-radius:3px;background:#262b2a;color:#ecebe3;border:2px solid #262b2a;font:700 1.05rem/1 Chivo,'Arial Narrow',sans-serif;text-decoration:none;transition:transform .15s cubic-bezier(.2,.8,.2,1),background-color .15s}.ds-btn svg{width:18px;height:18px}.ds-btn:hover{background:#123f3a;border-color:#123f3a;transform:translateY(-1px)}.ds-btn:focus-visible{outline:3px solid #1f5c55;outline-offset:3px}" + }, + { + "name": "Secondary Button", + "kind": "button", + "refersTo": "button-secondary", + "description": "Second action beside a primary: ink outline, band tint on hover.", + "html": "Install guide", + "css": ".ds-btn-sec{display:inline-flex;align-items:center;min-height:50px;padding:0 22px;border-radius:3px;background:transparent;color:#262b2a;border:2px solid #262b2a;font:700 1.05rem/1 Chivo,'Arial Narrow',sans-serif;text-decoration:none;transition:transform .15s cubic-bezier(.2,.8,.2,1),background-color .15s}.ds-btn-sec:hover{background:rgba(38,43,42,.045)}.ds-btn-sec:focus-visible{outline:3px solid #1f5c55;outline-offset:3px}" + }, + { + "name": "Navigation", + "kind": "nav", + "refersTo": "nav-link", + "description": "Non-sticky header links; current page underlined in outline gold.", + "html": "", + "css": ".ds-nav{display:flex;border-bottom:2px solid #262b2a;background:#ecebe3}.ds-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;color:#545b58;text-decoration:none;font:600 .98rem system-ui,sans-serif;border-bottom:2px solid transparent}.ds-nav a:hover{color:#262b2a}.ds-nav a[aria-current=page]{color:#262b2a;border-bottom-color:#b88a1e}.ds-nav a:focus-visible{outline:3px solid #1f5c55;outline-offset:3px}" + }, + { + "name": "Taped Move Sheet", + "kind": "card", + "refersTo": "sheet", + "description": "A translucent vellum sheet taped at both top corners, with a drawn outline, a title and muted text. (Preview approximates the plan and tape rasters, which the panel cannot load.)", + "html": "

Pin a working area

Deselect it and the outline stays.

", + "css": ".ds-plan{padding:28px 20px;background-color:#ecebe3;background-image:linear-gradient(#dedcd0 1px,transparent 1px),linear-gradient(90deg,#dedcd0 1px,transparent 1px);background-size:24px 24px}.ds-sheet{position:relative;max-width:320px;padding:26px 22px 20px;background:rgba(248,247,240,.75);border:1px solid #cfccbd;color:#262b2a;font:400 1.0625rem/1.62 system-ui,sans-serif}.ds-sheet::before,.ds-sheet::after{content:\"\";position:absolute;top:-12px;width:76px;height:24px;background:rgba(236,226,190,.85);pointer-events:none;}.ds-sheet::before{left:18px;transform:rotate(-4deg)}.ds-sheet::after{right:18px;transform:rotate(3deg)}.ds-sheet svg{display:block;width:100%;max-height:120px;margin:0 0 14px}.ds-sheet h3{font:700 1.28rem/1.2 Chivo,'Arial Narrow',sans-serif;margin:0 0 .3em}.ds-sheet p{margin:0;color:#545b58}" + }, + { + "name": "Legend Swatches", + "kind": "custom", + "description": "Outlined vs struck swatches for what the mod outlines and what it doesn't.", + "html": "", + "css": ".ds-legend{list-style:none;padding:0;margin:0;font:400 1rem/1.5 system-ui,sans-serif;color:#262b2a}.ds-legend li{display:grid;grid-template-columns:34px 1fr;gap:12px;margin:0 0 .7em}.ds-sw{width:34px;height:22px;border:2.5px solid #b88a1e;background:rgb(235 184 89/.18);box-sizing:border-box}.ds-sw.ds-no{border:2px dashed #545b58;background:none;position:relative}.ds-sw.ds-no::after{content:\"\";position:absolute;left:-3px;right:-3px;top:50%;border-top:2px solid #545b58;transform:rotate(-24deg)}" + }, + { + "name": "Title Block", + "kind": "custom", + "description": "Compatibility facts as a drawing's title block.", + "html": "
Game version
Timberborn 1.1.2.4
Other mods
None required
Co-op
Same version on every computer
Saves
Untouched
", + "css": ".ds-tb{display:grid;grid-template-columns:1fr 1fr;border:2px solid #262b2a;margin:0;color:#262b2a;font:400 1rem/1.5 system-ui,sans-serif}.ds-tb>div{padding:16px 18px;border-right:1px solid #262b2a;border-bottom:1px solid #262b2a}.ds-tb>div:nth-child(2n){border-right:0}.ds-tb>div:nth-last-child(-n+2){border-bottom:0}.ds-tb dt{font:700 .82rem/1.2 Chivo,'Arial Narrow',sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#545b58;margin-bottom:6px}.ds-tb dd{margin:0}" + }, + { + "name": "Callout", + "kind": "card", + "refersTo": "callout", + "description": "Opaque vellum note with a gold top rule, for guide warnings.", + "html": "
Pick the zip under Assets

Not -source.zip or Source code.

", + "css": ".ds-callout{padding:18px 20px;background:#f7f6ef;border:1px solid #cfccbd;border-top:3px solid #b88a1e;color:#262b2a;font:400 1rem/1.6 system-ui,sans-serif}.ds-t{display:block;font:700 1.05rem/1.3 Chivo,'Arial Narrow',sans-serif;margin-bottom:.3em}.ds-callout p{margin:0}" + }, + { + "name": "Panel Toggle", + "kind": "custom", + "refersTo": "panel-toggle-pinned", + "description": "The in-game Working Area toggle, pinned, in the mod's real panel colours in both themes.", + "html": "
WORKING AREA
", + "css": ".ds-panel{background:#1a2e2b;border:1px solid #577560;border-radius:5px;padding:10px;box-shadow:inset 4px 0 0 #a8e075;font-family:system-ui,sans-serif;max-width:360px}.ds-h{font-size:11px;font-weight:800;color:#ebb859;letter-spacing:.04em;margin:0 0 7px 6px}.ds-tog{width:100%;display:flex;align-items:center;gap:10px;min-height:46px;padding:8px 10px;background:#304d38;color:#fff2c9;border:2px solid #a8e075;border-radius:4px;cursor:pointer;font:inherit;text-align:left}.ds-tog:hover{background:#40593f;border-color:#fff2c9}.ds-tog:focus-visible{outline:3px dashed #fff2c9;outline-offset:2px}.ds-box{width:24px;height:24px;border:2px solid #a8e075;border-radius:3px;background:#a8e075;display:grid;place-items:center}.ds-box i{display:block;width:7px;height:12px;border-right:3px solid #17301f;border-bottom:3px solid #17301f;transform:rotate(40deg) translate(-1px,-2px)}.ds-name{flex:1;font-weight:700;font-size:14px}.ds-state{min-width:34px;text-align:center;font-size:11px;font-weight:800;padding:3px 5px;border-radius:3px;background:#a8e075;color:#17301f}" + } + ], + "narrative": { + "northStar": "The Tracing Overlay", + "overview": "The site is a drafting table. The page itself is the site plan: warm plan paper with a faint surveyed grid, a produced raster rather than CSS stripes. Everything worth reading sits on sheets of translucent vellum taped over that plan, so the grid reads faintly through each sheet the way a drawing shows through tracing paper. The ink is graphite; the only colours with meaning are the mod's own outline gold (what is outlined or pinned) and its pin green (what is pinned or confirmed). Lifting a sheet changes nothing below, and every layer has one job.\n\nUnder a lamp (dark, following the system; there is no toggle) the same table turns to the mod's panel teal, the vellum to a deeper teal, and the ink to pale grey; gold and green brighten to the mod's in-game values. The one authored exhibit, the interactive pin demo, is a replica of the in-game panel and keeps the mod's real panel colours in both themes, so it reads as the game on top of the drawing rather than as part of the drawing.\n\nDensity is a reference document's: ruled rows, bordered title-block cells, short notes, measured lines (56–62ch in leads, 760px prose). Drawing lettering (Chivo 800) for titles, system text for reading, mono for paths and log lines. The site refuses the template it would otherwise wear: eyebrows, pill chips, a card grid with numbered badges, a numbered steps band on the home page, a spec table, a centered CTA band.", + "keyCharacteristics": [ + "Plan paper with a produced surveyed grid (24px fine, 96px firm lines) as the page ground.", + "Translucent vellum sheets (raster only, about 74–77% alpha) with drafting tape at both top corners.", + "Graphite ink plus at most two meaningful inks: outline gold and pin green.", + "Drawn outlines (SVG, gold stroke over a 14% gold fill) instead of icons or illustrations.", + "Horizontal rules as structure: 2px ink rules open sections, 1px rules separate rows.", + "The in-game panel replica keeps the mod's real colours in both themes.", + "No shadows, one small lift on buttons, everything still under reduced motion." + ], + "rules": [ + { + "name": "The Real Panel Rule", + "body": "The in-game panel replica keeps the mod's real panel colours in both themes. Never re-theme it to the page.", + "section": "colors" + }, + { + "name": "The Three Inks Rule", + "body": "No sheet carries more than three inks: graphite (with its muted and rule tints), outline gold, pin green. Anything else on a sheet is the panel replica.", + "section": "colors" + }, + { + "name": "The Gold Means Outlined Rule", + "body": "Outline gold marks what is outlined, pinned or current. It is not decoration and not a general accent.", + "section": "colors" + }, + { + "name": "The Lettering Rule", + "body": "Chivo is for titles, terms and buttons, never for running text. Headings balance their lines and track slightly tight (-0.015em).", + "section": "typography" + }, + { + "name": "The Vellum, Not Paint Rule", + "body": "A sheet's background is the vellum raster alone (about 74–77% alpha), never an opaque colour, so the survey grid reads through. Opaque vellum is reserved for code blocks, callouts and the skip link.", + "section": "elevation" + }, + { + "name": "The Tape Holds Every Sheet Rule", + "body": "Every sheet is taped at both top corners: 76 by 24px strips of the produced tape raster, 12px above the edge, 18px in from each side, turned -4deg on the left and 3deg on the right. A sheet without tape is not a sheet.", + "section": "elevation" + }, + { + "name": "The Produced Surface Rule", + "body": "Plan, vellum and tape are rasters made by `docs/assets/textures/make_textures.py` (fixed seeds, no source images, no generative model), with provenance beside them. Never fake them with CSS gradients or stripes.", + "section": "elevation" + } + ], + "dos": [ + "**Do** put every block of reading content that stands apart on a taped vellum sheet, tape at both top corners.", + "**Do** let the plan grid read through sheets: vellum raster only, about 74–77% alpha.", + "**Do** draw outlines in SVG with the gold stroke (2.4px) over a 14% gold fill, on a faint pencil grid, when a feature needs a picture.", + "**Do** keep the in-game panel replica in the mod's real colours in both themes.", + "**Do** draw focus dashed in cream inside the demo and solid gold for selection, so the two never look alike.", + "**Do** mark each unplayed feature with \"Checked, not played in game yet.\" in the not-played style.", + "**Do** separate sections with 2px ink rules and rows with 1px pencil rules.", + "**Do** follow the system theme; there is no toggle." + ], + "donts": [ + "**Don't** add drop shadows, glows or offset shadows; depth is translucency and tape.", + "**Don't** fake paper, grid or tape with CSS gradients or stripes; use the produced rasters with provenance.", + "**Don't** use eyebrows or kickers, pill chips, card grids with numbered badges, a numbered steps band on the home page, or a centered CTA band.", + "**Don't** use outline gold as a generic accent; it means outlined, pinned or current.", + "**Don't** use glyph or icon-font icons; icons are drawn SVG or masks.", + "**Don't** set running text in Chivo.", + "**Don't** use Timberborn art or screenshots; the demo is labelled an illustration.", + "**Don't** make the header sticky." + ] + } +} diff --git a/.impeccable/surfaces/docs-index-html.md b/.impeccable/surfaces/docs-index-html.md new file mode 100644 index 0000000..5afa545 --- /dev/null +++ b/.impeccable/surfaces/docs-index-html.md @@ -0,0 +1,24 @@ +--- +version: 1 +slug: "docs-index-html" +primary_target: "docs/index.html" +related_targets: ["docs/install.html","docs/troubleshooting.html","docs/faq.html","docs/404.html"] +--- + +# Surface brief: Persistent Work Areas site (docs/index.html with install, troubleshooting, faq, 404) + +Scope: docs/. Home: Persuade; guides: Read. Audience: players who lay out farms and forests and lose the working-area outline the moment they pick a planting tool; mostly single player, some Stability Fork co-op. Action: understand it (pin the outline so it stays after deselecting; the planting tools outline their planters on their own; display only; saves untouched; no other mods), install it right (the zip under Assets, not -source.zip or Source code; not nested), use it (Keep working area visible, Clear pinned areas (N), optional key), report problems usefully. Proof: the interactive demo, the exact in-game strings, 142 automated checks, 1.0's pinning played in a two-player Stability Fork session. Constraints: site.js release lookup (data-latest-version/-zip, data-zip-name/-line, pwa-latest-release session cache) and its no-JS fallbacks; hidden-until-script elements stay hidden (global [hidden] rule); demo.js DOM contract (#demo, svg.map, .ui-panel, .ui-empty, .ui-toggle, .who, .state, .hint, [data-clear], [data-deselect], [data-status]) and in-game strings; every id kept; 404 absolute /PersistentWorkAreas/ paths; honest status (1.0's pinning played; 1.1's additions checked, not played; one-computer co-op not played; original BeaverBuddies and MultiColony not tested); no version history on player pages; no Timberborn art. Decisions delegated to the agent. + +## Direction contract + +THESIS: Persistent Work Areas is a sheet of tracing paper taped over the site plan: the outline you drew stays on the vellum while you keep working on the plan underneath, and lifting the sheet changes nothing below. It refuses the template the site wears around its one authored part (eyebrow, pill chips, a 6-card grid with numbered badges, a numbered steps band, a spec table, a centered CTA). + +OWN-WORLD: A drafting table. Light: the site plan in warm plan-paper (#ecebe3) with a faint surveyed grid (a produced raster, not CSS stripes), sheets of translucent vellum (#f7f6ef at ~88% over the plan, a produced fibre texture) held down with drafting tape (a produced raster), graphite ink (#262b2a), and the mod's own outline cream-gold (#ebb859 / #f5e6a3) as the pinned outline, the pin green (#a8e075, darkened to #4f7a2a for text on light) for "pinned". Dark: the same table under a lamp, plan #17221f (the mod's panel teal), vellum #1f2c29, ink #e6e8e2. The in-game panel (the demo) keeps the mod's real panel colours in both themes. Chivo (display, self-hosted, OFL) for sheet titles and headings in the manner of drawing lettering; body system-ui; paths and log lines in mono. + +STORY: One look: pin a building's working area and it stays after you deselect; pick a crop or tree and its planters are outlined; clear them all in one click; display only, saves untouched, nothing else to install. Then: the three moves in game (pin, plant, clear) as taped sheets; what it outlines and what it doesn't; where pins live; co-op in plain words; what is tested and what isn't; install. + +FIRST VIEWPORT: Left: "Persistent Work Areas", the pitch "Keep the outline. Keep planting.", a two-sentence lead, three facts (the game's own outline, kept; the planting tools show their planters; display only, saves untouched, no other mods), Download + Install guide, a short status note. Right: the demo as a taped sheet over the plan, already showing one pinned, deselected outline at rest, with a planting-tool switch that outlines the farmhouse's area on its own; the in-game panel replica beside the map. + +FORM: Tracing Overlay, candidate 3 of 7 (seed b5deea89). Challengers weighed: the silk canopy (competitive: overlapping translucent layers fit merged areas; kept its discipline, overlaps labelled beyond colour), risograph, pickling calendar, darkroom, civic prospectus, flyer wall (declined). Raises taken: overlap is shown as one merged outline and said in words (canopy); no more than three inks on any sheet (riso); every layer has one job and can be lifted without changing the plan (flyer wall, without its history). Signature interaction: the demo (pin, deselect, planting switch, clear), keyboard and touch first-class. + +FINISH: unreviewed and undocumented is unfinished; this build ends with the finish review, the verdict, DESIGN.md, and every shipping raster carrying its provenance diff --git a/DESIGN.md b/DESIGN.md new file mode 100644 index 0000000..e324f53 --- /dev/null +++ b/DESIGN.md @@ -0,0 +1,300 @@ +--- +name: Persistent Work Areas +description: A sheet of tracing paper taped over the site plan; the outline you drew stays on the vellum while you keep working underneath. +colors: + plan: "#ecebe3" + plan-dark: "#17221f" + vellum: "#f7f6ef" + vellum-dark: "#1f2c29" + ink: "#262b2a" + ink-dark: "#e6e8e2" + muted: "#545b58" + muted-dark: "#a9b5ae" + rule: "#cfccbd" + rule-dark: "#34443f" + link: "#1f5c55" + link-hover: "#123f3a" + link-dark: "#f0d27a" + link-hover-dark: "#f8e6b0" + outline: "#b88a1e" + outline-ink: "#7a5a0e" + outline-dark: "#ebb859" + outline-cream: "#f5e6a3" + pin: "#4f7a2a" + pin-dark: "#a8e075" + panel-frame: "#0f1d1b" + panel-bg: "#1a2e2b" + panel-line: "#577560" + panel-cream: "#fff2c9" + panel-hint: "#c4d6c4" + panel-button: "#294f45" + panel-button-edge: "#85ab78" + panel-check-ink: "#17301f" + map-ground: "#223a2c" +typography: + display: + fontFamily: "Chivo, Arial Narrow, sans-serif" + fontSize: "clamp(2.6rem, 6vw, 4.4rem)" + fontWeight: 800 + lineHeight: 1.06 + letterSpacing: "-0.015em" + headline: + fontFamily: "Chivo, Arial Narrow, sans-serif" + fontSize: "clamp(1.8rem, 3.6vw, 2.6rem)" + fontWeight: 800 + lineHeight: 1.06 + letterSpacing: "-0.015em" + pitch: + fontFamily: "Chivo, Arial Narrow, sans-serif" + fontSize: "clamp(1.4rem, 2.6vw, 1.9rem)" + fontWeight: 800 + lineHeight: 1.1 + letterSpacing: "-0.01em" + title: + fontFamily: "Chivo, Arial Narrow, sans-serif" + fontSize: "1.28rem" + fontWeight: 700 + lineHeight: 1.2 + letterSpacing: "-0.005em" + body: + fontFamily: "system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif" + fontSize: "1.0625rem" + fontWeight: 400 + lineHeight: 1.62 + label: + fontFamily: "Chivo, Arial Narrow, sans-serif" + fontSize: "0.82rem" + fontWeight: 700 + lineHeight: 1.2 + letterSpacing: "0.06em" + mono: + fontFamily: "ui-monospace, Cascadia Code, SF Mono, Consolas, Liberation Mono, monospace" + fontSize: "0.9em" + fontWeight: 400 + lineHeight: 1.5 +rounded: + hairline: "2px" + button: "3px" + panel: "4px" + panel-card: "5px" + step: "50%" +spacing: + gutter: "clamp(16px, 4vw, 32px)" + wrap: "1160px" + section: "clamp(56px, 8vw, 100px)" + sheet-gap: "30px 24px" + sheet-pad: "26px 22px 20px" + row: "16px" +components: + button-primary: + backgroundColor: "{colors.ink}" + textColor: "{colors.plan}" + typography: "{typography.title}" + rounded: "{rounded.button}" + padding: "0 22px" + height: "50px" + button-primary-hover: + backgroundColor: "{colors.link-hover}" + textColor: "{colors.plan}" + button-secondary: + backgroundColor: "transparent" + textColor: "{colors.ink}" + rounded: "{rounded.button}" + padding: "0 22px" + height: "50px" + button-small: + padding: "0 14px" + height: "44px" + sheet: + backgroundColor: "{colors.vellum}" + padding: "{spacing.sheet-pad}" + callout: + backgroundColor: "{colors.vellum}" + textColor: "{colors.ink}" + rounded: "{rounded.hairline}" + padding: "18px 20px" + nav-link: + textColor: "{colors.muted}" + padding: "0 12px" + height: "44px" + nav-link-current: + textColor: "{colors.ink}" + panel-toggle: + backgroundColor: "#26382f" + textColor: "{colors.panel-cream}" + rounded: "{rounded.panel}" + padding: "8px 10px" + height: "46px" + panel-toggle-pinned: + backgroundColor: "#304d38" + textColor: "{colors.panel-cream}" + panel-button: + backgroundColor: "{colors.panel-button}" + textColor: "{colors.panel-cream}" + rounded: "{rounded.panel}" + padding: "6px 12px" + height: "40px" +--- + +# Design System: Persistent Work Areas + +## Overview + +**Creative North Star: "The Tracing Overlay"** + +The site is a drafting table. The page itself is the site plan: warm plan paper with a faint surveyed grid, a produced raster rather than CSS stripes. Everything worth reading sits on sheets of translucent vellum taped over that plan, so the grid reads faintly through each sheet the way a drawing shows through tracing paper. The ink is graphite; the only colours with meaning are the mod's own outline gold (what is outlined or pinned) and its pin green (what is pinned or confirmed). Lifting a sheet changes nothing below, and every layer has one job. + +Under a lamp (dark, following the system; there is no toggle) the same table turns to the mod's panel teal, the vellum to a deeper teal, and the ink to pale grey; gold and green brighten to the mod's in-game values. The one authored exhibit, the interactive pin demo, is a replica of the in-game panel and keeps the mod's real panel colours in both themes, so it reads as the game on top of the drawing rather than as part of the drawing. + +Density is a reference document's: ruled rows, bordered title-block cells, short notes, measured lines (56–62ch in leads, 760px prose). Drawing lettering (Chivo 800) for titles, system text for reading, mono for paths and log lines. The site refuses the template it would otherwise wear: eyebrows, pill chips, a card grid with numbered badges, a numbered steps band on the home page, a spec table, a centered CTA band. + +**Key Characteristics:** +- Plan paper with a produced surveyed grid (24px fine, 96px firm lines) as the page ground. +- Translucent vellum sheets (raster only, about 74–77% alpha) with drafting tape at both top corners. +- Graphite ink plus at most two meaningful inks: outline gold and pin green. +- Drawn outlines (SVG, gold stroke over a 14% gold fill) instead of icons or illustrations. +- Horizontal rules as structure: 2px ink rules open sections, 1px rules separate rows. +- The in-game panel replica keeps the mod's real colours in both themes. +- No shadows, one small lift on buttons, everything still under reduced motion. + +## Colors + +Warm plan paper and graphite by day, panel teal and pale ink under the lamp, with the mod's own outline gold and pin green as the only signalling colours. + +### Primary +- **Outline Gold** (light `outline`, dark `outline-dark`): the mod's outline. Drawn outlines on the move sheets, legend swatches, the current-page underline in the nav, the top rule of callouts, the top rule of an open FAQ answer. In light it is darkened to a bronze gold so a 2.4px stroke holds on plan paper; in dark it is the in-game value. +- **Outline Ink** (`outline-ink`): gold deep enough for text on light paper; used only for the pitch line. In dark the pitch uses Outline Gold. +- **Outline Cream** (`outline-cream`): the pale gold of the in-game area fill and edge; the dark theme's focus ring and the text-selection highlight in both themes. + +### Secondary +- **Pin Green** (light `pin`, dark `pin-dark`): "pinned" and "confirmed". Pin dots in drawings, check marks in tested lists, the underline of the Tested heading. The light value is the in-game green darkened for text contrast on paper. + +### Tertiary +- **Survey Teal** (light `link`, `link-hover`): links, the light focus ring, and the primary button's hover fill. In dark, links take a pale gold (`link-dark`, `link-hover-dark`) because teal would sink into the teal plan. + +### Neutral +- **Plan Paper** (`plan`, `plan-dark`): the page ground, always carried by the plan raster; the colour is the fallback and the primary button's text. +- **Vellum** (`vellum`, `vellum-dark`): the sheet tone. On sheets it arrives only through the translucent raster; as a solid fill it backs code blocks, callouts and the skip link, where dense text needs an opaque ground. +- **Graphite Ink** (`ink`, `ink-dark`): text, 2px section rules, the primary button fill, title-block borders, drawn buildings. +- **Soft Graphite** (`muted`, `muted-dark`): secondary copy, section-head leads, the struck legend swatch, the "not played" marker and the open-items heading rule. +- **Pencil Rule** (`rule`, `rule-dark`): 1px row dividers, sheet borders, drawn grid lines. +- **Band** (`rgba(38,43,42,.045)` light, `rgba(230,232,226,.04)` dark): inline-code wash and secondary-button hover; a tint of ink, not a colour. + +### In-game panel (the demo only) +- **Panel Teal** (`panel-bg`), **Panel Frame** (`panel-frame`), **Panel Line** (`panel-line`), **Panel Cream** (`panel-cream`), **Panel Hint** (`panel-hint`), **Panel Button** (`panel-button`, edge `panel-button-edge`), **Check Ink** (`panel-check-ink`), **Map Ground** (`map-ground`), with the in-game gold and green (`outline-dark`, `pin-dark`). Farmhouse and Forester bodies on the map are `#c9a25a` and `#5f9a57`. + +### Named Rules +**The Real Panel Rule.** The in-game panel replica keeps the mod's real panel colours in both themes. Never re-theme it to the page. + +**The Three Inks Rule.** No sheet carries more than three inks: graphite (with its muted and rule tints), outline gold, pin green. Anything else on a sheet is the panel replica. + +**The Gold Means Outlined Rule.** Outline gold marks what is outlined, pinned or current. It is not decoration and not a general accent. + +## Typography + +**Display Font:** Chivo 700/800, self-hosted (OFL), with Arial Narrow and sans-serif fallback +**Body Font:** system-ui stack +**Label/Mono Font:** ui-monospace stack for paths, file names and log lines + +**Character:** Heavy, slightly condensed drawing lettering over plain, fast system text. The titles read like the lettering on a drawing; the body stays out of the way. + +### Hierarchy +- **Display** (800, clamp(2.6rem, 6vw, 4.4rem), 1.06): the home page title only. Guide page titles use clamp(2.4rem, 5.4vw, 3.6rem). +- **Headline** (800, clamp(1.8rem, 3.6vw, 2.6rem), 1.06): section titles. In guide prose clamp(1.6rem, 3vw, 2.1rem) with a 2px ink rule above. +- **Pitch** (800, clamp(1.4rem, 2.6vw, 1.9rem), 1.1): the one-line pitch under the home title, in Outline Ink. +- **Title** (700, 1.28rem, 1.2): sheet and card titles; also buttons (700, 1.05rem), definition terms (700, 1.1rem), table heads. +- **Body** (400, 1.0625rem, 1.62): reading text; leads 1.1rem at 56–62ch; prose capped at 760px. Bold is 650. +- **Label** (700, 0.82rem, 0.06em, uppercase): title-block cell labels only, in Soft Graphite, as a drawing's title block letters them. +- **Mono** (0.9em): inline code, code blocks (1.5 line height), file paths. + +### Named Rules +**The Lettering Rule.** Chivo is for titles, terms and buttons, never for running text. Headings balance their lines and track slightly tight (-0.015em). + +## Layout + +A single 1160px column with a fluid gutter (clamp(16px, 4vw, 32px)). Sections are separated by 2px ink rules and open with clamp(56px, 8vw, 100px) of padding; follow-on sections that belong to the one before drop their top padding. Section heads sit left, never centered, capped at 760px. + +The home hero is a two-column grid (0.9fr text, 1.1fr demo sheet) with the demo sheet on the right. The three moves are a three-column grid of taped sheets (gaps 30px 24px). The legend, the notes sheet, the title block and the status pair are two-column grids inside or across sheets. Guides use a 220px sticky table of contents beside 760px prose; FAQ prose is capped at 52em. Troubleshooting entries are ruled blocks with a 120px term column. + +Breakpoints: at 960px the hero stacks and the demo sheet moves up to follow the lead (title, pitch, lead, then the demo, then facts, buttons and status), so the pinned outline is on the first screen; the moves become one column (max 560px). At 860px every two-column grid, the title block and the guide layout go to one column and the TOC becomes a static two-column list. At 720px the header nav wraps under the brand, the demo sheet bleeds to the viewport edges, and map labels grow to 16px. + +The header is not sticky: a 66px bar with a 2px ink rule under it. Tap targets are at least 40–44px (nav links, TOC rows, footer links, buttons 44–50px). + +## Elevation & Depth + +Flat. There are no drop shadows anywhere. Depth is the drafting table's: the plan raster below, translucent vellum sheets over it (the grid shows through), and drafting tape strips that hold each sheet down. Rules and borders, not shadows, separate things. The only shadow-like device is the in-game panel's 4px inset left stripe (gold, green when pinned), copied from the mod. + +### Named Rules +**The Vellum, Not Paint Rule.** A sheet's background is the vellum raster alone (about 74–77% alpha), never an opaque colour, so the survey grid reads through. Opaque vellum is reserved for code blocks, callouts and the skip link. + +**The Tape Holds Every Sheet Rule.** Every sheet is taped at both top corners: 76 by 24px strips of the produced tape raster, 12px above the edge, 18px in from each side, turned -4deg on the left and 3deg on the right. A sheet without tape is not a sheet. + +**The Produced Surface Rule.** Plan, vellum and tape are rasters made by `docs/assets/textures/make_textures.py` (fixed seeds, no source images, no generative model), with provenance beside them. Never fake them with CSS gradients or stripes. + +## Shapes + +Square drafting geometry. Corners are nearly sharp: 2px on code and focus rings, 3px on buttons and swatches, 4–5px only inside the in-game panel replica, which keeps the game's softer corners. Circles appear only as the install guide's step numbers (a 34px ink ring) and pin dots. Borders do the structural work: 1px pencil rules on sheets, 2px ink rules across sections, a 2px ink frame with 1px inner cell lines on the title block. Drawn outlines use round line joins; the legend's "doesn't" swatch is a dashed box struck through at -24deg. + +## Components + +### Buttons +Solid and plain, like a stamp. +- **Shape:** barely rounded (3px), 2px ink border, 50px tall (44px small). +- **Primary:** graphite fill with plan-paper text in Chivo 700; an optional 18px drawn download arrow. +- **Hover / Focus:** fill and border turn to the deep link colour and lift 1px (0.15s, cubic-bezier(.2,.8,.2,1)). Focus is the global 3px ring. +- **Secondary:** transparent with ink text and border; hover adds the band tint. + +### Sheets +The one surface everything is drawn on. +- **Corner Style:** square. +- **Background:** the vellum raster only. +- **Shadow Strategy:** none; tape and translucency (see Elevation & Depth). +- **Border:** 1px pencil rule. +- **Internal Padding:** about 26px 22px 20px; the demo sheet 22px 16px 16px. +- **Variants:** move sheet (drawing, title, muted text), legend sheet, notes sheet (dashed rules between notes), title-block sheet, status sheets (the Tested heading underlined in pin green, Not played yet in soft graphite). + +### Title Block +Compatibility as a drawing's title block: a 2px ink frame of two-column cells split by 1px ink lines, each with an uppercase tracked label and plain answer. + +### Legend +Two columns, "What it outlines" and "What it doesn't". Each row is a 34 by 22px swatch and a line: the outline swatch is a 2.5px gold border over an 18% gold fill; the struck swatch is a dashed soft-graphite box with a diagonal strike. + +### Checked Lists +Lists marked with drawn masks, never glyphs: a pin-green check for done, a muted dash for "doesn't", a dashed muted circle for open. + +### Not-Played Marker +"Checked, not played in game yet." sits on its own line after each unplayed feature, 0.9rem italic in Soft Graphite. It follows every feature that has not been played in game, and never appears on one that has. + +### Callouts and Code +Opaque vellum boxes with a 1px pencil border; callouts add a 3px gold top rule and a Chivo title line. Code blocks wrap rather than scroll where they can. + +### Navigation +A non-sticky 66px bar: the brand mark (the mod's panel square with a gold outline and green pin) and name in Chivo 800 on the left, text links on the right in 600 weight, soft graphite at rest, ink on hover, the current page underlined 2px in outline gold. At 720px the links wrap under the brand. + +### FAQ Questions +Ruled `details` rows at least 56px tall with a drawn chevron that turns 180deg (0.2s); an open question's top rule becomes 2px gold. Expand/collapse-all buttons are small secondary buttons. + +### The Pin Demo (signature) +A replica of the in-game panel and a simplified map in the mod's real colours, framed in the taped demo sheet. It starts with the Forester pinned and nothing selected. Selecting a building shows the Working Area panel with the "Keep working area visible" toggle (gold border, OFF chip; green box, check and chip when pinned, with the inset stripe turning green). The planting switch adds a separate Farmhouse outline and changes the visible caption. "Clear pinned areas (N)" appears while anything is pinned. Esc or a click on empty ground deselects and returns focus. Focus on a building is a dashed cream stroke; selection is a solid gold stroke. Keyboard and touch are first-class; status changes are announced politely. + +## Do's and Don'ts + +### Do: +- **Do** put every block of reading content that stands apart on a taped vellum sheet, tape at both top corners. +- **Do** let the plan grid read through sheets: vellum raster only, about 74–77% alpha. +- **Do** draw outlines in SVG with the gold stroke (2.4px) over a 14% gold fill, on a faint pencil grid, when a feature needs a picture. +- **Do** keep the in-game panel replica in the mod's real colours in both themes. +- **Do** draw focus dashed in cream inside the demo and solid gold for selection, so the two never look alike. +- **Do** mark each unplayed feature with "Checked, not played in game yet." in the not-played style. +- **Do** separate sections with 2px ink rules and rows with 1px pencil rules. +- **Do** follow the system theme; there is no toggle. + +### Don't: +- **Don't** add drop shadows, glows or offset shadows; depth is translucency and tape. +- **Don't** fake paper, grid or tape with CSS gradients or stripes; use the produced rasters with provenance. +- **Don't** use eyebrows or kickers, pill chips, card grids with numbered badges, a numbered steps band on the home page, or a centered CTA band. +- **Don't** use outline gold as a generic accent; it means outlined, pinned or current. +- **Don't** use glyph or icon-font icons; icons are drawn SVG or masks. +- **Don't** set running text in Chivo. +- **Don't** use Timberborn art or screenshots; the demo is labelled an illustration. +- **Don't** make the header sticky. diff --git a/PRODUCT.md b/PRODUCT.md new file mode 100644 index 0000000..c276a63 --- /dev/null +++ b/PRODUCT.md @@ -0,0 +1,194 @@ +# Product + + + +## Platform + +web + +## Users + +Timberborn players who lay out farms and forests, mostly in single player; some play co-op through the BeaverBuddies +Stability Fork. They know the moment the mod fixes: you select a farmhouse or forester to see its working area, then +pick the planting tool, and the outline vanishes, so you paint crops or trees by memory or keep re-selecting the +building. Mostly non-technical. They find the mod through the Timbermods catalog (https://timbermods.github.io/), a +friend or a forum post, want to know in one look what it does and that it's safe for their saves, install it without +fuss, and pin their first building. Returning players come back to update, or to troubleshoot (no panel, no outline, +pins gone, stopped working after a game update). + +## Product Purpose + +The website for **Persistent Work Areas** (https://github.com/timbermods/PersistentWorkAreas), a Timberborn mod that +keeps a building's working-area outline on screen after you deselect it, so it stays visible while you plant, build +and plan. + +In plain words: +- Select a building with a working area (farmhouse, forester, lumberjack flag, gatherer, or any other building that + shows a terrain or road-spill range when selected) and check **Keep working area visible**. Deselect it: the outline + stays. Pin as many as you like; overlapping areas merge into one outline, separate ones all stay. +- Pick a crop or tree in the planting tools and the working areas of every building that can plant it appear on their + own: farmhouses for crops, aquatic farmhouses for aquatic crops, foresters for trees and bushes, including ones still + under construction. They go away when you leave the tool. These are not pins. +- **Clear pinned areas (N)** at the top right removes every pin (only pins, not the planting-tool outlines); an + optional key binding does the same. Uncheck one building to drop just its pin. Deleting a pinned building drops its + pin. +- Pins are remembered for each settlement in a small local file, never in the save. + +Success, in order: +1. The visitor understands it at a glance: the outline the game shows only while a building is selected now stays, and + the planting tools show their planters. Display only; saves untouched; no other mods needed. +2. They install it right: the `PersistentWorkAreas-v1.1.0.zip` under **Assets** (not `-source.zip`, not **Source + code**), extracted so that `Documents\Timberborn\Mods\PersistentWorkAreas\version-1.1\manifest.json` sits beside + `PersistentWorkAreas.dll` (not nested one level too deep), then enabled in the mod manager. +3. They use it: pin the first building, find **Clear pinned areas (N)**, optionally bind the clear key. +4. When something's wrong, they find the fix on Troubleshooting or send a useful report: mod and game version, + BeaverBuddies or not, other mods, what happened, and the `[PersistentWorkAreas]` lines from `Player.log`. + +## Positioning + +The base game draws a building's working area only while that building is selected. Persistent Work Areas keeps the +ones you choose on screen after you deselect, and outlines the planters for whatever you're planting. It draws with the +game's own outline renderer and the same navigation queries the game uses for a selected building, so a pinned outline +is the game's own outline, kept. It changes nothing in the game: no Harmony patches, no simulation changes, no save +writes, no network traffic, and no required mods. It pins navigation-based working areas only: not district road +coloring, not effect-radius overlays that aren't navigation-based, not building-placement ghosts, and not Builder's +Huts (the outline a Builder's Hut shows when selected is the base game's own, not this mod's). + +Among Timbermods it is the small, standalone one: it needs neither Harmony nor Mod Settings nor BeaverBuddies, unlike +MixedStorage (Harmony) or the BeaverBuddies Stability Fork and MultiColony (co-op mods). No comparison with other +community range-overlay mods is on record; don't invent one. + +## Operating Context + +- **Current release: v1.1.0**, a stable **Latest** release on GitHub (2026-09-22), assets + `PersistentWorkAreas-v1.1.0.zip` and `PersistentWorkAreas-v1.1.0-source.zip`. Earlier: 1.0.0 (first stable), + 0.1.3, 0.1.2, and 0.1.1/0.1.0 (pre-release previews). Downloads are GitHub Releases only (no Workshop listing is on + record), so linking to `/releases/latest` is correct here. +- Mod name in the mod manager: **Persistent Work Areas** (manifest id `kyler.persistentworkareas`). Folder + `PersistentWorkAreas\version-1.1\`, which also holds `KeyBindingGroups\`, `KeyBindings\` and `Localizations\`; + `README.md` and `VALIDATION.md` sit beside `version-1.1` in the zip. +- **Game version:** Timberborn **1.1.2.4** or a compatible 1.1 build (manifest `MinimumGameVersion` 1.1.2.4). Built + and tested on 1.1.2.4; a later game version may change the internal renderer the mod borrows. If it does, pinning + disables itself for that map, the panel says *Working-area pinning is unavailable. Check the game log.* and the log + says `Outline disabled for this map:`; nothing else in the game is affected. Built and tested on Windows. +- **Requirements:** none. No Harmony, no Mod Settings, no BeaverBuddies (`RequiredMods` is empty). +- **Co-op (the org rule, from the latest docs pass):** works the same in single player and co-op. Designed for + compatibility with the **BeaverBuddies Stability Fork** but doesn't depend on any BeaverBuddies build; keep that + installation as it is. For co-op, every player installs the same version of the mod and runs the same game version; + that is the tested setup. Pins are always local to each player, and the mod sends nothing over the network, so a + player without it shouldn't cause a desync, but running it on only one computer has not been played. The Stability + Fork's join check compares only the game and BeaverBuddies builds, so this mod doesn't affect joining. Not tested + with the original BeaverBuddies or with BeaverBuddies MultiColony. (The v1.1.0 release notes say players "don't need + to update together"; the README and site, written after, use the same-version rule above. Follow the README.) +- **Where pins live:** `Documents\Timberborn\PersistentWorkAreas\Pins.txt` (next to the `Saves` folder), per + settlement, the 100 most recently loaded or changed settlements. Loading any save of a settlement brings back its + latest pins; a different settlement starts with none. Deleting the file forgets every pin. A co-op guest's pins + usually don't come back after a resync (the guest's settlement is named after the host's save); the host's should. +- **What players meet in game** (exact text, from `Localizations/enUS_PersistentWorkAreas.csv`): + - In the building's panel: a **WORKING AREA** section with a **Keep working area visible** row (the whole row is the + button) and an **ON** / **OFF** badge. Hints: *Click to pin this outline while planting or building.* / + *Pinned after deselection. Clear all using the top-right button.* Tooltip: *Click to keep this building's + working-area outline visible after deselection. Click again to unpin.* + - Top right, while anything is pinned: **Clear pinned areas (N)**, tooltip *Remove all your pinned working-area + outlines. You can also assign a shortcut in Settings > Key bindings > Persistent Work Areas.* + - Key binding: group **Persistent Work Areas**, action **Clear all pinned working areas**, unbound by default; it + ignores presses with extra modifier keys. + - No Mod Settings page. UI text is English only; a translation is one more CSV in `version-1.1/Localizations/` + named for the game's language code (for example `deDE_PersistentWorkAreas.csv`), keeping `{0}` in the clear-button + text. +- **Reporting:** GitHub issues (https://github.com/timbermods/PersistentWorkAreas/issues/new) with the mod version + (mod manager or the `[PersistentWorkAreas] loaded.` log line), the Timberborn version, BeaverBuddies or not + and other mods, what happened, and every `[PersistentWorkAreas]` line from + `%USERPROFILE%\AppData\LocalLow\Mechanistry\Timberborn\Player.log` (`Player-prev.log` after a crash). The log lines + a player can meet: `loaded.`, `Outline disabled for this map:`, `Renderer cleanup failed:`, + `Pinned areas not restored from` / `Pinned areas not saved to` (with the `Pins.txt` path). + +## Capabilities and Constraints + +- **Stack and hosting:** plain static HTML/CSS/JS in `docs/` on `main`, no build step: `index.html` (Overview), + `install.html`, `troubleshooting.html`, `faq.html`, `404.html`, `.nojekyll`, and `assets/` (`style.css`, `site.js`, + `demo.js`, `favicon.svg`). GitHub Pages serves `main:/docs` (legacy build) at + https://timbermods.github.io/PersistentWorkAreas/, so a change is live once it's merged to `main`; there is no deploy + script and no `gh-pages` branch. It must stay fast, light and mobile-friendly. It's one of the timbermods sites + (MixedStorage, the BeaverBuddies Stability Fork and MultiColony are siblings; the org catalog is + https://timbermods.github.io/). +- **Site-test / CI contracts: none.** The only workflow, `.github/workflows/tests.yml`, runs the mod's game-free checks + (`dotnet run --project tests/Checks.csproj -c Release`) on pushes to `main` and pull requests; `tests/Program.cs` + checks nothing in `docs/` or the README. `build.ps1` copies `README.md` and `VALIDATION.md` into the release zip, so + those two files ship to players; the site doesn't. Nothing automated catches a broken site, so check it by hand. +- **Conventions the current site relies on (keep them working, no test enforces them):** + - `assets/site.js` fetches `repos/timbermods/PersistentWorkAreas/releases/latest` (cached in `sessionStorage` under + `pwa-latest-release`), fills every `[data-latest-version]` (unhiding it), points every `[data-latest-zip]` link at + the asset matching `^PersistentWorkAreas-v[\d.]+\.zip$`, and fills `[data-zip-name]` / unhides `[data-zip-line]`. + Every download link's `href` already points at `/releases/latest`, so the page works without the script. + - Elements that start `hidden` (the version badge, the zip-name line, the demo's clear button) must stay hidden + under the stylesheet until script reveals them. + - `404.html` loads its assets and links by absolute `/PersistentWorkAreas/` paths. + - `demo.js` is a simplified illustration, not the mod's renderer; it and the install-page panel sample use the + in-game strings (WORKING AREA, Keep working area visible, ON/OFF, Clear pinned areas (N), the hints). Keep them + captioned as illustrations and in step with the CSV. + - The FAQ opens a `details.q` from the URL hash, and other pages link to FAQ and troubleshooting ids (`#builder`, + `#report`, `#log`, `#unavailable`, `#performance`, `#update`, `#install`, `#how`); keep those anchors or update + every link. + - Footer standard on every page: "maintained by Timbermods", the catalog link "More mods from Timbermods", and the + disclaimer "An unofficial community mod for Timberborn. Not affiliated with or endorsed by Mechanistry." +- **Shared files:** this site has no `release.js` today (`site.js` is its own). If the redesign adopts the shared + timbermods `assets/release.js` (as the MixedStorage site does), it's a byte-for-byte copy shared across timbermods + sites: replace it, never edit it. +- **Terminology:** working area (not range, radius or zone, except "road-spill range" / "terrain range" as the kinds + that qualify); pin / pinned / unpin; **Keep working area visible**; **WORKING AREA**; **Clear pinned areas (N)**; + **Clear all pinned working areas**; planting tools; farmhouses, aquatic farmhouses, foresters, lumberjack flags, + gatherers, Builder's Huts; settlement (what pins are remembered per); resync; BeaverBuddies Stability Fork. "Display + only", "local", "never written into the save". +- **Honest status:** 1.1.0 passes 142 automated checks (77 game-free, which also run in CI; 65 against the installed + game's assemblies and blueprints). 1.0.0's behavior ("pinning, clearing and outline display worked as expected") was played + in game on 1.1.2.4, single player and in a two-player Stability Fork co-op session with the mod on both computers. + **1.1.0's additions have not been played in game yet:** the planting-tool outlines, pins remembered in `Pins.txt`, + the faster per-pin refresh and the translatable text. Also not played: the mod on only one co-op computer, the + original BeaverBuddies or MultiColony, frame rate in a very large colony, every other mod. Say so plainly, next to + the feature, without alarm; the current site doesn't yet say it anywhere. +- **Describe the mod as it is now.** Version history belongs in the changelog: the README's "New in 1.1.0" / "Earlier + versions" and the GitHub release notes (there is no separate CHANGELOG file). The current site has leftovers to + remove: "since version 0.1.2" (FAQ `#builder`, troubleshooting `#builder-hut`) and "since version 1.1.0" / "since + 1.1.0" (FAQ `#persist`, `#planting`, `#language`, install `#update`). Keep only the upgrade facts players need: + close the game, replace the whole `PersistentWorkAreas` folder (copying only the DLL shows raw text keys), pins are + kept because they live outside the mod folder. +- **Sources of truth:** `README.md`, `VALIDATION.md`, the localization CSV and the release notes. Where the site and + the README disagree, flag it; don't guess. + +## Brand Commitments + +- **Voice:** a fellow player explaining a small, useful mod. Clear, exact, friendly, never hype. Short sentences; the + exact names players see in game. +- **Native fidelity is the claim:** the outline is the game's own; the site's illustrations say they're illustrations + ("Interactive illustration, not a game screenshot.") until real screenshots exist. +- **No official Timberborn logos or key art.** The game's own item and building icons are allowed where used (none are + on this site yet); credit them as Timberborn's. The brand mark (the outlined-area glyph in `favicon.svg`, repeated + in the header) is the project's own. +- **License:** MIT, copyright Timbermods, for the code, docs and site. Game and Unity DLLs are build references only, + never redistributed. +- **Unofficial community mod, not affiliated with or endorsed by Mechanistry.** Maintained by Timbermods. + +## Evidence on Hand + +- `docs/assets/favicon.svg`: the project's brand mark (also inline in every page header). It is the only image the + repo has. +- The interactive pinning illustration on the home page (`docs/assets/demo.js`: a simplified map with a Farmhouse and a + Forester, select → pin → deselect → clear) and a static panel sample on the install page, both captioned as + illustrations. +- Exact in-game text in `packaging/PersistentWorkAreas/version-1.1/Localizations/enUS_PersistentWorkAreas.csv`. +- `VALIDATION.md`: what the 142 checks cover and the 10-step release playtest checklist. +- **Does not exist and must not be faked:** any in-game screenshot or clip (a pinned outline, the WORKING AREA panel, + the Clear pinned areas button, the planting-tool outlines), an og/social image, a mod icon or thumbnail, Workshop + page, download counts, player quotes or testimonials, press. Leave marked slots for the maintainer's own shots. + +## Product Principles + +1. **Show the outline staying.** The whole mod is one before/after: selected → deselected, outline still there. Every + page's first job is to make that moment obvious. +2. **Nothing touched but the screen.** Display only, saves untouched, no patches, no network, no required mods: say it + once, precisely, and back it with the specifics. +3. **Install right the first time.** The right zip, the exact folder layout, not nested: impossible to miss. +4. **The game's own words.** Name the panel, row, button and key binding exactly as the game shows them. +5. **Honest about what's been played.** 1.0.0's pinning was played; 1.1.0's additions are checked, not yet played. + Say which, next to the feature. diff --git a/docs/404.html b/docs/404.html index cc04b55..067faf4 100644 --- a/docs/404.html +++ b/docs/404.html @@ -5,16 +5,29 @@ Page not found - Persistent Work Areas + + +
-
-

404

-

This page wandered off the map.

-

The page you were looking for doesn't exist. Try one of these instead.

-
+
+
+

This page isn't on the plan.

+

The page you were looking for doesn't exist. Try one of these instead.

+
+
+
+
Overview Install guide Troubleshooting @@ -22,5 +35,8 @@

This page wandered off the map.

+ diff --git a/docs/assets/demo.js b/docs/assets/demo.js index 86e74f3..d2dff19 100644 --- a/docs/assets/demo.js +++ b/docs/assets/demo.js @@ -1,5 +1,7 @@ // Interactive illustration of pinning. It is a simplified drawing, not the mod's renderer: -// the real mod uses the game's own outline renderer and navigation queries. +// the real mod uses the game's own outline renderer and navigation queries. It starts with the Forester pinned and +// nothing selected, so the kept outline is on screen at rest. The planting switch outlines every farmhouse, as the +// game's planting tools do with the mod installed; those outlines are not pins. (function () { var root = document.getElementById("demo"); if (!root) return; @@ -9,8 +11,8 @@ var ROAD_ROW = 8; var buildings = [ - { id: "farm", name: "Farmhouse", x: 7, y: 6, w: 2, h: 2, color: "#c9a25a", access: [8, 8], r: 5.6 }, - { id: "forester", name: "Forester", x: 15, y: 9, w: 2, h: 2, color: "#5f9a57", access: [15, 8], r: 5.1 } + { id: "farm", name: "Farmhouse", x: 5, y: 5, w: 2, h: 2, color: "#c9a25a", access: [6, 8], r: 4.6 }, + { id: "forester", name: "Forester", x: 16, y: 10, w: 2, h: 2, color: "#5f9a57", access: [17, 8], r: 4.6 } ]; buildings.forEach(function (b) { b.cells = []; @@ -32,9 +34,13 @@ var clearBtn = root.querySelector("[data-clear]"); var deselectBtn = root.querySelector("[data-deselect]"); var status = root.querySelector("[data-status]"); + var plantBtn = root.querySelector("[data-plant]"); + var cap = document.getElementById("demo-cap"); + var restCap = cap ? cap.textContent : ""; + var planting = false; var selected = null; - var pinned = {}; + var pinned = { forester: true }; function el(name, attrs, parent) { var n = document.createElementNS(SVGNS, name); @@ -45,6 +51,7 @@ // Static layer: ground grid, road. var ground = el("g", {}, svg); + el("rect", { class: "ground-hit", x: 0, y: 0, width: COLS * C, height: ROWS * C }, ground); for (var i = 0; i <= COLS; i++) el("line", { class: "grid-line", x1: i * C, y1: 0, x2: i * C, y2: ROWS * C }, ground); for (var j = 0; j <= ROWS; j++) el("line", { class: "grid-line", x1: 0, y1: j * C, x2: COLS * C, y2: j * C }, ground); el("rect", { class: "road", x: 0, y: ROAD_ROW * C, width: COLS * C, height: C }, ground); @@ -76,7 +83,7 @@ function drawArea() { var set = {}; buildings.forEach(function (b) { - if (pinned[b.id] || selected === b.id) b.cells.forEach(function (c) { set[c] = true; }); + if (pinned[b.id] || selected === b.id || (planting && b.id === "farm")) b.cells.forEach(function (c) { set[c] = true; }); }); var fill = "", edge = ""; Object.keys(set).forEach(function (key) { @@ -129,8 +136,27 @@ if (pinned[selected]) delete pinned[selected]; else pinned[selected] = true; render(b.name + (pinned[selected] ? " pinned." : " unpinned.")); }); - clearBtn.addEventListener("click", function () { pinned = {}; render("All pins cleared."); }); - deselectBtn.addEventListener("click", function () { select(null); }); + clearBtn.addEventListener("click", function () { + pinned = {}; render("All pins cleared."); + // the button hides itself, so keep focus on the map + nodes[buildings[0].id].g.focus(); + }); + deselectBtn.addEventListener("click", function () { + var was = selected; select(null); + if (was) nodes[was].g.focus(); + }); + if (plantBtn) { + plantBtn.hidden = false; + plantBtn.addEventListener("click", function () { + planting = !planting; + plantBtn.setAttribute("aria-pressed", String(planting)); + if (cap) cap.textContent = planting ? "Planting tool open: the Farmhouse is outlined for you. Not a pin." : restCap; + render(planting ? "Planting tool open: the Farmhouse's working area is outlined." : "Planting tool closed."); + }); + } + root.addEventListener("keydown", function (e) { + if (e.key === "Escape" && selected) { var was = selected; select(null); nodes[was].g.focus(); } + }); render(); })(); diff --git a/docs/assets/fonts/OFL-Chivo.txt b/docs/assets/fonts/OFL-Chivo.txt new file mode 100644 index 0000000..4e5e18c --- /dev/null +++ b/docs/assets/fonts/OFL-Chivo.txt @@ -0,0 +1,93 @@ +Copyright 2019 The Chivo Project Authors (https://github.com/Omnibus-Type/Chivo) + +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/docs/assets/fonts/chivo-latin-700-normal.woff2 b/docs/assets/fonts/chivo-latin-700-normal.woff2 new file mode 100644 index 0000000..0065f14 Binary files /dev/null and b/docs/assets/fonts/chivo-latin-700-normal.woff2 differ diff --git a/docs/assets/fonts/chivo-latin-800-normal.woff2 b/docs/assets/fonts/chivo-latin-800-normal.woff2 new file mode 100644 index 0000000..14204a6 Binary files /dev/null and b/docs/assets/fonts/chivo-latin-800-normal.woff2 differ diff --git a/docs/assets/style.css b/docs/assets/style.css index 0175f34..a675331 100644 --- a/docs/assets/style.css +++ b/docs/assets/style.css @@ -1,198 +1,135 @@ -/* Persistent Work Areas site. Palette is taken from the mod's in-game pin panel. */ +/* + * Persistent Work Areas: the project site. A sheet of tracing paper taped over the site plan: the outline you drew + * stays on the vellum while you keep working on the plan underneath, and lifting the sheet changes nothing below. + * Plan paper with a surveyed grid, vellum sheets held down with drafting tape, graphite ink, and the mod's own outline + * cream-gold and pin green. The in-game panel replica (the demo) keeps the mod's real panel colours in both themes. + * Textures are produced by assets/textures/make_textures.py. Chivo is self-hosted (assets/fonts/, OFL). + */ + +@font-face { font-family: "Chivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/chivo-latin-700-normal.woff2") format("woff2"); } +@font-face { font-family: "Chivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/chivo-latin-800-normal.woff2") format("woff2"); } + :root { - --bg: #0d1716; - --surface: #142523; - --panel: #1a2e2b; - --line: #2f4a41; - --line-strong: #577560; - --text: #f6efd6; - --muted: #b9c9b9; - --link: #f0c877; - --gold: #ebb859; - --gold-ink: #1a2e2b; - --green: #a8e075; - --green-text: #a8e075; - --code-bg: #0a1211; - --shadow: 0 12px 32px rgba(0, 0, 0, .38); - --heading: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif; - --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; + color-scheme: light dark; + --plan: #ecebe3; + --plan-tex: url("textures/plan-light.webp"); + --vellum: #f7f6ef; + --vellum-tex: url("textures/vellum-light.png"); + --ink: #262b2a; + --muted: #545b58; + --rule: #cfccbd; + --rule-strong: #262b2a; + --band: rgba(38, 43, 42, .045); + --link: #1f5c55; + --link-hover: #123f3a; + --focus: #1f5c55; + --outline: #b88a1e; + --outline-ink: #7a5a0e; + --pin: #4f7a2a; + --display: "Chivo", "Arial Narrow", sans-serif; + --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace; - --radius: 10px; - color-scheme: dark; + --wrap: 1160px; + --gutter: clamp(16px, 4vw, 32px); } -@media (prefers-color-scheme: light) { +@media (prefers-color-scheme: dark) { :root { - --bg: #f5efdb; - --surface: #fffaf0; - --panel: #fffdf6; - --line: #ddd3b2; - --line-strong: #b9ab7a; - --text: #1d2b26; - --muted: #465850; - --link: #7a4f00; - --green-text: #2c6a1c; - --code-bg: #efe8cf; - --shadow: 0 12px 30px rgba(60, 50, 20, .14); - color-scheme: light; + --plan: #17221f; + --plan-tex: url("textures/plan-dark.webp"); + --vellum: #1f2c29; + --vellum-tex: url("textures/vellum-dark.png"); + --ink: #e6e8e2; + --muted: #a9b5ae; + --rule: #34443f; + --rule-strong: #e6e8e2; + --band: rgba(230, 232, 226, .04); + --link: #f0d27a; + --link-hover: #f8e6b0; + --focus: #f5e6a3; + --outline: #ebb859; + --outline-ink: #ebb859; + --pin: #a8e075; } } -* { box-sizing: border-box; } -html { scroll-behavior: smooth; scroll-padding-top: 84px; } -@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } } -body { - margin: 0; - background: var(--bg); - color: var(--text); - font: 16px/1.65 var(--body); - -webkit-text-size-adjust: 100%; -} +/* ---------- base ---------- */ +*, *::before, *::after { box-sizing: border-box; } +html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; } +body { margin: 0; background: var(--plan) var(--plan-tex); color: var(--ink); font: 400 1.0625rem/1.62 var(--font); overflow-wrap: break-word; } +::selection { background: #f5e6a3; color: #1a2e2b; } img, svg { max-width: 100%; } -a { color: var(--link); text-underline-offset: 3px; } -a:hover { text-decoration-thickness: 2px; } -:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; } -h1, h2, h3 { font-family: var(--heading); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; } -h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); } -h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); } -h3 { font-size: 1.2rem; } +[hidden] { display: none !important; } +a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; } +a:hover { color: var(--link-hover); text-decoration-thickness: 2px; } +:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; } +h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.06; letter-spacing: -.015em; margin: 0 0 .45em; text-wrap: balance; } +h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); } +h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); } +h3 { font-size: 1.28rem; font-weight: 700; line-height: 1.2; letter-spacing: -.005em; } p { margin: 0 0 1em; } -code, kbd { font-family: var(--mono); font-size: .9em; } -code { background: var(--code-bg); border: 1px solid var(--line); border-radius: 5px; padding: .1em .38em; overflow-wrap: anywhere; } -kbd { background: var(--panel); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: .05em .4em; } -pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; margin: 0 0 1.2em; line-height: 1.5; } -pre code { background: none; border: 0; padding: 0; overflow-wrap: normal; } - -.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; } -@media (min-width: 720px) { .container { padding: 0 28px; } } -.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 6px; z-index: 100; } -.skip:focus { left: 12px; } - -/* Header */ -.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); } -.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 10px; padding-bottom: 10px; } -.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--heading); font-weight: 700; font-size: 1.1rem; } -.brand svg { width: 30px; height: 30px; flex: none; } -.site-header nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; list-style: none; margin: 0; padding: 0; } -.site-header nav a:not(.btn) { display: inline-block; padding: 7px 11px; border-radius: 7px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; } -.site-header nav a:not(.btn):hover { color: var(--text); background: var(--panel); } -.site-header nav a[aria-current="page"] { color: var(--text); background: var(--panel); box-shadow: inset 0 -2px 0 var(--gold); } - -/* Buttons */ -.btn { max-width: 100%; text-align: center; overflow-wrap: break-word; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 8px; border: 2px solid var(--gold); background: var(--gold); color: var(--gold-ink); font: 700 1rem var(--body); text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; } -.btn:hover { background: #f4c973; text-decoration: none; } -.btn:active { transform: translateY(1px); } -.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); } -.btn-secondary:hover { background: var(--panel); border-color: var(--gold); } -.btn-small { min-height: 36px; padding: 5px 14px; font-size: .9rem; margin-left: 6px; } -.site-header .btn-small { color: var(--gold-ink); } -.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; } - -/* Hero */ -.hero { padding: 48px 0 40px; background: radial-gradient(900px 380px at 82% -10%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%); } -.hero-grid { display: grid; gap: 36px; align-items: center; } -@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 44px; } .hero { padding: 68px 0 56px; } } -.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--link); margin-bottom: 14px; } -.eyebrow .ver { color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: none; margin-left: 6px; } -.lede { font-size: 1.16rem; color: var(--muted); max-width: 34em; } -.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; } -.chips li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 13px; font-size: .86rem; color: var(--muted); background: color-mix(in srgb, var(--surface) 70%, transparent); } - -/* Sections */ -section { padding: 52px 0; } -.section-head { max-width: 40em; margin-bottom: 30px; } -.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; } -.band { background: var(--surface); border-block: 1px solid var(--line); } -.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); } -.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; } -.band .card { background: var(--panel); } -.card h3 { display: flex; align-items: center; gap: 10px; } -.card p { color: var(--muted); margin: 0; } -.card .ico { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--link); font-weight: 800; } -.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; counter-reset: step; } -.steps > li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 68px; } -.steps > li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font: 800 1.05rem var(--body); } -.steps h3 { margin-bottom: .3em; font-size: 1.12rem; } -.steps p:last-child, .steps pre:last-child { margin-bottom: 0; } -.steps p { color: var(--muted); } -.steps .btn-row { margin-top: 14px; } -.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; } -@media (min-width: 800px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } } -.list { margin: 0; padding-left: 1.15em; color: var(--muted); } -.list li { margin-bottom: .55em; } -.list strong, .card strong { color: var(--text); } -.tick { list-style: none; padding: 0; margin: 0; } -.tick li { position: relative; padding-left: 26px; margin-bottom: .6em; color: var(--muted); } -.tick li::before { content: ""; position: absolute; left: 2px; top: .48em; width: 11px; height: 6px; border-left: 3px solid var(--green-text); border-bottom: 3px solid var(--green-text); transform: rotate(-45deg); } -.tick.no li::before { width: 12px; height: 12px; border: 0; transform: none; top: .42em; background: linear-gradient(45deg, transparent 43%, var(--muted) 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--muted) 43% 57%, transparent 57%); } -.callout { border: 1px solid var(--line-strong); border-left: 5px solid var(--gold); background: var(--surface); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 1.4em; } -.callout > :last-child { margin-bottom: 0; } -.callout strong.t { display: block; font-family: var(--heading); font-size: 1.05rem; margin-bottom: 4px; } -.callout.note { border-left-color: var(--green-text); } -table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; } -th, td { text-align: left; padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--line); } -tr:last-child th, tr:last-child td { border-bottom: 0; } -th { width: 34%; color: var(--text); font-weight: 700; background: color-mix(in srgb, var(--panel) 60%, transparent); } -td { color: var(--muted); } -@media (max-width: 600px) { th, td { display: block; width: 100%; } th { border-bottom: 0; padding-bottom: 2px; } } - -/* Interior pages */ -.page-head { padding: 44px 0 20px; border-bottom: 1px solid var(--line); background: radial-gradient(700px 260px at 90% -20%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%); } -.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: 0 0 12px; } -.prose { max-width: 46em; } -.prose h2 { margin-top: 1.7em; padding-top: .2em; } -.prose h2:first-child { margin-top: 0; } -.prose h3 { margin-top: 1.4em; } -.prose li { margin-bottom: .4em; } -.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 36px 60px; } -.layout > * { min-width: 0; } -@media (min-width: 960px) { .layout { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; } } -.toc { font-size: .93rem; } -@media (min-width: 960px) { .toc { position: sticky; top: 88px; align-self: start; } } -.toc strong { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; } -.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; } -.toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; } -.toc a:hover { color: var(--text); border-left-color: var(--gold); } -@media (max-width: 959px) { .toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; } } -.issue { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 8px; margin-bottom: 18px; } -.issue h2 { font-size: 1.28rem; margin-bottom: .6em; } -.issue dl { margin: 0; } -.issue dt { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--link); margin-top: .4em; } -.issue dd { margin: 2px 0 14px; color: var(--muted); } -.issue dd ul, .issue dd ol { margin: .3em 0 0; padding-left: 1.2em; } -.issue dd li { margin-bottom: .35em; } -.issue dd strong { color: var(--text); } - -/* FAQ */ -.faq-group { margin-bottom: 34px; } -.faq-group > h2 { font-size: 1.4rem; margin-bottom: .7em; } -details.q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; } -details.q[open] { border-color: var(--line-strong); } -details.q summary { list-style: none; cursor: pointer; padding: 15px 50px 15px 18px; font-weight: 700; position: relative; } -details.q summary::-webkit-details-marker { display: none; } -details.q summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 3px solid var(--link); border-bottom: 3px solid var(--link); transform: rotate(45deg); transition: transform .15s ease; } -details.q[open] summary::after { transform: rotate(-135deg); margin-top: -2px; } -details.q .a { padding: 0 18px 4px; color: var(--muted); } -details.q .a > :last-child { margin-bottom: 14px; } -.q-tools { display: flex; gap: 10px; margin: 0 0 20px; flex-wrap: wrap; } - -/* CTA + footer */ -.cta { text-align: center; } -.cta .btn-row { justify-content: center; } -.cta p { color: var(--muted); max-width: 32em; margin-inline: auto; } -.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: .92rem; } -.foot { display: grid; gap: 20px; } -@media (min-width: 720px) { .foot { grid-template-columns: 1.4fr 1fr; } } -.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; } -.site-footer p { margin: 0 0 .6em; } - -/* ---------- Interactive demo ---------- */ -.demo { --ui-bg: #1a2e2b; --ui-line: #577560; --ui-cream: #fff2c9; --ui-gold: #ebb859; --ui-green: #a8e075; --ui-hint: #c4d6c4; --ui-dark: #17301f; margin: 0; background: #0f1d1b; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; color: var(--ui-cream); } -.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 14px; border-bottom: 1px solid #2b4339; min-height: 56px; } -.demo-top .t { font-size: .8rem; color: #b4c8b4; } -.ui-btn { font: 700 .85rem var(--body); background: #294f45; color: var(--ui-cream); border: 1px solid #85ab78; border-radius: 4px; padding: 7px 12px; cursor: pointer; } +ul, ol { margin: 0 0 1em; padding-left: 1.25em; } +li { margin-bottom: .35em; } +code, pre, kbd { font-family: var(--mono); font-size: .9em; } +code { background: var(--band); padding: .08em .3em; border-radius: 2px; } +strong, b { font-weight: 650; } +table { border-collapse: collapse; width: 100%; } +.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } +.container { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); } +.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--vellum); color: var(--ink); padding: 12px 16px; font-weight: 700; border: 2px solid var(--ink); text-decoration: none; } +.skip:focus, a.skip:hover { top: 12px; color: var(--ink); } + +/* a vellum sheet taped over the plan: the one surface everything is drawn on */ +.sheet { position: relative; background: var(--vellum-tex); border: 1px solid var(--rule); } +.taped::before, .taped::after { content: ""; position: absolute; top: -12px; width: 76px; height: 24px; background: url("textures/tape.png") center / 100% 100% no-repeat; pointer-events: none; } +.taped::before { left: 18px; transform: rotate(-4deg); } +.taped::after { right: 18px; transform: rotate(3deg); } + +/* ---------- header ---------- */ +.site-header { border-bottom: 2px solid var(--rule-strong); } +.bar { display: flex; align-items: center; justify-content: space-between; gap: 6px 24px; min-height: 66px; } +.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font: 800 1.2rem/1 var(--display); letter-spacing: -.01em; } +.brand:hover { color: var(--ink); } +.brand svg { width: 30px; height: 30px; } +.site-header nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; } +.site-header nav li { margin: 0; } +.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .98rem; border-bottom: 2px solid transparent; } +.site-header nav a:hover { color: var(--ink); } +.site-header nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--outline); } + +/* ---------- buttons ---------- */ +.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 3px; background: var(--ink); color: var(--plan); font: 700 1.05rem/1 var(--display); text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: transform .15s cubic-bezier(.2, .8, .2, 1), background-color .15s; } +a.btn:hover { background: var(--link-hover); border-color: var(--link-hover); color: var(--plan); transform: translateY(-1px); } +.btn svg { width: 18px; height: 18px; flex: none; } +a.btn.btn-secondary { background: transparent; color: var(--ink); } +a.btn.btn-secondary:hover { background: var(--band); color: var(--ink); border-color: var(--ink); } +.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.3rem; } +.btn-small { min-height: 44px; padding: 0 14px; font-size: .95rem; } + +/* ---------- hero ---------- */ +.hero { padding: clamp(28px, 4vw, 52px) 0 clamp(48px, 7vw, 88px); } +.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; } +.pitch { font: 800 clamp(1.4rem, 2.6vw, 1.9rem)/1.1 var(--display); color: var(--outline-ink); margin: 0 0 .6em; letter-spacing: -.01em; } +.lede { font-size: 1.1rem; max-width: 56ch; } +.facts { list-style: none; padding: 0; margin: 0 0 1.4rem; max-width: 58ch; border-top: 2px solid var(--rule-strong); } +.facts li { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--rule); } +.status-note { max-width: 58ch; margin: 0; font-size: .96rem; color: var(--muted); } +.status-note strong { color: var(--ink); } +.ver { font-weight: 650; color: var(--ink); } + +/* ---------- the in-game panel replica: the mod's real colours in both themes ---------- */ +.demo-sheet { padding: 22px 16px 16px; } +.demo { --ui-bg: #1a2e2b; --ui-line: #577560; --ui-cream: #fff2c9; --ui-gold: #ebb859; --ui-green: #a8e075; --ui-hint: #c4d6c4; --ui-dark: #17301f; margin: 0; background: #0f1d1b; border: 1px solid #2b4339; border-radius: 4px; overflow: hidden; color: var(--ui-cream); } +.demo-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; padding: 8px 10px 8px 14px; border-bottom: 1px solid #2b4339; min-height: 56px; } +.demo-top .t { font-size: .88rem; color: #c4d6c4; } +.demo-tools { display: flex; flex-wrap: wrap; gap: 8px; } +.ui-btn { min-height: 40px; font: 700 .88rem var(--font); background: #294f45; color: var(--ui-cream); border: 1px solid #85ab78; border-radius: 4px; padding: 6px 12px; cursor: pointer; } .ui-btn:hover { background: #33614f; } -.ui-btn[hidden] { display: none; } +.ui-btn[aria-pressed="true"] { background: #3d5b2c; border-color: var(--ui-green); } +.ui-btn:disabled { opacity: .45; cursor: default; } +.ui-btn:disabled:hover { background: #294f45; } +.demo :focus-visible { outline: 3px dashed var(--ui-cream); outline-offset: 2px; } .demo svg.map { display: block; width: 100%; height: auto; background: #223a2c; touch-action: manipulation; } +.map .ground-hit { fill: transparent; cursor: default; } .map .grid-line { stroke: #2b4735; stroke-width: 1; } .map .road { fill: #8b7a55; } .map .road-mark { stroke: #a8966b; stroke-width: 2; stroke-dasharray: 8 8; } @@ -202,16 +139,17 @@ details.q .a > :last-child { margin-bottom: 14px; } .map .bld .body { stroke: #0c1712; stroke-width: 2; } .map .bld:hover .body { stroke: #fff2c9; } .map .bld:focus-visible { outline: none; } -.map .bld:focus-visible .body, .map .bld[aria-pressed="true"] .body { stroke: #ebb859; stroke-width: 3.5; } -.map .bld .label { font: 700 11px var(--body); fill: #fff2c9; paint-order: stroke; stroke: #0c1712; stroke-width: 3px; pointer-events: none; } +.map .bld:focus-visible .body { stroke: #fff2c9; stroke-width: 3; stroke-dasharray: 5 3; } +.map .bld[aria-pressed="true"] .body { stroke: #ebb859; stroke-width: 3.5; stroke-dasharray: none; } +.map .bld .label { font: 700 13px var(--font); fill: #fff2c9; paint-order: stroke; stroke: #0c1712; stroke-width: 3px; pointer-events: none; } .map .pin-dot { fill: #a8e075; stroke: #17301f; stroke-width: 2; } -.demo-ui { padding: 14px; display: grid; gap: 12px; } -.ui-panel { background: var(--ui-bg); border: 1px solid var(--ui-line); border-left: 4px solid var(--ui-gold); border-radius: 5px; padding: 10px; } -.ui-panel.pinned { border-left-color: var(--ui-green); } -.ui-panel .h { font-size: 11px; font-weight: 800; color: var(--ui-gold); letter-spacing: .04em; margin-bottom: 7px; } -.ui-panel .who { font-size: .8rem; color: var(--ui-hint); margin-bottom: 8px; } +.demo-ui { padding: 12px 14px; display: grid; gap: 10px; } +.ui-panel { background: var(--ui-bg); border: 1px solid var(--ui-line); border-radius: 5px; padding: 10px; box-shadow: inset 4px 0 0 var(--ui-gold); } +.ui-panel.pinned { box-shadow: inset 4px 0 0 var(--ui-green); } +.ui-panel .h { font-size: 11px; font-weight: 800; color: var(--ui-gold); letter-spacing: .04em; margin: 0 0 7px 6px; } +.ui-panel .who { font-size: .82rem; color: var(--ui-hint); margin: 0 0 8px 6px; } .ui-toggle { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 10px; background: #26382f; color: var(--ui-cream); border: 2px solid var(--ui-gold); border-radius: 4px; cursor: pointer; font: inherit; text-align: left; } -.ui-toggle:hover, .ui-toggle:focus-visible { background: #40593f; border-color: var(--ui-cream); } +.ui-toggle:hover { background: #40593f; border-color: var(--ui-cream); } .ui-panel.pinned .ui-toggle { background: #304d38; border-color: var(--ui-green); } .ui-toggle .box { flex: none; width: 24px; height: 24px; border: 2px solid var(--ui-gold); border-radius: 3px; background: #122320; display: grid; place-items: center; } .ui-panel.pinned .ui-toggle .box { background: var(--ui-green); border-color: var(--ui-green); } @@ -220,14 +158,188 @@ details.q .a > :last-child { margin-bottom: 14px; } .ui-toggle .name { flex: 1; font-weight: 700; font-size: 14px; } .ui-toggle .state { flex: none; min-width: 34px; text-align: center; font-size: 11px; font-weight: 800; padding: 3px 5px; border-radius: 3px; background: #4a4a35; color: var(--ui-cream); } .ui-panel.pinned .ui-toggle .state { background: var(--ui-green); color: var(--ui-dark); } -.ui-panel .hint { font-size: 12px; color: var(--ui-hint); margin: 7px 0 0; } -.ui-empty { font-size: .9rem; color: var(--ui-hint); margin: 0; padding: 4px 2px; } -.demo-foot { padding: 0 14px 12px; font-size: .78rem; color: #97ad9d; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; } -.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } +.ui-panel .hint { font-size: 12px; color: var(--ui-hint); margin: 7px 0 0 6px; } +.ui-empty { font-size: .92rem; color: var(--ui-hint); margin: 0; padding: 4px 2px; } +.demo-foot { padding: 0 14px 12px; font-size: .8rem; color: #a9bdab; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; } +.demo-sheet figcaption { margin: 10px 2px 0; font-size: .88rem; color: var(--muted); } +.ui-sample { max-width: 420px; margin: 0 0 1.2rem; } -/* In-page UI reproduction used on the install page */ -.ui-sample { max-width: 420px; } -.ui-btn:disabled { opacity: .45; cursor: default; } -.ui-btn:disabled:hover { background: #294f45; } +/* ---------- sections ---------- */ +section { padding: clamp(56px, 8vw, 100px) 0; } +.ruled { border-top: 2px solid var(--rule-strong); } +.section-head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 40px); } +.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; } +.tight { padding-top: 0; } +.unplayed { display: block; margin-top: .5em; font-size: .9rem; font-style: italic; color: var(--muted); } + +/* the three moves, each on its own taped sheet with a drawn outline */ +.moves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; list-style: none; margin: 0; padding: 0; } +.move { margin: 0; padding: 26px 22px 20px; } +.move svg { display: block; width: 100%; height: auto; max-height: 120px; margin: 0 0 14px; } +.move h3 { margin-bottom: .3em; } +.move p { margin: 0; color: var(--muted); } +.draw-grid { stroke: var(--rule); stroke-width: 1; } +.draw-bld { fill: var(--ink); } +.draw-outline { fill: none; stroke: var(--outline); stroke-width: 2.4; stroke-linejoin: round; } +.draw-fill { fill: var(--outline); fill-opacity: .14; } +.draw-pin { fill: var(--pin); } +.draw-label { font: 700 12px var(--font); fill: var(--muted); } +.draw-strong { fill: var(--ink); font-size: 14px; } +.edges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px clamp(24px, 5vw, 56px); } +.edges > div { padding: 16px 0; border-top: 1px solid var(--rule); } +.edges h3 { font-size: 1.2rem; } +.edges p { margin: 0; color: var(--muted); } +.checks, .tick { list-style: none; padding: 0; margin: 0 0 1rem; } +.checks li, .tick li { position: relative; padding-left: 30px; margin: 0 0 .7em; } +.checks li::before, .tick li::before { content: ""; position: absolute; left: 0; top: .22em; width: 20px; height: 20px; background: var(--pin); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; } +.checks.no li::before, .tick.no li::before, .checks.open li::before { background: var(--muted); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); } +.checks.open li::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='black' stroke-width='2' stroke-dasharray='3 2.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='black' stroke-width='2' stroke-dasharray='3 2.5'/%3E%3C/svg%3E"); } +.aside-note { margin: 18px 0 0; color: var(--muted); max-width: 80ch; } + +.sheet-rows { margin: 0; border-top: 2px solid var(--rule-strong); } +.sheet-rows > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 28px; padding: 16px 0; border-bottom: 1px solid var(--rule); } +.sheet-rows dt { font: 700 1.1rem/1.3 var(--display); } +.sheet-rows dd { margin: 0; } +.sheet-rows dd p { margin: 0 0 .6em; } +.sheet-rows dd p:last-child { margin: 0; } + +.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px clamp(24px, 5vw, 56px); } +.status-grid > div { padding: 26px 24px 18px; } +.status-grid h3 { padding-bottom: 8px; border-bottom: 2px solid var(--pin); } +.status-grid .open-col h3 { border-bottom-color: var(--muted); } + +.cta .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 48px; align-items: end; } +.cta ol { margin: 0; padding-left: 1.3em; color: var(--muted); max-width: 64ch; } +.cta ol b { color: var(--ink); } +.cta .btn-row { margin: 0; } + +/* the legend: what it outlines, what it doesn't, each with its swatch */ +.legend { padding: 28px 26px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; } +.legend h3 { font-size: 1.15rem; margin-bottom: .6em; } +.legend ul { list-style: none; margin: 0; padding: 0; } +.legend li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0 0 .7em; } +.swatch { width: 34px; height: 22px; margin-top: 2px; border: 2.5px solid var(--outline); background: rgb(235 184 89 / .18); } +.swatch.no { border: 2px dashed var(--muted); background: none; position: relative; } +.swatch.no::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; border-top: 2px solid var(--muted); transform: rotate(-24deg); } + +/* the title block: the drawing's facts in bordered cells */ +.tb-sheet { padding: 28px 22px 22px; } +.title-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 2px solid var(--ink); margin: 0; } +.title-block > div { padding: 16px 18px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); } +.title-block > div:nth-child(2n) { border-right: 0; } +.title-block > div:nth-last-child(-n+2) { border-bottom: 0; } +.title-block dt { font: 700 .82rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; } +.title-block dd { margin: 0; } +.title-block dd p { margin: 0 0 .5em; } +.title-block dd p:last-child { margin: 0; } + +/* good to know: one sheet of notes */ +.notes-sheet { padding: 28px 26px 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 40px; } +.notes-sheet > div { padding: 12px 0 14px; border-top: 1px dashed var(--rule); } +.notes-sheet > div:nth-child(-n+2) { border-top: 0; } +.notes-sheet h3 { font-size: 1.12rem; margin-bottom: .3em; } +.notes-sheet p { margin: 0; color: var(--muted); } + +/* ---------- guides ---------- */ +.page-head { padding: clamp(36px, 6vw, 68px) 0 clamp(22px, 3vw, 32px); border-bottom: 2px solid var(--rule-strong); } +.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 3.6rem); margin-bottom: .3em; } +.page-head p { color: var(--muted); font-size: 1.12rem; margin: 0; max-width: 62ch; } +.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); } +.toc { position: sticky; top: 24px; align-self: start; font-size: .95rem; } +.toc strong { display: block; font: 700 1.05rem/1.2 var(--display); margin-bottom: .3rem; } +.toc ol, .toc ul { list-style: none; padding: 0; margin: 0; } +.toc li { margin: 0; } +.toc a { display: flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); } +.toc a:hover { color: var(--link); } +.prose { max-width: 760px; min-width: 0; } +.prose > h2, .prose section > h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 1.8em 0 .45em; padding-top: .8em; border-top: 2px solid var(--rule-strong); } +.prose > h2:first-child, .prose > :first-child > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; } +.prose section { padding: 0; } +.prose h3 { margin: 1.4em 0 .35em; } +.prose table { margin: 0 0 1.4rem; font-size: .95rem; } +.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; } +.prose thead th { font: 700 1rem/1.3 var(--display); border-bottom: 2px solid var(--rule-strong); } +.prose .steps { list-style: none; padding: 0; margin: 0 0 1.2rem; counter-reset: step; } +.prose .steps > li { counter-increment: step; position: relative; margin: 0; padding: 14px 0 14px 52px; border-top: 1px solid var(--rule); } +.prose .steps > li::before { content: counter(step); position: absolute; left: 0; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font: 800 1.05rem/1 var(--display); } +.prose .steps h3 { margin: 3px 0 .2em; } +.prose .steps p { margin: 0; } +pre { margin: 0 0 1.2rem; padding: 14px 16px; background: var(--vellum) var(--vellum-tex); border: 1px solid var(--rule); border-radius: 2px; overflow-x: auto; line-height: 1.5; font-size: .9rem; } +pre code { background: none; padding: 0; font-size: inherit; white-space: pre-wrap; word-break: break-word; } +.callout { margin: 0 0 1.4rem; padding: 18px 20px; background: var(--vellum) var(--vellum-tex); border: 1px solid var(--rule); border-top: 3px solid var(--outline); } +.callout > :last-child { margin-bottom: 0; } +.callout .t { display: block; font: 700 1.05rem/1.3 var(--display); margin-bottom: .3em; } .file-name { margin: 10px 0 0; font-size: .9rem; } + +.issue { padding: 22px 0; border-top: 2px solid var(--rule-strong); } +.issue:first-child { border-top: 0; padding-top: 0; } +.issue h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0 0 .5em; padding: 0; border: 0; } +.issue dl { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 20px; } +.issue dt { font: 700 1rem/1.4 var(--display); color: var(--muted); } +.issue dd { margin: 0; } +.issue dd > :last-child { margin-bottom: 0; } + +.faq-wrap { padding-top: clamp(28px, 4vw, 40px); padding-bottom: clamp(56px, 8vw, 88px); } +.faq-wrap .prose { max-width: 52em; } +.q-tools { display: flex; gap: 10px; margin: 0 0 2.2rem; } +.q-tools .btn { background: transparent; color: var(--ink); min-height: 44px; font-size: .95rem; } +.faq-group { margin: 0 0 2.2rem; } +.faq-group h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 .3em; } +details.q { border-top: 1px solid var(--rule); } +.faq-group details.q:last-child { border-bottom: 1px solid var(--rule); } +details.q summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 12px; align-items: center; min-height: 56px; padding: 10px 0; cursor: pointer; font-weight: 650; font-size: 1.04rem; } +details.q summary::-webkit-details-marker { display: none; } +details.q summary::after { content: ""; width: 20px; height: 20px; justify-self: end; background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s cubic-bezier(.2, .8, .2, 1); } +details.q[open] summary::after { transform: rotate(180deg); } +details.q summary:hover { color: var(--link); } +details.q .a { padding: 0 0 20px; } +details.q .a > :last-child { margin-bottom: 0; } +details.q[open] { border-top: 2px solid var(--outline); } + +/* ---------- footer ---------- */ +.site-footer { border-top: 2px solid var(--rule-strong); padding: 40px 0; font-size: .96rem; color: var(--muted); } +.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: start; } +.foot p { margin: 0 0 .4em; } +.foot strong { color: var(--ink); font: 800 1.15rem/1.3 var(--display); } +.foot ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; } +.foot li { margin: 0; } +.foot li a { display: inline-flex; align-items: center; min-height: 40px; } +.lost { padding-top: 40px; padding-bottom: 96px; } + +/* ---------- responsive ---------- */ +@media (max-width: 960px) { + .hero-grid { grid-template-columns: minmax(0, 1fr); } + .demo-sheet { max-width: 680px; } + .moves { grid-template-columns: minmax(0, 1fr); max-width: 560px; } + /* the demo comes straight after the lead, so the pinned outline is on the first screen */ + .hero-grid { gap: 0; } + .hero-grid > div:first-child { display: contents; } + .hero-grid h1 { order: 1; } .pitch { order: 2; } .lede { order: 3; } + .demo-sheet { order: 4; margin: 10px 0 30px; } + .facts { order: 5; } .hero .btn-row { order: 6; } .status-note { order: 7; } +} +@media (max-width: 860px) { + .edges, .status-grid, .cta .container, .legend, .notes-sheet, .title-block { grid-template-columns: minmax(0, 1fr); } + .title-block > div, .title-block > div:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--ink); } + .title-block > div:last-child { border-bottom: 0; } + .notes-sheet > div:nth-child(2) { border-top: 1px dashed var(--rule); } + .layout { grid-template-columns: minmax(0, 1fr); } + .toc { position: static; } + .toc ol, .toc ul { columns: 2; column-gap: 20px; } + .sheet-rows > div { grid-template-columns: minmax(0, 1fr); } +} +@media (max-width: 720px) { + .bar { flex-wrap: wrap; padding-top: 4px; } + .site-header nav { width: 100%; } + .site-header nav a { padding: 0 6px; font-size: .9rem; } + .site-header nav li:first-child a { padding-left: 0; } + .demo-sheet { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-left: 0; border-right: 0; padding: 20px 8px 12px; } + .map .bld .label { font-size: 16px; } + .issue dl { grid-template-columns: minmax(0, 1fr); gap: 4px; } + .toc ol, .toc ul { columns: 1; } + .foot { grid-template-columns: minmax(0, 1fr); } +} +@media (prefers-reduced-motion: reduce) { + *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } +} diff --git a/docs/assets/textures/make_textures.py b/docs/assets/textures/make_textures.py new file mode 100644 index 0000000..3b13dd8 --- /dev/null +++ b/docs/assets/textures/make_textures.py @@ -0,0 +1,52 @@ +"""Makes the Persistent Work Areas site's surfaces: the site plan (warm plan paper with a faint surveyed grid, by day +and under the lamp), the vellum the sheets are drawn on, and a strip of drafting tape. Procedural (numpy and Pillow, +fixed seeds); no source images and no generative model. Tiles repeat. Run from this folder: python make_textures.py""" +import numpy as np +from PIL import Image, ImageDraw + +def wrap_noise(rng, n, cell): + g = rng.normal(0, 1, (n // cell, n // cell)); g = (g - g.min()) / (g.max() - g.min()) + big = np.tile(g, (3, 3)) + up = np.asarray(Image.fromarray((big * 255).astype(np.uint8)).resize((n * 3, n * 3), Image.BICUBIC), float) / 255 + return up[n:2 * n, n:2 * n] - .5 + +def save(img, name, **kw): + img.save(name, **kw); print("made", name) + +# ---- the site plan: paper with a surveyed grid, a fine line every 24 px and a firmer one every 96 px +for name, seed, paper, fine, firm in (("plan-light.webp", 5101, (236, 235, 227), (222, 220, 208), (208, 205, 190)), + ("plan-dark.webp", 5102, (23, 34, 31), (30, 43, 40), (37, 53, 49))): + rng = np.random.default_rng(seed); N = 384 + v = wrap_noise(rng, N, 48) * 5 + rng.normal(0, 1.1, (N, N)) + rgb = np.array(paper, float) + v[..., None] + y, x = np.mgrid[0:N, 0:N] + fine_m = ((x % 24 == 0) | (y % 24 == 0)).astype(float) + firm_m = ((x % 96 == 0) | (y % 96 == 0)).astype(float) + rgb = rgb * (1 - fine_m[..., None] * .55) + np.array(fine, float) * fine_m[..., None] * .55 + rgb = rgb * (1 - firm_m[..., None] * .7) + np.array(firm, float) * firm_m[..., None] * .7 + save(Image.fromarray(rgb.clip(0, 255).astype(np.uint8)), name, quality=90, method=6) + +# ---- vellum: translucent, a soft cloud of fibres; laid over the plan so the grid shows faintly through +for name, seed, tone, alpha in (("vellum-light.png", 5103, (248, 247, 240), 190), ("vellum-dark.png", 5104, (32, 45, 42), 196)): + rng = np.random.default_rng(seed); N = 256 + cloud = wrap_noise(rng, N, 32) * 10 + wrap_noise(rng, N, 8) * 4 + img = np.zeros((N, N, 4), float) + img[..., :3] = np.array(tone, float) + cloud[..., None] + img[..., 3] = alpha + cloud * 1.5 + save(Image.fromarray(img.clip(0, 255).astype(np.uint8), "RGBA"), name, optimize=True) + +# ---- drafting tape: a short strip of cream crepe tape with a faint crinkle and torn ends, at an angle set in CSS +rng = np.random.default_rng(5105); W, H, K = 96, 30, 4 +img = Image.new("RGBA", (W * K, H * K), (0, 0, 0, 0)) +d = ImageDraw.Draw(img) +top = [(0, 0)]; bot = [(0, H * K)] +for i in range(1, 7): + top.append((0 + rng.uniform(-3, 3) * K, i * H * K / 7)) +left = [(rng.uniform(0, 4) * K, i * H * K / 8) for i in range(9)] +right = [(W * K - rng.uniform(0, 4) * K, (8 - i) * H * K / 8) for i in range(9)] +d.polygon(left + right, fill=(236, 226, 196, 214)) +img = img.resize((W, H), Image.LANCZOS) +a = np.asarray(img, float) +crinkle = (np.sin(np.arange(W) / 1.3 + rng.uniform(0, 6)) * 3 + rng.normal(0, 2.2, (H, W))) +a[..., :3] = (a[..., :3] + crinkle[..., None]).clip(0, 255) +save(Image.fromarray(a.astype(np.uint8), "RGBA"), "tape.png", optimize=True) diff --git a/docs/assets/textures/plan-dark.webp b/docs/assets/textures/plan-dark.webp new file mode 100644 index 0000000..884a0f5 Binary files /dev/null and b/docs/assets/textures/plan-dark.webp differ diff --git a/docs/assets/textures/plan-dark.webp.json b/docs/assets/textures/plan-dark.webp.json new file mode 100644 index 0000000..77d5cb2 --- /dev/null +++ b/docs/assets/textures/plan-dark.webp.json @@ -0,0 +1,4 @@ +{ + "prompt": "Origin: procedural texture produced by docs/assets/textures/make_textures.py (numpy + Pillow, fixed seed); the site's plan-dark.webp surface. No source images, no generative model.", + "createdAt": "2026-09-23T20:35:22.421Z" +} \ No newline at end of file diff --git a/docs/assets/textures/plan-light.webp b/docs/assets/textures/plan-light.webp new file mode 100644 index 0000000..074fa4d Binary files /dev/null and b/docs/assets/textures/plan-light.webp differ diff --git a/docs/assets/textures/plan-light.webp.json b/docs/assets/textures/plan-light.webp.json new file mode 100644 index 0000000..779e47a --- /dev/null +++ b/docs/assets/textures/plan-light.webp.json @@ -0,0 +1,4 @@ +{ + "prompt": "Origin: procedural texture produced by docs/assets/textures/make_textures.py (numpy + Pillow, fixed seed); the site's plan-light.webp surface. No source images, no generative model.", + "createdAt": "2026-09-23T20:35:22.247Z" +} \ No newline at end of file diff --git a/docs/assets/textures/tape.png b/docs/assets/textures/tape.png new file mode 100644 index 0000000..c3fd719 Binary files /dev/null and b/docs/assets/textures/tape.png differ diff --git a/docs/assets/textures/vellum-dark.png b/docs/assets/textures/vellum-dark.png new file mode 100644 index 0000000..d413e6a Binary files /dev/null and b/docs/assets/textures/vellum-dark.png differ diff --git a/docs/assets/textures/vellum-light.png b/docs/assets/textures/vellum-light.png new file mode 100644 index 0000000..7eae89e Binary files /dev/null and b/docs/assets/textures/vellum-light.png differ diff --git a/docs/faq.html b/docs/faq.html index ec7063e..18e8170 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -7,7 +7,9 @@ - + + + @@ -24,7 +26,7 @@
  • Install
  • Troubleshooting
  • FAQ
  • -
  • GitHub
  • +
  • GitHub
  • @@ -38,8 +40,8 @@

    Frequently asked questions

    -
    -
    +
    +
    @@ -111,7 +113,7 @@

    Safety and compatibility

    Features and limits

    Why can't I pin a Builder's Hut? -

    The game attaches an internal road-spill range to every Builder's Hut, which is why the mod first offered a pin for them. It isn't a working area you'd want to keep on screen, so since version 0.1.2 the mod doesn't show the pin panel for Builder's Huts.

    +

    The game attaches an internal road-spill range to every Builder's Hut. It isn't a working area you'd want to keep on screen, so the mod doesn't show the pin panel for Builder's Huts.

    Then why does a Builder's Hut still show an outline when I select it? @@ -119,11 +121,11 @@

    Features and limits

    Do my pins survive saving and loading? -

    Yes, since version 1.1.0. Each settlement's pins are remembered on your own computer in Documents\Timberborn\PersistentWorkAreas\Pins.txt and come back when you load any save of that settlement. They are never written into the save itself, so the mod can't affect a saved colony. A different settlement starts with no pins, and a co-op guest's pins usually don't come back after a resync, because the guest's settlement is named after the host's save. To forget every pin, delete that file.

    +

    Yes. Each settlement's pins are remembered on your own computer in Documents\Timberborn\PersistentWorkAreas\Pins.txt and come back when you load any save of that settlement. They are never written into the save itself, so the mod can't affect a saved colony. A different settlement starts with no pins, and a co-op guest's pins usually don't come back after a resync, because the guest's settlement is named after the host's save. To forget every pin, delete that file.

    Why do farmhouse or forester outlines appear when I pick a crop or tree? -

    Since version 1.1.0, picking a crop or tree in the planting tools outlines the working area of every building that can plant it: farmhouses for crops, aquatic farmhouses for aquatic crops, and foresters for trees and bushes, including ones still under construction. The outlines go away when you leave the planting tool. Clear pinned areas removes only your pins, not these.

    +

    Picking a crop or tree in the planting tools outlines the working area of every building that can plant it: farmhouses for crops, aquatic farmhouses for aquatic crops, and foresters for trees and bushes, including ones still under construction. The outlines go away when you leave the planting tool. Clear pinned areas removes only your pins, not these.

    Can it pin district road colors, effect radii or placement ghosts? @@ -131,7 +133,7 @@

    Features and limits

    Is it translated? -

    Not yet. The mod's text is English only, but since version 1.1.0 all of it lives in one file, version-1.1/Localizations/enUS_PersistentWorkAreas.csv. A translation is one more file there with the same keys, named for the game's language code, for example deDE_PersistentWorkAreas.csv.

    +

    Not yet. The mod's text is English only, but all of it lives in one file, version-1.1/Localizations/enUS_PersistentWorkAreas.csv. A translation is one more file there with the same keys, named for the game's language code, for example deDE_PersistentWorkAreas.csv.

    Will it slow down my game? diff --git a/docs/index.html b/docs/index.html index adab6b2..3948a32 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,14 +4,16 @@ Persistent Work Areas - + - + - + + + @@ -28,7 +30,7 @@
  • Install
  • Troubleshooting
  • FAQ
  • -
  • GitHub
  • +
  • GitHub
  • @@ -38,164 +40,165 @@
    - Timberborn mod -

    Keep your working areas in view.

    -

    Pin the working-area outline of any farm, forester or gatherer so it stays on screen while you plant, build and plan. One click to pin, one click to clear.

    +

    Persistent Work Areas

    +

    Keep the outline. Keep planting.

    +

    A Timberborn mod. The game shows a building's working area only while it's selected, so the outline vanishes the moment you pick a planting tool. Pin the ones you care about and they stay on screen while you plant, build and plan.

    +
      +
    • The game's own outline, kept. Check Keep working area visible on a farmhouse, forester or gatherer, then deselect it.
    • +
    • The planting tools show their planters. Pick a crop or tree and the buildings that can plant it are outlined for you. Checked, not played in game yet.
    • +
    • Display only. Saves untouched, nothing to set, no other mods needed.
    • +
    -
      -
    • Timberborn 1.1.2.4+
    • -
    • Display only
    • -
    • Never touches your saves
    • -
    • No other mods needed
    • -
    +

    Stable. Pinning, clearing and pinned outlines were played in single player and a two-player co-op session; the newest additions are checked but not played yet. What is tested, and what isn't

    -
    -
    - Try it: select a building, pin it, then deselect. - -
    - -
    -

    Click the Farmhouse or the Forester on the map.

    -
    + +
    +

    Click the Farmhouse or the Forester on the map.

    + +
    +
    +
    Interactive illustration, not a game screenshot.
    + +
    -
    +
    -

    What it does

    -

    Timberborn normally shows a building's working area only while you have that building selected. This mod lets you keep the ones you care about on screen.

    -
    -
    -
    -

    Pin any working area

    -

    Works on farms, foresters, lumberjack flags, gatherers and any other building that shows a terrain or road-spill working range when selected.

    -
    -
    -

    Stays after you deselect

    -

    Paint crops, mark trees for planting or place new buildings with the outline still on screen, instead of re-selecting the building every few seconds. Pick a crop or tree and the farmhouses or foresters that plant it are outlined for you.

    -
    -
    -

    Pin as many as you like

    -

    Overlapping pinned areas merge into one combined outline, and areas that are far apart all stay visible. Uncheck a building's box to drop just that pin.

    -
    -
    -

    Clear everything at once

    -

    A Clear pinned areas button appears at the top right whenever something is pinned. You can also bind a key to it in the game's key-binding settings.

    -
    -
    -

    Looks like the real thing

    -

    Outlines are drawn with the game's own outline renderer using the same navigation queries as selection, and they update as terrain, paths, visible level or construction mode change.

    -
    -
    -

    Display only, safe in co-op

    -

    No game methods are patched and nothing in the simulation, your saves or the multiplayer traffic is touched. Pins are local to each player.

    -
    +

    Three things it does in game

    +

    Timberborn draws a working area only while its building is selected. This mod keeps the ones you choose, and brings them back when you need them most.

    +
      +
    • + +

      Pin a working area

      +

      Select a farmhouse, forester, lumberjack flag, gatherer or any building that shows a working range, and check Keep working area visible. Deselect it and the outline stays. Pin as many as you like; where they overlap they merge into one outline.

      +
    • +
    • + +

      Plant with the planters in view

      +

      Pick a crop or tree in the planting tools and every building that can plant it is outlined on its own: farmhouses for crops, aquatic farmhouses for aquatic crops, foresters for trees and bushes. They go away when you leave the tool. Checked, not played in game yet.

      +
    • +
    • + +

      Clear them all at once

      +

      Clear pinned areas (N) appears at the top right while anything is pinned. You can also bind a key to it. Uncheck one building to drop just its pin; deleting a pinned building drops its pin too.

      +
    • +
    -
    +

    How it works

    -

    Three clicks, no setup screens.

    +

    It draws with the game's own outline renderer and the same navigation queries the game uses for a selected building, so a pinned outline is the game's own outline, kept. It follows terrain, paths, the visible level and construction mode.

    +
    +
    +

    What it outlines

      +
    • Working areas of buildings with a terrain or road-spill range
    • +
    • Several pins at once, merged where they overlap
    • +
    • The planters for the crop or tree you picked in the planting tools
    • +
    +

    What it doesn't

      +
    • District road coloring
    • +
    • Effect-radius overlays that aren't navigation-based
    • +
    • Building-placement ghosts
    • +
    • Builder's Huts (the outline one shows when selected is the game's own)
    • +
    -
      -
    1. -

      Select a building

      -

      Click a farm, forester or any other building with a working area. A WORKING AREA panel appears at the top of its info panel.

      -
    2. -
    3. -

      Check "Keep working area visible"

      -

      The whole row is the button. Its badge flips to ON and the panel's accent turns green, so the state is obvious at a glance.

      -
    4. -
    5. -

      Deselect and keep working

      -

      Use your planting, building and other tools as normal. The outline stays until you uncheck the building or press Clear pinned areas.

      -
    6. -
    -
    +

    Good to know

    -

    The mod does one thing and stays out of the way. These are its edges.

    +

    The mod does one thing and stays out of the way.

    -
    -
    -

    Supported

    -
      -
    • Working-area outlines for buildings with a terrain or road-spill range
    • -
    • Several pins at once, merged where they overlap
    • -
    • Outlines that follow terrain, path, visible-level and construction-mode changes
    • -
    • Automatic cleanup when a pinned building is deleted
    • -
    • Planting tools that outline every farmhouse or forester able to plant the chosen crop or tree
    • -
    • Pins remembered for each settlement, in a small local file
    • -
    -
    -
    -

    Not included

    -
      -
    • District road coloring
    • -
    • Effect-radius overlays that are not navigation-based
    • -
    • Building-placement ghosts
    • -
    • Pin controls for Builder's Huts
    • -
    • Translations other than English (adding one takes a single CSV file)
    • -
    -
    -
    -

    Pins are remembered, not saved

    -

    Each settlement's pins are kept on your own computer, in Documents\Timberborn\PersistentWorkAreas\Pins.txt, and come back when you load that settlement. They are never written to your save file, so the mod can't affect a colony and each co-op player keeps their own.

    -
    -
    -

    Fails on its own

    -

    If a future game update changes the internals the outline renderer relies on, pinning disables itself for that map and says so in the panel and the game log. Nothing else is affected.

    -
    +
    +

    Pins are remembered, not saved

    Each settlement's pins are kept on your computer in Documents\Timberborn\PersistentWorkAreas\Pins.txt and come back when you load that settlement. They're never written to your save, so the mod can't affect a colony, and each co-op player keeps their own. Checked, not played in game yet.

    +

    Fails on its own

    If a game update changes the internals the outline renderer relies on, pinning turns itself off for that map and says so in the panel and the game log. Nothing else is affected.

    +

    Light on a large colony

    A terrain or path change re-checks only the pinned buildings it can reach, at most five times a second. Nothing runs while nothing is pinned and no planting tool is open. Checked, not played in game yet.

    +

    English, translatable

    The panel text is English; a translation is one CSV file in the mod's Localizations folder. Checked, not played in game yet.

    -

    Running a large colony? A terrain or path change re-checks only the pinned buildings it can reach, at most five times per second. Nothing runs while nothing is pinned and no planting tool is open, and the meshes are released once nothing is drawn.

    -
    +

    Compatibility

    - - - - - - - - -
    Game versionTimberborn 1.1.2.4 or a compatible 1.1 build. Built and tested on 1.1.2.4; later versions may change the internal renderer API.
    MultiplayerWorks in single-player and in co-op. Designed for compatibility with the BeaverBuddies Stability Fork, but doesn't need any BeaverBuddies build. For co-op, every player installs the same version of the mod and runs the same game version; that's the tested setup. It sends nothing over the network and pins are always local.
    Other modsNo required mods, not even Harmony or Mod Settings. No Harmony patches and no BeaverBuddies dependency.
    SavesUntouched. Pins live in their own small local file. You can remove the mod at any time.
    LanguageEnglish UI text, translatable with one CSV file.
    +
    +
    +
    Game version

    Timberborn 1.1.2.4 or a compatible 1.1 build. Built and tested on 1.1.2.4 on Windows; a later version may change the renderer the mod borrows.

    +
    Other mods

    None required, not even Harmony or Mod Settings. It patches no game methods.

    +
    Co-op

    Works in single player and co-op, and doesn't need any BeaverBuddies build. Every player installs the same version of the mod and runs the same game version: the tested setup, with the BeaverBuddies Stability Fork. It sends nothing over the network; pins stay on each player's computer.

    Not played yet: the mod on only one of the computers, the original BeaverBuddies, and BeaverBuddies MultiColony.

    +
    Saves

    Untouched. You can remove the mod at any time.

    +
    +
    -
    +
    -

    Ready to try it?

    -

    Installing takes a minute: extract one folder into your Timberborn Mods folder and enable it.

    +
    +

    What is tested, and what isn't

    +

    Stable means the evidence below, not that every situation has been tried.

    +
    +
    +
    +

    Tested

    +
      +
    • Pinning, clearing and the outlines, played in game on 1.1.2.4: in single player and in a two-player Stability Fork co-op session with the mod on both computers.
    • +
    • 142 automated checks: 77 that need no game (they also run on every change), and 65 against the installed game's own assemblies and blueprints.
    • +
    +
    +
    +

    Not played yet

    +
      +
    • The newest additions: the planting-tool outlines, pins remembered in Pins.txt, the faster refresh and the translatable text. Automated checks cover them.
    • +
    • The mod on only one computer in a co-op game.
    • +
    • The original BeaverBuddies, and BeaverBuddies MultiColony.
    • +
    • Frame rate in a very large colony, and other mods alongside it.
    • +
    +
    +
    +
    +
    + +
    +
    +
    +

    A minute to install

    +
      +
    1. The zip under Assets on the release page, not -source.zip or Source code.
    2. +
    3. Close the game and extract it into Documents\Timberborn\Mods: one PersistentWorkAreas folder.
    4. +
    5. Enable it in the mod manager. Nothing else to install.
    6. +
    +
    Download latest release Read the install guide diff --git a/docs/install.html b/docs/install.html index 5bfabd3..6ed1c74 100644 --- a/docs/install.html +++ b/docs/install.html @@ -7,7 +7,9 @@ - + + + @@ -24,7 +26,7 @@
  • Install
  • Troubleshooting
  • FAQ
  • -
  • GitHub
  • +
  • GitHub
  • @@ -90,7 +92,7 @@

    Extract it into your Mods folder

  • Start Timberborn and enable the mod

    -

    Open the game's mod manager, enable Persistent Work Areas, and restart the game if it asks you to.

    +

    Open the game's mod manager, enable Persistent Work Areas. If the game asks to restart so the change takes effect, let it.

  • @@ -107,7 +109,8 @@

    Check that it works

    Click to pin this outline while planting or building.

    Illustration of the panel, not a screenshot.
    -

    You can also confirm the mod loaded by searching the game log for [PersistentWorkAreas]. See where to find the log.

    +

    You can also confirm the mod loaded in the game log: search it for [PersistentWorkAreas] and look for this line, with your version in place of <version>. See where to find the log.

    +
    [PersistentWorkAreas] <version> loaded.

    If something doesn't look right, head to Troubleshooting.

    Optional key binding

    @@ -129,10 +132,10 @@

    Updating

    1. Close Timberborn.
    2. Download the newest zip from the latest release.
    3. -
    4. Extract it into the same Mods folder and choose Replace when asked about existing files.
    5. +
    6. Delete the old Mods\PersistentWorkAreas folder, then extract the new zip into Mods as before.
    7. Start the game and confirm Persistent Work Areas is still enabled in the mod manager.
    -

    Replace the whole folder rather than only the DLL: since 1.1.0 the mod reads its text from the Localizations folder beside it. Your pins are kept outside the mod folder, in Documents\Timberborn\PersistentWorkAreas\Pins.txt, so updating keeps them.

    +

    Replace the whole folder rather than only the DLL: the mod reads its text from the Localizations folder beside it. Your pins are kept outside the mod folder, in Documents\Timberborn\PersistentWorkAreas\Pins.txt, so updating keeps them.

    Uninstalling

    Disable the mod in the mod manager, or close the game and delete Documents\Timberborn\Mods\PersistentWorkAreas. Your saves are unaffected because the mod never writes to them. To remove the remembered pins too, delete the Documents\Timberborn\PersistentWorkAreas folder.

    diff --git a/docs/troubleshooting.html b/docs/troubleshooting.html index 743651c..a5fef4a 100644 --- a/docs/troubleshooting.html +++ b/docs/troubleshooting.html @@ -7,7 +7,9 @@ - + + + @@ -24,7 +26,7 @@
  • Install
  • Troubleshooting
  • FAQ
  • -
  • GitHub
  • +
  • GitHub
  • @@ -179,7 +181,7 @@

    My "clear" key binding does nothing

    A Builder's Hut shows an outline when I select it

    Why
    -
    That outline comes from Timberborn itself. The game gives every Builder's Hut a road-spill range and draws it while the hut is selected. Persistent Work Areas doesn't draw it and doesn't change it. Since version 0.1.2 the mod doesn't offer a pin for Builder's Huts.
    +
    That outline comes from Timberborn itself. The game gives every Builder's Hut a road-spill range and draws it while the hut is selected. Persistent Work Areas doesn't draw it and doesn't change it. The mod doesn't offer a pin for Builder's Huts.
    Fix
    Nothing to fix. To confirm, disable the mod, restart, and select a Builder's Hut: the same outline appears.