/* Hush. One object carries the look: an old padded telephone booth with its folding door open. Inside, the walls are
   button-tufted mulberry velvet and a small lamp hangs from the ceiling; on the back wall sits an ivory enamel plate
   in a brass rim, "Quiet please", and under it what matters now (get a key, load Monero, the credit). The plate is the
   button. The booth is mustard lacquer, the page is a pale biscuit felt, mulberry is the one colour you press. */

@font-face { font-family: 'Caprasimo'; src: url('/fonts/caprasimo.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Rethink Sans'; src: url('/fonts/rethink-sans.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Ubuntu Sans Mono'; src: url('/fonts/ubuntu-sans-mono.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --ground: #f2eadc;
  --ground-hi: #fbf7ef;
  --ground-lo: #e8ddcb;
  --line: #dbcdb8;
  --line-2: #bfae95;
  --ink: #26161d;
  --ink-2: #47343c;
  --mute: #78666c;
  --mulberry: #6b2346;
  --mulberry-hi: #8c3461;
  --mulberry-lo: #47152e;
  --mulberry-deep: #2a0c1b;
  --mustard: #d29a26;
  --mustard-hi: #f0c65a;
  --mustard-lo: #946410;
  --brass: #b98a3c;
  --brass-hi: #ecd28e;
  --enamel: #f8f2e4;
  --lamp: #ffe3a3;
  --good: #2c6a3d;
  --bad: #b0302a;

  --display: 'Caprasimo', 'Cooper Black', Georgia, serif;
  --text: 'Rethink Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Ubuntu Sans 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.4rem + 2.6vw, 3.4rem);
  --fs-5: clamp(3rem, 1.4rem + 5.6vw, 6.1rem);

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

*, *::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(--mulberry); }
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(--mulberry); color: #fff; }
:focus-visible { outline: 3px solid var(--mulberry); 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: a padded cushion, stitched round the edge, pressed into its frame */
.key {
  --face: #fffdf8; --edge: var(--ink); --rim: var(--ink); --on: var(--ink); --stitch: rgba(38, 22, 29, .28);
  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: 14px;
  background: var(--face); color: var(--on); font: 700 var(--fs-2)/1 var(--text); letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 0 0 3px var(--face), inset 0 0 0 4.5px var(--stitch), 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: #fff; }
.key:active, .key[aria-pressed='true'] { transform: translateY(3px); box-shadow: inset 0 0 0 3px var(--face), inset 0 0 0 4.5px var(--stitch), 0 1px 0 var(--edge); }
.key:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: inset 0 0 0 3px var(--face), inset 0 0 0 4.5px var(--stitch), 0 4px 0 var(--edge); }
.key.go { --face: var(--mulberry); --edge: var(--mulberry-deep); --rim: var(--mulberry-deep); --on: #fff; --stitch: rgba(255, 220, 236, .38); }
.key.go:hover { --face: #7a2952; }
.key.dark { --face: var(--mulberry-deep); --edge: #000; --rim: #000; --on: #fff; --stitch: rgba(255, 255, 255, .22); }
.key.dark:hover { --face: var(--mulberry-lo); }
.key.big { min-height: 60px; padding: 0 1.6em; font-size: 1.1875rem; border-radius: 18px; box-shadow: inset 0 0 0 3.5px var(--face), inset 0 0 0 5px var(--stitch), 0 5px 0 var(--edge); }
.key.big:active { transform: translateY(4px); box-shadow: inset 0 0 0 3.5px var(--face), inset 0 0 0 5px var(--stitch), 0 1px 0 var(--edge); }
.key.small { min-height: 40px; padding: 0 .95em; font-size: var(--fs-1); border-radius: 11px; box-shadow: inset 0 0 0 2.5px var(--face), inset 0 0 0 3.5px var(--stitch), 0 3px 0 var(--edge); }
.key.small:active, .key.small[aria-pressed='true'] { transform: translateY(2px); box-shadow: inset 0 0 0 2.5px var(--face), inset 0 0 0 3.5px var(--stitch), 0 1px 0 var(--edge); }
.key svg { width: 1.1em; height: 1.1em; flex: none; }
.plain { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.plain:hover { text-decoration-thickness: .14em; text-decoration-color: var(--mulberry); }

/* ---------- enamel: the plate on the back wall, and every small plate that shows a value.
   Ivory vitreous enamel, a brass rim, the letters fired in mulberry. */
.enamel {
  position: relative; border-radius: 7px; color: var(--mulberry);
  background:
    linear-gradient(104deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, .7) 44%, rgba(255, 255, 255, 0) 54%),
    radial-gradient(120% 140% at 30% 20%, #fffdf6, var(--enamel) 55%, #e9dfca);
  box-shadow: inset 0 0 0 2px #fff8e6, inset 0 0 0 3.5px var(--brass), 0 0 0 2px #8a6420, 0 2px 0 2px #6e4f17, 0 8px 16px rgba(40, 16, 26, .28);
}
.lettered { font-family: var(--display); font-weight: 400; color: var(--mulberry); font-variant-numeric: lining-nums tabular-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: -.01em; color: var(--ink); }
.brand span { translate: 0 -1px; }
.brand svg { width: 30px; height: 35px; }
.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(--mulberry); }
.top-x { display: inline-flex; padding: 8px; margin: -8px; }
.top-x svg { width: 19px; height: 19px; }
/* the credit at the top: a small enamel plate, pressable */
.credit { display: inline-flex; align-items: center; padding: 0; border: 0; border-radius: 7px; background: none; transition: transform .06s; }
.credit:active { transform: translateY(2px); }
.credit .enamel { display: block; min-width: 92px; padding: 9px 13px 8px; font-size: 1.3rem; line-height: 1; text-align: right; }
.menu-btn { display: none; }

/* ---------- the scene: the booth. Drawn in SVG at 340 units for 34em, so one unit is a tenth of an em; the plate
   (an HTML button) sits on the back wall at the same measures. Everything scales with one font-size. */
.scene { --u: 16px; position: relative; flex: none; width: 34em; height: 34em; font-size: var(--u); }
.booth { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.booth .glow { transition: opacity .9s ease-out; }
.scene.lit .booth .glow { animation: lamp 1.6s ease-out; }
@keyframes lamp { 0% { opacity: .35; } 18% { opacity: .9; } 30% { opacity: .55; } 100% { opacity: 1; } }

.plate {
  position: absolute; z-index: 2; left: 9.4em; top: 11.4em; width: 13.2em; height: 7em; padding: .3em 1.3em 0; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05em;
  -webkit-tap-highlight-color: transparent; transition: transform .07s ease-out, box-shadow .07s, filter .12s;
}
.plate::before, .plate::after { /* two brass screws */
  content: ''; position: absolute; top: 50%; width: .62em; height: .62em; margin-top: -.31em; border-radius: 50%;
  background: linear-gradient(135deg, transparent 44%, rgba(70, 45, 10, .75) 44% 56%, transparent 56%), radial-gradient(circle at 35% 30%, #f8e6b0, #b98a3c 60%, #6e4f17);
}
.plate::before { left: .5em; }
.plate::after { right: .5em; }
.plate .says { font: 800 .6em/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--mulberry-lo); padding-bottom: .5em; margin-bottom: .2em; border-bottom: 1.5px solid rgba(107, 35, 70, .35); }
.plate b { font-size: 2.05em; line-height: 1; white-space: nowrap; }
.plate b.l8 { font-size: 1.75em; }
.plate small { font: 600 .74em/1.2 var(--text); color: var(--ink-2); }
.plate:hover { filter: brightness(1.03); }
.plate:active { transform: translateY(.12em); box-shadow: inset 0 0 0 2px #fff8e6, inset 0 0 0 3.5px var(--brass), 0 0 0 2px #8a6420, 0 .5px 0 2px #6e4f17, 0 3px 8px rgba(40, 16, 26, .28); }
.plate:focus-visible { outline-color: var(--lamp); outline-offset: 5px; }
.plate.fresh b, .plate.fresh small { animation: fire .55s ease-out both; }
@keyframes fire { from { opacity: 0; transform: translateY(.1em); } }

/* ---------- 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)/.95 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--mulberry); }
.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 b { font-weight: 700; color: var(--ink); }
.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)/1 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.band h2 em { font-style: normal; color: var(--mulberry); }
.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: 700 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 tr.front td:first-child { font: 400 1.2rem/1.2 var(--display); letter-spacing: -.005em; }
.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(--mulberry); 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: lamp light inside the booth */
.code { background: #1d0812; color: #f4e7ec; 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: 9px 9px 0 0; font: 600 var(--fs-1)/1 var(--text); color: #b893a5; }
.code-tabs button:hover { color: #fff; }
.code-tabs button[aria-selected='true'] { background: #351221; color: #fff; }
.code-tabs .copy { margin-left: auto; margin-bottom: 6px; }
.code pre { margin: 0; padding: 20px 22px 22px; background: #351221; overflow-x: auto; font: 400 .875rem/1.65 var(--mono); tab-size: 2; }
.code pre .c { color: #a98596; } .code pre .s { color: var(--mustard-hi); } .code pre .k { color: #fff; font-weight: 700; }
.copy { background: #4a1a30; color: #f4e7ec; border: 0; border-radius: 8px; padding: 7px 11px; font: 600 var(--fs-0)/1 var(--text); }
.copy:hover { background: #5c2340; }
.copy.done { background: var(--mustard); color: var(--ink); }

/* the dark band: the velvet as ground */
.band.dark { background: var(--mulberry-deep); color: #f6ebef; border-top: 0; }
.band.dark .intro { color: #d2b8c3; }
.band.dark h2 em { color: var(--mustard-hi); }
.band.dark .more:hover { text-decoration-color: var(--mustard-hi); }
.band.dark + .band { border-top: 0; }

/* what stays inside the booth, and what never leaves it */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 64px); margin-top: clamp(26px, 4vw, 44px); }
.ledger h3 { font: 400 1.6rem/1.1 var(--display); letter-spacing: -.005em; 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: 2em 1fr; align-items: baseline; counter-increment: mem; }
.mem li::before { content: counter(mem); font: 400 1.25rem/1 var(--display); color: var(--mulberry); }
/* never kept: each line sits next to a tufting button */
.ledger .no li { display: flex; align-items: baseline; gap: 14px; color: var(--ink-2); }
.ledger .no li::before { content: ''; flex: none; width: 13px; height: 13px; translate: 0 1px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #b45a87, var(--mulberry) 55%, var(--mulberry-lo)); box-shadow: 0 0 0 3px rgba(107, 35, 70, .14); }
.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(--mulberry); }
.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(40, 12, 26, .4);
}
dialog.sheet::backdrop { background: rgba(42, 12, 27, .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.2rem/1 var(--display); letter-spacing: -.01em; }
.x { background: none; border: 0; width: 40px; height: 40px; margin: -8px -10px 0 0; border-radius: 10px; 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: typed on a white card */
.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: fired into an enamel plate */
.balance { margin: 6px 4px 18px; padding: 18px 20px 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.balance b { font-size: 3.3rem; line-height: .9; }
.balance span { font: 800 var(--fs-0)/1.25 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--mulberry-lo); 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(--mulberry); }
.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; --stitch: rgba(255, 255, 255, .25); }
.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: 12px; 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: #f6e0a8; }
.status.ok { background: var(--mulberry); color: #fff; }
/* waiting: three tufting buttons light up one after the other */
.wait { width: 30px; height: 8px; flex: none; border-radius: 4px; background: radial-gradient(circle, var(--mulberry) 0 3.2px, transparent 3.7px) 0 0 / 10px 8px; animation: wait 1.2s steps(4) infinite; }
@keyframes wait { 0% { clip-path: inset(0 100% 0 0); } 25% { clip-path: inset(0 66% 0 0); } 50% { clip-path: inset(0 33% 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: 12px; 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 .enamel { margin: 4px; padding: 20px 16px 22px; }
.credited .enamel small { display: block; font: 800 var(--fs-0)/1 var(--text); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px; color: var(--mulberry-lo); }
.credited .enamel b { display: block; font-size: 4.4rem; line-height: .9; }
.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: 400 clamp(2.8rem, 1.6rem + 4.2vw, 4.8rem)/.95 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.page h1 em { font-style: normal; color: var(--mulberry); }
.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 2rem/1.05 var(--display); letter-spacing: -.01em; 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: disc; padding-left: 1.2em; }
.prose ul li::marker { color: var(--mulberry); }
.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.5, 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(40, 12, 26, .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(--mulberry); }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; margin-right: -8px; background: none; border: 0; border-radius: 10px; }
  .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; }
}

/* CA-Leiste (nur wenn COIN_CA gesetzt ist) */
.ca-bar { background: var(--mulberry-deep); color: var(--lamp); font-size: 13px; }
.ca-bar .wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; min-height: 38px; padding-block: 6px; }
.ca-t { font-family: var(--display); font-size: 18px; color: var(--mustard-hi); }
.ca-v { font-family: var(--mono); color: var(--ground-hi); overflow-wrap: anywhere; min-width: 0; }
.ca-copy, .ca-go { font: inherit; font-weight: 700; color: var(--ink); background: var(--ground-hi); border: 0; border-radius: 7px; padding: 4px 10px; cursor: pointer; text-decoration: none; }
.ca-go { background: var(--mustard); color: var(--mulberry-deep); }
