/*
  CHIT. An invoice slip: cool ledger paper lit on a graphite-green desk, carbon-copy yellow for the one copy that is
  yours (the one-time address, the paid stamp, the primary action). Syne (wide, cut) for display, Figtree for text,
  Spline Sans Mono for anything that came off the chain.
*/
:root {
  --bg: #0d1110;
  --panel: #141a18;
  --panel-2: #1b2320;
  --line: rgba(232, 238, 230, 0.09);
  --line-2: rgba(232, 238, 230, 0.18);
  --fg: #e9ede6;
  --mute: #9aa59e;
  --dim: #66716b;
  --paper: #eef0ea;
  --paper-ink: #17201c;
  --acc: #f2d24b;
  --acc-ink: #1c1800;
  --ok: #7fdca3;
  --warn: #ffbf69;
  --bad: #ff8b7c;
  --display: "Syne", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --r: 6px;
  --gutter: clamp(16px, 3vw, 40px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--acc); color: var(--acc-ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.serif, .display { font-family: var(--display); letter-spacing: -0.035em; line-height: 0.95; font-weight: 800; }
.label { font: 500 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.label i { display: inline-block; width: 6px; height: 6px; background: var(--acc); margin-right: 8px; vertical-align: 1px; font-style: normal; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; padding: 13px 20px; border-radius: var(--r);
  background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--fg); cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: #fff; border-color: #fff; }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--fg); }
.btn.acc { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.acc:hover { background: #ffe06a; border-color: #ffe06a; }
.btn.sm { padding: 8px 12px; font-size: 13.5px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.link { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: border-color .2s; }
.link:hover { border-color: var(--acc); }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 999px; color: var(--mute); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: rgba(127, 220, 163, 0.4); }
.pill.warn { color: var(--warn); border-color: rgba(255, 191, 105, 0.4); }
.pill.acc { color: var(--acc); border-color: rgba(242, 210, 75, 0.45); }
.pill.bad { color: var(--bad); border-color: rgba(255, 139, 124, 0.4); }
.banner { background: var(--acc); color: var(--acc-ink); text-align: center; font: 600 13.5px var(--body); padding: 9px 16px; }
.field { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 12px; color: var(--fg); transition: border-color .2s; }
.field:focus { outline: none; border-color: var(--acc); }
.field::placeholder { color: var(--dim); }
label.f { display: grid; gap: 6px; font-size: 13px; color: var(--mute); min-width: 0; }

/* the launch bar (coin-site contract) */
.tokenbar { position: relative; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; padding: 7px var(--gutter);
  border-bottom: 1px solid var(--line); background: rgba(13, 17, 16, 0.86); backdrop-filter: blur(8px); font: 500 11.5px var(--mono); color: var(--mute); }
.tokenbar .tk, .tokenbar .ca { color: var(--fg); }
.tokenbar button, .tokenbar a { background: none; border: 0; padding: 2px 0; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-2); cursor: pointer; font: inherit; }
.tokenbar a[aria-disabled="true"] { color: var(--dim); border-color: transparent; cursor: default; }

.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; z-index: 90; background: var(--fg); color: var(--bg);
  padding: 10px 16px; border-radius: var(--r); font-weight: 600; font-size: 14px; transition: opacity .25s, transform .35s var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* custom cursor: a small carbon-yellow square that opens into a ring over controls (fine pointers only) */
.cursor { position: fixed; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--acc); z-index: 200; pointer-events: none; mix-blend-mode: difference;
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), border-radius .25s; border-radius: 2px; display: none; }
.cursor.big { width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; }
@media (pointer: fine) { .has-cursor .cursor { display: block; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
[hidden] { display: none !important; }
