/* Bauta. One object carries the look: a plaster carnival mask hung by a black satin ribbon on a brass hook, on a
   wall of lagoon-green Venetian plaster. Its cloakroom ticket hangs next to it and says what matters (get a key,
   load Monero, the credit). The ticket's number is the end of your key: you are a number here, not a name.
   The page itself is pale gesso, the wall's green is the dark ground, gold leaf is the only ornament. */

@font-face { font-family: 'Gloock'; src: url('/fonts/gloock.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Commissioner'; src: url('/fonts/commissioner.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Sometype Mono'; src: url('/fonts/sometype-mono.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --ground: #f1ece2;
  --ground-hi: #f9f6ef;
  --ground-lo: #e6dfd1;
  --line: #d4cbba;
  --ink: #1b1716;
  --ink-2: #3a3431;
  --mute: #6d655b;
  --lagoon: #24514d;
  --lagoon-hi: #2f6661;
  --lagoon-lo: #173734;
  --gilt: #c3923a;
  --gilt-hi: #e9c46d;
  --gilt-lo: #8a6220;
  --card: #ecdcb2;
  --card-lo: #dcc38a;
  --good: #1d6b4c;
  --bad: #b02e22;

  --display: 'Gloock', Georgia, 'Times New Roman', serif;
  --text: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Sometype 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.1rem, 1.5rem + 2.4vw, 3.4rem);
  --fs-5: clamp(3.1rem, 1.7rem + 5.6vw, 6.4rem);

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

  /* plaster and card: fine grain, and a few slow clouds for the trowelled wall, drawn once as 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='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .08 0 0 0 0 .05 .5 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='.006 .011' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 1 0 0 0 0 .95 .7 0 0 0 -.3'/%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(--gilt); }
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(--lagoon); color: #fff; }
:focus-visible { outline: 3px solid var(--gilt); 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: lacquered, with an ink lip, pressed down */
.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: 8px;
  background: var(--face); color: var(--on); font: 650 var(--fs-2)/1 var(--text); letter-spacing: -.005em;
  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(--lagoon); --edge: var(--lagoon-lo); --rim: var(--lagoon-lo); --on: #fff; }
.key.go:hover { --face: var(--lagoon-hi); }
.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: 10px; 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: 7px; 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(--gilt); }

/* ---------- the cloakroom ticket: manila card, a notch in each side, a brass eyelet. Every value that is yours
   (the credit) is written on one. */
.ticket {
  position: relative; display: block; color: var(--ink);
  background: var(--grain), linear-gradient(172deg, #f4e7c6, var(--card) 55%, #e2cd98);
  border-radius: 3px;
  -webkit-mask: radial-gradient(circle .42em at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle .42em at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle .42em at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle .42em at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.ticket::after { /* the printed border, a hair inside the edge */
  content: ''; position: absolute; inset: .3em; border: 1px solid rgba(27, 23, 22, .28); border-radius: 2px; pointer-events: none;
}
.held { filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .18)) drop-shadow(0 6px 8px rgba(30, 22, 10, .18)); }
.num { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; font-variant-numeric: lining-nums; }

/* ---------- 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: 400 2rem/1 var(--display); letter-spacing: -.02em; }
.brand span { translate: 0 -1px; }
.brand svg { width: 30px; height: 34px; }
.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(--gilt); }
.top-x { display: inline-flex; padding: 8px; margin: -8px; }
.top-x svg { width: 19px; height: 19px; }
/* the credit at the top: a small ticket with the number on it, pressable */
.credit { display: inline-flex; padding: 0; border: 0; background: none; transition: transform .06s; }
.credit:active { transform: translateY(2px); }
.credit .ticket { min-width: 96px; padding: 9px 16px 8px; font-size: 1.45rem; line-height: 1; text-align: center; }
.credit .ticket::after { inset: .22em; }
.menu-btn { display: none; }

/* ---------- the scene: the wall, the hook, the mask on its ribbon, the ticket on its pin.
   Everything is measured in em, so the whole scene scales with one font-size. */
.scene { --u: 16px; position: relative; flex: none; width: 34em; height: 31em; font-size: var(--u); }
.wall {
  position: absolute; inset: 0; border-radius: 4px; overflow: hidden;
  background:
    var(--grain),
    var(--clouds) center / 140% 140% no-repeat,
    radial-gradient(90% 70% at 26% 16%, rgba(255, 255, 255, .09), transparent 70%),
    linear-gradient(165deg, #2c605b, var(--lagoon) 48%, #1d4541);
  background-blend-mode: normal, soft-light, normal, normal;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), inset 0 -3em 4em -2em rgba(0, 0, 0, .18);
}
.mask-btn { position: absolute; left: 1.4em; top: .6em; width: 19.5em; padding: 0; border: 0; background: none; -webkit-tap-highlight-color: transparent; transition: transform .12s ease-out; }
.mask-btn svg { width: 100%; height: auto; overflow: visible; }
.mask-btn:hover { transform: translateY(-.12em); }
.mask-btn:active { transform: translateY(.1em); }
.mask-btn:focus-visible { outline-offset: -1em; border-radius: 40%; }
/* the pin the ticket hangs from, and the ticket swinging on its string */
.pin { position: absolute; z-index: 3; left: 27.6em; top: 3.6em; width: .9em; height: .9em; margin: -.45em 0 0 -.45em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gilt-hi) 25%, var(--gilt) 55%, var(--gilt-lo) 85%);
  box-shadow: .18em .3em .3em rgba(0, 0, 0, .45);
}
.tag { position: absolute; z-index: 2; left: 22.35em; top: 3.6em; width: 10.5em; transform-origin: 50% 0; transform: rotate(3deg); }
.tag .string { position: absolute; left: 50%; top: 0; width: 2px; height: 4.6em; margin-left: -1px; background: linear-gradient(90deg, #f3ead6, #c8b896); box-shadow: .25em .3em .25em rgba(0, 0, 0, .28); }
.tag .ticket { margin-top: 4.25em; height: 14em; padding: 2.15em .9em 1em; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tag .ticket::before { /* the eyelet */
  content: ''; position: absolute; left: 50%; top: .55em; width: 1.05em; height: 1.05em; margin-left: -.525em; border-radius: 50%;
  background: radial-gradient(circle, var(--lagoon-lo) 0 .26em, var(--gilt-lo) .27em .31em, var(--gilt-hi) .33em .42em, var(--gilt) .44em .5em, transparent .52em);
}
.tag-no { font: 400 1.02em/1 var(--display); letter-spacing: .01em; color: var(--ink-2); padding-bottom: .5em; border-bottom: 1px solid rgba(27, 23, 22, .3); width: 100%; }
.tag-no b { font-family: var(--mono); font-weight: 600; font-size: .86em; letter-spacing: .02em; }
.tag-big { flex: 1; display: flex; flex-direction: column; justify-content: center; font: 400 2.9em/.9 var(--display); letter-spacing: -.02em; }
.tag-big small { display: block; font: 400 .36em/1 var(--display); letter-spacing: 0; color: var(--mute); margin-bottom: .4em; }
.tag-big.l7 { font-size: 2.45em; }
.tag-big.l8 { font-size: 2.1em; }
.tag-small { font: 600 .78em/1.25 var(--text); color: var(--ink-2); padding-top: .55em; border-top: 1px solid rgba(27, 23, 22, .3); width: 100%; }
.tag.swing { animation: swing 1.5s cubic-bezier(.3, .6, .3, 1); }
@keyframes swing { 0% { transform: rotate(3deg); } 14% { transform: rotate(-9deg); } 34% { transform: rotate(7deg); } 54% { transform: rotate(-3.5deg); } 74% { transform: rotate(4.5deg); } 100% { transform: rotate(3deg); } }

/* ---------- 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: 400 var(--fs-5)/.92 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--lagoon); }
.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 .lead strong { color: var(--ink); font-weight: 700; }
.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: 400 var(--fs-4)/.98 var(--display); letter-spacing: -.03em; 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-unc { font: 600 var(--fs-0)/1 var(--text); color: var(--gilt-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: cream and gold on the wall's green, gone darker */
.code { background: #0f2321; color: #ece6d8; 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: #93a8a4; }
.code-tabs button:hover { color: #fff; }
.code-tabs button[aria-selected='true'] { background: #1a3532; color: #fff; }
.code-tabs .copy { margin-left: auto; margin-bottom: 6px; }
.code pre { margin: 0; padding: 20px 22px 22px; background: #1a3532; overflow-x: auto; font: 400 .875rem/1.65 var(--mono); tab-size: 2; }
.code pre .c { color: #85a09b; } .code pre .s { color: var(--gilt-hi); } .code pre .k { color: #fff; font-weight: 700; }
.copy { background: #2a4c48; color: #ece6d8; border: 0; border-radius: 7px; padding: 7px 11px; font: 600 var(--fs-0)/1 var(--text); }
.copy:hover { background: #355d58; }
.copy.done { background: var(--gilt); color: var(--ink); }

/* the dark band: the wall's green as ground */
.band.dark { background: var(--grain), var(--lagoon); color: #f1ece2; border-top: 0; }
.band.dark .intro { color: #c3d3cf; }
.band.dark .more:hover { text-decoration-color: var(--gilt-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: 700 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: 400 1.4rem/1 var(--display); color: var(--gilt-lo); }
/* what is never kept is struck through with a thread of the black ribbon */
.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: -.2em; right: -.25em; top: 54%; height: .15em; margin-top: -.075em; border-radius: 1px; background: var(--ink); transform: rotate(-.6deg); }
.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(--gilt-lo); }
.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: 16px;
  background: var(--ground-hi); color: var(--ink); overflow: auto;
  box-shadow: 0 0 0 2px var(--ink), 0 30px 70px rgba(16, 30, 28, .38);
}
dialog.sheet::backdrop { background: rgba(14, 30, 28, .58); 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: 400 2.3rem/.95 var(--display); letter-spacing: -.03em; }
.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 card */
.keyline { margin: 4px 0 16px; padding: 15px 16px 14px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; font: 500 1rem/1.45 var(--mono); word-break: break-all; user-select: all; }
/* the credit: written on the ticket */
.held:has(> .balance) { margin: 4px 0 18px; }
.balance { padding: 20px 24px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.balance b { font-size: 3.6rem; line-height: .82; }
.balance span { font: 600 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(--gilt); }
.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: 8px; 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: 8px; 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: 9px; background: var(--ground-lo); font-weight: 600; font-size: var(--fs-1); }
.status.seen { background: #f1e2bb; }
.status.ok { background: var(--lagoon); color: #fff; }
/* waiting: three gilt beads lit one after the other */
.wait { width: 30px; height: 8px; flex: none; background: radial-gradient(circle 4px at 4px 50%, var(--gilt) 98%, transparent), radial-gradient(circle 4px at 15px 50%, var(--gilt) 98%, transparent), radial-gradient(circle 4px at 26px 50%, var(--gilt) 98%, transparent); 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: 8px; 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 .ticket { width: min(100%, 300px); margin-inline: auto; padding: 24px 16px 24px; }
.credited .ticket small { display: block; font: 400 1.25rem/1 var(--display); color: var(--mute); margin-bottom: 8px; }
.credited .ticket b { display: block; font-size: 4.6rem; line-height: .85; }
.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: 9px; 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: 400 clamp(2.9rem, 1.8rem + 4.4vw, 5rem)/.95 var(--display); letter-spacing: -.035em; 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: 400 2.1rem/1 var(--display); letter-spacing: -.025em; margin: 52px 0 14px; }
.prose h3 { font: 700 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(--gilt); }
.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)) / 34, 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(--lagoon); }
  .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.8rem; }
  .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; }
}
