/* Morse. One object carries the look: a brass telegraph key on an ebonised base, with a paper tape in front.
   The page is the yellow of a telegram blank, ink is the blue-black of the tape, buttons are pressed like the
   black knob of the key, and the tape says what matters (get a key, load Monero, the credit). Signal red only for
   the second half of a headline and for warnings. */

@font-face { font-family: 'Abril Fatface'; src: url('/fonts/abril-fatface.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url('/fonts/alegreya-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url('/fonts/alegreya-sans-500.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url('/fonts/alegreya-sans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url('/fonts/alegreya-sans-800.woff2') format('woff2'); font-weight: 800 900; font-display: swap; }
@font-face { font-family: 'Cutive Mono'; src: url('/fonts/cutive-mono.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --ground: #efe2ae;
  --ground-hi: #f8f0cf;
  --ground-lo: #e4d497;
  --line: #d3bf78;
  --ink: #17182a;
  --ink-2: #34344a;
  --mute: #6a6249;
  --ebony: #1c1512;
  --ebony-hi: #33261f;
  --ebony-lo: #0d0907;
  --brass: #c8973a;
  --brass-hi: #f3d68a;
  --brass-lo: #84591a;
  --paper: #fbf6e6;
  --paper-lo: #ece2c6;
  --signal: #b0301f;
  --signal-lo: #7d1e12;
  --good: #2f6b3a;
  --bad: #b0301f;

  --display: 'Abril Fatface', Georgia, serif;
  --text: 'Alegreya Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Cutive Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-0: .875rem;
  --fs-1: 1rem;
  --fs-2: 1.125rem;
  --fs-3: 1.4375rem;
  --fs-4: clamp(2.1rem, 1.4rem + 2vw, 3.1rem);
  --fs-5: clamp(3.1rem, 1.6rem + 5.2vw, 6.1rem);

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

  /* telegram paper: a fine fibre grain, 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .1 .4 0 0 0 -.16'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23f)'/%3E%3C/svg%3E");
  /* the torn end of a strip of tape */
  --torn: polygon(0 0, calc(100% - 4px) 0, 100% 14%, calc(100% - 5px) 28%, calc(100% - 1px) 44%, calc(100% - 6px) 60%, calc(100% - 2px) 76%, calc(100% - 5px) 90%, calc(100% - 1px) 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--grain), var(--ground); color: var(--ink);
  font: 400 var(--fs-2)/1.5 var(--text); font-synthesis: none; font-variant-numeric: lining-nums;
  -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(--signal); }
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(--ink); color: var(--ground-hi); }
:focus-visible { outline: 3px solid var(--ink); 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: pressed down like the black knob of the key */
.key {
  --face: var(--paper); --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: 999px;
  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: 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: 0 1px 0 var(--edge); }
.key:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--edge); }
/* the knob: black ebonite with a brass skirt under it */
.key.go { --face: radial-gradient(120% 140% at 30% 0%, #3a3b48, #14141c 55%, #07070a); --edge: var(--brass-lo); --rim: #07070a; --on: var(--paper); background: var(--face); }
.key.go:hover { --face: radial-gradient(120% 140% at 30% 0%, #4a4b5a, #1c1c26 55%, #0b0b10); }
.key.go:focus-visible { outline-color: var(--signal); }
.key.dark { --face: var(--ink); --edge: #000; --rim: #000; --on: #fff; }
.key.big { min-height: 62px; padding: 0 1.7em; font-size: 1.25rem; 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 1em; font-size: var(--fs-1); 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: 700; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.plain:hover { text-decoration-thickness: .14em; text-decoration-color: var(--signal); }

/* ---------- a slip of the paper tape: typed in ink, torn off on the right */
.slip {
  position: relative; color: var(--ink); border-radius: 3px 0 0 3px;
  background: var(--grain), linear-gradient(180deg, #fffbf1, var(--paper) 60%, var(--paper-lo));
  clip-path: var(--torn);
}
.slip b, .slip .num { font-family: var(--mono); font-weight: 400; letter-spacing: .02em; -webkit-text-stroke: .025em currentColor; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 30; background: var(--grain), color-mix(in srgb, var(--ground) 94%, 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: 11px; text-decoration: none; font: 400 2rem/1 var(--display); letter-spacing: .005em; color: var(--ink); }
.brand span { translate: 0 -1px; }
.brand svg { width: 46px; height: 30px; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; font-weight: 700; 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(--signal); }
.top-x { display: inline-flex; padding: 8px; margin: -8px; }
.top-x svg { width: 19px; height: 19px; }
/* the credit at the top: a slip of tape with the amount typed on it, pressable */
.credit { display: inline-flex; align-items: center; padding: 0; border: 0; background: none; filter: drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 0 .6px var(--ink)); transition: transform .06s, filter .06s; }
.credit:active { transform: translateY(2px); filter: drop-shadow(0 0 0 var(--ink)) drop-shadow(0 0 .6px var(--ink)); }
.credit .slip { display: block; min-width: 100px; padding: 10px 18px 9px 14px; font: 400 1.25rem/1 var(--mono); -webkit-text-stroke: .025em currentColor; text-align: left; }
.menu-btn { display: none; }


/* ---------- the telegraph key (drawn by key.js as one SVG; here only its size and its motion) */
.telegraph { position: relative; flex: none; display: block; width: var(--bw, 620px); aspect-ratio: 720 / 372; padding: 0; border: 0; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.telegraph svg { width: 100%; height: auto; overflow: visible; }
.telegraph .lever { transform-box: view-box; transform-origin: 330px 214px; transition: transform .08s ease-out; }
button.telegraph:hover .lever { transform: rotate(.8deg); }
button.telegraph:active .lever { transform: rotate(3deg); transition-duration: .03s; }
button.telegraph:focus-visible { outline-offset: 8px; border-radius: 14px; }
/* a new message: the lever taps while the marks come up on the tape one after the other */
.telegraph .lever.tapping { animation: tap .2s ease-in-out 7; }
@keyframes tap { 0%, 100% { transform: none; } 45% { transform: rotate(3deg); } }
.telegraph .fresh .mk { animation: ink .14s ease-out both; }
@keyframes ink { from { opacity: 0; } }

/* ---------- 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(24px, 4vw, 60px); }
.hero h1 { font: 400 var(--fs-5)/.98 var(--display); letter-spacing: -.005em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--signal); display: block; }
.hero .lead { margin-top: 28px; max-width: 30em; font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem); line-height: 1.42; 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: 400 var(--fs-4)/1.04 var(--display); letter-spacing: 0; color: var(--ink); 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: 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: 500 1.0625rem var(--text); white-space: nowrap; padding-left: 18px; font-variant-numeric: tabular-nums lining-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(--signal-lo); margin-left: 8px; }
.prices tbody tr:hover td { background: color-mix(in srgb, var(--ground-hi) 70%, transparent); }
.more { display: inline-block; margin-top: 24px; font-weight: 700; }

/* code: typed on the ebony of the base, strings in brass */
.code { background: #120d0b; color: #f1e6c8; 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: 700 var(--fs-1)/1 var(--text); color: #a8977c; }
.code-tabs button:hover { color: #fff; }
.code-tabs button[aria-selected='true'] { background: #241b16; color: #fff; }
.code-tabs .copy { margin-left: auto; margin-bottom: 6px; }
.code pre { margin: 0; padding: 20px 22px 22px; background: #241b16; overflow-x: auto; font: 400 .9375rem/1.6 var(--mono); tab-size: 2; }
.code pre .c { color: #94836a; } .code pre .s { color: var(--brass-hi); } .code pre .k { color: #fff; -webkit-text-stroke: .02em #fff; }
.copy { background: #3a2d25; color: #f1e6c8; border: 0; border-radius: 7px; padding: 7px 11px; font: 700 var(--fs-0)/1 var(--text); }
.copy:hover { background: #4a3a30; }
.copy.done { background: var(--brass); color: var(--ebony); }

/* the dark band: the ebonised wood of the base */
.band.dark { background: var(--grain), linear-gradient(180deg, var(--ebony-hi), var(--ebony) 30%, var(--ebony-lo)); color: #efe6d2; border-top: 0; }
.band.dark h2 { color: var(--brass-hi); }
.band.dark .intro { color: #cbbfa8; }
.band.dark .more:hover { text-decoration-color: var(--brass); }
.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: -.01em; 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); font: 400 1.5rem/1 var(--display); color: var(--ink); }
/* what is never kept is crossed out the way a telegraphist strikes a word: one line of dashes */
.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: -.15em; right: -.25em; top: 55%; height: 3px; margin-top: -1.5px; background: repeating-linear-gradient(90deg, var(--signal) 0 14px, transparent 14px 19px, var(--signal) 19px 23px, transparent 23px 28px); border-radius: 2px; }
.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.25rem/1.3 var(--text); letter-spacing: -.005em; 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(--signal); }
.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: 700; }
.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(23, 24, 42, .38);
}
dialog.sheet::backdrop { background: rgba(28, 21, 18, .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); color: var(--ink); }
.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: typed on a slip of tape */
.keyline { margin: 4px 0 16px; padding: 15px 22px 14px 16px; background: var(--grain), linear-gradient(180deg, #fffbf1, var(--paper)); clip-path: var(--torn); font: 400 1.0625rem/1.45 var(--mono); -webkit-text-stroke: .02em currentColor; word-break: break-all; user-select: all; box-shadow: inset 0 0 0 1px var(--line); }
/* the credit: typed on a longer slip */
.balance { margin: 4px 0 16px; padding: 22px 28px 20px 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.balance b { font-size: 3.2rem; line-height: .95; }
.balance span { font: 700 var(--fs-0)/1.25 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); 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(--signal); }
.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; background: var(--ink); }
.amounts label { position: relative; display: block; }
.amounts label span { position: absolute; left: 13px; 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: 999px; 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: 700 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: 400 .875rem/1.4 var(--mono); -webkit-text-stroke: .02em currentColor; overflow-wrap: anywhere; }
.field .val b.amt { font: 400 1.45rem/1.1 var(--mono); -webkit-text-stroke: .03em currentColor; }
.mini { background: var(--ink); color: #fff; border: 0; border-radius: 7px; padding: 7px 10px; font: 700 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: 700; font-size: var(--fs-1); }
.status.seen { background: #f3d2bd; }
.status.ok { background: var(--ink); color: var(--paper); }
/* waiting: dot, dash, dot, tapped out one after the other */
.wait { width: 34px; height: 8px; flex: none; background: radial-gradient(circle at 4px 4px, var(--ink) 3.4px, transparent 3.8px), linear-gradient(var(--ink), var(--ink)) 11px 1px / 13px 6px no-repeat, radial-gradient(circle at 30px 4px, var(--ink) 3.4px, transparent 3.8px); 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 74% 0 0); } 50% { clip-path: inset(0 28% 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: 700; }
.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 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: 400 var(--fs-1)/1 var(--mono); }
.err { color: var(--bad); font-weight: 700; margin-top: 10px; font-size: var(--fs-1); }
.credited { text-align: center; padding: 6px 0 4px; }
.credited .slip { padding: 24px 16px 26px; }
.credited .slip small { display: block; font: 700 var(--fs-0)/1 var(--text); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; color: var(--mute); }
.credited .slip b { display: block; font-size: 4.2rem; line-height: .95; }
.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: 700; 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.7rem + 4.4vw, 4.8rem)/1.02 var(--display); color: var(--ink); text-wrap: balance; }
.page .lead { margin-top: 20px; max-width: 36em; font-size: 1.3125rem; line-height: 1.42; color: var(--ink-2); }
.prose { max-width: 44em; }
.prose h2 { font: 400 2.05rem/1.08 var(--display); color: var(--ink); margin: 52px 0 14px; }
.prose h3 { font: 800 1.25rem/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(--signal); }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose code { font: 400 .95em var(--mono); -webkit-text-stroke: .02em currentColor; 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: 800; 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: 1120px) {
  .hero .telegraph { --bw: 500px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .telegraph { --bw: min(560px, 100%); 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(23, 24, 42, .14); font-size: 1.3125rem; 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(--signal); }
  .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.55rem; gap: 8px; }
  .brand svg { width: 38px; height: 25px; }
  .credit .slip { min-width: 0; font-size: 1.0625rem; padding: 8px 14px 7px 10px; }
  .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(--ebony); color: var(--paper); font-size: 14px; }
.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: 17px; color: var(--brass-hi); }
.ca-v { font-family: var(--mono); overflow-wrap: anywhere; min-width: 0; }
.ca-copy, .ca-go { font: inherit; font-weight: 700; color: var(--ink); background: var(--paper); border: 0; border-radius: 6px; padding: 4px 10px; cursor: pointer; text-decoration: none; }
.ca-go { background: var(--brass); color: var(--ebony); }
