/* putty-august — the shelf's local half.
 *
 * Same design system as ~/shart/homepage: identical tokens, type stack and
 * hairline structure. Different layout, because homepage is a 45-row sortable
 * table and this is 6 entries that each carry a block of shell commands.
 *
 * On the lowercase rule: this sheet does NOT set text-transform. The prose is
 * written lowercase by hand instead, because half the content here is commands,
 * paths and key names — `make app`, `PYTHONPATH=src`, `ANTHROPIC_API_KEY`,
 * `127.0.0.1:8787`, `⌃⌥Space` — and transforming those would corrupt the one
 * thing on the page you are meant to copy verbatim.
 */

:root {
  --ink: #111;
  --dim: #8a8a8a;
  --line: #e8e8e8;
  --wash: #f7f7f7;
  --accent: #0a49ff;
  --bad: #c8321e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 1rem 2rem 6rem;
  color: var(--ink);
  background: #fff;
  font: 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 860px;
}

/* ── masthead ───────────────────────────────────────────────────────────── */

.top {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.top h1 {
  margin: 0;
  font-size: 13px;
  font-weight: normal;
}

.top .back {
  margin-left: auto;
  color: var(--dim);
  text-decoration: none;
}

.top .back:hover {
  color: var(--accent);
}

.lede {
  margin: 2rem 0 3rem;
  max-width: 620px;
  font-size: 15px;
  color: #666;
}

.lede strong {
  color: var(--ink);
  font-weight: normal;
}

/* ── entries ────────────────────────────────────────────────────────────── */

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 28px;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.num {
  color: var(--dim);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.name {
  margin: 0 0 0.5rem;
  font-size: 18px;
  font-weight: normal;
}

.body > .desc {
  margin: 0 0 1.25rem;
  max-width: 620px;
  font-size: 14px;
  color: #666;
}

/* ── the command block ──────────────────────────────────────────────────── */

/* No border-radius, no shadow: a wash panel with one hairline, like the rest of
 * the shelf. The `$` is generated content so that selecting the block and
 * copying it yields runnable lines rather than a prompt on every one. */
.run {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: var(--wash);
  border-left: 1px solid var(--line);
  overflow-x: auto;
  font: 13px/1.8 "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

.run div {
  white-space: pre;
}

.run div::before {
  content: "$ ";
  color: var(--dim);
}

/* a comment line: no prompt, dimmed */
.run div.note::before {
  content: "";
}

.run div.note {
  color: var(--dim);
}

/* ── the needs line ─────────────────────────────────────────────────────── */

.needs {
  margin: 0;
  font-size: 13px;
  color: var(--dim);
}

.needs b {
  color: var(--ink);
  font-weight: normal;
}

.needs .free {
  color: var(--ink);
}

.needs .hard {
  color: var(--bad);
}

.src {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

.src:hover {
  text-decoration: underline;
}

.src::after {
  content: " ↗";
}

/* ── footer ─────────────────────────────────────────────────────────────── */

.foot {
  margin-top: 3rem;
  max-width: 620px;
  font-size: 13px;
  color: var(--dim);
}

.foot a {
  color: var(--accent);
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  body {
    padding: 1rem 1.25rem 4rem;
  }

  .entry {
    grid-template-columns: 28px 1fr;
    gap: 14px;
  }

  .run {
    font-size: 12px;
  }
}
