clone

a personal forge on plain git: static pages, stacked-diff reviews, signed local ci, repo sites and releases

main
forge / guide / guide.css
guide.css 29.0K
1/* The forge guide: one stylesheet, light and dark, phone first. The page2 reads like a git log, with each section a commit on one line.34 The palette, the fonts and the rules are the forge's own5 (site/assets/style.css, DESIGN.md), and lib/check-css.ts holds this file6 to them: a plain page, square corners, content between 1px rules rather7 than in boxes; Open Sans for the interface, Noto Sans Mono for what is8 copied or compared, Noto Serif for the prose; hierarchy from weight, size9 and colour, never capitals or tracking; one accent (#3148F6) for links,10 the rail, the current entry and the primary button. */1112/* == tokens == Every colour, size, weight and family is here; nothing13 below this block names one. */14/* The forge's fonts, copied into fonts/ when the guide is deployed15 (.forge/sites). The sans is preloaded. */16@font-face { font-family: "Open Sans"; src: url(fonts/open-sans.woff2) format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }17@font-face { font-family: "Noto Sans Mono"; src: url(fonts/noto-sans-mono.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }18@font-face { font-family: "Noto Serif"; src: url(fonts/noto-serif.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }19@font-face { font-family: "Noto Serif"; src: url(fonts/noto-serif-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }20:root {21 /* colour: the page, panels raised over it with their tinted head strip,22 ink in three strengths, rules, and the accent; the forge's own values */23 --bg: #e9e9e9;24 --raised: #ffffff;25 --tint: #f6f6f6;26 --hover: #f2f3f5;27 --fg: #1c2127;28 --muted: #5b6169;29 --faint: #6f757d;30 --border: #d2d4d7;31 --border-strong: #a9aeb4;32 --link: #3148f6;33 --accent: #3148f6;34 --deep: #1c4b8f;35 --accent-hover: #1c4b8f;36 --on-accent: #ffffff;37 /* meaning: CI results, diffs, a changed line */38 --pass: #0b7a1d;39 --fail: #c7162b;40 --warn: #965800;41 --add: #0b7a1d;42 --del: #c7162b;43 /* the terminal in the hero is dark in both modes */44 --term-bg: #08090b;45 --term-fg: #e2e4e7;46 --term-dim: #8f959d;47 --term-ok: #4fbf5f;48 --term-u: #8e9bff;49 --term-rule: #1f2329;5051 /* type: the interface, what is copied or compared, and prose */52 --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;53 --mono: "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;54 --serif: "Noto Serif", Georgia, Cambria, "Times New Roman", serif;55 --text-xs: 12px;56 --text-code: 12.5px;57 --text-sm: 13.5px;58 --text-md: 15px;59 --text-prose: 16px;60 --text-lg: 18px;61 --text-xl: 22px;62 --text-2xl: 28px;63 --text-3xl: clamp(2.4rem, 9vw, 4rem);64 /* mono inline in serif text runs large; this brings it level */65 --text-inline-mono: 0.88em;66 --fw-regular: 400;67 --fw-medium: 500;68 --fw-strong: 650;6970 /* space: a 4px scale */71 --space-half: 2px;72 --space-1: 4px;73 --space-2: 8px;74 --space-3: 12px;75 --space-4: 16px;76 --space-5: 20px;77 --space-6: 24px;78 --space-8: 32px;79 --space-10: 40px;80 --hairline: 1px;81 --bar: 3px;82 --radius: 0;83 /* the log's rail: where it runs, and how far the sections sit from it */84 --rail-x: 7px;85 --gutter: 30px;86 color-scheme: light dark;87}88@media (prefers-color-scheme: dark) {89 :root {90 --bg: #08090b;91 --raised: #111418;92 --tint: #15191e;93 --hover: #191d23;94 --fg: #e2e4e7;95 --muted: #8f959d;96 --faint: #7d838b;97 --border: #252a31;98 --border-strong: #3a4048;99 --link: #8e9bff;100 --deep: #b4bcff;101 --accent-hover: #2a3ee0;102 --pass: #4fbf5f;103 --fail: #f0606e;104 --warn: #e3a33b;105 --add: #4fbf5f;106 --del: #f0606e;107 }108}109/* == end tokens == */110111*, ::before, ::after { box-sizing: border-box; border-radius: var(--radius); }112html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--space-4); }113@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }114body { margin: 0; background: var(--bg); color: var(--fg); font: var(--fw-regular) var(--text-prose)/1.65 var(--serif); font-kerning: normal; text-rendering: optimizeLegibility; }115a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }116a:hover { color: var(--deep); text-decoration-thickness: 2px; }117:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }118code, kbd, pre { font-family: var(--mono); }119code { font-size: var(--text-inline-mono); white-space: nowrap; }120pre code, .plain code { font-size: inherit; white-space: inherit; }121kbd { font-size: var(--text-inline-mono); color: var(--muted); background: var(--raised); border: var(--hairline) solid var(--border-strong); padding: 0 var(--space-1); }122h1, h2, h3 { font-family: var(--sans); font-weight: var(--fw-strong); line-height: 1.2; }123h3 { font-size: var(--text-lg); margin: var(--space-8) 0 var(--space-2); }124p, ul, ol, dl { margin: 0 0 var(--space-4); }125b, strong { font-weight: var(--fw-strong); }126.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-4); }127.skip { position: absolute; left: -999px; top: var(--space-2); z-index: 5; background: var(--raised); padding: var(--space-1) var(--space-3); border: var(--hairline) solid var(--border-strong); font-family: var(--sans); font-size: var(--text-sm); }128.skip:focus { left: var(--space-2); }129.mono { font-family: var(--mono); }130.muted { color: var(--muted); }131/* the logo: the ring in ink, the A in the accent */132.mark { display: block; width: 26px; height: 26px; flex: none; }133.mark circle { stroke: currentColor; }134.mark path { stroke: var(--accent); }135136/* top bar: the name, and the two pages as tabs on the rule */137.bar { border-bottom: var(--hairline) solid var(--border); font-family: var(--sans); }138.bar .wrap { display: flex; align-items: center; gap: var(--space-3); height: 52px; }139.brand { display: flex; align-items: center; gap: var(--space-2); color: var(--fg); text-decoration: none; font-size: var(--text-lg); font-weight: var(--fw-strong); }140.brand:hover { color: var(--fg); text-decoration: none; }141.brand span { color: var(--muted); font-weight: var(--fw-regular); }142.bar nav { margin-left: auto; display: flex; gap: var(--space-6); align-self: stretch; }143.bar nav a { display: flex; align-items: center; color: var(--muted); text-decoration: none; font-size: var(--text-md); font-weight: var(--fw-medium); }144.bar nav a:hover { color: var(--fg); }145.bar nav a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 calc(-1 * var(--bar)) 0 var(--accent); }146147/* hero */148.hero { padding: var(--space-10) 0 var(--space-8); border-bottom: var(--hairline) solid var(--border); }149.hero .wrap { display: grid; gap: var(--space-8); }150.eyebrow { font-family: var(--sans); font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--muted); margin: 0 0 var(--space-2); }151.hero h1 { display: flex; align-items: center; gap: 0.2em; margin: 0 0 var(--space-4); font-size: var(--text-3xl); line-height: 1; }152.hero h1 .mark { width: 0.9em; height: 0.9em; }153.lede { font-size: var(--text-lg); line-height: 1.5; max-width: 34rem; margin: 0 0 var(--space-6); }154@media (min-width: 720px) { .lede { font-size: var(--text-xl); } }155.lede em { font-style: italic; }156.cta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }157/* buttons, as the forge's: secondary is a raised surface, primary is158 filled with the accent */159.btn { display: inline-flex; align-items: center; min-height: 36px; padding: var(--space-1) var(--space-4); font: var(--fw-medium) var(--text-sm)/1.2 var(--sans); color: var(--fg); background: var(--raised); border: var(--hairline) solid var(--border-strong); text-decoration: none; }160.btn:hover { color: var(--fg); border-color: var(--muted); text-decoration: none; }161.btn.go { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }162.btn.go:hover { color: var(--on-accent); background: var(--accent-hover); border-color: var(--accent-hover); }163@media (min-width: 900px) {164 .hero { padding: 72px 0 64px; }165 .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 48px; }166}167168/* terminal */169.term { margin: 0; background: var(--term-bg); color: var(--term-fg); border: var(--hairline) solid var(--term-rule); overflow: hidden; min-width: 0; }170.term .chrome { padding: var(--space-2) var(--space-4); border-bottom: var(--hairline) solid var(--term-rule); font: var(--fw-regular) var(--text-xs) var(--mono); color: var(--term-dim); }171.term pre { margin: 0; padding: var(--space-3) var(--space-4) var(--space-4); font-size: var(--text-code); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }172.term .line { display: block; }173.term .p { color: var(--term-u); user-select: none; -webkit-user-select: none; }174.term .o, .term .r { color: var(--term-dim); }175.term .ok { color: var(--term-ok); }176.term .u { color: var(--term-u); }177@media (prefers-reduced-motion: no-preference) {178 .hero-text > *, .term { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }179 .hero-text > :nth-child(2) { animation-delay: 0.06s; }180 .hero-text > :nth-child(3) { animation-delay: 0.12s; }181 .hero-text > :nth-child(4) { animation-delay: 0.18s; }182 .term { animation-delay: 0.22s; }183 .term .line { animation: rise 0.35s ease-out both; animation-delay: calc(0.35s + var(--i) * 0.07s); }184 @keyframes rise { from { opacity: 0; transform: translateY(10px); } }185}186187/* page: contents, then the log of sections */188.page { display: grid; gap: var(--space-2); padding-top: var(--space-6); padding-bottom: var(--space-10); }189.toc { font-family: var(--sans); font-size: var(--text-sm); line-height: 1.4; }190.toc h2 { font-size: var(--text-xs); font-weight: var(--fw-strong); color: var(--muted); margin: 0 0 var(--space-2); }191.toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-half) var(--space-3); }192.toc a { display: flex; gap: var(--space-2); padding: var(--space-1) 0; color: var(--muted); text-decoration: none; }193.toc a span { color: var(--faint); font-variant-numeric: tabular-nums; }194.toc a:hover { color: var(--fg); }195.toc a[aria-current="true"] { color: var(--fg); font-weight: var(--fw-medium); }196.toc a[aria-current="true"] span { color: var(--link); }197@media (min-width: 1000px) {198 .page { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding-top: 44px; }199 .toc > div { position: sticky; top: var(--space-6); }200 .toc ol { grid-template-columns: 1fr; gap: 0; }201 .toc a { padding: var(--space-1) 0 var(--space-1) var(--space-3); border-left: 2px solid var(--border); }202 .toc a[aria-current="true"] { border-left-color: var(--accent); }203}204205.log { position: relative; padding-left: var(--gutter); min-width: 0; }206.log::before { content: ""; position: absolute; left: var(--rail-x); top: 10px; bottom: 0; width: 2px; background: linear-gradient(var(--accent), var(--accent) calc(100% - 120px), transparent); }207.commit { position: relative; padding: var(--space-4) 0 var(--space-8); }208.commit > header { position: relative; margin-bottom: var(--space-4); }209/* each section's commit: a small square on the rail, filled when it is210 the one linked to */211.commit > header::before { content: ""; position: absolute; left: calc(var(--rail-x) - var(--gutter) - 6px); top: 3px; width: 10px; height: 10px; background: var(--bg); border: 2px solid var(--accent); }212.commit:target > header::before, .commit > header:hover::before { background: var(--accent); }213.ref { margin: 0 0 var(--space-1); display: flex; gap: var(--space-2); align-items: baseline; font-family: var(--mono); font-size: var(--text-xs); color: var(--muted); }214.ref b { font-weight: var(--fw-medium); color: var(--faint); }215.commit h2 { font-size: var(--text-xl); margin: 0; max-width: 34ch; }216.commit h2 a { color: inherit; text-decoration: none; }217.commit h2 a:hover { color: var(--deep); }218.prose { max-width: 41rem; }219.prose li { margin: var(--space-1) 0; }220.prose ul { padding-left: 1.2rem; }221.aside { margin-top: var(--space-4); font-family: var(--sans); font-size: var(--text-sm); color: var(--muted); border-left: var(--bar) solid var(--border); padding: var(--space-half) 0 var(--space-half) var(--space-3); max-width: 41rem; }222@media (min-width: 720px) {223 :root { --gutter: 44px; --rail-x: 9px; }224 .commit { padding: var(--space-6) 0 44px; }225 .commit h2 { font-size: var(--text-2xl); }226}227228/* panels, as the forge's (DESIGN.md): a raised surface on a hairline, an229 optional head strip on the tint naming what it holds, rows between230 hairlines with none under the last */231.panel { margin: var(--space-5) 0 var(--space-6); min-width: 0; background: var(--raised); border: var(--hairline) solid var(--border); }232.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); margin: 0; padding: var(--space-2) var(--space-3); background: var(--tint); border-bottom: var(--hairline) solid var(--border); font: var(--fw-regular) var(--text-sm)/1.5 var(--sans); color: var(--muted); }233.panel-head b { font-weight: var(--fw-medium); color: var(--fg); }234.panel-head .end { margin-left: auto; }235.panel-head .n { font: var(--fw-regular) var(--text-xs) var(--mono); color: var(--faint); }236.panel > .table { margin: 0; border: 0; }237.panel th:first-child, .panel td:first-child { padding-left: var(--space-3); }238.panel th:last-child, .panel td:last-child { padding-right: var(--space-3); }239/* a command or two between paragraphs */240.commit > .code { margin: var(--space-4) 0 var(--space-5); }241242/* figures: a raised plate on a hairline, a caption under it */243figure { margin: var(--space-5) 0 var(--space-6); }244/* what is in a figure is labels and notes, in the sans; shas, paths and245 commands in the mono */246.plate { font-family: var(--sans); line-height: 1.5; }247.plate { border: var(--hairline) solid var(--border); background: var(--raised); padding: var(--space-4); overflow: hidden; }248figcaption { font-family: var(--sans); font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-2); }249figcaption b { color: var(--fg); font-weight: var(--fw-strong); margin-right: var(--space-2); }250@media (min-width: 720px) { .plate { padding: 22px var(--space-6); } }251252/* fig: the push, as a trace down one line */253.flow { list-style: none; margin: 0; padding: 0; position: relative; --x: 6px; }254.flow::before { content: ""; position: absolute; left: var(--x); top: 8px; bottom: 14px; width: 2px; background: var(--border); }255.flow > li { position: relative; padding: 0 0 var(--space-4) 26px; }256/* the marker: centred on the rail and on the first 24px line */257.flow > li::before { content: ""; position: absolute; left: calc(var(--x) - 4px); top: 7px; width: 10px; height: 10px; background: var(--raised); border: 2px solid var(--accent); }258.flow .where { display: block; font-family: var(--mono); font-size: var(--text-code); line-height: 24px; font-weight: var(--fw-strong); color: var(--fg); }259.flow p { margin: 0; font-size: var(--text-md); line-height: 24px; }260.flow p + p { margin-top: var(--space-1); }261.flow .src { font-family: var(--mono); font-size: var(--text-xs); color: var(--muted); margin-top: var(--space-1); }262.flow ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: var(--text-md); }263.flow ul li { position: relative; padding-left: var(--space-4); margin: 3px 0; }264.flow ul li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; border-top: 2px solid var(--accent); }265.flow .returns { padding-bottom: 18px; }266.flow .returns::before { display: none; }267.flow .returns span { display: block; border-top: var(--hairline) dashed var(--border-strong); padding-top: 6px; font-family: var(--sans); font-size: var(--text-sm); color: var(--muted); }268@media (min-width: 720px) {269 .flow { --x: 148px; }270 .flow > li { display: grid; grid-template-columns: 128px 1fr; gap: 0 40px; padding-left: 0; }271 .flow .where { text-align: right; }272 .flow .returns { grid-template-columns: 1fr; padding-left: 168px; }273}274275/* fig: a stack of reviews, as a graph. Every commit is one row of the276 same height, its marker centred on the row, so the rail's segments277 between markers are equal; a layer's review is a bracket beside its278 rows, which on phones shows only its number. */279.graph { list-style: none; margin: 0; padding: 0; --row: 32px; }280.graph ol { list-style: none; margin: 0; padding: 0; min-width: 0; }281.graph .layer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-3); }282/* sha, subject and branch share one baseline, centred in the row */283.graph .c { position: relative; display: flex; align-items: baseline; gap: var(--space-2); height: var(--row); padding-left: 28px; font-size: var(--text-md); line-height: var(--row); white-space: nowrap; }284/* the rail through the row, and the marker on it */285.graph .c::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--accent); }286.graph > .layer:first-child > ol > .c:first-child::before { top: 50%; }287.graph .base .c::before { bottom: 50%; background: var(--faint); }288.graph .c::after { content: ""; position: absolute; left: 2px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: var(--raised); border: 2px solid var(--accent); }289.graph .base .c::after { border-color: var(--faint); }290.graph code { flex: none; font-size: var(--text-xs); color: var(--muted); }291.graph .s { min-width: 0; overflow: hidden; text-overflow: ellipsis; }292.graph .pill { flex: none; line-height: 1.5; }293/* a branch name on a commit: a square label on a hairline */294.pill { font-family: var(--mono); font-size: var(--text-xs); padding: 0 6px; border: var(--hairline) solid var(--accent); color: var(--link); white-space: nowrap; }295.pill.main { border-color: var(--border-strong); color: var(--muted); }296.graph .tag { display: flex; flex-direction: column; justify-content: center; margin: var(--space-1) 0; padding: 0 0 0 10px; border-left: 2px solid var(--accent); font-size: var(--text-sm); line-height: 1.4; color: var(--muted); }297.graph .tag b { color: var(--fg); }298.graph .tag .t, .graph .tag small { display: none; }299.graph .tag small { font-size: var(--text-sm); }300@media (min-width: 720px) {301 .graph .layer { grid-template-columns: minmax(0, 1fr) 210px; }302 .graph .tag .t { display: inline; }303 .graph .tag small { display: block; }304}305306/* code-ish figures: range-diff, statements */307.code { margin: 0; font-size: var(--text-code); line-height: 1.55; white-space: pre; overflow-x: auto; background: var(--raised); border: var(--hairline) solid var(--border); padding: var(--space-3) 14px; tab-size: 4; }308.code .same, .code .dim { color: var(--muted); }309.code .chg { color: var(--warn); font-weight: var(--fw-strong); }310.code .add { color: var(--add); }311.code .del { color: var(--del); }312.code .key { color: var(--link); }313/* numbered markers, square, white on the accent in both modes */314.code .n { display: inline-block; min-width: 1.6em; margin-left: var(--space-2); padding: 0 var(--space-1); background: var(--accent); color: var(--on-accent); font-size: var(--text-xs); font-weight: var(--fw-strong); text-align: center; line-height: 1.5; }315316.annotated { display: grid; gap: var(--space-4); }317.annotated ol { margin: 0; padding: 0; list-style: none; counter-reset: n; font-size: var(--text-md); }318.annotated ol li { counter-increment: n; position: relative; padding-left: 30px; margin: 0 0 var(--space-2); line-height: 24px; }319.annotated ol li::before { content: counter(n); position: absolute; left: 0; top: 3px; min-width: 1.6em; padding: 0 var(--space-1); background: var(--accent); color: var(--on-accent); font: var(--fw-strong) var(--text-xs)/1.5 var(--mono); text-align: center; }320.annotated figcaption { grid-column: 1 / -1; margin: 0; }321@media (min-width: 900px) { .annotated { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }322323/* proves / doesn't: two columns under a bar in pass and fail */324.verdict { display: grid; gap: var(--space-4) var(--space-8); margin: 18px 0 var(--space-6); }325.verdict > div { padding: var(--space-3) 0 0; border-top: var(--bar) solid var(--pass); }326.verdict > div.no { border-top-color: var(--fail); }327.verdict h3 { margin: 0 0 var(--space-2); font-size: var(--text-md); }328.verdict ul { list-style: none; padding: 0; font-size: var(--text-md); }329.verdict li { position: relative; padding-left: var(--space-6); margin: 0 0 var(--space-2); }330.verdict li::before { position: absolute; left: 0; font: var(--fw-strong) var(--text-md) var(--sans); }331.verdict .yes li::before { content: "✓"; color: var(--pass); }332.verdict .no li::before { content: "✗"; color: var(--fail); }333@media (min-width: 720px) { .verdict { grid-template-columns: 1fr 1fr; } }334335/* fig: from ref to hostname */336.chain { list-style: none; margin: 0; padding: 0; }337.chain li { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-half) var(--space-3); align-items: baseline; }338.chain .k { font-family: var(--sans); font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--muted); }339/* values break only where they have <wbr>, never at a hyphen */340.chain .v { font-family: var(--mono); font-size: var(--text-code); background: var(--raised); border: var(--hairline) solid var(--border-strong); padding: 6px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }341.chain .v small { display: block; white-space: normal; font-family: var(--sans); font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-half); }342.chain .hop { min-height: 34px; }343.chain .hop span { grid-column: -2; position: relative; padding: 6px 0 6px 26px; font-family: var(--sans); font-size: var(--text-xs); color: var(--muted); }344.chain .hop span::before { content: ""; position: absolute; left: 11px; top: 0; bottom: 0; border-left: 2px solid var(--accent); }345.chain .hop span::after { content: ""; position: absolute; left: 7px; bottom: 0; border: 5px solid transparent; border-top: 6px solid var(--accent); border-bottom: 0; }346.chain .hop.up span::after { bottom: auto; top: 0; border-top: 0; border-bottom: 6px solid var(--accent); }347@media (min-width: 480px) {348 .chain li { grid-template-columns: 76px minmax(0, 1fr); }349 .chain .k { text-align: right; }350}351.split { display: grid; gap: 18px; }352@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 28px; } }353.split > .prose { font-size: var(--text-md); }354355/* tables: no outer box, rows between hairlines, headers small and muted */356.table { overflow-x: auto; margin: 18px 0 var(--space-6); border-top: var(--hairline) solid var(--border); border-bottom: var(--hairline) solid var(--border); }357table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: var(--text-sm); line-height: 1.5; }358th, td { text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3); border-bottom: var(--hairline) solid var(--border); }359th:first-child, td:first-child { padding-left: 0; }360tr:last-child > * { border-bottom: 0; }361thead th { font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--muted); padding-top: var(--space-3); padding-bottom: var(--space-1); }362tbody th { font-weight: var(--fw-medium); }363td.y::before { content: "✓ "; font-weight: var(--fw-strong); color: var(--pass); }364td.n::before { content: "✗ "; font-weight: var(--fw-strong); color: var(--fail); }365td.n { color: var(--muted); }366td code, th code { font-size: var(--text-code); white-space: normal; }367/* code that never breaks at its hyphens, only where it has <wbr> */368table.whole code { white-space: nowrap; }369@media (max-width: 719px) { th, td { padding: var(--space-2) var(--space-2); } }370/* tables marked .rows restack on phones: the first cell on its own line,371 then the rest, labelled from data-l when there is more than one */372@media (max-width: 719px) {373 table.rows thead { display: none; }374 table.rows tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: var(--hairline) solid var(--border); }375 table.rows tr:last-child { border-bottom: 0; }376 table.rows th, table.rows td { border: 0; padding-left: 0; }377 table.rows tr > :first-child { grid-column: 1 / -1; padding-bottom: 0; }378 table.rows td:not([data-l]):not(:first-child) { grid-column: 1 / -1; padding-top: 3px; }379 table.rows td[data-l] { position: relative; padding-top: var(--space-6); }380 table.rows td[data-l]::after { content: attr(data-l); position: absolute; left: 0; top: 6px; font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--muted); }381 .panel table.rows tr { padding: 0 var(--space-3); }382 table.rows.three tr { grid-template-columns: 1fr 1fr 1fr; }383 .panel table.rows :is(th, td) { padding-left: 0; padding-right: 0; }384}385386/* fig: one key, two generated files */387.fan { display: grid; gap: var(--space-3); }388.fan .file { display: block; font-family: var(--mono); font-size: var(--text-xs); font-weight: var(--fw-strong); color: var(--fg); margin-bottom: var(--space-1); }389.fan .box { background: var(--raised); border: var(--hairline) solid var(--border-strong); padding: 10px var(--space-3); }390.fan .box > code { display: block; font-size: var(--text-code); line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }391.fan .box p { margin: 6px 0 0; font-size: var(--text-sm); color: var(--muted); }392.fan .by { font-family: var(--mono); font-size: var(--text-xs); color: var(--muted); display: flex; align-items: center; gap: 10px; }393.fan .by::before, .fan .by::after { content: ""; flex: 1; border-top: 2px solid var(--accent); }394.fan .outs { display: grid; gap: var(--space-3); }395@media (min-width: 900px) { .fan .outs { grid-template-columns: 1fr 1fr; } }396397/* fig: hosting */398.hosts { display: grid; gap: 18px; margin: var(--space-5) 0 var(--space-6); }399@media (min-width: 900px) { .hosts { grid-template-columns: 1.25fr 1fr; } }400.hosts figure { margin: 0; }401.hops { list-style: none; margin: 0; padding: 0; }402.hops .node { background: var(--raised); border: var(--hairline) solid var(--border-strong); padding: 10px var(--space-3); }403.hops .node b { display: block; font-family: var(--sans); font-size: var(--text-md); font-weight: var(--fw-strong); }404.hops .node span { display: block; font-size: var(--text-md); color: var(--muted); line-height: 1.5; margin-top: var(--space-half); }405.hops .node.home { border-color: var(--accent); border-left-width: var(--bar); }406.hops .node ul { margin: var(--space-2) 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }407.hops .node ul li { font-family: var(--mono); font-size: var(--text-xs); border: var(--hairline) solid var(--border-strong); padding: 0 6px; color: var(--fg); }408.hops .wire { position: relative; padding: var(--space-2) 0 var(--space-2) 34px; font-family: var(--sans); font-size: var(--text-xs); color: var(--muted); }409.hops .wire::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; border-left: 2px solid var(--accent); }410.hops .wire.tunnel::before { border-left: 6px double var(--accent); left: 16px; }411412/* cheat sheet: groups under a strong rule, entries between hairlines; in413 panels, each group's name is its head strip */414.cheat { display: grid; gap: var(--space-6) var(--space-8); }415@media (min-width: 900px) { .cheat { grid-template-columns: 1fr 1fr; } }416.cheat section { border-top: var(--hairline) solid var(--border-strong); }417.cheat h3 { margin: 0; padding: var(--space-2) 0 var(--space-1); font-size: var(--text-sm); font-weight: var(--fw-strong); color: var(--muted); }418.cheat dl { margin: 0; }419.cheat dl > div { padding: var(--space-2) 0; border-bottom: var(--hairline) solid var(--border); }420.cheat.panels { gap: var(--space-4); align-items: start; }421.cheat section.panel { margin: 0; border-top: var(--hairline) solid var(--border); }422.cheat h3.panel-head { padding: var(--space-2) var(--space-3); font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--fg); }423.cheat .panel dl > div { padding: var(--space-2) var(--space-3); }424.cheat dl > div:last-child { border-bottom: 0; }425.cheat dt { font-family: var(--mono); font-size: var(--text-code); line-height: 1.5; overflow-wrap: anywhere; }426.cheat dt::before { content: "$ "; color: var(--link); }427.cheat dt.nop::before { content: ""; }428.cheat dd { margin: var(--space-half) 0 0; font-size: var(--text-md); color: var(--muted); line-height: 1.5; }429430/* not yet: a list between hairlines */431.gaps { list-style: none; padding: 0; max-width: 41rem; border-bottom: var(--hairline) solid var(--border); }432.gaps li { border-top: var(--hairline) solid var(--border); padding: 10px 0; }433434/* files and trees */435.tree { margin: 0; font-size: var(--text-code); line-height: 1.6; white-space: pre; overflow-x: auto; background: var(--raised); border: var(--hairline) solid var(--border); padding: var(--space-3) 14px; }436.tree .c { color: var(--muted); }437@media (max-width: 719px) { .tree .c { display: block; white-space: pre-wrap; padding-left: 3.2em; } }438.tree .d { color: var(--fg); font-weight: var(--fw-strong); }439440footer.end { border-top: var(--hairline) solid var(--border); padding: var(--space-6) 0 var(--space-10); font-family: var(--sans); font-size: var(--text-sm); color: var(--muted); }441footer.end .wrap { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); align-items: center; }442footer.end .mark { width: 20px; height: 20px; color: var(--fg); }443footer.end p { margin: 0; }444445/* the internals page: a shorter hero */446.hero.short { padding: var(--space-8) 0 var(--space-8); }447.hero.short .lede { max-width: 40rem; }448@media (min-width: 900px) { .hero.short { padding: 56px 0 48px; } .hero.short .wrap { grid-template-columns: 1fr; } }449450/* settings: groups of names and what they do */451.cheat.keys dt::before { content: none; }