gunk-dev/the-valley

style.css

source9e4736a353f5main's published tip history
11.9 KiB
1/* One ledger column. What waits on the reader comes first, then what is in flight, the paths, and each milestone as a cord of knots. */
2:root {
3 --bg: #f3f5f2;
4 --surface: #fbfcfa;
5 --ink: #1d2a27;
6 --muted: #5f6e69;
7 --line: #d3dbd6;
8 --accent: #1f7a68;
9 --accent-soft: #d6ebe4;
10 --blocked: #a24b3a;
11 --blocked-soft: #f3e1dc;
12 --yours: #8a6514;
13 --yours-soft: #f4ead2;
14 --font-display: Georgia, "Times New Roman", serif;
15 --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
16 --font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
17 color-scheme: light;
18}
19@media (prefers-color-scheme: dark) {
20 :root {
21 --bg: #111816;
22 --surface: #17201d;
23 --ink: #e2ebe7;
24 --muted: #93a39d;
25 --line: #2c3833;
26 --accent: #5cc0a7;
27 --accent-soft: #1b3830;
28 --blocked: #e08a76;
29 --blocked-soft: #3a221d;
30 --yours: #e0b860;
31 --yours-soft: #3a3020;
32 color-scheme: dark;
33 }
34}
35* { box-sizing: border-box; }
36[hidden] { display: none !important; }
37body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
38a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 2px; }
39a:hover { text-decoration-color: var(--accent); }
40a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
41.page { max-width: 1040px; margin: 0 auto; padding-inline: 20px; padding-block: 20px 64px; display: flex; flex-direction: column; gap: 32px; }
42h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; margin: 0; }
43h1 { font-size: 34px; line-height: 1.1; }
44h2 { font-size: 22px; }
45h3 { font-size: 18px; }
46.eyebrow { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
47.mono { font-family: var(--font-mono); font-size: 12.5px; }
48.muted { color: var(--muted); }
49nav.site { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
50nav.site .fresh { margin-left: auto; color: var(--muted); }
51header.project-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
52header.project-head .mono { font-size: 14px; }
53nav.tabs { display: flex; gap: 14px; font-size: 14px; }
54nav.tabs a[aria-current="page"] { font-weight: 600; text-decoration-color: var(--accent); }
55.listed { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
56header.top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
57header.top p { margin: 6px 0 0; max-width: 62ch; }
58.tally { display: flex; flex-wrap: wrap; gap: 8px 18px; font-variant-numeric: tabular-nums; }
59.tally span b { font-weight: 600; }
60
61/* Knot glyphs: a knot is a state, read along a cord. */
62.k { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: none; position: relative; border: 2px solid var(--muted); background: transparent; }
63.k.done { background: var(--ink); border-color: var(--ink); }
64.k.abandoned { border-color: var(--line); background: var(--line); }
65.k.in-progress { border-color: var(--accent); background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }
66.k.ready { border-color: var(--accent); }
67.k.blocked { border-color: var(--blocked); }
68.k.blocked::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; margin-top: -1px; background: var(--blocked); transform: rotate(-45deg); }
69.k.active { border-radius: 2px; transform: rotate(45deg) scale(0.85); border-color: var(--muted); }
70.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
71.legend span { display: inline-flex; align-items: center; gap: 6px; }
72
73section.panel { display: flex; flex-direction: column; gap: 14px; }
74section.panel > p { margin: 0; }
75.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
76.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
77ol.stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
78ol.stages > li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: baseline; }
79.stage-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
80ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
81.item { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; }
82.item .handle { font-family: var(--font-mono); font-weight: 500; font-size: 13px; }
83.item .t { min-width: 0; overflow-wrap: anywhere; }
84.item .note { grid-column: 2; font-size: 13px; color: var(--muted); }
85.chip { display: inline-block; font-size: 11.5px; line-height: 1; padding: 4px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--ink); white-space: nowrap; }
86.chip.stale { background: var(--yours-soft); color: var(--yours); font-weight: 600; }
87.chip.blocked { background: var(--blocked-soft); color: var(--blocked); }
88.chip.quiet { background: transparent; border: 1px solid var(--line); color: var(--muted); }
89
90.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
91.controls button { font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
92.controls button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
93.controls button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
94.controls label { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; }
95
96.milestones { display: flex; flex-direction: column; gap: 16px; }
97.milestone { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px 18px 12px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
98.ms-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
99.ms-head .count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
100.cord { position: relative; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding: 6px 0; }
101.cord::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); z-index: 0; }
102.cord .k { z-index: 1; background-color: var(--surface); }
103.cord .k.done { background-color: var(--ink); }
104.cord .k.in-progress { background: linear-gradient(90deg, var(--accent) 50%, var(--surface) 50%); }
105
106ul.tree { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
107ul.tree ul.tree { padding-left: 22px; border-left: 1px solid var(--line); margin-left: 5px; }
108.row { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; min-width: 0; }
109.row .k { transform: translateY(1px); }
110.row .k.active { transform: translateY(1px) rotate(45deg) scale(0.85); }
111.row .body { min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
112.row .id { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
113.row .title { min-width: 0; overflow-wrap: anywhere; }
114.row.done .title, .row.abandoned .title { color: var(--muted); }
115details > summary { list-style: none; cursor: pointer; }
116details > summary::-webkit-details-marker { display: none; }
117.twisty { font-size: 11px; color: var(--muted); width: 10px; display: inline-block; flex: none; }
118details[open] > summary .twisty { transform: rotate(90deg); }
119.nochild { width: 10px; flex: none; }
120
121/* A knot's page. */
122.trail { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
123.knot-head { display: flex; flex-direction: column; gap: 6px; }
124.knot-head .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--muted); }
125dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
126dl.facts dt { color: var(--muted); }
127dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
128.prose { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-body); font-size: 15px; margin: 0; }
129ol.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
130.comment-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 13px; color: var(--muted); }
131.comment-head b { color: var(--ink); font-weight: 600; }
132
133/* The source browser. */
134.crumbs { display: flex; flex-wrap: wrap; gap: 4px 6px; font-family: var(--font-mono); font-size: 14px; overflow-wrap: anywhere; }
135table.listing { width: 100%; border-collapse: collapse; font-size: 14px; }
136table.listing td { padding: 5px 8px; border-top: 1px solid var(--line); vertical-align: baseline; }
137table.listing tr:first-child td { border-top: 0; }
138table.listing td.name { font-family: var(--font-mono); overflow-wrap: anywhere; }
139table.listing td.kind, table.listing td.size { color: var(--muted); white-space: nowrap; }
140table.listing td.size { text-align: right; font-variant-numeric: tabular-nums; }
141pre.text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 13px; line-height: 1.55; }
142.code { overflow-x: auto; }
143table.code { border-collapse: collapse; font-family: var(--font-mono); font-size: 13px; line-height: 1.55; width: 100%; }
144table.code td { padding: 0 10px; vertical-align: top; }
145table.code td.ln { text-align: right; color: var(--muted); user-select: none; width: 1%; white-space: nowrap; }
146table.code td.ln a { text-decoration: none; }
147table.code td.src { white-space: pre; }
148table.code tr:target { background: var(--yours-soft); }
149.notice { color: var(--muted); font-style: italic; margin: 0; }
150.pager { display: flex; gap: 18px; font-size: 14px; }
151
152/* The one page every 404 answers with: a box of text, centred. */
153pre.lost { align-self: center; max-width: 100%; overflow-x: auto; margin: 12vh 0 0; font-family: var(--font-mono); font-size: 14px; line-height: 1.35; color: var(--ink); }
154pre.lost a { color: var(--accent); }
155
156footer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
157@media (prefers-reduced-motion: no-preference) { details[open] > summary .twisty { transition: transform .15s; } }
158@media (max-width: 520px) { h1 { font-size: 28px; } .page { padding-inline: 16px; } ul.tree ul.tree { padding-left: 14px; } dl.facts { grid-template-columns: 1fr; gap: 0 0; } dl.facts dd { margin-bottom: 8px; } }
159
160/* Rendered Markdown: only the elements package markdown writes. */
161.markdown { line-height: 1.6; overflow-wrap: anywhere; }
162.markdown > :first-child { margin-top: 0; }
163.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 { margin: 1.2em 0 0.5em; line-height: 1.3; }
164.markdown a.anchor { color: var(--muted); text-decoration: none; font-size: 0.8em; visibility: hidden; }
165.markdown h1:hover a.anchor, .markdown h2:hover a.anchor, .markdown h3:hover a.anchor, .markdown h4:hover a.anchor, .markdown h5:hover a.anchor, .markdown h6:hover a.anchor, .markdown a.anchor:focus { visibility: visible; }
166.markdown pre { overflow-x: auto; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
167.markdown code { font-family: var(--font-mono); font-size: 0.9em; }
168.markdown blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); }
169.markdown table { border-collapse: collapse; display: block; overflow-x: auto; }
170.markdown th, .markdown td { border: 1px solid var(--line); padding: 4px 8px; }
171.markdown .left { text-align: left; } .markdown .center { text-align: center; } .markdown .right { text-align: right; }
172details.contents ul { list-style: none; margin: 6px 0 0; padding: 0; }
173details.contents .level3 { padding-left: 16px; } details.contents .level4 { padding-left: 32px; }