/* 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: #6e6e73; --acc: #32d74b; --acc-ink: #04150a; --acc-soft: rgba(50, 215, 75, .13); --blurple: #5865f2; --amber: #ff9f0a; --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 */ nav { position: sticky; top: 0; z-index: 60; 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; } .nav-links { display: flex; align-items: center; gap: 26px; } .nav-links a { color: var(--fg-2); font-size: 14px; font-weight: 400; letter-spacing: 0; transition: color .2s var(--ease); } .nav-links a:hover { color: var(--fg); text-decoration: none; } .nav-links a [data-gh] { font-variant-numeric: tabular-nums; color: var(--fg-3); } .nav-links a:hover [data-gh] { color: var(--fg-2); } .nav-links a.cta { color: var(--acc-ink); background: var(--acc); font-weight: 600; padding: 7px 15px; border-radius: 999px; } .nav-links a.cta:hover { background: #4ade63; } .nav-toggle { display: none; position: relative; width: 42px; height: 42px; margin-right: -9px; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; } .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); } @media (max-width: 780px) { .nav-toggle { display: flex; } .nav-links { position: fixed; left: 0; right: 0; top: 54px; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--pad) calc(22px + 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; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .28s var(--ease), transform .28s var(--ease); } .nav-links.open { transform: none; opacity: 1; pointer-events: auto; } .nav-links a { font-size: 19px; letter-spacing: -.02em; color: var(--fg); padding: 15px 2px; border-bottom: 1px solid var(--hair-soft); /* Each row drops in just behind the one above it, so the sheet unfolds instead of appearing. Closing runs with no delay at all, so it leaves in one piece — a staggered exit reads as sluggish. */ opacity: 0; transform: translateY(-10px); transition: opacity .3s var(--ease), transform .3s var(--ease); } .nav-links.open a { opacity: 1; transform: none; } .nav-links.open a:nth-child(1) { transition-delay: .03s; } .nav-links.open a:nth-child(2) { transition-delay: .06s; } .nav-links.open a:nth-child(3) { transition-delay: .09s; } .nav-links.open a:nth-child(4) { transition-delay: .12s; } .nav-links.open a:nth-child(5) { transition-delay: .15s; } .nav-links.open a:nth-child(6) { transition-delay: .18s; } .nav-links.open a:nth-child(7) { transition-delay: .21s; } .nav-links.open a:nth-child(8) { transition-delay: .24s; } .nav-links a.cta { margin-top: 18px; border-bottom: 0; text-align: center; padding: 14px 20px; font-size: 17px; } /* Whatever the sheet does not cover is dimmed, so the page behind it stops competing for attention and a tap out there reads as "close". */ body::after { content: ""; position: fixed; inset: 0; z-index: 50; 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 { opacity: 1; pointer-events: auto; } } @media (prefers-reduced-motion: reduce) { .nav-links, .nav-links a, body::after { transition-duration: .01ms !important; } .nav-links.open a { transition-delay: 0s !important; } } /* ------------------------------------------------------------------- notice The GitHub account suspension. Deliberately a contained card, not a full-bleed banner: it has to be impossible to miss and still not be the first thing the page shouts. Remove the whole block once the account is restored. */ .notice-wrap { padding: 22px 0 0; } .notice { position: relative; background: linear-gradient(180deg, rgba(255, 159, 10, .07), rgba(255, 159, 10, .02)); border: 1px solid rgba(255, 159, 10, .26); border-radius: var(--r-m); padding: clamp(20px, 3.4vw, 28px); } .notice-tag { display: inline-flex; align-items: center; gap: 8px; color: #ffb340; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; } .notice-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 159, 10, .16); } .notice h2 { font-size: clamp(20px, 3vw, 26px); letter-spacing: -.025em; color: #ffdcae; margin-bottom: 12px; } .notice p { color: #cbbba6; font-size: 15.5px; max-width: 68ch; margin-bottom: 10px; } .notice p b { color: #fff8ee; font-weight: 600; } .notice .actions { margin-top: 18px; } .notice .btn { background: var(--amber); color: #1a1206; } .notice .btn:hover { background: #ffb340; } /* Named dc-btn, not dc: the `.dc` Discord card below owns that class, and a button carrying both picked up the card's 30px padding and 44px top margin. */ .notice .btn.dc-btn { background: var(--blurple); color: #fff; } .notice .btn.dc-btn:hover { background: #6b76f5; } /* Two half-width buttons stacked with a ragged right edge look accidental; on a phone they read as one decision with two answers. */ @media (max-width: 560px) { .notice .actions { display: grid; gap: 10px; } .notice .btn { width: 100%; } } /* --------------------------------------------------------------------- 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(5, 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; } @media (max-width: 760px) { .spec-cells { grid-template-columns: repeat(2, 1fr); } /* Five cells over two columns leaves a hole; the last one takes the whole row. */ .spec-cells > div:last-child { grid-column: 1 / -1; } } /* ------------------------------------------------------------- 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; } .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; } /* 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); } .fcard { flex: 0 0 auto; width: clamp(232px, 74vw, 290px); 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); font: inherit; cursor: pointer; transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease); } .fcard:hover { transform: translateY(-2px); border-color: var(--hair); background: var(--surface-2); } .fcard:active { transform: none; } .fcard:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; } .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; } /* Only clamped when the dialog exists to show the rest. */ .js .fcard-b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; } .fcard-link { display: none; } .js .fcard-link { display: block; margin-top: auto; padding-top: 14px; color: var(--acc); font-size: 13.5px; font-weight: 500; } /* `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; } } .fdlg { /* margin:auto is what centres a modal dialog, and `* { margin: 0 }` at the top of this file had taken it away — the dialog was rendering at its static position, which put it off the top-left of the viewport on desktop and completely off-screen on a phone. */ /* Pinned to the viewport, not the document. Left to the browser it resolved to `position: absolute`, so `inset: 0; margin: auto` centred it inside the initial containing block — near the top of the PAGE — and opening it scrolled the whole page up to meet it. `fixed` also makes this the containing block for the close button. */ position: fixed; inset: 0; margin: auto; width: min(460px, calc(100% - 2 * var(--pad))); height: fit-content; max-height: calc(100dvh - 2 * var(--pad)); padding: 26px; border: 1px solid var(--hair); border-radius: var(--r-m); background: var(--surface); color: var(--fg); overflow: auto; overscroll-behavior: contain; } /* Fade in with the backdrop rather than snapping into place. */ .fdlg[open] { animation: dlgIn .26s var(--ease); } .fdlg[open]::backdrop { animation: dlgBackdrop .26s var(--ease); } @keyframes dlgIn { from { opacity: 0; transform: translateY(8px) scale(.985); } } @keyframes dlgBackdrop { from { opacity: 0; } } @media (prefers-reduced-motion: reduce) { .fdlg[open], .fdlg[open]::backdrop { animation: none; } } .fdlg::backdrop { background: rgba(0, 0, 0, .62); } .fdlg-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(--acc) 15%, transparent); color: var(--acc); } .fdlg-ic svg { width: 23px; height: 23px; } .fdlg h3 { font-size: 20px; margin-bottom: 10px; } .fdlg-b { color: var(--fg-2); font-size: 15.5px; line-height: 1.6; margin: 0; } .fdlg-go { display: inline-block; margin-top: 20px; color: var(--acc); font-size: 14.5px; font-weight: 500; } /* Same trap as .frail-nav: without this, a card with no link still shows one. */ .fdlg-go[hidden] { display: none; } .fdlg-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 50%; color: var(--fg-3); cursor: pointer; } .fdlg-x:hover { color: var(--fg); background: var(--surface-2); } .fdlg-x svg { width: 17px; height: 17px; } /* ------------------------------------------------------------ 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; } }