/* Flint. One object carries the look: a paper matchbook, opened. The inside of the teal cover is printed with
   what matters (get a key, load Monero, the credit), the matches are the credit: one is torn out for every
   twentieth of what was loaded. The page is the cream card stock, teal is the cover, red only for match heads. */

@font-face { font-family: 'Shrikhand'; src: url('/fonts/shrikhand.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Familjen Grotesk'; src: url('/fonts/familjen-grotesk.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/fonts/space-mono.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/fonts/space-mono-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ground: #eee8dc;
  --ground-hi: #f8f4ec;
  --ground-lo: #e3dccd;
  --line: #d3cab8;
  --ink: #1b1815;
  --ink-2: #3a342d;
  --mute: #6b6356;
  --cover: #0e5c57;
  --cover-hi: #17756e;
  --cover-lo: #083f3b;
  --cover-deep: #0b2a28;
  --print: #f3ead3;
  --head: #d2402a;
  --head-lo: #9a2a17;
  --strike: #4b362a;
  --good: #1d6b45;
  --bad: #b4261d;

  --display: 'Shrikhand', Georgia, serif;
  --text: 'Familjen Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-0: .8125rem;
  --fs-1: .9375rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.375rem;
  --fs-4: clamp(2rem, 1.4rem + 1.8vw, 2.9rem);
  --fs-5: clamp(3rem, 1.6rem + 5.4vw, 6.2rem);

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

  /* card stock: 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 .25 0 0 0 0 .2 0 0 0 0 .15 .45 0 0 0 -.17'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23f)'/%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); font-synthesis: none;
  -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(--cover); }
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(--cover); color: #fff; }
:focus-visible { outline: 3px solid var(--cover); 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: card stock with an ink lip, pressed down like a thumb on a match */
.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: 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: 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(--cover); --edge: var(--cover-deep); --rim: var(--cover-deep); --on: var(--print); }
.key.go:hover { --face: var(--cover-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(--cover); }

/* ---------- the cover: a piece of the teal matchbook cover, printed in cream, with the printer's frame */
.flap {
  position: relative; border-radius: 6px; color: var(--print);
  background: var(--grain), linear-gradient(172deg, var(--cover-hi), var(--cover) 45%, #0c524d);
  box-shadow: inset 0 0 0 7px var(--cover), inset 0 0 0 8.5px rgba(243, 234, 211, .8), 0 1px 0 rgba(255, 255, 255, .6), 0 3px 8px rgba(11, 42, 40, .18);
}
.flap b, .flap .num { font-family: var(--display); font-weight: 400; letter-spacing: .005em; }

/* ---------- 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 1.95rem/1 var(--display); letter-spacing: 0; color: var(--cover); }
.brand span { translate: 0 1px; }
.brand svg { width: 30px; height: 38px; }
.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(--cover); }
.top-x { display: inline-flex; padding: 8px; margin: -8px; }
.top-x svg { width: 19px; height: 19px; }
/* the credit at the top: a scrap of the cover with the number printed on it, pressable */
.credit { display: inline-flex; align-items: center; padding: 0; border: 2px solid var(--ink); border-radius: 8px; 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 .flap { display: block; min-width: 96px; padding: 9px 13px 8px; border-radius: 6px; font: 400 1.3rem/1 var(--display); text-align: right; box-shadow: inset 0 0 0 3px var(--cover), inset 0 0 0 4px rgba(243, 234, 211, .7); }
.menu-btn { display: none; }


/* ---------- the matchbook (drawn by book.js as one SVG; here only its size, its tilt and its motion) */
.book { position: relative; flex: none; display: block; width: var(--bw, 380px); aspect-ratio: 400 / 640; padding: 0; border: 0; background: none; color: inherit; transform: rotate(-4deg); transition: transform .18s cubic-bezier(.2, .8, .3, 1.2); -webkit-tap-highlight-color: transparent; }
.book svg { width: 100%; height: auto; overflow: visible; }
button.book:hover { transform: rotate(-4deg) translateY(-4px); }
button.book:active { transform: rotate(-4deg) translateY(1px); }
button.book:focus-visible { outline-offset: 10px; border-radius: 14px; }
/* a match torn out: it lifts off the comb and is gone */
.book .tear { animation: tear .7s cubic-bezier(.4, 0, .7, .4) both; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes tear { 0% { transform: none; opacity: 1; } 35% { transform: translateY(-14px) rotate(-4deg); opacity: 1; } 100% { transform: translateY(-90px) rotate(-16deg); opacity: 0; } }
/* what is printed on the cover changes: the new print comes up */
.book .print.fresh { animation: print .5s ease-out both; }
@keyframes print { 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(28px, 5vw, 72px); }
.hero h1 { font: 400 var(--fs-5)/.98 var(--display); letter-spacing: -.005em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--cover); display: block; }
.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: 400 var(--fs-4)/1.02 var(--display); letter-spacing: 0; color: var(--cover); 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(--head-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 match red on the deep teal */
.code { background: #081f1d; color: #f0ead9; 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: #93aaa6; }
.code-tabs button:hover { color: #fff; }
.code-tabs button[aria-selected='true'] { background: #12322f; color: #fff; }
.code-tabs .copy { margin-left: auto; margin-bottom: 6px; }
.code pre { margin: 0; padding: 20px 22px 22px; background: #12322f; overflow-x: auto; font: 400 .875rem/1.65 var(--mono); tab-size: 2; }
.code pre .c { color: #7f9893; } .code pre .s { color: #ff9a80; } .code pre .k { color: #fff; font-weight: 700; }
.copy { background: #1d4642; color: #f0ead9; border: 0; border-radius: 7px; padding: 7px 11px; font: 600 var(--fs-0)/1 var(--text); }
.copy:hover { background: #26574f; }
.copy.done { background: var(--head); color: #fff; }

/* the dark band: the deep teal of the cover's outside */
.band.dark { background: var(--grain), var(--cover-deep); color: #f3eddf; border-top: 0; }
.band.dark h2 { color: var(--print); }
.band.dark .intro { color: #b5c7c2; }
.band.dark .more:hover { text-decoration-color: var(--head); }
.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); font: 400 1.45rem/1 var(--display); color: var(--cover); }
/* what is never kept is struck through, the way a match is struck: one quick 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: -.2em; right: -.3em; top: 52%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: linear-gradient(90deg, var(--strike), var(--head) 70%, var(--head-lo)); transform: rotate(-1.2deg); }
.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(--cover); }
.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(11, 42, 40, .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: 400 2.1rem/1 var(--display); color: var(--cover); }
.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: printed on a piece of the cover */
.balance { margin: 4px 0 16px; padding: 22px 24px 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.balance b { font-size: 3.4rem; line-height: .95; }
.balance span { font: 700 var(--fs-0)/1.25 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--print); opacity: .85; 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(--head); }
.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: #f5d9cf; }
.status.ok { background: var(--cover); color: var(--print); }
/* waiting: three match heads, one after the other */
.wait { width: 30px; height: 8px; flex: none; background: radial-gradient(circle at 4px 4px, var(--head) 3.6px, transparent 4px), radial-gradient(circle at 15px 4px, var(--head) 3.6px, transparent 4px), radial-gradient(circle at 26px 4px, var(--head) 3.6px, transparent 4px); 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 .flap { padding: 26px 16px 28px; }
.credited .flap small { display: block; font: 700 var(--fs-0)/1 var(--text); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.credited .flap b { display: block; font-size: 4.6rem; 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: 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.7rem + 4.4vw, 4.8rem)/1 var(--display); color: var(--cover); 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 2rem/1.05 var(--display); color: var(--cover); 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(--head); }
.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) {
  .hero .book { --bw: 330px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .book { --bw: min(300px, 74vw); margin: 34px 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(--cover); }
  .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.45rem; gap: 8px; }
  .brand svg { width: 26px; height: 33px; }
  .credit .flap { min-width: 0; font-size: 1.1rem; padding: 8px 10px 7px; }
  .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; }
  .book .tear { display: none; }
}
