/* thankslot — one sheet of paper pinned above a shop counter (UI-SPEC §1/§2/§5).
   No cards, no shadows, no gradients, no motion, no client JS. */

:root {
  --paper: #F7F4EE;
  --paper-2: #EFEAE0;
  --ink: #1B1A17;
  --ink-2: #55504A;
  --rule: #D9D2C5;
  --accent: #7A2E2E;
  --ok: #2F5D50;
  --warn: #8A6A1F;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  padding: 0 20px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0 48px;
}

/* ---- nav ---- */

.site-nav {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

/* ---- masthead ---- */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.tagline { margin: 8px 0 0; }

.status {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

/* ---- section heads: 13px uppercase, .08em tracking ---- */

h1.shead, h2.shead {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 24px 0 8px;
}

h1 { font-family: var(--serif); font-weight: 600; }

section { border-bottom: 1px solid var(--rule); padding-bottom: 16px; margin-bottom: 8px; }
section:last-of-type { border-bottom: 0; }

/* ---- tables ---- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

caption {
  text-align: left;
  font-size: 13px;
  color: var(--ink-2);
  padding: 4px 0;
}

th {
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
  padding: 6px 8px 6px 0;
}

td {
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

td.paid, th:last-child { text-align: right; }

td.rank { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* rank 1, the held rung: ONE marker on the row's ruled left edge (UI-SPEC §3.2) */
tr.held td { border-top: 1px solid var(--rule); }
tr.held td:first-child { border-left: 3px solid var(--accent); padding-left: 8px; }

/* Accessible table captions are announced, never painted twice next to the h2. */
caption.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.top-note .ceiling {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--accent);
  max-width: 16em;
}

.who .handle { display: block; }
.who .wallet {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}

.says { max-width: 18em; }
.says span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ladder: the only scroll region, height-capped on desktop */
table.ladder { max-height: 60vh; display: block; overflow: auto; }
table.ladder thead, table.ladder tbody { display: table; width: 100%; }

/* ---- thanks ---- */

.thanks-strip { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.thanks-strip li { padding: 4px 0; border-bottom: 1px solid var(--rule); }

.ok { color: var(--ok); }
.warn { color: var(--warn); }
.ink2, .ink-2 { color: var(--ink-2); }

code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--paper-2);
  padding: 1px 4px;
}

.note { color: var(--ink-2); }

/* ---- price block ---- */

td .ink2 { font-family: var(--sans); }

.footnote { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }
.footnote a { color: var(--accent); }

/* ---- how / 404 / footer ---- */

.how li { margin-bottom: 8px; }

.not-here { font-size: 34px; margin: 8px 0; }

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

footer {
  border-top: 1px solid var(--rule);
  margin-top: 24px;
  padding-top: 12px;
  font-size: 14px;
  color: var(--ink-2);
}

footer .build { font-style: italic; }

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none; animation: none; }
}

/* ---- <= 640px: 16px padding, 28px masthead, Says dropped, ladder-only scroll ---- */

@media (max-width: 640px) {
  body { padding: 0 16px; }
  .wordmark { font-size: 28px; }
  .ladder th:nth-child(3), .ladder td.says { display: none; }
  td.paid { white-space: nowrap; }
}
