/* runlight.sh
   Set like a printed sheet, the same family as cronwatch.dev, preflight.sh,
   and joncphillips.com: Neuzeit Grotesk for everything a person reads, PT Mono
   for everything a machine printed and for the small labels down the left of
   each section. Neutral greys and no accent colour; the only colour on the
   page is the lit lamp in the mark and the data inside the captures. Dark by
   default; the switch in the footer turns the sheet over to light. */

:root {
  --paper: #f4f4f5;
  --sheet: #ffffff;
  --sunk: #fafafa;
  --rule: #e4e4e7;
  --rule-2: #d4d4d8;
  --faint: #71717a;
  --ink: #000000;
  --body: #18181b;
  --muted: #71717a;
  --ok: #15803d;
  --lamp: #16a34a;
  --sans: "neuzeit-grotesk", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "pt-mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #09090b;
  --sheet: #111113;
  --sunk: #18181b;
  --rule: #27272a;
  --rule-2: #3f3f46;
  --faint: #85858f;
  --ink: #ffffff;
  --body: #e4e4e7;
  --muted: #a1a1aa;
  --ok: #4ade80;
  --lamp: #4ade80;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; text-decoration-color: var(--rule-2); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--ink); color: var(--sheet); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code, pre, kbd { font-family: var(--mono); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; }
p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
pre { margin: 0; font: 400 13.5px/1.62 var(--mono); color: var(--body); overflow-x: auto; tab-size: 2; }
pre .k { color: var(--ink); font-weight: 700; }
pre .s { color: var(--ok); }
pre .c { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--sheet); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 30; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.label, .foot-head, .tab { font: 400 12px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* A capture has a light and a dark version; only the one for the sheet shows. */
:root[data-theme="dark"] .on-light, :root:not([data-theme="dark"]) .on-dark { display: none; }

/* The sheet. */
.page { max-width: 1180px; min-height: 100vh; margin: 0 auto; background: var(--sheet); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); padding: 0 clamp(20px, 4vw, 56px); display: flex; flex-direction: column; }
.page > main { flex: 1 0 auto; }

/* Top: links left, the mark right, the way a masthead sits. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 0; }
.links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 17px; }
.links a[aria-current] { text-decoration-color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.mark { width: 26px; height: 26px; flex: none; }
.menu { display: none; }

/* Buttons: a filled one does the thing; an outlined one goes elsewhere. */
.btn, .ghost-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 400 14px/1 var(--mono); border-radius: 3px; padding: 11px 14px; text-decoration: none; white-space: nowrap; }
.btn { color: var(--sheet); background: var(--ink); border: 1px solid var(--ink); }
.btn:hover { opacity: .88; }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); }
.ghost-btn { color: var(--ink); border: 1px solid var(--rule-2); }
.ghost-btn:hover { border-color: var(--ink); }

/* The opening: the first paragraph does the work a slogan usually does. */
.opening { padding: 72px 0 60px; }
.opening .say { font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.22; letter-spacing: -0.02em; max-width: 21em; text-wrap: pretty; }
.opening .say b { font-weight: 700; }
.opening .then { margin-top: 26px; max-width: 54ch; text-wrap: pretty; }
.installs { max-width: 760px; margin-top: 32px; }
/* How you run it: three quiet choices above the tabs. */
.ways { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.way { font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 7px 10px; border: 1px solid var(--rule); border-radius: 999px; background: none; cursor: pointer; }
.way:hover { color: var(--ink); }
.way[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.tabs { display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0 0 14px; border-bottom: 1px solid var(--rule); }
.tab { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 -1px; padding: 8px 10px 9px; border-bottom: 2px solid transparent; }
.tab:hover { color: var(--body); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.install { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--sunk); border: 1px solid var(--rule); border-radius: 3px; padding: 10px 10px 10px 14px; font: 400 14.5px/1.4 var(--mono); }
.install[hidden], .actions[hidden] { display: none; }
/* For people who would rather not use a command line: a quiet line under the plugin commands. */
.install-alt { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }
.install-alt a { color: var(--ink); }
.install code { min-width: 0; overflow-wrap: anywhere; }
.install code::before { content: "$ "; color: var(--muted); }
.copy { flex: none; font: 400 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule-2); border-radius: 2px; padding: 6px 8px; }
.copy:hover { color: var(--ink); border-color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 24px; }
.actions .note { font-size: 15.5px; }

/* Rows: a small label down the left, the thing itself on the right. */
.row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 40px; align-items: start; padding: clamp(64px, 8vw, 96px) 0; border-top: 1px solid var(--rule); }
.row > .label { padding-top: 9px; }
.body > h2 { font-size: 1.7rem; line-height: 1.2; max-width: 40ch; text-wrap: pretty; }
.body > p { max-width: 60ch; margin-top: 18px; text-wrap: pretty; }
.body > p.small { font-size: 16px; }
.body > p code, .stacks code { font-size: .84em; }
.body > * + .out, .body > * + .browser, .body > * + .shot, .body > * + .pair, .body > * + .stacks, .body > * + .chips { margin-top: 32px; }
/* As wide as the screenshot above it, so a short caption stays on one line. */
.body > p.caption { margin-top: 14px; font-size: 15.5px; color: var(--muted); max-width: none; }

/* Printed things: a file or an output, with what it is above it. */
.out { background: var(--sunk); border: 1px solid var(--rule); border-radius: 3px; min-width: 0; }
.out + .out { margin-top: 12px; }
.out .from { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--rule); font: 400 12px/1.5 var(--mono); color: var(--muted); }
.out pre { padding: 13px 15px 15px; }

/* A flat browser window around a page the package serves. */
.browser { margin: 0; border: 1px solid var(--rule-2); border-radius: 6px; background: var(--sheet); overflow: hidden; }
.browser .chrome { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 12px; padding: 9px 12px; background: var(--sunk); border-bottom: 1px solid var(--rule); }
.browser .dots { display: flex; gap: 6px; }
.browser .dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--rule-2); }
.browser .url { justify-self: center; width: min(100%, 380px); padding: 5px 12px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; font: 400 12px/1.4 var(--mono); color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* A box from the dashboard, cut out as it renders. */
.shot img { border: 1px solid var(--rule); border-radius: 6px; }
.shot.narrow { max-width: 560px; }
.pair { display: grid; grid-template-columns: minmax(0, 956fr) minmax(0, 1350fr); gap: 16px; align-items: start; }

/* A list with a mono label down the left of each line, ruled like a table. */
.stacks { margin: 0; max-width: 70ch; border-top: 1px solid var(--rule); }
.stacks > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 11px 0 12px; border-bottom: 1px solid var(--rule); }
.stacks dt { font: 400 12px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.stacks dd { margin: 0; font-size: 16.5px; line-height: 1.5; text-wrap: pretty; }
.stacks dd.mono { font: 400 14px/1.6 var(--mono); padding-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 70ch; }
.chip { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--rule); border-radius: 3px; font-size: 15px; line-height: 1.5; white-space: nowrap; }

/* The close. */
.end { padding: clamp(64px, 8vw, 96px) 0 24px; border-top: 1px solid var(--rule); }
.end p { font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.3; max-width: 24ch; letter-spacing: -0.015em; }
.end .go { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 17px; max-width: none; letter-spacing: 0; }

/* Footer: the mark and a line beside columns of links, then the copyright and the theme switch. */
footer { padding: 48px 0 44px; border-top: 1px solid var(--rule); margin-top: 40px; font-size: 15.5px; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 40px 48px; }
.foot-about p { margin-top: 14px; max-width: 30ch; line-height: 1.5; }
.foot-about .brand { color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.foot-head { margin: 0 0 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-end { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule); }
.foot-end a { text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: .16em; }
.theme { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--muted); }
.theme:hover { color: var(--ink); }
.theme svg { width: 20px; height: 20px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }

/* Docs: a numbered list of pages down the left, the page beside it. */
.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr) 180px; gap: 48px; align-items: start; padding: 40px 0; }
.docs-side, .toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: thin; }
.docs-side .label, .toc .label { margin: 0 0 10px; }
.docs-side ol, .docs-menu ol { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 1px; }
.docs-side ol a, .docs-menu ol a { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: baseline; padding: 4px 0; text-decoration: none; font-size: 16.5px; color: var(--body); }
.docs-side ol a span:first-child, .docs-menu ol a span:first-child { font: 400 11px/1 var(--mono); color: var(--muted); }
.docs-side ol a:hover, .docs-menu ol a:hover { color: var(--ink); }
.docs-side ol a[aria-current], .docs-menu ol a[aria-current] { color: var(--ink); font-weight: 700; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.toc a { text-decoration: none; color: var(--muted); font-size: 15px; }
.toc a:hover { color: var(--ink); }
.docs-menu { display: none; }
.doc { min-width: 0; max-width: 68ch; }
.doc > * + * { margin-top: 16px; }
.doc > .label { margin: 0 0 12px; }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.doc-top .label { margin: 0; }
.doc h1 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.14; letter-spacing: -0.02em; }
.doc h1 + p { margin-top: 18px; }
.doc .lede { font-size: 20px; line-height: 1.5; }
.doc h2 { font-size: 1.45rem; line-height: 1.25; margin-top: 44px; scroll-margin-top: 24px; }
.doc h3 { font-size: 1.15rem; margin-top: 28px; scroll-margin-top: 24px; }
.doc .anchor { text-decoration: none; color: inherit; }
.doc h2 .anchor:hover::after, .doc h3 .anchor:hover::after { content: " #"; color: var(--muted); }
.doc p > code, .doc li > code, .doc td > code, .doc h2 code, .doc h3 code { font-size: .84em; background: var(--sunk); border: 1px solid var(--rule); padding: 1px 4px; border-radius: 2px; overflow-wrap: anywhere; }
.doc ul, .doc ol { padding-left: 1.2em; margin-bottom: 0; }
.doc li + li { margin-top: 5px; }
.doc .table { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { font: 400 11.5px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.doc blockquote { margin: 0; border-left: 2px solid var(--rule-2); padding: 2px 16px; }
.doc .out { margin-top: 20px; }
.doc .out .copy { margin: -2px 0 -2px auto; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 17px; }
.pager a { text-decoration: none; display: grid; }
.pager a small { color: var(--muted); font: 400 11.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pager .next { text-align: right; margin-left: auto; }
.edit { font-size: 15px; color: var(--muted); }
.edit a { color: var(--muted); }

/* 404 and 50x: one centred block, as on preflight.sh. */
.lost { display: grid; justify-items: center; text-align: center; padding: clamp(64px, 14vh, 150px) 0 clamp(72px, 16vh, 170px); }
.lost .code { font: 200 clamp(5rem, 13vw, 8.5rem)/1 var(--sans); letter-spacing: -0.04em; color: var(--rule-2); }
.lost h1 { margin-top: 10px; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; }
.lost .line { margin-top: 14px; max-width: 40ch; }
.lost .actions { justify-content: center; margin-top: 28px; }
.lost .note { margin-top: 26px; font-size: 15px; color: var(--muted); max-width: 44ch; }
.notfound p { margin-top: 16px; }

@media (max-width: 1100px) {
  .docs { grid-template-columns: 200px minmax(0, 1fr); }
  .toc { display: none; }
}

@media (max-width: 900px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .row > .label { padding-top: 0; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 24px; }
  .docs-side { display: none; }
  .docs-menu { display: block; margin-bottom: 22px; }
  .docs-menu summary { list-style: none; cursor: pointer; font: 400 12px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--rule); }
  .docs-menu summary::-webkit-details-marker { display: none; }
  .docs-menu summary::after { content: " +"; }
  .docs-menu[open] summary::after { content: " \2212"; }
  .docs-menu ol { padding: 10px 0; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .page { border-left: 0; border-right: 0; }
  .links { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-size: 17px; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: .16em; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu ol { position: absolute; left: 0; top: calc(100% + 10px); min-width: 190px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; padding: 10px 12px; list-style: none; margin: 0; z-index: 5; display: grid; gap: 8px; }
  .top { padding-top: 20px; }
  .opening { padding: 44px 0 40px; }
  .tabs { flex-wrap: nowrap; gap: 0; }
  .tab { flex: 1 1 0; justify-content: center; padding: 11px 0 12px; }
  .row { padding: 56px 0; }
  .stacks > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .browser .chrome { grid-template-columns: auto minmax(0, 1fr); }
  .browser .chrome > span:last-child { display: none; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The mark: the housing in ink, the R cut from it in the sheet's colour, one lit corner. */
.mark .housing { fill: var(--ink); }
.mark .r { fill: none; stroke: var(--sheet); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.mark .lit { fill: #22c55e; }

/* About, terms, privacy, and contact: a label down the left, the text beside it. */
.solo { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; padding: 48px 0 24px; }
.solo > .label { padding-top: 16px; }
.solo .updated { font: 400 13px/1.5 var(--mono); color: var(--muted); }
.notice { border-left: 2px solid var(--rule-2); padding: 2px 0 2px 16px; }
.notice.ok { border-left-color: var(--ok); }
.notice.bad { border-left-color: #f87171; }

/* Forms: labels in mono capitals, fields drawn as thin boxes. */
.form { display: grid; gap: 20px; max-width: 34rem; }
.doc > .form { margin-top: 32px; }
.form label { display: block; font: 400 12px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.form input, .form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: 3px; background: var(--sunk); color: var(--ink); font: inherit; font-size: 17px; }
.form textarea { resize: vertical; min-height: 10rem; line-height: 1.5; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form .btn { font-size: 14px; padding: 12px 18px; }

@media (max-width: 900px) {
  .solo { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 24px; }
  .solo > .label { padding-top: 0; }
}

/* Each package manager's logo, grey until hovered or chosen, then in its own colours. */
.tab .logo { width: 16px; height: 16px; fill: currentColor; flex: none; }
.tab-npm:hover .logo, .tab-npm[aria-selected="true"] .logo { fill: #cb3837; }
.tab-pnpm:hover .logo, .tab-pnpm[aria-selected="true"] .logo { fill: #f69220; }
.tab-yarn:hover .logo, .tab-yarn[aria-selected="true"] .logo { fill: #2c8ebb; }
.tab-bun .logo { filter: grayscale(1); opacity: .7; }
.tab-docker:hover .logo, .tab-docker[aria-selected="true"] .logo { fill: #2496ed; }
.tab-npx:hover .logo, .tab-npx[aria-selected="true"] .logo { fill: #5fa04e; }
.tab-php:hover .logo, .tab-php[aria-selected="true"] .logo { fill: #777bb4; }
.tab-wordpress:hover .logo, .tab-wordpress[aria-selected="true"] .logo { fill: #21759b; }
.tab-drupal:hover .logo, .tab-drupal[aria-selected="true"] .logo { fill: #0678be; }
.tab-craft:hover .logo, .tab-craft[aria-selected="true"] .logo { fill: #e5422b; }
.tab-bun:hover .logo, .tab-bun[aria-selected="true"] .logo { filter: none; opacity: 1; }
@media (max-width: 760px) {
  .tab .logo { width: 18px; height: 18px; }
}

/* Each service with its logo, in its own colours; a black mark turns light on dark paper. */
.chip { gap: 7px; padding: 3px 9px 3px 7px; }
.chip img { height: 14px; width: auto; max-width: 18px; object-fit: contain; flex: none; }
.chip img.r { border-radius: 2px; }
.chip .glyph { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:root[data-theme="dark"] .chip img.inv { filter: invert(1); }

/* The opening's art: four small cards of what Runlight notices, scattered
   loosely like notes on a desk, each at its own slight angle, overlapping
   only at the corners and drifting gently. */
.opening { position: relative; }
.opening > :not(.floaters) { position: relative; z-index: 1; }
.opening .say { max-width: 16em; }
.opening .then { max-width: 46ch; }
.floaters { position: absolute; z-index: 0; top: 85px; right: -56px; width: 470px; height: 500px; pointer-events: none; user-select: none; }
.floaters-scene { position: absolute; inset: 0; }
.floater { position: absolute; width: 240px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--sheet); overflow: hidden; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .28), 0 1px 3px rgba(0, 0, 0, .06); }
:root[data-theme="dark"] .floater { box-shadow: 0 22px 50px -16px rgba(0, 0, 0, .75), 0 1px 3px rgba(0, 0, 0, .4); }
.floater.f1 { z-index: 3; top: 112px; left: 190px; width: 290px; rotate: -2deg; animation: float-bob 7s ease-in-out infinite; }
.floater.f0 { z-index: 1; top: 0; left: 30px; rotate: 3deg; animation: float-bob 6.2s ease-in-out .8s infinite; }
.floater.f2 { z-index: 2; top: 318px; left: 268px; width: 230px; rotate: 4deg; animation: float-bob 6.6s ease-in-out 1.6s infinite; }
.floater.f3 { z-index: 4; top: 262px; left: 10px; rotate: -3.5deg; animation: float-bob 7.4s ease-in-out .3s infinite; }
.floater-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--rule); font-size: 13px; }
.floater-label { font-weight: 700; }
.floater-sub { color: var(--muted); flex: 1; }
.dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--rule-2); flex: none; }
.dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); animation: float-pulse 2.4s ease-in-out infinite; }
.floater-body { padding: 11px 14px 12px; }
.floater-line { margin: 0; font-size: 14px; line-height: 1.35; color: var(--body); }
.floater-line b { color: var(--ink); font-weight: 700; }
.floater-line .big { font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.floater-line .up { font: 400 12px var(--mono); color: var(--ok); }
.floater .spark { display: block; width: 100%; height: 28px; margin-top: 6px; }
.floater .spark path { fill: none; stroke: #2a78d6; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.floater-tag { margin: 8px 0 0; font: 400 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
/* Dashed wires join the cards, showing one visit becoming every number. */
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
.wires path { fill: none; stroke: var(--muted); stroke-opacity: .7; stroke-width: 1.5; stroke-dasharray: 4 5; stroke-linecap: round; animation: wire-flow 1.6s linear infinite; }
@keyframes wire-flow { to { stroke-dashoffset: -9; } }
@keyframes float-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes float-pulse { 50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, .08); } }
@media (prefers-reduced-motion: reduce) {
  .floater, .dot.on, .wires path { animation: none; }
}
@media (min-width: 1240px) {
  .opening .then { max-width: 640px; }
}
@media (min-width: 1360px) {
  .floaters { right: -96px; }
}
@media (max-width: 1100px) {
  .floaters { display: none; }
  .opening .say { max-width: 21em; }
}
