@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/archivo.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono.woff2) format("woff2"); }
@font-face { font-family: "Shippori Mincho"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/shippori-mincho.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --bg-deep: #070708;
  --panel: #131316;
  --raised: #1b1b1f;
  --s3: #26262b;
  --sunken: #0e0e11;
  --line: rgb(242 242 242 / .08);
  --line-soft: rgb(242 242 242 / .05);
  --line-strong: rgb(242 242 242 / .16);
  --text: #f2f2f2;
  --body: #c4c4c8;
  --muted: #9a9aa1;
  --faint: #86868d;
  --gold: #e2be73;
  --gold-2: #bd9d5e;
  --gold-3: #937a4a;
  --gold-4: #6a5836;
  --gold-ink: #1a1206;
  --gold-soft: color-mix(in oklab, #e2be73 13%, transparent);
  --gold-line: color-mix(in oklab, #e2be73 40%, transparent);
  --cool: #4a6fae;
  --led: #7fd962;
  --display: "Shippori Mincho", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui: var(--sans);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-xs: 6px;
  --r: 10px;
  --r-panel: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-1: 0 6px 20px rgb(0 0 0 / .3);
  --shadow-2: 0 18px 48px rgb(0 0 0 / .45);
  --lift: inset 0 1px 0 rgb(255 255 255 / .03), 0 18px 40px -24px rgb(0 0 0 / .9);
  --glow: radial-gradient(900px 520px at 88% -10%, rgb(226 190 115 / .11), transparent 70%), radial-gradient(760px 480px at -8% 110%, rgb(74 111 174 / .12), transparent 70%);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --dot: rgb(242 242 242 / .05);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100dvh; overflow-x: clip;
  color: var(--body); font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
}
h1, h2, h3 { margin: 0; color: var(--text); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
code, kbd, pre { font-family: var(--mono); }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: .6rem 1rem; background: var(--gold); color: var(--gold-ink); font: 600 .85rem/1 var(--ui); border-radius: var(--r-pill); text-decoration: none; }
.skip:focus { top: 12px; }

.display { font-family: var(--display); font-weight: 700; letter-spacing: -.012em; line-height: 1.06; }
.h-xl { font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.4rem); }
.h-lg { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); line-height: 1.1; }
.h-md { font: 600 1.06rem/1.35 var(--sans); letter-spacing: -.005em; }
.lede { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); line-height: 1.6; color: var(--body); max-width: 36em; }
.quiet { color: var(--muted); }

.rule { display: block; width: 48px; height: 3px; background: var(--gold); border: 0; margin: 0; border-radius: 2px; }

.band { position: relative; background: var(--glow), linear-gradient(180deg, var(--panel), var(--bg)); border-bottom: 1px solid var(--line); }

.label {
  font: 600 .6875rem/1.2 var(--ui);
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  height: 44px; padding: 0 1.4rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--text);
  font: 600 .9rem/1 var(--ui); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { border-color: rgb(242 242 242 / .34); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: #ecd09a; border-color: #ecd09a; box-shadow: 0 8px 22px rgb(226 190 115 / .24); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.tag {
  display: inline-flex; align-items: center; gap: .4rem; height: 20px; padding: 0 .6rem;
  border: 0; border-radius: var(--r-pill); background: var(--gold-soft); color: var(--gold);
  font: 700 .625rem/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; vertical-align: middle;
}

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--lift); overflow: hidden; }
.panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: 0 1rem; border-bottom: 1px solid var(--line); }

.code {
  margin: 0; padding: 1rem 1.15rem; overflow-x: auto;
  background: var(--sunken); color: var(--body);
  font-size: .78rem; line-height: 1.75; tab-size: 2;
}
.code .c { color: var(--faint); }
.code .k { color: var(--gold); }
.code .s { color: #cfe3b0; }
.code .p { color: var(--faint); user-select: none; }
.code .o { color: var(--muted); }

.numeral {
  font-family: var(--display); font-weight: 700; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  font-variant-numeric: lining-nums;
}

.bar { height: 6px; border-radius: var(--r-pill); background: var(--raised); position: relative; overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--muted); }

.field { position: relative; }
.field::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 0);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 72%);
}
.field canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.picks { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8125rem; }
.picks button {
  height: 30px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: transparent; color: var(--muted); font: 500 .8125rem/1 var(--ui); cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.picks button:hover { color: var(--text); border-color: var(--line-strong); }
.picks button[aria-pressed="true"] { color: var(--text); background: var(--gold-soft); border-color: var(--gold-line); }

.tally { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: .8125rem; color: var(--muted); }
.tally p { margin: 0; }
.tally p:first-child { color: var(--body); }
.tally b { font-size: 1.6rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; margin-right: .3rem; }
.tally__luma b { color: var(--gold); }
.tally span { font-variant-numeric: tabular-nums; color: var(--body); }
.scale { margin: 0; font-size: .75rem; color: var(--faint); max-width: 44rem; }

.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}
