/* sp00.nz — manpage aesthetic. Tokens straight from the design handoff. */

:root {
  --paper: #f4f0e6;
  --paper-raised: #efe9dc;
  --ink: #1f1c17;
  --ink-body: #2a2620;
  --text-body: #43403a;
  --text-muted: #5a544a;
  --text-dim: #6f685c;
  --text-faint: #8c8475;
  --text-faintest: #a59a86;
  --accent: #b5560e;
  --accent-hover: #8e420a;
  --rule: #e7e0d2;
  --rule-strong: #ddd6c7;
  --rule-dotted: #c8bda6;
  --nav-underline: #e0d5c0;
  --tilde-idle: #e2dbcc;
  --placeholder: #b3aa97;

  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 780px; margin: 0 auto; padding: 0 32px; }
.wrap.wide { max-width: 860px; }

/* header */
.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 26px 0 0;
}
.wordmark {
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--accent); }
.nav { display: flex; gap: 20px; font-size: 13px; }
.nav a { color: var(--text-dim); text-decoration: none; }
.nav a:hover { color: var(--accent-hover); }
.nav a.on {
  color: var(--ink);
  border-bottom: 1px solid var(--nav-underline);
  padding-bottom: 2px;
}

/* title block */
.title { padding: 64px 0 8px; }
.title.index { padding: 56px 0 0; }
h1 {
  font-size: 34px; font-weight: 600; letter-spacing: -0.025em;
  line-height: 1.15; margin: 0 0 16px;
}
.index h1 { font-size: 30px; margin: 0 0 14px; }
.cursor {
  display: inline-block;
  width: 8px; height: 26px;
  background: var(--accent);
  margin-left: 8px;
  vertical-align: -3px;
  animation: blink 1.15s step-end infinite;
}
.index .cursor { height: 23px; vertical-align: -2px; }
@keyframes blink { 0%,49% { opacity: 1 } 50%,100% { opacity: 0 } }

.lede {
  font-family: var(--sans);
  font-size: 16.5px; line-height: 1.7;
  color: var(--text-body); max-width: 600px;
}
.index .lede { font-size: 15.5px; line-height: 1.65; color: var(--text-muted); }

/* the AI note */
.ai-note {
  margin: 44px 0 0;
  padding: 22px 24px;
  background: var(--paper-raised);
  border-left: 2px solid var(--accent);
  border-radius: 0 2px 2px 0;
}
.ai-note .label {
  font-size: 11px; letter-spacing: 0.16em;
  color: var(--accent); margin-bottom: 11px;
}
.ai-note p {
  margin: 0;
  font-family: var(--sans);
  font-size: 14.5px; line-height: 1.72;
  color: var(--text-body);
}

/* section label + dotted rule + right meta */
.sec {
  display: flex; align-items: baseline; gap: 12px;
  margin: 52px 0 6px;
}
.sec:first-of-type { margin-top: 46px; }
.sec .label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.15em;
  color: var(--ink);
}
.sec .dots { flex: 1; border-bottom: 1px dotted var(--rule-dotted); }
.sec .meta { font-size: 11.5px; color: var(--text-faintest); }
.sec .meta a { color: var(--accent); text-decoration: none; }
.explainer {
  font-family: var(--sans);
  font-size: 12.5px; line-height: 1.6;
  color: var(--text-faint);
  margin: 0 0 14px; max-width: 620px;
}
.explainer code {
  font-family: var(--mono); font-size: 12.5px; color: var(--accent);
  white-space: nowrap;
}

.block { padding-top: 60px; }
.block .sec:first-child { margin-top: 0; }

/* rows */
.row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 11px 8px;
  margin: 0 -8px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
a.row:hover, .row:hover { background: var(--paper-raised); }
.row .name {
  flex: none; min-width: 156px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  text-decoration: none;
}
.row a.name:hover { color: var(--accent-hover); }
.row .dot { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--text-faintest); }
.row .dot.round { border-radius: 50%; }
.row .dot.build-dot { background: var(--accent); }
.row .lang { flex: none; min-width: 76px; font-size: 11.5px; color: var(--text-faint); }
.row .desc {
  flex: 1; min-width: 0;
  font-family: var(--sans); font-size: 13.5px; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row .desc.unset { color: var(--placeholder); font-style: italic; }
.row .stars {
  flex: none; min-width: 96px; text-align: right;
  font-size: 11.5px; color: var(--text-faintest);
}
.row .site-name { min-width: 216px; }
.row .site-status { flex: none; min-width: 76px; text-align: right; font-size: 11.5px; color: var(--text-faint); }

/* "19 more toolkits →" — sits where the truncated list ends. */
.row.more {
  font-size: 11.5px;
  color: var(--accent);
  border-bottom: none;
}
.row.more:hover { color: var(--accent-hover); }

.badge {
  flex: none;
  font-size: 10.5px; color: #fbf3e6;
  padding: 2px 7px; border-radius: 2px;
  background: var(--text-faint);
}
.badge.working { background: #5f7a4f; }
.badge.wip { background: #9a7a3a; }
.badge.experimental { background: #a8553c; }

.build {
  flex: none; min-width: 96px; text-align: right;
  font-size: 11.5px; color: var(--accent); text-decoration: none;
}
.build:hover { text-decoration: underline; }

/* release rows */
.row.release { padding: 9px 8px; }
.row .date { flex: none; min-width: 52px; font-size: 11.5px; color: var(--text-faintest); }
.row .repo { flex: none; min-width: 132px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.row .tag { flex: none; min-width: 48px; font-size: 12px; color: var(--accent); }
.month {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.15em;
  color: var(--ink);
}
.key { display: flex; gap: 20px; margin-top: 20px; font-size: 11.5px; color: var(--text-faint); }
.key span { display: inline-flex; align-items: center; gap: 7px; }
.key i { width: 8px; height: 8px; border-radius: 2px; background: var(--text-faint); }
.key i.build { background: var(--accent); }

/* about prose */
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 600px; }
.prose p {
  margin: 0;
  font-family: var(--sans); font-size: 16.5px; line-height: 1.7;
  color: var(--text-body);
}

/* footer */
.site-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 70px;
  padding: 18px 0 40px;
  border-top: 1px solid var(--rule-strong);
}
.site-foot .col { font-size: 11.5px; line-height: 1.8; color: var(--text-faintest); }
.site-foot .col a { color: var(--text-faintest); text-decoration: none; }
.site-foot .col a:hover { color: var(--accent); }
.tilde {
  font-size: 15px; line-height: 1;
  color: var(--tilde-idle); text-decoration: none;
  padding: 6px 4px;
  transition: color .18s;
}
.tilde:hover { color: var(--accent); }

/* Narrow screens: rows stack into two lines rather than crushing the columns.
   ponytail: the handoff never designed mobile — this is the recommended fallback. */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  h1 { font-size: 28px; }
  .row { flex-wrap: wrap; gap: 8px 12px; }
  .row .name, .row .site-name, .row .repo { min-width: 0; flex: 1 1 auto; }
  .row .desc { flex: 1 1 100%; white-space: normal; }
  .row .stars, .row .build, .row .site-status { min-width: 0; }
}
