gunk-dev/the-valley

style.css

source199a804cf927main's published tip history
11.5 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.top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
52header.top p { margin: 6px 0 0; max-width: 62ch; }
53.tally { display: flex; flex-wrap: wrap; gap: 8px 18px; font-variant-numeric: tabular-nums; }
54.tally span b { font-weight: 600; }
55
56/* Knot glyphs: a knot is a state, read along a cord. */
57.k { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: none; position: relative; border: 2px solid var(--muted); background: transparent; }
58.k.done { background: var(--ink); border-color: var(--ink); }
59.k.abandoned { border-color: var(--line); background: var(--line); }
60.k.in-progress { border-color: var(--accent); background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }
61.k.ready { border-color: var(--accent); }
62.k.blocked { border-color: var(--blocked); }
63.k.blocked::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; margin-top: -1px; background: var(--blocked); transform: rotate(-45deg); }
64.k.active { border-radius: 2px; transform: rotate(45deg) scale(0.85); border-color: var(--muted); }
65.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
66.legend span { display: inline-flex; align-items: center; gap: 6px; }
67
68section.panel { display: flex; flex-direction: column; gap: 14px; }
69section.panel > p { margin: 0; }
70.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
71.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; }
72ol.stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
73ol.stages > li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: baseline; }
74.stage-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
75ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
76.item { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; }
77.item .handle { font-family: var(--font-mono); font-weight: 500; font-size: 13px; }
78.item .t { min-width: 0; overflow-wrap: anywhere; }
79.item .note { grid-column: 2; font-size: 13px; color: var(--muted); }
80.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; }
81.chip.stale { background: var(--yours-soft); color: var(--yours); font-weight: 600; }
82.chip.blocked { background: var(--blocked-soft); color: var(--blocked); }
83.chip.quiet { background: transparent; border: 1px solid var(--line); color: var(--muted); }
84
85.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
86.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; }
87.controls button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
88.controls button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
89.controls label { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; }
90
91.milestones { display: flex; flex-direction: column; gap: 16px; }
92.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; }
93.ms-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
94.ms-head .count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
95.cord { position: relative; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding: 6px 0; }
96.cord::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); z-index: 0; }
97.cord .k { z-index: 1; background-color: var(--surface); }
98.cord .k.done { background-color: var(--ink); }
99.cord .k.in-progress { background: linear-gradient(90deg, var(--accent) 50%, var(--surface) 50%); }
100
101ul.tree { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
102ul.tree ul.tree { padding-left: 22px; border-left: 1px solid var(--line); margin-left: 5px; }
103.row { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; min-width: 0; }
104.row .k { transform: translateY(1px); }
105.row .k.active { transform: translateY(1px) rotate(45deg) scale(0.85); }
106.row .body { min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
107.row .id { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
108.row .title { min-width: 0; overflow-wrap: anywhere; }
109.row.done .title, .row.abandoned .title { color: var(--muted); }
110details > summary { list-style: none; cursor: pointer; }
111details > summary::-webkit-details-marker { display: none; }
112.twisty { font-size: 11px; color: var(--muted); width: 10px; display: inline-block; flex: none; }
113details[open] > summary .twisty { transform: rotate(90deg); }
114.nochild { width: 10px; flex: none; }
115
116/* A knot's page. */
117.trail { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
118.knot-head { display: flex; flex-direction: column; gap: 6px; }
119.knot-head .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--muted); }
120dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
121dl.facts dt { color: var(--muted); }
122dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
123.prose { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-body); font-size: 15px; margin: 0; }
124ol.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
125.comment-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 13px; color: var(--muted); }
126.comment-head b { color: var(--ink); font-weight: 600; }
127
128/* The source browser. */
129.crumbs { display: flex; flex-wrap: wrap; gap: 4px 6px; font-family: var(--font-mono); font-size: 14px; overflow-wrap: anywhere; }
130table.listing { width: 100%; border-collapse: collapse; font-size: 14px; }
131table.listing td { padding: 5px 8px; border-top: 1px solid var(--line); vertical-align: baseline; }
132table.listing tr:first-child td { border-top: 0; }
133table.listing td.name { font-family: var(--font-mono); overflow-wrap: anywhere; }
134table.listing td.kind, table.listing td.size { color: var(--muted); white-space: nowrap; }
135table.listing td.size { text-align: right; font-variant-numeric: tabular-nums; }
136pre.text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 13px; line-height: 1.55; }
137.code { overflow-x: auto; }
138table.code { border-collapse: collapse; font-family: var(--font-mono); font-size: 13px; line-height: 1.55; width: 100%; }
139table.code td { padding: 0 10px; vertical-align: top; }
140table.code td.ln { text-align: right; color: var(--muted); user-select: none; width: 1%; white-space: nowrap; }
141table.code td.ln a { text-decoration: none; }
142table.code td.src { white-space: pre; }
143table.code tr:target { background: var(--yours-soft); }
144.notice { color: var(--muted); font-style: italic; margin: 0; }
145.pager { display: flex; gap: 18px; font-size: 14px; }
146
147/* The one page every 404 answers with: a box of text, centred. */
148pre.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); }
149pre.lost a { color: var(--accent); }
150
151footer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
152@media (prefers-reduced-motion: no-preference) { details[open] > summary .twisty { transition: transform .15s; } }
153@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; } }
154
155/* Rendered Markdown: only the elements package markdown writes. */
156.markdown { line-height: 1.6; overflow-wrap: anywhere; }
157.markdown > :first-child { margin-top: 0; }
158.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 { margin: 1.2em 0 0.5em; line-height: 1.3; }
159.markdown a.anchor { color: var(--muted); text-decoration: none; font-size: 0.8em; visibility: hidden; }
160.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; }
161.markdown pre { overflow-x: auto; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
162.markdown code { font-family: var(--font-mono); font-size: 0.9em; }
163.markdown blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); }
164.markdown table { border-collapse: collapse; display: block; overflow-x: auto; }
165.markdown th, .markdown td { border: 1px solid var(--line); padding: 4px 8px; }
166.markdown .left { text-align: left; } .markdown .center { text-align: center; } .markdown .right { text-align: right; }
167details.contents ul { list-style: none; margin: 6px 0 0; padding: 0; }
168details.contents .level3 { padding-left: 16px; } details.contents .level4 { padding-left: 32px; }