@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/plex-mono-400.woff?v=6316bcf9e2") format("woff")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/plex-mono-500.woff?v=6dc61fa87c") format("woff")}
@font-face{font-family:"Plex fallback";src:local("Menlo"),local("Consolas"),local("DejaVu Sans Mono");size-adjust:99.7%;ascent-override:102.8%;descent-override:27.6%;line-gap-override:0%}
:root{--bg:#0B0A08;--raise:#15130F;--line:#3A3428;--dim:#968B78;--fg:#ECE6D9;--accent:#FFB23E;--hot:#FFE3AD;--live:#7FD99A;--m-mark:#FFB23E;--m-unlit:#3A2810;--m-lit:#FFE3AD;--m-name:#ECE6D9;color-scheme:dark}
@media (prefers-color-scheme: light){:root{--bg:#F4F1EA;--raise:#EBE7DD;--line:#CFC7B6;--dim:#675E50;--fg:#17140F;--accent:#9A5700;--hot:#C27000;--live:#21773D;--m-mark:#C27000;--m-unlit:#EADBC0;--m-lit:#17140F;--m-name:#17140F;color-scheme:light}}
/* rubixlabs.xyz. Colour tokens and @font-face are written above this by tools/build.mjs from src/brand/tokens.json
   (the RLabs brand kit, design/rubixlabs/rlabs). Pieces follow the kit's components section. */

:root {
  --mono: "IBM Plex Mono", "Plex fallback", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 32px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--mono); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
code { font: inherit; font-size: 14px; }
.wrap { max-width: calc(72ch + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.dim { color: var(--dim); }
.small { font-size: 14px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 2; background: var(--bg); padding: 4px 1ch; }

/* the bar */
.bar { border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2ch; min-height: 48px; flex-wrap: wrap; }
.bar .me { display: flex; align-items: center; gap: 1ch; color: var(--fg); text-decoration: none; font-weight: 500; min-height: 44px; }
.bar .me .mk { width: 18px; height: 18px; }
.bar nav { display: flex; gap: 2ch; font-size: 14px; }
.bar nav a { color: var(--dim); text-decoration: none; padding-block: 12px; }
.bar nav a:hover { color: var(--fg); }

/* the mark, inline: colours follow the theme */
.mk { display: block; }
.mk .mark { fill: var(--m-mark); }
.mk .unlit { fill: var(--m-unlit); }
.mk .lit { fill: var(--m-lit); }

/* the hub's head: the lockup, the light sweeping across the name once */
.head { padding-block: 56px 8px; }
.lockup { --h: clamp(52px, 15vw, 112px); display: flex; align-items: flex-end; gap: calc(var(--h) / 3); height: var(--h); }
.lockup .mk { height: 100%; width: auto; aspect-ratio: 1; }
.sweep {
  height: 100%; aspect-ratio: 37 / 12;
  background: linear-gradient(100deg, var(--m-name) 0 40%, var(--hot) 48%, var(--accent) 50%, var(--hot) 52%, var(--m-name) 60% 100%);
  background-size: 300% 100%; background-position: 0 0;
  -webkit-mask: url("/brand/wordmark.svg") 0 0 / 100% 100% no-repeat; mask: url("/brand/wordmark.svg") 0 0 / 100% 100% no-repeat;
  animation: sweep 2.4s var(--ease) .25s 1 both;
}
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sweep { animation: none; } }
h1 { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 500; }
.head h1 { margin-top: 28px; }
.lead { font-size: 20px; color: var(--dim); }

/* other pages' heads */
.crumbs { margin-top: 32px; font-size: 14px; color: var(--dim); }
.crumbs a { color: var(--dim); }
.page-head { padding-block: 20px 0; }
.page-head .lead { margin-top: 4px; max-width: 60ch; }
.page-head .meta { margin-top: 16px; font-size: 14px; color: var(--dim); display: flex; flex-wrap: wrap; gap: .5ch 2ch; align-items: baseline; }

/* tiles: a 1px frame with its name cut into the top edge. The frame turns amber while you're in it */
.tile { position: relative; border: 1px solid var(--line); padding: 28px clamp(14px, 3vw, 24px) 20px; margin-top: 44px; transition: border-color .15s; }
.tile:hover, .tile:focus-within { border-color: var(--accent); }
.tile > h2 { position: absolute; top: -.8em; left: calc(clamp(14px, 3vw, 24px) - 1ch); margin: 0; padding: 0 1ch; background: var(--bg); font-size: 14px; line-height: 1.6; font-weight: 500; color: var(--accent); }
.tile > p { max-width: 72ch; }
.tile > p + p { margin-top: 12px; }

/* a row: the whole row is the link; the lit cell marks the row you're on */
.row { position: relative; display: grid; grid-template-columns: minmax(0, 22ch) minmax(0, 1fr) auto; gap: 2px 2ch; align-items: baseline; padding: 10px 1ch 10px 2.5ch; margin-inline: -1ch; min-height: 44px; color: var(--fg); text-decoration: none; }
.row + .row { border-top: 1px solid var(--line); }
.row .n { font-weight: 500; }
.row .u { color: var(--dim); font-size: 14px; overflow-wrap: anywhere; }
.row .l { grid-column: 1 / -1; color: var(--dim); font-size: 14px; }
.row::before { content: ""; position: absolute; left: .6ch; top: 1.05em; width: .6em; height: .6em; background: var(--accent); opacity: 0; }
.row:hover, .row:focus-visible { background: var(--raise); outline: none; }
.row:hover::before, .row:focus-visible::before { opacity: 1; }
@media (max-width: 560px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row .u { grid-column: 1 / -1; grid-row: 2; }
  .row .l { grid-row: 3; }
}

/* status: the lit cell as a square of colour */
.st { font-size: 14px; white-space: nowrap; }
.st::before { content: ""; display: inline-block; width: .6em; height: .6em; background: currentColor; margin-right: .8ch; vertical-align: .02em; }
.st.live { color: var(--live); }
.st.beta { color: var(--accent); }
.st.soon { color: var(--dim); }

/* lists of label and value: details, commands, contact */
dl.kv { display: grid; grid-template-columns: minmax(8ch, max-content) minmax(0, 1fr); gap: 8px 3ch; }
dl.kv dt { color: var(--dim); }
dl.kv dd { margin: 0; }
dl.kv.cmds dt { color: var(--fg); }
@media (max-width: 480px) { dl.kv { grid-template-columns: minmax(0, 1fr); gap: 0; } dl.kv dd { margin-bottom: 10px; } }
ul.alerts { padding: 0; list-style: none; display: grid; gap: 12px; }
ul.alerts li { display: grid; gap: 2px; }
ul.alerts .k { font-size: 14px; color: var(--dim); }
.tile .note { margin-top: 16px; font-size: 14px; color: var(--dim); }

/* long text */
.prose { margin-top: 44px; max-width: 72ch; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 44px; font-size: 20px; line-height: 1.4; font-weight: 500; }
.prose h3 { margin-top: 32px; font-size: 16px; line-height: 1.5; font-weight: 500; }
.prose h4 { margin-top: 24px; font-size: 16px; font-weight: 500; color: var(--dim); }
.prose h2 + *, .prose h3 + * { margin-top: 10px; }
.prose ul, .prose ol { padding-left: 3ch; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: "›"; position: absolute; left: -2ch; color: var(--dim); }
.prose li + li { margin-top: 6px; }
.prose ol > li::marker { color: var(--dim); }
.prose strong { font-weight: 500; }
.prose code { background: var(--raise); padding: 1px .5ch; }
.prose pre { background: var(--raise); border: 1px solid var(--line); padding: 14px 2ch; overflow-x: auto; font-size: 14px; line-height: 1.5; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { border-left: 2px solid var(--line); padding-left: 2ch; color: var(--dim); }
.prose .tbl { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 2ch 8px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 500; color: var(--dim); }
.prose td:first-child { white-space: nowrap; }

/* the foot: contact on every page */
.foot { margin-top: 56px; padding-bottom: 40px; }
.foot .tile { margin-top: 0; }
.foot .copy { margin-top: 20px; font-size: 14px; color: var(--dim); }

.notfound { padding-block: 56px 0; }
.notfound p { margin-top: 12px; }
