/* The night: shared by the opening screen and the page. Fonts hosted here. */
@font-face { font-family: "Fell"; src: url(fonts/fell.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fell"; src: url(fonts/fell-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fell SC"; src: url(fonts/fell-sc.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken"; src: url(fonts/hanken-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Hanken"; src: url(fonts/hanken-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken"; src: url(fonts/hanken-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Mono"; src: url(fonts/mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mono"; src: url(fonts/mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #04060b; --ink-2: #0a0f1a; --panel: rgba(10, 15, 28, .975); --panel-solid: #0b1120; --raise: rgba(20, 28, 48, .9);
  --text: #e4eaf3; --dim: rgba(228, 234, 243, .62); --faint: rgba(228, 234, 243, .36); --line: rgba(228, 234, 243, .11); --line-2: rgba(228, 234, 243, .2);
  --parch: #ece4d0; --tint: #a9c4ee;
  --c-mvr: #5b93dc; --c-usd: #cf8f47; --c-visa: #9576db; --c-ex: #3aa688;
  --c-spend: #5b93dc; --c-income: #cf8f47;
  --good: #53c556; --warn: #fbb315; --bad: #eb6263;
  --display: "Fell", "IM Fell DW Pica", Georgia, serif;
  --sc: "Fell SC", "Fell", Georgia, serif;
  --sans: "Hanken", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gl: max(16px, env(safe-area-inset-left, 0px)); --gr: max(16px, env(safe-area-inset-right, 0px));
  --r: 14px;
}
@media (min-width: 760px) { :root { --gl: max(28px, env(safe-area-inset-left, 0px)); --gr: max(28px, env(safe-area-inset-right, 0px)); } }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); font: 400 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { min-height: 100dvh; overflow-x: hidden; }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--tint); }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the one button style: a word and an end square */
.bx { display: inline-flex; align-items: center; gap: 12px; padding: 0 0 0 16px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(8, 12, 22, .55); color: var(--text); font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; transition: border-color .3s var(--ease), background .3s var(--ease); }
.bx::after { content: ""; width: 42px; height: 42px; border-left: 1px solid var(--line-2); border-radius: 0 999px 999px 0; background: radial-gradient(circle at 50% 50%, var(--parch) 0 3px, transparent 3.5px); opacity: .8; }
.bx:hover { border-color: rgba(236, 228, 208, .5); background: rgba(20, 28, 48, .7); }
.bx[disabled] { opacity: .4; cursor: default; }
.bx.quiet { height: 36px; font-size: 11px; padding-left: 14px; }
.bx.quiet::after { width: 34px; height: 34px; }

/* the opening screen */
.gate { position: relative; z-index: 1; min-height: 100dvh; display: grid; place-items: center; padding: 40px var(--gr) 40px var(--gl); text-align: center; }
.gate h1 { margin: 0; font: 400 clamp(54px, 11vw, 112px)/.9 var(--display); color: var(--parch); letter-spacing: -.01em; text-shadow: 0 2px 40px rgba(4, 6, 11, .9); }
.gate .sub { margin: 18px 0 34px; font: italic 400 19px/1.35 var(--display); color: rgba(236, 228, 208, .66); }
.gate .err { margin: 22px auto 0; max-width: 420px; color: #f1b2a4; font-size: 14px; }
.gate .small { margin-top: 26px; font: 400 11px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.gate .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nojs { position: relative; z-index: 2; margin: 0; padding: 0 16px 40px; text-align: center; color: var(--dim); }
