:root {
  --paper: #fbf6ec;
  --card: #fffdf8;
  --ink: #1d1a16;
  --muted: #6d655a;
  --line: #e4dccd;
  --buy: #1f8a4c;
  --buy-bg: #e3f4ea;
  --skip: #c8322b;
  --skip-bg: #fbe5e3;
  --accent: #1d1a16;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: inherit; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 8px; }
.logo { font-family: "Archivo Black", Impact, sans-serif; font-size: 22px; text-decoration: none; letter-spacing: .5px; }
.logo span { color: var(--skip); }
header.top nav a { font-size: 15px; color: var(--muted); text-decoration: none; margin-left: 14px; }
h1, h2 { font-family: "Archivo Black", Impact, sans-serif; line-height: 1.12; letter-spacing: .2px; }
h1 { font-size: 38px; margin: 22px 0 10px; }
h2 { font-size: 24px; margin: 36px 0 10px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 5px 5px 0 var(--ink);
}
label { display: block; font-weight: 700; font-size: 15px; margin: 14px 0 6px; }
label:first-child { margin-top: 0; }
.hint { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { resize: vertical; min-height: 84px; }
.row { display: flex; gap: 10px; }
.row select { width: 104px; flex: none; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.1;
  border: 2px solid var(--ink); border-radius: 12px;
  padding: 15px 18px; cursor: pointer; text-decoration: none;
  background: var(--ink); color: #fff; width: 100%;
  transition: transform .06s ease;
}
button:active, .btn:active { transform: translateY(2px); }
button[disabled] { opacity: .55; cursor: default; }
.btn.light { background: #fff; color: var(--ink); }
.submit { margin-top: 18px; }
.error { color: var(--skip); font-size: 15px; min-height: 1em; margin: 10px 0 0; }
.steps { padding-left: 20px; }
.steps li { margin: 6px 0; }
footer { color: var(--muted); font-size: 14px; padding: 40px 0 36px; }
footer a { margin-right: 14px; }

/* case page */
.docket { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.item { font-family: "Archivo Black", Impact, sans-serif; font-size: 30px; line-height: 1.12; margin: 0; word-wrap: break-word; }
.price { font-size: 34px; font-weight: 800; margin: 6px 0 12px; }
.reason { margin: 0; padding: 12px 14px; background: var(--paper); border-radius: 10px; }
.reason::before { content: "Defendant's plea: "; font-weight: 700; }
.ask { text-align: center; font-weight: 700; margin: 22px 0 10px; }
.votes { display: flex; gap: 12px; }
.vote { flex: 1; flex-direction: column; padding: 18px 10px; font-size: 20px; }
.vote small { font-size: 13px; font-weight: 500; opacity: .85; }
.vote.buy { background: var(--buy); border-color: var(--buy); }
.vote.skip { background: var(--skip); border-color: var(--skip); }
.note { margin-top: 12px; }
.tally { margin-top: 20px; }
.bar { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: var(--line); border: 2px solid var(--ink); }
.bar .b { background: var(--buy); }
.bar .s { background: var(--skip); }
.counts { display: flex; justify-content: space-between; font-weight: 700; margin-top: 6px; font-size: 15px; }
.counts .b { color: var(--buy); }
.counts .s { color: var(--skip); }
.stamp {
  display: block; width: max-content; margin: 22px auto 4px; padding: 6px 16px;
  font-family: "Archivo Black", Impact, sans-serif; font-size: 30px; letter-spacing: 2px;
  border: 4px solid currentColor; border-radius: 8px; transform: rotate(-6deg);
}
.stamp.buy { color: var(--buy); }
.stamp.skip { color: var(--skip); }
.stamp.hung { color: var(--muted); }
.stamp-sub { text-align: center; color: var(--muted); margin: 6px 0 0; }
.share { display: grid; gap: 10px; margin-top: 18px; }
.notes { list-style: none; padding: 0; margin: 10px 0 0; }
.notes li { padding: 10px 12px; border-radius: 10px; margin: 8px 0; }
.notes li.buy { background: var(--buy-bg); }
.notes li.skip { background: var(--skip-bg); }
.notes b { margin-right: 6px; }
.owner-box { margin-top: 20px; padding: 14px; border: 2px dashed var(--ink); border-radius: 12px; }
.owner-box p { margin: 0 0 10px; }
.small { font-size: 14px; color: var(--muted); }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 0; width: auto; font: inherit; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 15px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.on { opacity: 1; }
.prose p, .prose li { color: #3b352d; }
@media (max-width: 420px) {
  h1 { font-size: 32px; }
  .item { font-size: 26px; }
}
