/* Jali. One object carries the look: a carved walnut lattice window, half covered by an indigo velvet curtain.
   You see out through a jali without being seen: your question goes through the lattice, the answer comes back,
   and the model's maker never sees a face. Behind the lattice, in lamp light, sit the models. Below it a brass plate
   says what matters (get a key, load Monero, the credit). The page is limewash, walnut is the dark ground, velvet
   indigo is the one colour you press. */

@font-face { font-family: 'Cormorant'; src: url('/fonts/cormorant.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('/fonts/cormorant-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Karla'; src: url('/fonts/karla.woff2') format('woff2'); font-weight: 200 800; 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: #eee9e1;
  --ground-hi: #f9f6f0;
  --ground-lo: #e3ddd2;
  --line: #d4ccbf;
  --line-2: #b9ae9d;
  --ink: #1e1712;
  --ink-2: #3b3129;
  --mute: #6e6358;
  --wood: #5b3925;
  --wood-hi: #7d5236;
  --wood-lo: #3a2214;
  --wood-deep: #22150c;
  --velvet: #2a3170;
  --velvet-hi: #3d47a0;
  --velvet-lo: #1a1f4c;
  --brass: #bb8d3e;
  --brass-hi: #ecd08a;
  --brass-lo: #7d5a1f;
  --lamp: #f4d38b;
  --good: #1f6a3c;
  --bad: #a8321f;

  --display: 'Cormorant', 'Iowan Old Style', Georgia, serif;
  --text: 'Karla', 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.4rem, 1.6rem + 2.8vw, 3.9rem);
  --fs-5: clamp(3.4rem, 1.6rem + 6.4vw, 7rem);

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

  /* walnut: long dark streaks along the board, drawn once as an SVG */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .19' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .04 0 0 0 0 .01 1.1 0 0 0 -.42'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23g)'/%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(--velvet); }
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(--velvet); color: #fff; }
:focus-visible { outline: 3px solid var(--velvet); 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 lacquered block with a dark lip, pressed down into its frame */
.key {
  --face: #fffdf8; --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: #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); }
.key.go { --face: var(--velvet); --edge: var(--velvet-lo); --rim: var(--velvet-lo); --on: #fff; }
.key.go:hover { --face: #323a85; }
.key.dark { --face: var(--wood-deep); --edge: #000; --rim: #000; --on: #fff; }
.key.dark:hover { --face: var(--wood-lo); }
.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: 700; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.plain:hover { text-decoration-thickness: .14em; text-decoration-color: var(--velvet); }

/* ---------- brass: the plate under the screen, and every small plate that shows a value.
   Engraved: dark letters cut in, a hair of light on the lower lip of each cut. */
.brass {
  position: relative; border-radius: 4px; color: #2a1a08;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 248, 220, .55) 44%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, var(--brass-hi), #d4ab5c 22%, var(--brass) 60%, #9c722c);
  box-shadow: inset 0 1px 0 rgba(255, 250, 225, .8), inset 0 -2px 0 rgba(70, 45, 10, .35), 0 2px 0 var(--brass-lo), 0 6px 14px rgba(40, 25, 5, .25);
}
.cut { font-family: var(--display); font-weight: 700; color: #2b1b09; text-shadow: 0 1px 0 rgba(255, 238, 190, .75); 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: 700 2.15rem/1 var(--display); letter-spacing: -.01em; }
.brand span { translate: 0 -2px; }
.brand svg { width: 30px; height: 36px; }
.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(--velvet); }
.top-x { display: inline-flex; padding: 8px; margin: -8px; }
.top-x svg { width: 19px; height: 19px; }
/* the credit at the top: a small brass plate with the number cut in, pressable */
.credit { display: inline-flex; align-items: center; padding: 0; border: 0; border-radius: 6px; background: none; transition: transform .06s; }
.credit:active { transform: translateY(2px); }
.credit .brass { display: block; min-width: 92px; padding: 8px 12px 7px; font-size: 1.45rem; line-height: 1; text-align: right; }
.menu-btn { display: none; }

/* ---------- the scene: the confessional screen. Everything is measured in em, so it scales with one font-size. */
.scene { --u: 16px; position: relative; flex: none; width: 33em; height: 33em; font-size: var(--u); }
/* the walnut panel, framed, with a cornice on top */
.panel {
  position: absolute; left: 0; top: 1.2em; width: 25em; height: 31em; border-radius: .35em;
  background: var(--grain), linear-gradient(90deg, #4a2c1b, var(--wood) 18%, #6a4329 46%, var(--wood) 74%, #432817);
  background-size: 100% 100%, auto;
  box-shadow: inset 0 0 0 .5em rgba(0, 0, 0, .1), inset .9em 0 1.2em -.8em rgba(255, 220, 180, .18), inset 0 -.5em .8em rgba(0, 0, 0, .25), 0 1.4em 2.2em -1em rgba(30, 18, 8, .55);
}
.panel::before { /* the cornice */
  content: ''; position: absolute; left: -.6em; right: -.6em; top: -.9em; height: 1.6em; border-radius: .25em;
  background: var(--grain), linear-gradient(180deg, #8a5c3c, var(--wood) 30%, var(--wood-lo) 70%, #2c190d);
  background-size: 100% 100%, auto;
  box-shadow: 0 .35em .5em rgba(20, 10, 4, .35), inset 0 .12em 0 rgba(255, 220, 180, .25);
}
/* the window: an arch cut into the panel; the light and the models are behind it, the lattice in front */
.window {
  position: absolute; left: 2.5em; top: 2.4em; width: 20em; height: 17.6em; overflow: hidden;
  border-radius: 10em 10em .3em .3em / 10em 10em .3em .3em;
  box-shadow: 0 0 0 .32em var(--wood-lo), 0 0 0 .5em rgba(255, 220, 180, .14), 0 0 0 .9em rgba(0, 0, 0, .08);
}
.behind {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .05em; padding: 4.6em 0 1.2em;
  background: radial-gradient(70% 60% at 50% 55%, #fbe7b4, var(--lamp) 45%, #d99d4a 80%, #a8692a);
  color: #351b06; text-align: center;
}
.behind span { display: block; font: italic 700 2.3em/1.06 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.behind.lit span { animation: lit 1.4s ease-out both; }
.behind.lit span:nth-child(2) { animation-delay: .25s; }
.behind.lit span:nth-child(3) { animation-delay: .5s; }
.behind.lit span:nth-child(4) { animation-delay: .75s; }
@keyframes lit { from { opacity: 0; filter: blur(.08em); } }
.lattice { position: absolute; inset: 0; width: 100%; height: 100%; }

/* the plate: brass, two screws, cut with what to do next. It is the button. */
.plate {
  position: absolute; z-index: 2; left: 4.3em; top: 21.6em; width: 16.4em; height: 5.3em; padding: 0 1.4em; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1em;
  -webkit-tap-highlight-color: transparent; transition: transform .07s ease-out, box-shadow .07s;
}
.plate::before, .plate::after { /* the screws */
  content: ''; position: absolute; top: 50%; width: .7em; height: .7em; margin-top: -.35em; border-radius: 50%;
  background: linear-gradient(45deg, transparent 44%, rgba(60, 38, 8, .7) 44% 56%, transparent 56%), radial-gradient(circle at 35% 30%, #f6e2a8, #b78a3c 60%, #7a571c);
  box-shadow: 0 .05em .05em rgba(255, 245, 210, .6);
}
.plate::before { left: .6em; }
.plate::after { right: .6em; }
.plate b { font-size: 2.35em; line-height: .95; white-space: nowrap; }
.plate b.l8 { font-size: 2em; }
.plate small { font: 700 .62em/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: #4a3210; text-shadow: 0 1px 0 rgba(255, 238, 190, .6); }
.plate:hover { filter: brightness(1.04); }
.plate:active { transform: translateY(.14em); box-shadow: inset 0 1px 0 rgba(255, 250, 225, .8), inset 0 -2px 0 rgba(70, 45, 10, .35), 0 .5px 0 var(--brass-lo), 0 3px 8px rgba(40, 25, 5, .25); }
.plate:focus-visible { outline-offset: 5px; }
.plate.fresh b, .plate.fresh small { animation: cut .5s ease-out both; }
@keyframes cut { from { opacity: 0; transform: translateY(.12em); } }

/* the curtain: green velvet on a brass rod, pulled aside and tied back, covering the right edge of the screen */
.rod { position: absolute; z-index: 3; left: 16.4em; right: -.2em; top: .3em; height: .62em; border-radius: .31em;
  background: linear-gradient(180deg, #f3dc9c, var(--brass) 45%, var(--brass-lo)); box-shadow: 0 .2em .3em rgba(30, 18, 5, .4); }
.rod::after { content: ''; position: absolute; right: -.35em; top: -.3em; width: 1.2em; height: 1.2em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fbe9b8, var(--brass) 55%, var(--brass-lo)); }
.curtain { position: absolute; z-index: 2; left: 17.2em; top: .4em; width: 15.6em; height: 31.8em; overflow: visible; filter: drop-shadow(-.5em .6em .7em rgba(25, 15, 5, .38)); }

/* ---------- 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: 700 var(--fs-5)/.88 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.hero h1 em { font-weight: 600; color: var(--velvet); }
.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: 700 var(--fs-4)/.95 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.band h2 em { font-weight: 600; color: var(--velvet); }
.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: 700 1.3rem/1.15 var(--display); letter-spacing: -.01em; }
.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(--velvet); 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 on walnut */
.code { background: #170e07; color: #efe6d6; 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: #a8987f; }
.code-tabs button:hover { color: #fff; }
.code-tabs button[aria-selected='true'] { background: #2a1b10; color: #fff; }
.code-tabs .copy { margin-left: auto; margin-bottom: 6px; }
.code pre { margin: 0; padding: 20px 22px 22px; background: #2a1b10; overflow-x: auto; font: 400 .875rem/1.65 var(--mono); tab-size: 2; }
.code pre .c { color: #9a8a72; } .code pre .s { color: var(--brass-hi); } .code pre .k { color: #fff; font-weight: 700; }
.copy { background: #3e2a1a; color: #efe6d6; border: 0; border-radius: 7px; padding: 7px 11px; font: 600 var(--fs-0)/1 var(--text); }
.copy:hover { background: #503724; }
.copy.done { background: var(--velvet); color: #fff; }

/* the dark band: walnut as ground */
.band.dark { background: var(--wood-deep); color: #f3ebdf; border-top: 0; }
.band.dark .intro { color: #c6b8a4; }
.band.dark h2 em { color: var(--brass-hi); }
.band.dark .more:hover { text-decoration-color: var(--brass-hi); }
.band.dark + .band { border-top: 0; }

/* what is kept, and what never crosses the screen */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 64px); margin-top: clamp(26px, 4vw, 44px); }
.ledger h3 { font: 700 1.75rem/1.05 var(--display); 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.2em 1fr; align-items: baseline; counter-increment: mem; }
.mem li::before { content: counter(mem, upper-roman) '.'; font: italic 600 1.3rem/1 var(--display); color: var(--velvet); }
/* never kept: each line sits behind a strip of the lattice */
.ledger .no li { display: flex; align-items: baseline; gap: 14px; color: var(--ink-2); }
.ledger .no li::before { content: ''; flex: none; width: 22px; height: 14px; translate: 0 2px; border-radius: 2px;
  background: radial-gradient(circle at 50% 50%, var(--lamp) 0 3px, transparent 3.5px) 0 0 / 7px 7px, var(--wood); }
.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(--velvet); }
.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: 14px;
  background: var(--ground-hi); color: var(--ink); overflow: auto;
  box-shadow: 0 0 0 2px var(--ink), 0 30px 70px rgba(30, 20, 10, .4);
}
dialog.sheet::backdrop { background: rgba(30, 20, 12, .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: 700 2.4rem/.95 var(--display); letter-spacing: -.015em; }
.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 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: cut into a brass plate */
.balance { margin: 4px 0 16px; padding: 18px 20px 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.balance b { font-size: 3.6rem; line-height: .82; }
.balance span { font: 700 var(--fs-0)/1.25 var(--text); letter-spacing: .1em; text-transform: uppercase; color: #4a3210; 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(--velvet); }
.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: 6px; 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: 8px; background: var(--ground-lo); font-weight: 600; font-size: var(--fs-1); }
.status.seen { background: #f3e2b8; }
.status.ok { background: var(--velvet); color: #fff; }
/* waiting: the three holes of a lattice strip light up one after the other */
.wait { width: 30px; height: 8px; flex: none; border-radius: 2px; background: radial-gradient(circle, var(--velvet) 0 3px, transparent 3.5px) 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: 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 .brass { padding: 20px 16px 22px; }
.credited .brass small { display: block; font: 700 var(--fs-0)/1 var(--text); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; color: #4a3210; }
.credited .brass b { display: block; font-size: 4.8rem; 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: 8px; 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: 700 clamp(3rem, 1.8rem + 4.6vw, 5.2rem)/.9 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.page h1 em { font-weight: 600; color: var(--velvet); }
.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: 700 2.3rem/1 var(--display); letter-spacing: -.015em; 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(--velvet); }
.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; }

/* Cormorant sets old-style figures by default; model names and sums read better with lining ones */
.hero h1, .band h2, .behind span, .prices tr.front td:first-child, .sheet-head h2, .page h1, .prose h2, .ledger h3 { font-variant-numeric: lining-nums; }

/* ---------- 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)) / 33.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(30, 20, 10, .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(--velvet); }
  .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.9rem; }
  .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; }
}
