:root {
  --paper: #f3ebe0;
  --ink: #241c16;
  --muted: #6a5c4e;
  --card: #fff8f1;
  --line: #d9cbb8;
  --clay: #c46a45;
  --clay-deep: #8f3e24;
  --clay-ink: #fff6ee;
  --sage: #3f5c48;
  --earn: var(--sage);
  --earn-ink: #f6f3ec;
  --signal: var(--clay);
  --error: #b42318;
  --warn: var(--error);
  --well: #2a211c;
  --radius: 16px;
  --radius-tight: 10px;
  --shadow: 0 10px 28px rgba(36, 28, 22, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: Figtree, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}
h1, h2, .wordmark {
  font-family: Fraunces, serif;
  font-weight: 640;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.05; margin: 0 0 0.6em; }
h2 { font-size: 1.6rem; margin: 0 0 0.6em; }
a { color: var(--ink); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.nav, .foot, main { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0;
}
.nav nav { display: flex; gap: 18px; align-items: center; }
.wordmark { font-size: 1.5rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.needle {
  width: 11px; height: 11px; border-radius: 999px; background: var(--clay);
  display: inline-block;
  box-shadow: inset 0 -1px 0 rgba(36, 28, 22, 0.15);
}
.hero { padding: 48px 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; color: var(--muted); font-weight: 600; }
.lede { font-size: 1.2rem; max-width: 42rem; color: #3a352c; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.btn {
  background: var(--clay-deep); color: var(--clay-ink); border: 0; text-decoration: none;
  padding: 12px 18px; border-radius: 999px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-small { padding: 8px 12px; font-size: 0.9rem; }
.fine, .muted { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 12px 0 36px; }
.steps { padding-left: 1.1rem; }
.snippet {
  background: var(--well); color: var(--paper); padding: 16px; border-radius: var(--radius-tight);
  overflow: auto; font-size: 0.86rem; line-height: 1.45;
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.price { font-size: 1.4rem; font-family: Fraunces, serif; margin: 6px 0; }
.empty, .enter { padding: 28px 0 48px; }
.form-card label { display: block; margin: 10px 0; font-weight: 600; }
input, textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; font: inherit;
}
.form-status { min-height: 1.4em; color: var(--warn); }
.dash-head { display: flex; justify-content: space-between; align-items: end; padding: 24px 0; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 48px; }
.span-2 { grid-column: span 2; }
.stat { font-size: 2.4rem; font-family: Fraunces, serif; margin: 8px 0; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline input { margin: 0; min-width: 0; flex: 1 1 88px; }
.table { font-size: 0.92rem; }
.table div { display: grid; grid-template-columns: 1.2fr 0.8fr 0.6fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.market { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; }
.market th, .market td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.foot { padding: 40px 0 60px; color: var(--muted); }
.play-out { min-height: 6rem; white-space: pre-wrap; }
@media (max-width: 800px) {
  .split, .dash-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .nav nav a:not(.btn) { display: none; }
}
