/* Marquee — see brand.md. Instrument, not storefront. */

:root {
  color-scheme: light dark;

  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-sunk: #f4f4f2;
  --border: #e3e2df;
  --text: #16181a;
  --text-dim: #5c6167;
  --accent: #b45309;
  --accent-soft: #fdf2e2;
  --pass: #15803d;
  --fail: #b91c1c;
  --pending: #c8c7c3;

  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f11;
    --surface: #17191c;
    --surface-sunk: #121417;
    --border: #2a2d31;
    --text: #f2f3f4;
    --text-dim: #9aa0a7;
    --accent: #f59e0b;
    --accent-soft: #2a2113;
    --pass: #4ade80;
    --fail: #f87171;
    --pending: #33373c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 32px 20px 80px; }

/* Skip link — keyboard users should not tab the whole header to reach data. */
.skip {
  position: absolute;
  left: -9999px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.skip:focus { left: 20px; top: 20px; z-index: 10; }

header { border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 32px; }

h1 {
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.tagline { color: var(--text-dim); margin: 0 0 18px; max-width: 60ch; }

.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 13px; }

.meta dt { color: var(--text-dim); display: inline; margin-right: 6px; }
.meta dd { display: inline; margin: 0; font-family: var(--mono); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-sunk);
  color: var(--text-dim);
}

.badge--verified { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.badge--live { color: var(--pass); border-color: currentColor; }
.badge--settled { color: var(--text-dim); }

h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 40px 0 14px;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.card__top { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }

.handle { font-family: var(--mono); font-size: 16px; font-weight: 600; margin: 0; }
.surface { color: var(--text-dim); font-size: 13px; margin: 2px 0 0; }

.rows { display: grid; gap: 6px; font-size: 13px; }
.row { display: flex; justify-content: space-between; gap: 16px; }
.row dt { color: var(--text-dim); }
.row dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; }

.addr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  word-break: break-all;
}

/* Sample strip — the point of the whole product made visible. */
.samples { margin-top: 16px; }

.samples__head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.ticks { display: flex; gap: 2px; height: 22px; }
.tick { flex: 1; min-width: 2px; border-radius: 1px; background: var(--pending); }
.tick--pass { background: var(--pass); }
.tick--fail { background: var(--fail); }

/* Above ~48 samples individual ticks stop being readable, so switch to
   proportional bands rather than rendering 288 slivers nobody can parse. */
.bar { display: flex; height: 22px; border-radius: 3px; overflow: hidden; background: var(--pending); }
.bar span { display: block; }
.bar .pass { background: var(--pass); }
.bar .fail { background: var(--fail); }

.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-dim); margin-top: 8px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

.payout {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.payout__label { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }

/* States */
.state {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  color: var(--text-dim);
}
.state h3 { margin: 0 0 6px; color: var(--text); font-size: 15px; }
.state p { margin: 0 auto 16px; max-width: 46ch; }

.skeleton {
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 190px;
}

@media (prefers-reduced-motion: no-preference) {
  .skeleton { animation: pulse 1.6s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.55; } }
}

button {
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  /* 40px minimum hit target. */
  min-height: 40px;
  padding: 0 16px;
  cursor: pointer;
}

button:hover { border-color: var(--text-dim); }

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.error { border-color: var(--fail); color: var(--fail); }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

footer a { color: var(--accent); }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-sunk);
  padding: 1px 5px;
  border-radius: 4px;
}

@media (max-width: 520px) {
  .wrap { padding: 20px 14px 60px; }
  .row { flex-direction: column; gap: 0; }
}
