Files
kuentagym/website/styles.css
T
Duarte Santos 75fb168a03 website: the Discord member count next to the star count
The nav has advertised the repo's stars since the GitLab move but said nothing about
the community, which is by now the larger number of the two. Both links now carry
their count: GitLab ★ 185, Discord 1,084.

Discord hands an invite's guild counts to anyone who appends ?with_counts=1 — no bot
token, no server widget to switch on, and the API reflects the caller's Origin, so the
browser may read it. The count is fetched exactly like the repo counts: once per tab,
cached in sessionStorage, and failing soft — a blocked or revoked request leaves the
link reading "Discord", the way it read before.

The numbers panel on the home page gains a sixth cell for it and loses the "repo" in
its caption, since the counts are no longer all from the repo. Six cells divide evenly
where five left a hole, so the row that used to span the full width at the narrow
breakpoint goes away: six, then three, then two.
2026-08-31 18:28:50 +02:00

915 lines
39 KiB
CSS

/* openGym project site.
Dark on purpose: the app is pure black with a green accent, and a light site in
front of it would be a different product. Everything here is hand-written — no
framework, no build step, one stylesheet for all three pages. */
:root {
--bg: #000;
--surface: #0e0f11;
--surface-2: #17181b;
--hair: rgba(255, 255, 255, .11);
--hair-soft: rgba(255, 255, 255, .06);
--fg: #f5f5f7;
--fg-2: #a1a1a6;
--fg-3: #7d7d85; /* >=4.5:1 on every panel — WCAG AA for small text */
--acc: #32d74b;
--acc-ink: #04150a;
--acc-soft: rgba(50, 215, 75, .13);
--r-s: 12px;
--r-m: 20px;
--r-l: 28px;
--max: 1120px;
--pad: clamp(20px, 5vw, 34px);
--sec: clamp(76px, 11vw, 136px);
--ease: cubic-bezier(.16, 1, .3, 1);
color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
scroll-behavior: smooth;
scroll-padding-top: 72px;
-webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
background: var(--bg);
color: var(--fg);
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
Helvetica, Arial, sans-serif;
font-size: 17px;
line-height: 1.55;
letter-spacing: -.01em;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
/* Notched phones: the sticky bar and full-bleed rows must not sit under the cutout. */
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
}
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; }
::selection { background: rgba(50, 215, 75, .3); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
/* ---------------------------------------------------------------- type scale */
h1, h2, h3 { font-weight: 600; letter-spacing: -.03em; line-height: 1.07; }
h1 { font-size: clamp(42px, 8.4vw, 82px); letter-spacing: -.04em; line-height: 1.02; }
h2 { font-size: clamp(30px, 5.4vw, 50px); }
h3 { font-size: clamp(19px, 2.3vw, 21px); letter-spacing: -.02em; line-height: 1.25; }
.eyebrow {
color: var(--acc);
font-size: 14px; font-weight: 600; letter-spacing: .01em;
margin-bottom: 12px;
}
.lead {
color: var(--fg-2);
font-size: clamp(17px, 2.1vw, 21px);
line-height: 1.5;
letter-spacing: -.015em;
max-width: 44ch;
margin-top: 18px;
}
/* ------------------------------------------------------------------ buttons */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
min-height: 46px; padding: 12px 24px; border-radius: 999px;
background: var(--acc); color: var(--acc-ink);
font-size: 16px; font-weight: 600; letter-spacing: -.01em;
border: 1px solid transparent;
transition: transform .25s var(--ease), background-color .25s var(--ease),
border-color .25s var(--ease);
}
.btn:hover { text-decoration: none; background: #4ade63; }
.btn:active { transform: scale(.975); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--hair); }
.btn.ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); }
.btn .ct {
font-variant-numeric: tabular-nums; font-weight: 500;
padding: 1px 8px; border-radius: 999px; font-size: 13.5px;
background: rgba(0, 0, 0, .16);
}
.btn.ghost .ct { background: rgba(255, 255, 255, .09); }
/* Text link with a chevron — the quieter half of a button pair. */
.link {
display: inline-flex; align-items: center; gap: 5px;
font-size: 16.5px; font-weight: 500; color: var(--acc);
min-height: 46px;
}
.link:hover { text-decoration: none; }
.link::after {
content: ""; width: 6px; height: 6px; margin-top: -1px;
border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
transform: rotate(-45deg);
transition: transform .25s var(--ease);
}
.link:hover::after { transform: rotate(-45deg) translate(2px, 2px); }
.actions { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
/* ----------------------------------------------------------------- nav bar */
/* The bar is the one fixed point of the site: the same links in the same order on
every page, and nothing ever slides out of it. It therefore outranks the
navigation sheet, the contents drawer and their scrim — none of them may cover
it, so a reader always knows where they are and how to get out. */
nav {
position: sticky; top: 0; z-index: 90;
background: rgba(0, 0, 0, .68);
backdrop-filter: saturate(180%) blur(20px);
-webkit-backdrop-filter: saturate(180%) blur(20px);
border-bottom: 1px solid var(--hair-soft);
}
.nav-in { display: flex; align-items: center; height: 54px; gap: 16px; }
.brand {
display: flex; align-items: center; gap: 9px;
align-self: stretch; /* the whole bar height is the tap target */
font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--fg);
margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
/* One header, everywhere. Every page carries this identical set of links in this
identical order; which page you are on is marked at runtime with aria-current,
never by adding or dropping links. Below 1000px they fold into the navigation
sheet — the same links again, nothing lost. */
.nav-quick { display: flex; align-items: center; gap: 20px; }
.nav-quick .ql {
color: var(--fg-2); font-size: 14px; font-weight: 400; letter-spacing: 0;
transition: color .2s var(--ease);
}
.nav-quick .ql:hover { color: var(--fg); text-decoration: none; }
.nav-quick .ql [data-gh], .nav-quick .ql [data-dc] { font-variant-numeric: tabular-nums; color: var(--fg-3); }
.nav-quick .ql:hover [data-gh], .nav-quick .ql:hover [data-dc] { color: var(--fg-2); }
.nav-quick .cta {
color: var(--acc-ink); background: var(--acc); font-weight: 600; font-size: 14px;
padding: 7px 15px; border-radius: 999px;
}
.nav-quick .cta:hover { background: #4ade63; text-decoration: none; }
.nav-quick .ql[aria-current="page"] { color: var(--fg); }
.nav-toggle {
display: none;
position: relative;
width: 44px; height: 44px; margin-right: -11px;
align-items: center; justify-content: center;
border-radius: 10px; cursor: pointer;
}
/* One breakpoint for the whole header: above it the links are in the bar, below it
they are in the sheet. No page has a second answer. Placed after .nav-toggle's
own rule — same specificity, so the later one has to be the one that wins. */
@media (max-width: 999.98px) {
.nav-quick .ql { display: none; }
.nav-toggle { display: flex; }
}
.nav-toggle span {
position: absolute; width: 18px; height: 1.5px; border-radius: 2px; background: var(--fg);
transition: transform .3s var(--ease);
}
.nav-toggle span:first-child { transform: translateY(-3.5px); }
.nav-toggle span:last-child { transform: translateY(3.5px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
/* ------------------------------------------------------- navigation sheet
The header's links, for the widths where the bar shows only the brand and the
download. Same links, same order — the sheet is the bar, folded. It drops from
under the bar, and the hamburger it came from turns into the ✕ that closes it. */
.navsheet {
position: fixed; left: 0; right: 0; top: 54px; z-index: 80;
padding: 12px var(--pad) calc(20px + env(safe-area-inset-bottom));
background: #000;
border-bottom: 1px solid var(--hair-soft);
box-shadow: 0 30px 60px rgba(0, 0, 0, .8);
max-height: calc(100dvh - 54px); overflow-y: auto; overscroll-behavior: contain;
transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
/* visibility is switched at one instant, never interpolated: transitioning it
leaves the panel hidden through its own opening animation — it would pop in
at the end, and nothing inside it could take focus until then. Zero delay on
the way in, the full duration on the way out. */
transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s linear .28s;
}
body.menu-open .navsheet {
transform: none; opacity: 1; visibility: visible; pointer-events: auto;
transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s;
}
@media (min-width: 1000px) { .navsheet { display: none; } }
/* A row per link, comfortably past the 44px touch target. */
.navsheet .nl {
display: flex; align-items: center; justify-content: space-between; gap: 16px;
min-height: 52px; padding: 0 12px; margin: 0 -12px; border-radius: 12px;
color: var(--fg); font-size: 17px; font-weight: 500; letter-spacing: -.02em;
border-bottom: 1px solid var(--hair-soft);
transition: background-color .2s var(--ease);
}
.navsheet .nl:last-of-type { border-bottom: 0; }
.navsheet .nl:hover { text-decoration: none; background: rgba(255, 255, 255, .05); }
.navsheet .nl[aria-current="page"] { color: var(--acc); }
.navsheet .nl [data-gh], .navsheet .nl [data-dc] { color: var(--fg-3); font-size: 14px; font-variant-numeric: tabular-nums; }
/* No second Download button in here: the bar keeps its own at every width, a
finger-width above, and two identical green calls to action is one too many. */
/* -------------------------------------------------------- contents drawer
Every page that has one gets the same one: closed on load, at every width,
with no remembered state. The Contents pill opens it; the ✕ inside it, Escape,
or a tap on the dimmed page closes it. Nothing else opens or closes it. */
.toc-btn {
position: fixed; z-index: 62;
left: max(16px, env(safe-area-inset-left));
bottom: max(16px, env(safe-area-inset-bottom));
display: inline-flex; align-items: center; gap: 9px;
min-height: 44px; padding: 0 19px 0 16px; border-radius: 999px; cursor: pointer;
/* Opaque enough to read against running text on its own, so the pill still works
where backdrop-filter does not. */
background: rgba(20, 21, 24, .94);
backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
border: 1px solid var(--hair);
color: var(--fg-2); font-size: 14px; font-weight: 500; letter-spacing: -.01em;
box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
transition: color .2s var(--ease), background-color .2s var(--ease),
border-color .2s var(--ease), opacity .2s var(--ease);
}
.toc-btn:hover { color: var(--fg); border-color: rgba(255, 255, 255, .25); background: rgba(32, 33, 37, .92); }
.toc-btn svg { width: 16px; height: 16px; }
/* The pill steps aside whenever a panel is up: with the drawer open the ✕ inside it
is the control, and under the navigation sheet it is just a shape behind glass. */
body.contents-open .toc-btn, body.menu-open .toc-btn { opacity: 0; pointer-events: none; }
.side {
position: fixed; left: 0; top: 54px; bottom: 0; z-index: 80;
width: min(340px, 88vw);
padding: 0 24px calc(30px + env(safe-area-inset-bottom)) calc(24px + env(safe-area-inset-left));
background: #0a0b0c;
border-right: 1px solid var(--hair-soft);
box-shadow: 40px 0 80px rgba(0, 0, 0, .5);
overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
transform: translateX(-102%); visibility: hidden;
/* Same one-instant switch as the sheet above, for the same two reasons. */
transition: transform .32s var(--ease), visibility 0s linear .32s;
}
body.contents-open .side {
transform: none; visibility: visible;
transition: transform .32s var(--ease), visibility 0s;
}
/* The close button rides along at the top of a long chapter list, so it is never
more than a glance away. */
.side-top {
position: sticky; top: 0; z-index: 1;
display: flex; align-items: center; justify-content: space-between;
margin: 0 -24px 8px calc(-24px - env(safe-area-inset-left));
padding: 12px 14px 12px calc(24px + env(safe-area-inset-left));
background: #0a0b0c;
border-bottom: 1px solid var(--hair-soft);
}
.side-title { font-size: 15px; font-weight: 600; letter-spacing: -.02em; color: var(--fg); }
.rail-close {
flex: none;
display: flex; align-items: center; justify-content: center;
width: 44px; height: 44px; margin: -6px -8px -6px 0;
border-radius: 11px; color: var(--fg-2); cursor: pointer;
transition: color .2s var(--ease), background-color .2s var(--ease);
}
.rail-close:hover { color: var(--fg); background: rgba(255, 255, 255, .07); }
.rail-close svg { width: 17px; height: 17px; }
/* Whatever the sheet or the drawer does not cover is dimmed, so the page behind
stops competing for attention and a tap out there reads as "close". It starts
below the bar: the header stays legible whatever is open. */
body::after {
content: ""; position: fixed; inset: 54px 0 0; z-index: 70;
background: rgba(0, 0, 0, .55);
backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
opacity: 0; pointer-events: none;
transition: opacity .3s var(--ease);
}
body.menu-open::after, body.contents-open::after { opacity: 1; pointer-events: auto; }
/* The panels still open and close, they just stop travelling. The delay has to go
with the duration: it is what holds visibility back until a slide has finished,
and there is no slide left to wait for. */
@media (prefers-reduced-motion: reduce) {
.side, .navsheet, .toc-btn, body::after {
transition-duration: .01ms !important;
transition-delay: 0s !important;
}
}
/* --------------------------------------------------------------- rail contents
One list per page — a title with a one-line subtitle per topic. */
.side-label {
font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
color: var(--fg-3);
margin: 28px 0 8px;
}
.side-label:first-child { margin-top: 0; }
.side-link {
display: flex; flex-direction: column; justify-content: center;
min-height: 44px; /* a chapter without a subtitle is still tappable */
padding: 8px 12px; margin: 0 -12px; border-radius: 10px;
color: var(--fg);
transition: background-color .2s var(--ease);
}
.side-link:hover { text-decoration: none; background: rgba(255, 255, 255, .05); }
.side-link b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.015em; }
.side-link span {
display: block; color: var(--fg-3); font-size: 12.5px; line-height: 1.4; margin-top: 2px;
}
/* Scrollspy: the section under the reader, and on the other pages the page itself. */
.side-link.on, .side-link[aria-current="page"] { background: rgba(255, 255, 255, .045); }
.side-link.on b, .side-link[aria-current="page"] b { color: var(--acc); }
/* A wide sheet with one narrow column of links looks abandoned; two columns fill it. */
@media (min-width: 640px) and (max-width: 999.98px) {
.navsheet .nl { border-bottom: 0; }
.navsheet .nl-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
}
/* --------------------------------------------------------------------- hero */
.hero { padding: clamp(52px, 9vw, 96px) 0 0; text-align: center; overflow: hidden; }
.hero .eyebrow { color: var(--fg-2); font-weight: 500; letter-spacing: -.01em; }
.hero h1 { margin: 0 auto; max-width: 13ch; }
.hero h1 span { display: block; color: var(--fg-3); }
.hero .lead { margin: 22px auto 0; max-width: 50ch; text-wrap: balance; }
.hero .actions { justify-content: center; margin-top: 30px; }
/* The screenshot is cut off at the bottom and dissolved into the page, rather than
sitting in a box: it reads as the app continuing past the fold, and it keeps the
fold itself short enough that the first section is one flick away. */
.hero-stage {
position: relative;
margin: clamp(34px, 6vw, 56px) auto 0;
width: min(300px, 68vw);
}
.hero-stage::before {
content: ""; position: absolute; inset: -12% -46% 14%;
background: radial-gradient(closest-side, rgba(50, 215, 75, .2), transparent 72%);
filter: blur(10px); pointer-events: none;
}
.hero-stage .device {
position: relative;
padding-bottom: 0; border-radius: 42px 42px 0 0;
}
.hero-stage .device > img {
height: clamp(300px, 44vh, 500px);
object-fit: cover; object-position: top center;
border-radius: 34px 34px 0 0;
}
.hero-fade {
position: relative; z-index: 2;
height: clamp(80px, 12vw, 130px);
margin-top: clamp(-130px, -12vw, -80px);
background: linear-gradient(180deg, transparent, var(--bg) 78%);
}
/* ------------------------------------------------------------ device frame */
.device {
padding: 9px; border-radius: 42px;
background: linear-gradient(155deg, #34363b, #17181b 42%, #0a0b0c 100%);
box-shadow: 0 40px 90px -28px rgba(0, 0, 0, .95),
inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.device > img, .device > iframe, .device > .device-slot {
width: 100%; border: 0; border-radius: 34px; background: #000; display: block;
}
/* --------------------------------------------------------------- sections */
section { padding: var(--sec) 0 0; }
.sec-head { max-width: 46ch; }
.sec-head h2 { text-wrap: balance; }
/* ------------------------------------------------------- feature bento grid */
.bento {
display: grid; gap: 12px; margin-top: clamp(34px, 5vw, 52px);
grid-template-columns: repeat(6, 1fr);
}
.tile {
grid-column: span 2;
background: var(--surface);
border: 1px solid var(--hair-soft);
border-radius: var(--r-m);
padding: clamp(22px, 2.6vw, 30px);
transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.tile:hover { border-color: var(--hair); background: #121316; }
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; }
.tile .ic {
width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px;
display: flex; align-items: center; justify-content: center;
background: var(--acc-soft); color: var(--acc);
}
.tile .ic svg { width: 21px; height: 21px; }
.tile h3 { margin-bottom: 7px; }
.tile p { color: var(--fg-2); font-size: 15px; line-height: 1.5; }
.tile p b { color: var(--fg); font-weight: 600; }
/* The three muscle-map readings, inside the wide tile. */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.trio div {
background: rgba(255, 255, 255, .035); border-radius: var(--r-s);
padding: 12px 13px; font-size: 13.5px; color: var(--fg-2); line-height: 1.4;
}
.trio b { display: block; color: var(--fg); font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
@media (max-width: 900px) {
.bento { grid-template-columns: repeat(4, 1fr); }
.tile, .tile.wide { grid-column: span 2; }
.tile.full { grid-column: span 4; }
}
@media (max-width: 620px) {
.bento { grid-template-columns: 1fr; gap: 10px; }
.tile, .tile.wide, .tile.full { grid-column: auto; }
.trio { grid-template-columns: 1fr; gap: 8px; }
}
/* ------------------------------------------------ the rest, as a plain list */
.more { margin-top: clamp(46px, 6vw, 70px); }
.more > h3 {
font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
color: var(--fg-3); padding-bottom: 14px; border-bottom: 1px solid var(--hair-soft);
}
.more dl {
display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
column-gap: clamp(28px, 5vw, 68px);
}
.more dl > div { padding: 20px 0; border-bottom: 1px solid var(--hair-soft); }
.more dt { font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 5px; }
.more dd { margin: 0; color: var(--fg-2); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 720px) { .more dl { grid-template-columns: 1fr; } }
/* -------------------------------------------------------- screenshot rail */
.bleed { margin-top: clamp(30px, 4.5vw, 46px); }
.rail {
display: flex; gap: clamp(12px, 2.4vw, 22px);
overflow-x: auto; scroll-snap-type: x mandatory;
/* Line the first card up with the text above it: the gutter is half the leftover width
PLUS the wrap's own padding. Using 100% rather than 100vw keeps the scrollbar out of
the sum, which would otherwise push the rail a few pixels off. */
padding: 4px max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))) 6px;
scrollbar-width: none;
overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail figure { flex: 0 0 auto; width: clamp(200px, 56vw, 250px); scroll-snap-align: center; }
.rail .device { padding: 7px; border-radius: 34px; }
.rail .device > img { border-radius: 27px; }
.rail figcaption {
color: var(--fg-3); font-size: 13.5px; text-align: center; margin-top: 12px;
letter-spacing: 0;
}
.rail-hint { color: var(--fg-3); font-size: 13.5px; margin-top: 14px; }
/* ---------------------------------------------------------------- the demo */
.demo-stage { display: flex; justify-content: center; margin-top: clamp(30px, 5vw, 46px); }
.demo-stage .device { width: 392px; max-width: 100%; }
.demo-stage .device-slot { height: min(720px, 74vh); }
.demo-note { text-align: center; color: var(--fg-3); font-size: 14px; margin-top: 18px; }
/* Below this width the framed iframe is a phone inside a phone: not worth the
megabytes. site.js only injects the iframe when the frame is actually shown. */
.demo-card {
display: none;
background: var(--surface); border: 1px solid var(--hair-soft);
border-radius: var(--r-m); padding: 26px 22px; text-align: center;
margin-top: 30px;
}
.demo-card p { color: var(--fg-2); font-size: 15px; margin-bottom: 20px; }
.demo-card .btn { width: 100%; }
@media (max-width: 700px) {
/* The note belongs to the framed demo; the card below repeats what it needs to say. */
.demo-stage, .demo-note { display: none; }
.demo-card { display: block; }
}
/* ------------------------------------------------------------ two flavours */
.duo {
display: grid; gap: 12px; margin-top: clamp(34px, 5vw, 50px);
grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.card {
display: flex; flex-direction: column;
background: var(--surface); border: 1px solid var(--hair-soft);
border-radius: var(--r-l); padding: clamp(24px, 3.2vw, 34px);
}
.card.hl { border-color: rgba(50, 215, 75, .32); background: linear-gradient(180deg, rgba(50, 215, 75, .05), transparent 55%), var(--surface); }
.card .ic { width: 38px; height: 38px; color: var(--acc); margin-bottom: 16px; }
.card .ic svg { width: 100%; height: 100%; }
.card h3 { font-size: clamp(21px, 2.6vw, 25px); }
.card .for { color: var(--fg-3); font-size: 14.5px; margin: 6px 0 20px; }
.card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.card li {
position: relative; padding: 7px 0 7px 27px;
font-size: 15px; color: var(--fg-2); line-height: 1.45;
}
.card li::before {
content: ""; position: absolute; left: 2px; top: 13px;
width: 10px; height: 5.5px; border-left: 1.8px solid var(--acc); border-bottom: 1.8px solid var(--acc);
transform: rotate(-45deg);
}
.card li.no::before {
border: 0; border-top: 1.6px solid var(--fg-3); width: 11px; height: 0;
transform: none; top: 16px;
}
.card .btn { width: 100%; }
.card .meta { font-size: 13px; color: var(--fg-3); line-height: 1.5; margin-top: 14px; }
.card .meta a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 2px; }
.card .meta + .meta { margin-top: 8px; }
.card .push { margin-top: auto; }
/* ---------------------------------------------------------------- the story */
.story { max-width: 900px; }
.story blockquote {
font-size: clamp(24px, 4vw, 40px); font-weight: 500;
line-height: 1.22; letter-spacing: -.03em; text-wrap: balance;
color: var(--fg-2);
}
.story blockquote b { color: var(--fg); font-weight: 500; }
.story .who { color: var(--fg-3); font-size: 15px; margin-top: 26px; }
.story .who a { color: var(--acc); display: inline-block; padding: 8px 0; }
/* --------------------------------------------------------- open source rail */
.specs {
margin-top: clamp(34px, 5vw, 48px);
border: 1px solid var(--hair-soft); border-radius: var(--r-m);
background: var(--surface); overflow: hidden;
}
.spec-head {
display: flex; align-items: center; gap: 10px;
padding: 15px clamp(18px, 2.4vw, 24px);
border-bottom: 1px solid var(--hair-soft);
font-size: 13.5px; color: var(--fg-2); letter-spacing: 0;
}
.spec-head .live {
display: inline-flex; align-items: center; gap: 7px;
margin-left: auto; color: var(--fg-3); font-size: 12.5px;
}
.spec-head .live::before {
content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc);
box-shadow: 0 0 0 3px var(--acc-soft);
}
/* The 1px gap is the divider: the panel background shows through between cells, so
the rules land correctly however many columns the grid resolves to. */
.spec-cells {
display: grid; grid-template-columns: repeat(6, 1fr);
gap: 1px; background: var(--hair-soft);
}
.spec-cells > div {
background: var(--surface);
padding: clamp(18px, 2.4vw, 24px);
}
.spec-cells b {
display: block; font-size: clamp(26px, 3.4vw, 36px); font-weight: 600;
letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.spec-cells span { color: var(--fg-3); font-size: 13.5px; }
/* Six across is too thin to read before the layout is wide; three, then two. */
@media (max-width: 1000px) { .spec-cells { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .spec-cells { grid-template-columns: repeat(2, 1fr); } }
/* ------------------------------------------------------------- the link quad
Four places openGym lives, as one block of four. Each pad is the whole link, so
the target is the card and not the words in it. */
.quad {
display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
margin-top: clamp(32px, 4.5vw, 46px);
}
.pad {
--brand: var(--acc);
display: flex; flex-direction: column;
padding: clamp(20px, 2.6vw, 28px);
background: var(--surface);
border: 1px solid var(--hair-soft); border-radius: var(--r-m);
color: var(--fg);
transition: border-color .3s var(--ease), background-color .3s var(--ease),
transform .3s var(--ease);
}
.pad:hover {
text-decoration: none; transform: translateY(-2px);
border-color: color-mix(in srgb, var(--brand) 55%, transparent);
background: color-mix(in srgb, var(--brand) 7%, var(--surface));
}
.pad:active { transform: none; }
.pad-ic {
width: 44px; height: 44px; border-radius: 13px; margin-bottom: 16px;
display: flex; align-items: center; justify-content: center;
background: color-mix(in srgb, var(--brand) 16%, transparent);
}
.pad-ic svg { width: 22px; height: 22px; fill: var(--brand); }
.pad.discord .pad-ic svg { width: 24px; height: 19px; }
.pad-body { display: block; flex: 1 1 auto; }
.pad-body b {
display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
font-size: clamp(17px, 2.1vw, 19px); font-weight: 600; letter-spacing: -.02em;
margin-bottom: 6px;
}
.pad-body > span { display: block; color: var(--fg-2); font-size: 14.5px; line-height: 1.5; }
.pad-body > span + span { margin-top: 7px; }
.pad-go {
display: inline-flex; align-items: center; gap: 6px;
margin-top: 18px; color: var(--brand);
font-size: 14.5px; font-weight: 500;
}
.pad-go::after {
content: ""; width: 5px; height: 5px;
border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor;
transform: rotate(-45deg); transition: transform .25s var(--ease);
}
.pad:hover .pad-go::after { transform: rotate(-45deg) translate(2px, 2px); }
.pad.gitlab { --brand: #fc6d26; }
.pad.bmc { --brand: #ffdd00; }
.pad.discord { --brand: #5865f2; }
/* The suspended repo. It stays linked because half the internet still points at it,
but nothing about this pad should promise that the link works. */
.pad.dead { --brand: #8e8e93; }
.pad.dead .pad-body b, .pad.dead .pad-ic svg { opacity: .8; }
.pad.dead .pad-go { color: var(--fg-3); }
.pad.dead .pad-go::after { display: none; }
.pad-body .tag {
display: inline-block; padding: 2px 7px; border-radius: 6px;
background: rgba(255, 159, 10, .14); color: #ffb340;
border: 1px solid rgba(255, 159, 10, .28);
font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
}
@media (max-width: 560px) {
.quad { gap: 10px; }
.pad { padding: 18px; }
.pad-ic { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 13px; }
.pad-ic svg { width: 19px; height: 19px; }
.pad.discord .pad-ic svg { width: 21px; height: 16px; }
.pad-body > span { font-size: 13px; }
/* Two cards to a row leaves ~160px of column: the second sentence would run to
seven lines. The identity and the destination survive; the detail does not. */
.pad .rest { display: none; }
.pad-go { font-size: 13px; margin-top: 14px; }
}
/* ------------------------------------------------------------------ footer */
footer {
border-top: 1px solid var(--hair-soft);
margin-top: var(--sec);
padding: 34px 0 calc(46px + env(safe-area-inset-bottom));
}
.foot { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }
.foot .c { color: var(--fg-3); font-size: 13.5px; }
.foot .c a { color: var(--fg-2); }
.foot .links { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
.foot .links a { color: var(--fg-2); font-size: 13.5px; }
.foot .links a:hover { color: var(--fg); text-decoration: none; }
@media (max-width: 600px) { .foot .links { margin-left: 0; } }
/* ------------------------------------------------------------ prose pages */
/* Keep .wrap's horizontal padding. The shorthand used to be `… 0 0`, which zeroed the
left and right the .wrap class had set, so on a phone the docs and about pages ran
edge to edge with nothing between the text and the screen. */
.prose { max-width: 720px; padding: clamp(44px, 7vw, 72px) var(--pad) 0; }
.prose h1 { font-size: clamp(36px, 6.5vw, 60px); }
.prose > .lead { max-width: 42ch; margin-bottom: clamp(34px, 5vw, 48px); }
.prose h2 {
font-size: clamp(24px, 3.4vw, 32px); margin: clamp(48px, 6vw, 68px) 0 14px;
scroll-margin-top: 76px;
}
.prose h3 { font-size: 18.5px; margin: 32px 0 8px; }
.prose p, .prose li { color: #c9c9ce; font-size: 16.5px; line-height: 1.62; }
.prose p { margin: 12px 0; }
.prose ul, .prose ol { padding-left: 20px; margin: 14px 0; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--fg-3); }
.prose b { color: var(--fg); font-weight: 600; }
.prose .who { color: var(--fg-3); margin-top: 26px; }
.note {
background: var(--acc-soft); border: 1px solid rgba(50, 215, 75, .2);
border-radius: var(--r-s); padding: 15px 18px; margin: 20px 0;
}
.note p, .note { color: #cfe9d5; font-size: 15.5px; line-height: 1.55; }
pre {
background: #0b0c0e; border: 1px solid var(--hair-soft); border-radius: var(--r-s);
padding: 18px; overflow-x: auto; margin: 18px 0;
font-size: 13.5px; line-height: 1.6; -webkit-overflow-scrolling: touch;
}
code { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }
p code, li code, td code {
background: var(--surface-2); border-radius: 6px; padding: 2px 6px;
font-size: .88em; color: #e4e4e8;
/* An env var or a URL in running text is one unbreakable word wider than a
320px phone; without this it pushes the whole page sideways. A <pre> block is
left alone — it scrolls inside its own box. */
overflow-wrap: anywhere;
}
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 4px; }
.toc a {
background: var(--surface); border: 1px solid var(--hair-soft);
border-radius: 999px; padding: 8px 15px; font-size: 14px; color: var(--fg-2);
transition: border-color .25s var(--ease), color .25s var(--ease);
}
.toc a:hover { color: var(--fg); border-color: var(--hair); text-decoration: none; }
/* The topic rail lists the same sections on a wide screen; twice is clutter. */
@media (min-width: 1300px) { .toc { display: none; } }
/* config table on the docs page */
table.cfg { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 15.5px; }
table.cfg td { padding: 14px 14px 14px 0; border-top: 1px solid var(--hair-soft); vertical-align: top; color: #c9c9ce; }
table.cfg tr:first-child td { border-top: 0; }
table.cfg td:first-child { white-space: nowrap; width: 1%; padding-right: 26px; }
@media (max-width: 640px) {
table.cfg td { display: block; border-top: 0; padding: 2px 0; }
table.cfg td:first-child {
white-space: normal; width: auto; padding: 16px 0 4px;
border-top: 1px solid var(--hair-soft);
}
table.cfg tr:first-child td:first-child { border-top: 0; padding-top: 0; }
}
/* ---------------------------------------------------------------- timeline */
.tl { list-style: none; padding: 0; margin: 30px 0 0; position: relative; }
.tl::before {
content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
width: 1px; background: var(--hair);
}
.tl li { position: relative; padding: 0 0 30px 30px; }
.tl li::before {
content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px;
border-radius: 50%; background: var(--bg); border: 2px solid var(--fg-3);
}
.tl li:last-child::before { border-color: var(--acc); }
.tl b { display: block; font-size: 17px; letter-spacing: -.015em; color: var(--fg); }
.tl .when { display: block; color: var(--fg-3); font-size: 13.5px; margin-top: 2px; }
.tl p { margin-top: 6px; font-size: 15.5px; }
/* ------------------------------------------------------------- scroll reveal
Only armed when JS is running, so the page is fully visible without it. */
.js .rv {
opacity: 0; transform: translateY(16px);
transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
.js .rv { opacity: 1; transform: none; transition: none; }
}
/* ------------------------------------------------------- the "rest of it" rail
The long tail of features. It is a rail rather than a two-column list because
this is the "and also" section: worth having, not worth a screenful of reading.
Cards carry their full text in the markup, so a reader without JS gets
everything; with JS the text is clamped and the card opens a dialog. */
.more-hint { color: var(--fg-2); font-size: 15px; margin-top: 12px; }
.frail { align-items: stretch; padding-top: 10px; padding-bottom: 10px; }
.more + .bleed, .bleed:has(.frail) { margin-top: clamp(18px, 2.4vw, 26px); }
/* Not interactive: the card holds its whole text, so there is nothing to open. Only the
four cards that point into the docs carry a link, because that is the only place there is
genuinely more to read. */
.fcard {
flex: 0 0 auto; width: clamp(250px, 78vw, 310px); scroll-snap-align: center;
display: flex; flex-direction: column; text-align: left;
padding: 22px; background: var(--surface);
border: 1px solid var(--hair-soft); border-radius: var(--r-m);
color: var(--fg);
}
.fcard-ic {
width: 40px; height: 40px; border-radius: 12px; margin-bottom: 15px;
display: flex; align-items: center; justify-content: center; flex: none;
background: color-mix(in srgb, var(--acc) 15%, transparent); color: var(--acc);
}
.fcard-ic svg { width: 21px; height: 21px; }
.fcard-t { font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }
.fcard-b { color: var(--fg-2); font-size: 14.5px; line-height: 1.5; }
.fcard-link {
display: block; margin-top: auto; padding-top: 16px;
color: var(--acc); font-size: 13.5px; font-weight: 500;
}
.fcard-link:hover { text-decoration: underline; }
/* `display: flex` here beats the UA's `[hidden] { display: none }`, so the attribute has to
be honoured explicitly — otherwise the arrows show up without JS, where they do nothing. */
.frail-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.frail-nav[hidden] { display: none; }
.rnav {
width: 38px; height: 38px; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
background: var(--surface); border: 1px solid var(--hair-soft); color: var(--fg-2);
cursor: pointer; transition: color .25s var(--ease), border-color .25s var(--ease);
}
.rnav:hover { color: var(--fg); border-color: var(--hair); }
.rnav:disabled { opacity: .3; cursor: default; }
.rnav svg { width: 19px; height: 19px; }
/* Touch scrolls; the arrows are for pointers that cannot swipe. */
@media (hover: none) { .frail-nav { display: none; } }
/* ------------------------------------------------------------ first-visit intro
The hero settles in on the first load of a visit instead of appearing all at once.
Deliberately the same movement as the scroll reveals below the fold (a short rise
and a fade) so it reads as one behaviour rather than an effect. Runs once per tab:
site.js sets .intro, and clears it after the last child has finished. */
.js.intro .hero .eyebrow,
.js.intro .hero h1,
.js.intro .hero .lead,
.js.intro .hero .actions,
.js.intro .hero-stage {
opacity: 0;
animation: introUp .85s var(--ease) forwards;
}
.js.intro .hero .eyebrow { animation-delay: .04s; }
.js.intro .hero h1 { animation-delay: .12s; }
.js.intro .hero .lead { animation-delay: .24s; }
.js.intro .hero .actions { animation-delay: .34s; }
.js.intro .hero-stage { animation-delay: .42s; animation-duration: 1.05s; }
@keyframes introUp {
from { opacity: 0; transform: translateY(18px); }
to { opacity: 1; transform: none; }
}
/* The phone in the hero lifts a little further, so it arrives last and reads as depth. */
.js.intro .hero-stage { animation-name: introRise; }
@keyframes introRise {
from { opacity: 0; transform: translateY(34px) scale(.985); }
to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
.js.intro .hero .eyebrow,
.js.intro .hero h1,
.js.intro .hero .lead,
.js.intro .hero .actions,
.js.intro .hero-stage { opacity: 1; animation: none; }
}
/* ------------------------------------------------------- rail: subchapters
Chapters are .side-link rows inside a .side-group; the group's subchapters sit
in .side-subs and unfold for the chapter being read (scrollspy) or on tap. */
.side-group .side-subs {
display: none;
margin: 2px 0 6px;
}
.side-group.open .side-subs { display: block; }
.side-sub {
display: block; padding: 5px 12px 5px 24px; margin: 0 -12px; border-radius: 8px;
color: var(--fg-2); font-size: 13px; line-height: 1.4;
transition: color .2s var(--ease), background-color .2s var(--ease);
}
.side-sub:hover { text-decoration: none; color: var(--fg); background: rgba(255, 255, 255, .04); }
.side-sub.on { color: var(--acc); }
/* A subchapter is a tap target too, not just a line of text. */
@media (pointer: coarse) { .side-sub { padding-top: 9px; padding-bottom: 9px; } }
/* --------------------------------------------------------- a11y: link affordance
Links inside running text can't rely on color alone (WCAG 1.4.1 / Lighthouse
link-in-text-block): give them a quiet underline. Nav, cards and the rail keep
their color-only look — they are recognisable as controls by placement. */
.prose p a, .prose li a, .prose td a, .foot .c a, .note a {
text-decoration: underline;
text-decoration-color: rgba(50, 215, 75, .45);
text-underline-offset: 2.5px;
}
.prose p a:hover, .prose li a:hover, .prose td a:hover, .foot .c a:hover, .note a:hover {
text-decoration-color: currentColor;
}