/* Sprayz. One object carries the look: an aerosol can in front of a concrete wall. The wall carries one painted
   mark, and the mark says what matters (get a key, load Monero, the credit). The page itself is pale plaster,
   the can's matte black is the dark ground, magenta is the only paint. */

@font-face { font-family: 'Stick No Bills'; src: url('/fonts/stick-no-bills.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('/fonts/onest.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Reddit Mono'; src: url('/fonts/reddit-mono.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }

:root {
  --ground: #eeede8;
  --ground-hi: #f8f7f3;
  --ground-lo: #e2e1da;
  --line: #cfcdc5;
  --ink: #161619;
  --ink-2: #2e2e33;
  --mute: #64635c;
  --concrete: #d4d3cd;
  --concrete-hi: #e0dfd9;
  --concrete-lo: #bab9b2;
  --can: #19191c;
  --paint: #e0007a;
  --paint-hi: #ff3a98;
  --paint-lo: #a10058;
  --good: #17694a;
  --bad: #b4261d;

  --display: 'Stick No Bills', 'Onest', system-ui, sans-serif;
  --text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Reddit Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-0: .8125rem;
  --fs-1: .9375rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.375rem;
  --fs-4: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem);
  --fs-5: clamp(3.6rem, 1.8rem + 7.4vw, 7.6rem);

  --page: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 12px;

  /* the concrete: fine grain and a few slow clouds, drawn once as an SVG */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78125' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .2 0 0 0 0 .19 .55 0 0 0 -.2'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23f)'/%3E%3C/svg%3E");
  --clouds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.005' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .25 0 0 0 0 .24 .5 0 0 0 -.18'/%3E%3C/filter%3E%3Crect width='800' height='800' filter='url(%23c)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--fs-2)/1.55 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; text-decoration-color: var(--paint); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--paint); color: #fff; }
:focus-visible { outline: 3px solid var(--paint); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .94em; }
.mute { color: var(--mute); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- buttons: enamel with an ink lip, pressed down like a can's cap */
.key {
  --face: #fff; --edge: var(--ink); --rim: var(--ink); --on: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.3em; border: 2px solid var(--rim); border-radius: 10px;
  background: var(--face); color: var(--on); font: 700 var(--fs-2)/1 var(--text); letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 var(--edge);
  transform: translateY(0); transition: transform .06s ease-out, box-shadow .06s ease-out, background-color .12s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.key:hover { --face: var(--ground-hi); }
.key:active, .key[aria-pressed='true'] { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.key:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--edge); }
.key.go { --face: var(--paint); --edge: var(--paint-lo); --rim: var(--paint-lo); --on: #fff; }
.key.go:hover { --face: #ea0c86; }
.key.dark { --face: var(--ink); --edge: #000; --rim: #000; --on: #fff; }
.key.dark:hover { --face: var(--ink-2); }
.key.big { min-height: 60px; padding: 0 1.6em; font-size: 1.1875rem; border-radius: 12px; box-shadow: 0 5px 0 var(--edge); }
.key.big:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.key.small { min-height: 40px; padding: 0 .95em; font-size: var(--fs-1); border-radius: 9px; box-shadow: 0 3px 0 var(--edge); }
.key.small:active, .key.small[aria-pressed='true'] { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.key svg { width: 1.1em; height: 1.1em; flex: none; }
.plain { background: none; border: 0; padding: 0; font-weight: 600; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.plain:hover { text-decoration-thickness: .14em; text-decoration-color: var(--paint); }

/* ---------- concrete: the wall, and every small piece of it that shows a value */
.slab {
  position: relative; border-radius: 4px; color: var(--paint);
  background: var(--grain), var(--clouds) center / cover no-repeat, linear-gradient(170deg, var(--concrete-hi), var(--concrete) 55%, #cbcac3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .06), 0 1px 0 rgba(255, 255, 255, .7);
}
/* paint on it: a stencil cut, sprayed. A hair of overspray keeps the edge from looking printed */
.paint { font-family: var(--display); font-weight: 800; color: var(--paint); text-transform: uppercase; text-shadow: 0 0 .5px rgba(224, 0, 122, .7), 0 0 1.5px rgba(224, 0, 122, .25); }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 2.1rem/1 var(--display); letter-spacing: .005em; }
.brand span { translate: 0 1px; }
.brand svg { width: 22px; height: 40px; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; font-weight: 600; font-size: var(--fs-2); }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current='page'] { border-bottom-color: var(--paint); }
.top-x { display: inline-flex; padding: 8px; margin: -8px; }
.top-x svg { width: 19px; height: 19px; }
/* the credit at the top: a chip of the wall with the number on it, pressable */
.credit { display: inline-flex; align-items: center; padding: 0; border: 2px solid var(--ink); border-radius: 9px; background: none; box-shadow: 0 3px 0 var(--ink); transition: transform .06s, box-shadow .06s; }
.credit:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.credit .slab { display: block; min-width: 92px; padding: 8px 12px 6px; border-radius: 7px; font-size: 1.5rem; line-height: 1; text-align: right; letter-spacing: .01em; }
.menu-btn { display: none; }

/* ---------- the scene: a concrete wall, one painted mark, the can in front of it.
   Everything is measured in em, so the whole scene scales with one font-size. */
.scene { --u: 16px; position: relative; flex: none; width: 36em; height: 30em; font-size: var(--u); }
.wall { position: absolute; left: 0; top: 0; width: 31em; height: 24.5em; overflow: hidden; }
/* the formwork: two tie holes per row, plugged and set back, and the joint between two boards */
.wall::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 5.5% 8%, #8f8e87 0 .3em, #a9a8a1 .32em .48em, rgba(255, 255, 255, .5) .5em .56em, transparent .6em),
    radial-gradient(circle at 94.5% 8%, #8f8e87 0 .3em, #a9a8a1 .32em .48em, rgba(255, 255, 255, .5) .5em .56em, transparent .6em),
    radial-gradient(circle at 5.5% 92%, #8f8e87 0 .3em, #a9a8a1 .32em .48em, rgba(255, 255, 255, .5) .5em .56em, transparent .6em),
    radial-gradient(circle at 94.5% 92%, #8f8e87 0 .3em, #a9a8a1 .32em .48em, rgba(255, 255, 255, .5) .5em .56em, transparent .6em),
    linear-gradient(180deg, transparent calc(72% - 1px), rgba(0, 0, 0, .08) calc(72% - 1px) 72%, rgba(255, 255, 255, .45) 72% calc(72% + 1px), transparent calc(72% + 1px));
}
.mark { position: absolute; left: calc(2.5 * var(--u)); top: calc(1.8 * var(--u)); bottom: calc(7.2 * var(--u)); right: calc(1.6 * var(--u)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; transform: rotate(-4deg); transform-origin: 0 50%; font-size: 8em; line-height: .84; letter-spacing: .005em; }
.mark span { display: block; white-space: nowrap; }
.mark .s { font-size: .36em; line-height: 1; margin: 0 0 .18em .05em; letter-spacing: .04em; }
.mark .b { font-size: .95em; margin-left: -.02em; }
.mark .b.l7 { font-size: .82em; }
.mark .b.l8 { font-size: .7em; }
.mark.fresh span { animation: spray .62s cubic-bezier(.5, .1, .4, 1) both; }
.mark.fresh span:nth-child(2) { animation-delay: .34s; }
.mark.fresh span:nth-child(3) { animation-delay: .62s; }
@keyframes spray { from { clip-path: inset(-10% 100% -10% -4%); } to { clip-path: inset(-10% -4% -10% -4%); } }

/* the can */
.can { position: absolute; right: 1.2em; bottom: .6em; width: 8.8em; height: 23.4em; transform: rotate(-3deg); transform-origin: 50% 100%; }
.can::before { /* where it stands */
  content: ''; position: absolute; left: -1.4em; right: -2.6em; bottom: -.9em; height: 1.9em; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 20, 22, .42), rgba(20, 20, 22, .18) 55%, transparent);
}
.cap {
  position: absolute; z-index: 3; left: 50%; top: 0; width: 4.7em; height: 3.9em; translate: -50% 0; padding: 0; border: 0;
  border-radius: 50% 50% .35em .35em / .55em .55em .3em .3em;
  background: linear-gradient(90deg, #7c0044 0%, #c3006a 9%, #f0168c 22%, #ff5eac 30%, #e5007c 42%, #c4006a 68%, #9b0053 86%, #6a003a 100%);
  box-shadow: inset 0 -.25em .3em rgba(0, 0, 0, .25);
  transition: transform .08s ease-out; -webkit-tap-highlight-color: transparent;
}
.cap::before { /* the top of the cap, seen from a little above */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1.1em; border-radius: 50%;
  background: radial-gradient(120% 140% at 35% 30%, #ff7fbf, #f21c8f 45%, #c8006c);
  box-shadow: inset 0 -.12em 0 rgba(0, 0, 0, .18);
}
.cap i { /* the nozzle, turned to the wall */
  position: absolute; left: -.28em; top: 1.15em; width: 1.05em; height: .78em; border-radius: .3em .2em .2em .3em;
  background: linear-gradient(180deg, #ff4aa2, #c9006d 60%, #8e004c);
  box-shadow: 0 .06em 0 rgba(0, 0, 0, .25);
}
.cap i::after { content: ''; position: absolute; left: .14em; top: .22em; width: .3em; height: .3em; border-radius: 50%; background: #2b0016; box-shadow: inset 0 .05em .05em rgba(0, 0, 0, .7); }
.cap:hover { filter: brightness(1.05); }
.cap:active { transform: translateY(.22em); }
.cap:focus-visible { outline-offset: 6px; border-radius: 10px; }
.valve { position: absolute; z-index: 2; left: 50%; top: 3.45em; width: 3.9em; height: 1.05em; translate: -50% 0; border-radius: 50%;
  background: linear-gradient(90deg, #6f6f73, #e9e9e6 24%, #b3b3b0 45%, #7a7a7e 70%, #c7c7c4 88%, #67676b);
  box-shadow: 0 .1em .15em rgba(0, 0, 0, .35);
}
.dome { position: absolute; z-index: 1; left: 0; right: 0; top: 3.9em; height: 2.9em; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    radial-gradient(60% 80% at 28% 70%, rgba(255, 255, 255, .7), transparent 60%),
    linear-gradient(90deg, #5d5d61 0%, #a3a3a6 10%, #f1f1ee 24%, #c4c4c1 38%, #8b8b8f 58%, #b9b9b6 80%, #ececea 90%, #5a5a5e 100%);
}
.dome::after { /* the bead where the dome is crimped onto the body */
  content: ''; position: absolute; left: -.12em; right: -.12em; bottom: -.32em; height: .62em; border-radius: .4em;
  background: linear-gradient(90deg, #545458, #a7a7aa 10%, #fbfbf9 23%, #c9c9c6 38%, #85858a 60%, #c2c2bf 82%, #f2f2ef 91%, #505054);
  box-shadow: 0 .12em .14em rgba(0, 0, 0, .45);
}
.body { position: absolute; left: 0; right: 0; top: 6.5em; bottom: 0; overflow: hidden; border-radius: 0 0 .55em .55em / 0 0 .35em .35em; background: var(--can); }
.body::after { /* one cylinder over print and metal alike: dark edges, a hard highlight left of centre */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .2) 7%, rgba(255, 255, 255, .07) 15%, rgba(255, 255, 255, .34) 21%, rgba(255, 255, 255, .1) 25%, rgba(255, 255, 255, 0) 33%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .2) 78%, rgba(255, 255, 255, .1) 88%, rgba(0, 0, 0, .55) 100%);
}
.body::before { /* the crimped foot */
  content: ''; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: .7em; border-radius: 0 0 .55em .55em / 0 0 .35em .35em;
  background: linear-gradient(90deg, #47474b, #9a9a9d 12%, #ebebe8 23%, #b6b6b3 40%, #77777b 62%, #b0b0ad 84%, #45454a);
}
.label { position: absolute; left: 0; right: 0; top: 1.25em; height: 9.6em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55em; background: var(--paint); color: #fff; text-align: center; }
.label::before, .label::after { content: ''; position: absolute; left: 0; right: 0; height: .22em; background: #fff; }
.label::before { top: .4em; }
.label::after { bottom: .4em; }
.label-name { font: 800 2.95em/.8 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.label-line { font: 700 .56em/1.25 var(--text); letter-spacing: .14em; text-transform: uppercase; max-width: 11em; }
.net { position: absolute; left: 0; right: 0; bottom: 1.35em; display: flex; flex-direction: column; align-items: center; gap: .3em; color: #f4f4f2; text-align: center; }
.net small { font: 700 .5em/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: #b9b9bd; }
.net b { font: 600 1.05em/1 var(--mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* a puff of paint between nozzle and wall, only while it sprays */
.mist { position: absolute; z-index: 0; left: 15.5em; top: 1.6em; width: 9em; height: 5em; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(224, 0, 122, .3), rgba(224, 0, 122, .12) 55%, transparent);
}
.scene.spraying .mist { animation: mist .9s ease-out; }
.scene.spraying .cap { animation: press .9s ease-out; }
@keyframes mist { 0% { opacity: 0; transform: translateX(2em) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(-1.5em) scale(1.2); } }
@keyframes press { 0%, 100% { transform: none; } 12%, 70% { transform: translateY(.2em); } }

/* ---------- home */
.hero { padding: clamp(24px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(28px, 5vw, 72px); }
.hero h1 { font: 800 var(--fs-5)/.84 var(--display); letter-spacing: -.005em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--paint); }
.hero .lead { margin-top: 28px; max-width: 30em; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.hero .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 36px; }

.band { padding: clamp(52px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.band h2 { font: 800 var(--fs-4)/.92 var(--display); letter-spacing: 0; text-wrap: balance; }
.band .intro { margin-top: 18px; max-width: 34em; color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 84px); align-items: start; }

/* price list */
.prices { width: 100%; border-collapse: collapse; font-size: var(--fs-2); }
.prices th { text-align: left; font: 600 var(--fs-0)/1.2 var(--text); color: var(--mute); padding: 0 0 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.prices td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.prices .n { text-align: right; font-family: var(--mono); font-size: .9375rem; white-space: nowrap; padding-left: 18px; font-variant-numeric: tabular-nums; }
.prices th.n { font-family: var(--text); font-size: var(--fs-0); }
.prices td:first-child { font-weight: 700; padding-right: 12px; }
.prices caption { caption-side: bottom; text-align: left; padding-top: 12px; font-size: var(--fs-0); color: var(--mute); }
.prices .id { display: block; font: 400 var(--fs-0)/1.3 var(--mono); color: var(--mute); overflow-wrap: anywhere; }
.prices .tag { font: 700 var(--fs-0)/1 var(--text); color: var(--paint-lo); margin-left: 8px; }
.prices tbody tr:hover td { background: color-mix(in srgb, var(--ground-hi) 80%, transparent); }
.more { display: inline-block; margin-top: 24px; font-weight: 700; }

/* code: white and magenta on the can's black */
.code { background: #0d0d0f; color: #ecebe6; border-radius: var(--r); overflow: hidden; }
.code-tabs { display: flex; align-items: center; gap: 4px; padding: 8px 8px 0 10px; }
.code-tabs button { background: none; border: 0; padding: 9px 13px; border-radius: 8px 8px 0 0; font: 600 var(--fs-1)/1 var(--text); color: #9c9ba3; }
.code-tabs button:hover { color: #fff; }
.code-tabs button[aria-selected='true'] { background: #222226; color: #fff; }
.code-tabs .copy { margin-left: auto; margin-bottom: 6px; }
.code pre { margin: 0; padding: 20px 22px 22px; background: #222226; overflow-x: auto; font: 400 .875rem/1.65 var(--mono); tab-size: 2; }
.code pre .c { color: #8c8b93; } .code pre .s { color: #ff8ec6; } .code pre .k { color: #fff; font-weight: 700; }
.copy { background: #34343a; color: #ecebe6; border: 0; border-radius: 7px; padding: 7px 11px; font: 600 var(--fs-0)/1 var(--text); }
.copy:hover { background: #45454c; }
.copy.done { background: var(--paint); color: #fff; }

/* the dark band: the can's matte black as ground */
.band.dark { background: var(--can); color: #f1f0eb; border-top: 0; }
.band.dark .intro { color: #b8b7bd; }
.band.dark .more:hover { text-decoration-color: var(--paint-hi); }
.band.dark + .band { border-top: 0; }

/* what is kept */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 64px); margin-top: clamp(26px, 4vw, 44px); }
.ledger h3 { font: 800 var(--fs-3)/1.1 var(--text); letter-spacing: -.02em; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.ledger li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.mem { counter-reset: mem; }
.mem li { display: grid; grid-template-columns: 2.4em 1fr; align-items: baseline; counter-increment: mem; }
.mem li::before { content: counter(mem, decimal-leading-zero); font: 800 1.45rem/1 var(--display); color: var(--paint); }
/* what is never kept is painted over: one pass of the can through each line */
.ledger .no li { position: relative; color: var(--ink-2); }
.ledger .no li span { position: relative; display: inline-block; }
.ledger .no li span::after { content: ''; position: absolute; left: -.25em; right: -.35em; top: 47%; height: .2em; margin-top: -.1em; border-radius: .1em; background: var(--paint); transform: rotate(-.8deg); opacity: .85; }
.fine { margin-top: 26px; max-width: 46em; color: var(--ink-2); }

/* questions */
.qa { border-top: 2px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 0; font: 700 1.1875rem/1.3 var(--text); letter-spacing: -.01em; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font: 400 1.6rem/1 var(--mono); color: var(--mute); flex: none; }
.qa details[open] summary::after { content: '\2212'; color: var(--paint); }
.qa p { padding: 0 0 20px; max-width: 44em; color: var(--ink-2); }

.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: var(--fs-1); color: var(--mute); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: baseline; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot a { color: var(--ink); font-weight: 600; }
.foot p { max-width: 40em; }

/* ---------- the account sheet */
dialog.sheet {
  width: min(100% - 24px, 500px); max-height: min(100dvh - 24px, 860px); padding: 0; border: 0; border-radius: 18px;
  background: var(--ground-hi); color: var(--ink); overflow: auto;
  box-shadow: 0 0 0 2px var(--ink), 0 30px 70px rgba(20, 20, 24, .38);
}
dialog.sheet::backdrop { background: rgba(22, 22, 25, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: rise .22s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes rise { from { transform: translateY(14px) scale(.985); opacity: 0; } }
.sheet-in { padding: 26px 26px 28px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sheet-head h2 { font: 800 2.4rem/.9 var(--display); }
.x { background: none; border: 0; width: 40px; height: 40px; margin: -8px -10px 0 0; border-radius: 9px; font: 400 1.7rem/1 var(--mono); color: var(--mute); }
.x:hover { background: var(--ground-lo); color: var(--ink); }
.sheet p { font-size: var(--fs-1); line-height: 1.5; }
/* the key: printed on a white label */
.keyline { margin: 4px 0 16px; padding: 15px 16px 14px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font: 500 1rem/1.45 var(--mono); word-break: break-all; user-select: all; }
/* the credit: sprayed on a piece of the wall */
.balance { margin: 4px 0 16px; padding: 18px 20px 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.balance b { font-size: 4rem; line-height: .82; }
.balance span { font: 700 var(--fs-0)/1.25 var(--text); color: var(--ink-2); text-align: right; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.spread { justify-content: space-between; }
.row.center { justify-content: center; }
.full { width: 100%; }
.gap-top { margin-top: 22px; }
.warn { margin: 20px 0 22px; padding-left: 14px; border-left: 4px solid var(--paint); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr) 1.25fr; gap: 9px; margin: 6px 0 18px; }
.amounts .key { padding: 0; min-height: 46px; }
.amounts .key[aria-pressed='true'] { --face: var(--ink); --edge: #000; --on: #fff; }
.amounts label { position: relative; display: block; }
.amounts label span { position: absolute; left: 12px; top: 50%; translate: 0 -50%; font-weight: 700; pointer-events: none; }
.amounts input { width: 100%; height: 46px; padding: 0 8px 0 26px; border: 2px solid var(--ink); border-radius: 9px; background: #fff; font: 700 var(--fs-2)/1 var(--text); }
.pay { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 18px; align-items: start; }
.qr { width: 148px; height: 148px; background: #fff; padding: 8px; border-radius: 10px; box-shadow: 0 0 0 2px var(--ink); }
.qr svg, .qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.field { margin-bottom: 12px; }
.field > span { display: block; font: 600 var(--fs-0)/1.2 var(--text); color: var(--mute); margin-bottom: 5px; }
.field .val { display: flex; align-items: flex-start; gap: 8px; }
.field .val b { flex: 1; min-width: 0; font: 500 .8125rem/1.4 var(--mono); overflow-wrap: anywhere; }
.field .val b.amt { font: 700 1.375rem/1.1 var(--mono); letter-spacing: -.01em; }
.mini { background: var(--ink); color: #fff; border: 0; border-radius: 7px; padding: 7px 10px; font: 600 var(--fs-0)/1 var(--text); flex: none; box-shadow: 0 2px 0 #000; }
.mini:hover { background: var(--ink-2); }
.mini:active { transform: translateY(1px); box-shadow: 0 1px 0 #000; }
.mini.done { background: var(--good); }
.status { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--ground-lo); font-weight: 600; font-size: var(--fs-1); }
.status.seen { background: #f8d5e7; }
.status.ok { background: var(--paint); color: #fff; }
/* waiting: three strokes painted one after the other */
.wait { width: 30px; height: 6px; flex: none; background: linear-gradient(90deg, var(--paint) 0 8px, transparent 8px 11px, var(--paint) 11px 19px, transparent 19px 22px, var(--paint) 22px 30px); border-radius: 3px; animation: wait 1.2s steps(4) infinite; }
@keyframes wait { 0% { clip-path: inset(0 100% 0 0); } 25% { clip-path: inset(0 63% 0 0); } 50% { clip-path: inset(0 27% 0 0); } 75%, 100% { clip-path: inset(0 0 0 0); } }
.notes { margin-top: 16px; font-size: var(--fs-0); color: var(--mute); line-height: 1.5; }
.notes a { color: var(--ink); font-weight: 600; }
.payments { margin-top: 20px; border-top: 2px solid var(--ink); }
.payments li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-1); }
.payments li span:last-child { font-family: var(--mono); font-size: var(--fs-0); color: var(--mute); text-align: right; }
.sheet-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--fs-1); }
.sheet-foot .danger { color: var(--bad); }
.paste { display: flex; gap: 10px; margin-top: 12px; }
.paste input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font: 500 var(--fs-1)/1 var(--mono); }
.err { color: var(--bad); font-weight: 600; margin-top: 10px; font-size: var(--fs-1); }
.credited { text-align: center; padding: 6px 0 4px; }
.credited .slab { padding: 22px 16px 22px; }
.credited .slab small { display: block; font-size: 1.35rem; line-height: 1; margin-bottom: 6px; letter-spacing: .04em; }
.credited .slab b { display: block; font-size: 5.6rem; line-height: .8; }
.credited p { margin: 18px 0 20px; font-size: var(--fs-2); }

.toast { position: fixed; left: 50%; bottom: 26px; translate: -50% 0; z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: var(--fs-1); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); animation: rise .2s ease-out; max-width: calc(100% - 32px); }

/* ---------- text pages */
.page { padding: clamp(30px, 6vw, 70px) 0 clamp(60px, 8vw, 110px); }
.page h1 { font: 800 clamp(3.2rem, 1.9rem + 5vw, 5.6rem)/.86 var(--display); text-wrap: balance; }
.page .lead { margin-top: 20px; max-width: 36em; font-size: 1.25rem; line-height: 1.45; color: var(--ink-2); }
.prose { max-width: 44em; }
.prose h2 { font: 800 2.3rem/.95 var(--display); margin: 52px 0 14px; }
.prose h3 { font: 800 1.1875rem/1.2 var(--text); margin: 30px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul { list-style: square; padding-left: 1.2em; }
.prose ul li::marker { color: var(--paint); }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose code { font: 500 .9em var(--mono); background: var(--ground-lo); padding: .12em .38em; border-radius: 5px; }
.prose .code { margin: 16px 0 22px; }
.prose .code code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: var(--fs-1); }
.prose th { text-align: left; font-weight: 700; border-bottom: 2px solid var(--ink); padding: 8px 12px 8px 0; }
.prose td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }

/* ---------- small screens */
@media (max-width: 1080px) {
  .scene { --u: 14px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .scene { --u: clamp(8px, (100vw - 2 * var(--gutter)) / 36, 16px); margin: 30px auto 0; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 76px 0 auto 0; z-index: 29; flex-direction: column; gap: 0; padding: 6px var(--gutter) 18px; background: var(--ground); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(20, 20, 24, .14); font-size: 1.25rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current='page'] { border-bottom-color: var(--line); color: var(--paint-lo); }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; margin-right: -8px; background: none; border: 0; border-radius: 9px; }
  .menu-btn svg { width: 24px; height: 24px; }
  .top .wrap { gap: 12px; }
  .top-x { display: none; }
  .brand { font-size: 1.85rem; }
  .ledger { grid-template-columns: 1fr; gap: 34px; }
  .prices .ctx { display: none; }
  .pay { grid-template-columns: 1fr; }
  .qr { margin-inline: auto; }
  .amounts { grid-template-columns: repeat(4, 1fr); }
  .amounts label { grid-column: 1 / -1; }
  .sheet-in { padding: 22px 18px 24px; }
  .hero .acts .key.big { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .scene.spraying .mist { animation: none; }
}
