Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
website: topic rail instead of the crowded top nav, GitHub notice retired
Duarte Santos188979151b3a
diff --git a/website/README.md b/website/README.mdindex 40d242c39..c05addc0f 100644--- a/website/README.md+++ b/website/README.md@@ -15,14 +15,18 @@ Not in this folder (added at deploy time):of exercise media stays out of it. It has to live on this host: the site frames it, and`X-Frame-Options: SAMEORIGIN` would block it from anywhere else.-`site.js` carries four independent pieces, each one failing soft so the page is-complete without any of them: the phone nav sheet, the scroll reveals, the demo-iframe (injected only once the frame is on screen, and never below 700 px, where-the CSS swaps it for an "open it full-screen" card), and the two things that come-from the public gitlab.com API at view time — the star/issue counts and the About-page's release timeline. Those two URLs pointed at api.github.com until that-account was suspended; they go back once it is restored, together with the notice-block at the top of all three pages.+Navigation is a topic rail (`.side`): one title/subtitle list of everything on the+site, a fixed column beside the page from 1300 px up and the hamburger sheet below+that, with a scrollspy lighting the section under the reader. The top bar keeps+only the brand, GitLab, Discord and the download button.++`site.js` carries five independent pieces, each one failing soft so the page is+complete without any of them: the topic-rail sheet, its scrollspy, the scroll+reveals, the demo iframe (injected only once the frame is on screen, and never+below 700 px, where the CSS swaps it for an "open it full-screen" card), and the+two things that come from the public gitlab.com API at view time — the star/issue+counts and the About page's release timeline. Those two URLs pointed at+api.github.com until that account was suspended; they go back once it is restored.`styles.css` and `site.js` are cache-busted with `?v=N` — nginx serves the sitewith `no-cache, must-revalidate`, but the query bump is what saves a Cloudflarediff --git a/website/about.html b/website/about.htmlindex 38f89628b..021ee64aa 100644--- a/website/about.html+++ b/website/about.html@@ -9,7 +9,7 @@<link rel="icon" type="image/png" sizes="512x512" href="icon-512.png"><link rel="icon" type="image/png" sizes="180x180" href="icon-180.png"><link rel="apple-touch-icon" href="icon-180.png">-<link rel="stylesheet" href="styles.css?v=9">+<link rel="stylesheet" href="styles.css?v=10"><script>document.documentElement.className += ' js'</script><!-- Umami web analytics for opengym.duarte-santos.ch (self-hosted, cookieless). --><script defer src="https://stats.duarte-santos.ch/script.js" data-website-id="db36019e-50f4-453c-9c56-d0588aefe233"></script>@@ -21,37 +21,26 @@<img src="icon-180.png" alt="" width="24" height="24">openGym</a>+ <div class="nav-quick">+ <a class="ql" href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">GitLab <span data-gh="stars"></span></a>+ <a class="ql" href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>+ <a class="cta" href="/#download">Download</a>+ </div><button class="nav-toggle" aria-expanded="false" aria-controls="menu" aria-label="Menu"><span></span><span></span></button>- <div class="nav-links" id="menu">- <a href="/#features">Features</a>- <a href="/#screens">Screenshots</a>- <a href="/#demo">Demo</a>- <a href="docs.html">Docs</a>- <a href="about.html">About</a>- <a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">GitLab <span data-gh="stars"></span></a>- <a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>- <a class="cta" href="/#download">Download</a>- </div></div></nav>-<!-- TEMPORARY: GitHub account suspended -> repo lives on gitlab.com. Remove this block and- revert the links (+ site.js) to github.com once the account is restored. -->-<div class="notice-wrap"><div class="wrap">- <aside class="notice" role="note">- <div class="notice-tag">Repository moved</div>- <h2>My GitHub account was suspended, and the openGym repo went with it.</h2>- <p><b>github.com/DuarteSantos8/openGym is offline</b> — not by choice. The app is- untouched: the APK, the demo and every self-hosted install work exactly as before. The- code, the releases, the container images and the APK builds now live on GitLab under- the same AGPL-3.0 license, and every repository link here points there.</p>- <div class="actions">- <a class="btn" href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">Open on GitLab</a>- <a class="btn dc-btn" href="https://discord.gg/e62jY6fwVb" rel="noopener">Join the Discord</a>- </div>- </aside>-</div></div>+<!-- The topic rail: a fixed column beside the page on a wide screen, the hamburger+ sheet everywhere else. One markup, two layouts — see .side in styles.css. -->+<aside class="side" id="menu" aria-label="Topics">+ <p class="side-label">On this page</p>+ <a class="side-link" href="#milestones-h"><b>Milestones</b><span>Every release, straight from GitLab</span></a>+ <a class="side-link" href="#principles"><b>Principles</b><span>The rules that don't move</span></a>+ <p class="side-label">More</p>+ <a class="side-link" href="/"><b>Home</b><span>The tour, the demo, the download</span></a>+ <a class="side-link" href="docs.html"><b>Docs</b><span>Install, self-host, import</span></a>+</aside><main class="wrap prose"><h1>About openGym</h1>@@ -101,7 +90,7 @@<p>See the full list on <a href="https://gitlab.com/DuarteSantos8/opengym/-/releases" rel="noopener">GitLab → Releases</a>.</p></li></ul>- <h2>Principles</h2>+ <h2 id="principles">Principles</h2><ul><li><b>Your data is yours.</b> Local-first, one-file backups, no lock-in. Leaving openGymmust always be one export away.</li>@@ -130,6 +119,6 @@</div></div></footer>-<script src="site.js?v=9" defer></script>+<script src="site.js?v=10" defer></script></body></html>diff --git a/website/docs.html b/website/docs.htmlindex 7275ca4f4..fb21d20fc 100644--- a/website/docs.html+++ b/website/docs.html@@ -9,7 +9,7 @@<link rel="icon" type="image/png" sizes="512x512" href="icon-512.png"><link rel="icon" type="image/png" sizes="180x180" href="icon-180.png"><link rel="apple-touch-icon" href="icon-180.png">-<link rel="stylesheet" href="styles.css?v=9">+<link rel="stylesheet" href="styles.css?v=10"><script>document.documentElement.className += ' js'</script><!-- Umami web analytics for opengym.duarte-santos.ch (self-hosted, cookieless). --><script defer src="https://stats.duarte-santos.ch/script.js" data-website-id="db36019e-50f4-453c-9c56-d0588aefe233"></script>@@ -21,37 +21,32 @@<img src="icon-180.png" alt="" width="24" height="24">openGym</a>+ <div class="nav-quick">+ <a class="ql" href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">GitLab <span data-gh="stars"></span></a>+ <a class="ql" href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>+ <a class="cta" href="/#download">Download</a>+ </div><button class="nav-toggle" aria-expanded="false" aria-controls="menu" aria-label="Menu"><span></span><span></span></button>- <div class="nav-links" id="menu">- <a href="/#features">Features</a>- <a href="/#screens">Screenshots</a>- <a href="/#demo">Demo</a>- <a href="docs.html">Docs</a>- <a href="about.html">About</a>- <a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">GitLab <span data-gh="stars"></span></a>- <a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>- <a class="cta" href="/#download">Download</a>- </div></div></nav>-<!-- TEMPORARY: GitHub account suspended -> repo lives on gitlab.com. Remove this block and- revert the links (+ site.js) to github.com once the account is restored. -->-<div class="notice-wrap"><div class="wrap">- <aside class="notice" role="note">- <div class="notice-tag">Repository moved</div>- <h2>My GitHub account was suspended, and the openGym repo went with it.</h2>- <p><b>github.com/DuarteSantos8/openGym is offline</b> — not by choice. The app is- untouched: the APK, the demo and every self-hosted install work exactly as before. The- code, the releases, the container images and the APK builds now live on GitLab under- the same AGPL-3.0 license, and every repository link here points there.</p>- <div class="actions">- <a class="btn" href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">Open on GitLab</a>- <a class="btn dc-btn" href="https://discord.gg/e62jY6fwVb" rel="noopener">Join the Discord</a>- </div>- </aside>-</div></div>+<!-- The topic rail: a fixed column beside the page on a wide screen, the hamburger+ sheet everywhere else. One markup, two layouts — see .side in styles.css. -->+<aside class="side" id="menu" aria-label="Topics">+ <p class="side-label">Docs</p>+ <a class="side-link" href="#android"><b>Android</b><span>Install the signed APK</span></a>+ <a class="side-link" href="#iphone"><b>iPhone</b><span>A home-screen app instead</span></a>+ <a class="side-link" href="#selfhost"><b>Self-hosting</b><span>Docker Compose and passkeys</span></a>+ <a class="side-link" href="#mcp"><b>Ask an AI</b><span>The read-only MCP bridge</span></a>+ <a class="side-link" href="#import"><b>Import your history</b><span>FitNotes, Strong, Hevy, Health</span></a>+ <a class="side-link" href="#backup"><b>Backups</b><span>One JSON file, yours</span></a>+ <a class="side-link" href="#build"><b>Build it yourself</b><span>Everything from the public repo</span></a>+ <a class="side-link" href="#faq"><b>FAQ</b><span>Free, private, no stores</span></a>+ <p class="side-label">More</p>+ <a class="side-link" href="/"><b>Home</b><span>The tour, the demo, the download</span></a>+ <a class="side-link" href="about.html"><b>About</b><span>The story and the milestones</span></a>+</aside><main class="wrap prose"><h1>Docs</h1>@@ -209,6 +204,6 @@ docker compose up -d</code></pre></div></div></footer>-<script src="site.js?v=9" defer></script>+<script src="site.js?v=10" defer></script></body></html>diff --git a/website/index.html b/website/index.htmlindex 822db3920..942ae44b9 100644--- a/website/index.html+++ b/website/index.html@@ -14,7 +14,7 @@<link rel="icon" type="image/png" sizes="512x512" href="icon-512.png"><link rel="icon" type="image/png" sizes="180x180" href="icon-180.png"><link rel="apple-touch-icon" href="icon-180.png">-<link rel="stylesheet" href="styles.css?v=9">+<link rel="stylesheet" href="styles.css?v=10"><!-- Marks that JS is alive before first paint, so the scroll-reveal styles neverhide content from a browser that will not run them. --><script>@@ -76,37 +76,31 @@ try {<img src="icon-180.png" alt="" width="24" height="24">openGym</a>+ <div class="nav-quick">+ <a class="ql" href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">GitLab <span data-gh="stars"></span></a>+ <a class="ql" href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>+ <a class="cta" href="#download">Download</a>+ </div><button class="nav-toggle" aria-expanded="false" aria-controls="menu" aria-label="Menu"><span></span><span></span></button>- <div class="nav-links" id="menu">- <a href="#features">Features</a>- <a href="#screens">Screenshots</a>- <a href="#demo">Demo</a>- <a href="docs.html">Docs</a>- <a href="about.html">About</a>- <a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">GitLab <span data-gh="stars"></span></a>- <a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>- <a class="cta" href="#download">Download</a>- </div></div></nav>-<!-- TEMPORARY: GitHub account suspended -> repo lives on gitlab.com. Remove this block and- revert the links (+ site.js) to github.com once the account is restored. -->-<div class="notice-wrap"><div class="wrap">- <aside class="notice" role="note">- <div class="notice-tag">Repository moved</div>- <h2>My GitHub account was suspended, and the openGym repo went with it.</h2>- <p><b>github.com/DuarteSantos8/openGym is offline</b> — not by choice. The app is- untouched: the APK, the demo and every self-hosted install work exactly as before. The- code, the releases, the container images and the APK builds now live on GitLab under- the same AGPL-3.0 license, and every repository link here points there.</p>- <div class="actions">- <a class="btn" href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">Open on GitLab</a>- <a class="btn dc-btn" href="https://discord.gg/e62jY6fwVb" rel="noopener">Join the Discord</a>- </div>- </aside>-</div></div>+<!-- The topic rail: a fixed column beside the page on a wide screen, the hamburger+ sheet everywhere else. One markup, two layouts — see .side in styles.css. -->+<aside class="side" id="menu" aria-label="Topics">+ <p class="side-label">On this page</p>+ <a class="side-link" href="#features"><b>Features</b><span>Built on the gym floor</span></a>+ <a class="side-link" href="#screens"><b>Screenshots</b><span>Five screens, that's the app</span></a>+ <a class="side-link" href="#demo"><b>Live demo</b><span>The real app, in your browser</span></a>+ <a class="side-link" href="#download"><b>Download</b><span>Android APK or self-hosted</span></a>+ <a class="side-link" href="#story"><b>The story</b><span>One user, zero ambitions</span></a>+ <a class="side-link" href="#opensource"><b>Open source</b><span>AGPL-3.0, and staying that way</span></a>+ <a class="side-link" href="#elsewhere"><b>Elsewhere</b><span>GitLab, Discord, support</span></a>+ <p class="side-label">More</p>+ <a class="side-link" href="docs.html"><b>Docs</b><span>Install, self-host, import</span></a>+ <a class="side-link" href="about.html"><b>About</b><span>The story and the milestones</span></a>+</aside><header class="hero"><div class="wrap">@@ -344,7 +338,7 @@ try {</ul><div class="push"><a class="btn" href="openGym.apk" download>Download for Android</a>- <p class="meta">v1.2.14 · 4.5 MB · Android 6.0+ · signed APK. Your browser will ask+ <p class="meta">v1.2.14 · 4.6 MB · Android 6.0+ · signed APK. Your browser will askbefore installing; that is normal outside the Play Store.</p><p class="meta">Every release is also built and signed by CI and attached to the<a href="https://gitlab.com/DuarteSantos8/opengym/-/releases" rel="noopener">GitLab@@ -479,6 +473,6 @@ try {</div></div></footer>-<script src="site.js?v=9" defer></script>+<script src="site.js?v=10" defer></script></body></html>diff --git a/website/site.js b/website/site.jsindex bc0b72ae9..24dd86a24 100644--- a/website/site.js+++ b/website/site.js@@ -1,5 +1,6 @@-// Behaviour for the openGym site: the phone menu, the scroll reveals, the demo frame,-// and the two things that come from the GitLab API (repo counts, release timeline).+// Behaviour for the openGym site: the topic-rail menu and its scrollspy, the scroll+// reveals, the demo frame, and the two things that come from the GitLab API (repo+// counts, release timeline).// Every one of them fails soft — the page is complete without any of this running.const GL_PROJECT = 'https://gitlab.com/api/v4/projects/DuarteSantos8%2Fopengym'@@ -36,9 +37,38 @@ const GL_PROJECT = 'https://gitlab.com/api/v4/projects/DuarteSantos8%2Fopengym'// in-page anchors especially, which do not reload anything.menu.addEventListener('click', e => { if (e.target.closest('a')) close() })document.addEventListener('keydown', e => { if (e.key === 'Escape') close() })- // Rotating to landscape can widen past the breakpoint while the sheet is open, which- // would leave the body scroll-locked with no visible sheet to close.- addEventListener('resize', () => { if (innerWidth > 780) close() })+ // Growing past the breakpoint turns the sheet into the fixed rail while it is open,+ // which would leave the body scroll-locked with no visible sheet to close.+ addEventListener('resize', () => { if (innerWidth >= 1300) close() })+})()++/* ------------------------------------------------------------------- scrollspy+ The topic rail marks the section under the reader. Position math on scroll, not+ an IntersectionObserver: the sections differ wildly in height, and "the last+ heading that scrolled past a third of the screen" is the answer people expect. */+;(() => {+ const links = [...document.querySelectorAll('.side-link[href^="#"]')]+ if (!links.length) return+ const pairs = links+ .map(a => [document.getElementById(a.getAttribute('href').slice(1)), a])+ .filter(([t]) => t)+ if (!pairs.length) return+ let lit = null+ let raf = 0+ const spy = () => {+ raf = 0+ const y = scrollY + innerHeight * .33+ let cur = null+ for (const [t, a] of pairs) {+ if (t.getBoundingClientRect().top + scrollY <= y) cur = a+ }+ if (cur === lit) return+ lit?.classList.remove('on')+ ;(lit = cur)?.classList.add('on')+ }+ addEventListener('scroll', () => { if (!raf) raf = requestAnimationFrame(spy) }, { passive: true })+ addEventListener('resize', spy)+ spy()})()/* --------------------------------------------------------------- scroll reveal */diff --git a/website/styles.css b/website/styles.cssindex 9d11afcdc..ca2a9775b 100644--- a/website/styles.css+++ b/website/styles.css@@ -17,8 +17,6 @@--acc: #32d74b;--acc-ink: #04150a;--acc-soft: rgba(50, 215, 75, .13);- --blurple: #5865f2;- --amber: #ff9f0a;--r-s: 12px;--r-m: 20px;@@ -147,19 +145,22 @@ nav {.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 {+/* The bar keeps only the three things worth reaching from anywhere: the repo, the+ Discord, and the download. Everything else lives in the topic rail. */+.nav-quick { display: flex; align-items: center; gap: 24px; }+.nav-quick .ql {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;+.nav-quick .ql:hover { color: var(--fg); text-decoration: none; }+.nav-quick .ql [data-gh] { font-variant-numeric: tabular-nums; color: var(--fg-3); }+.nav-quick .ql:hover [data-gh] { 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-links a.cta:hover { background: #4ade63; }+.nav-quick .cta:hover { background: #4ade63; text-decoration: none; }+@media (max-width: 620px) { .nav-quick .ql { display: none; } }.nav-toggle {display: none;@@ -177,12 +178,51 @@ nav {.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) {+/* ---------------------------------------------------------------- topic rail+ One list of everything on the site — a title with a one-line subtitle per topic.+ On a wide screen it is a fixed column beside the page; below that, the exact+ same markup is the sheet behind the hamburger. */++.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: block; padding: 9px 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); }++@media (min-width: 1300px) {+ .nav-toggle { display: none !important; }+ /* The rail owns the left edge; the page centres in what is left. */+ body { padding-left: calc(264px + env(safe-area-inset-left)); }+ .side {+ position: fixed; left: 0; top: 0; bottom: 0; z-index: 70;+ width: calc(264px + env(safe-area-inset-left));+ padding: 30px 24px 34px calc(26px + env(safe-area-inset-left));+ overflow-y: auto; overscroll-behavior: contain;+ background: #060707;+ border-right: 1px solid var(--hair-soft);+ scrollbar-width: thin;+ }+}++@media (max-width: 1299.98px) {.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));+ .side {+ position: fixed; left: 0; right: 0; top: 54px; z-index: 55;+ padding: 20px var(--pad) calc(28px + env(safe-area-inset-bottom));background: #000;border-bottom: 1px solid var(--hair-soft);box-shadow: 0 30px 60px rgba(0, 0, 0, .8);@@ -190,29 +230,7 @@ nav {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;- }+ .side.open { transform: none; opacity: 1; pointer-events: auto; }/* Whatever the sheet does not cover is dimmed, so the page behind it stopscompeting for attention and a tap out there reads as "close". */@@ -225,53 +243,15 @@ nav {}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; }+/* A tablet-wide sheet with one narrow column looks abandoned; two columns fill it. */+@media (min-width: 640px) and (max-width: 1299.98px) {+ .side { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; align-items: start; }+ .side-label { grid-column: 1 / -1; }+ .side-label + .side-link { margin-top: 0; }}-/* ------------------------------------------------------------------- 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%; }+@media (prefers-reduced-motion: reduce) {+ .side, body::after { transition-duration: .01ms !important; }}/* --------------------------------------------------------------------- hero */@@ -669,6 +649,8 @@ p code, li code, td code {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; }