:root {
  --paper: #ebebe6;
  --raised: #f3f3ee;
  --ink: #15171c;
  --muted: #5a5f67;
  --faint: #8b9099;
  --line: #d4d4cd;
  --accent: #2436e8;
  --inset-bg: #14161a;
  --inset-fg: #e8e8e2;
  --inset-muted: #8a8f99;
  --col: 46rem;
  /* One column for the whole page: content width == --col, so the command
     box, the section divider, and the repo rows all share the same edges. */
  --maxw: calc(var(--col) + 56px);
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0e11;
    --raised: #15171c;
    --ink: #e9e9e3;
    --muted: #9298a1;
    --faint: #6a6f78;
    --line: #23252c;
    --accent: #7b8fff;
    --inset-bg: #05060a;
    --inset-fg: #e8e8e2;
    --inset-muted: #7f8590;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
a { color: inherit; }

/* ---- hero ---- */
.hero { padding: 44px 0 40px; }
.eyebrow {
  font: 500 0.74rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 22px;
}
h1 {
  font: 640 clamp(2.5rem, 7vw, 4rem)/1.02 var(--sans);
  letter-spacing: -0.035em; margin: 0; max-width: var(--col);
  text-wrap: balance;
}
.hero p.sub {
  margin: 26px 0 0; max-width: var(--col); font-size: 1.12rem; color: var(--muted);
  text-wrap: pretty;
}
.hero p.sub b { color: var(--ink); font-weight: 600; }

/* ---- signature: routing-path inset ---- */
.inset {
  margin: 36px 0 0; max-width: var(--col); background: var(--inset-bg); color: var(--inset-fg);
  border-radius: 6px; padding: 11px 24px;
  font: 0.92rem/1.7 var(--mono); overflow-x: auto;
}
.inset .line { white-space: nowrap; }
.inset .prompt { color: var(--inset-muted); user-select: none; }
.inset .slot { color: var(--accent); }

/* ---- repos registry ---- */
.repos-head {
  font: 500 0.74rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); margin: 0; padding: 0 0 4px; border-bottom: 1px solid var(--line);
}
.repo {
  display: grid; grid-template-columns: 96px 1fr; gap: 8px 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.repo-role {
  font: 500 0.82rem/1.4 var(--mono); color: var(--muted);
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  column-gap: 9px; text-align: center;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); flex: none; transition: background 0.18s ease;
}
.repo:hover .dot { background: var(--accent); }
.repo-name {
  font: 600 1.5rem/1 var(--mono); margin: 0 0 12px; letter-spacing: -0.02em;
}
.repo-blurb { margin: 0; color: var(--ink); opacity: 0.9; max-width: 56ch; text-wrap: pretty; }
.repo-blurb code {
  font: 0.9em/1 var(--mono); background: var(--raised);
  padding: 1px 5px; border-radius: 4px;
}
.repo-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 18px;
}
.repo-meta { font: 0.8rem/1 var(--mono); color: var(--faint); }
.repo-links { display: flex; gap: 18px; }
.link {
  font: 550 0.9rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.ext { font-size: 0.78em; margin-left: 3px; opacity: 0.7; }

/* ---- footer ---- */
footer { padding: 28px 0 44px; color: var(--faint); font: 0.82rem/1.6 var(--mono); }
.colophon { margin: 0 0 5px; color: var(--muted); text-wrap: pretty; }
.colophon:last-of-type { margin-bottom: 16px; }
.colophon code { color: var(--ink); }
.colophon a { color: var(--ink); border-bottom: 1px solid var(--line); }
.colophon a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--faint); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ---- share ---- */
.share-row { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.share-native { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.share-native:hover { color: var(--accent); }

/* ---- a11y ---- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px;
}

@media (max-width: 560px) {
  .hero { padding: 40px 0 40px; }
  .repo { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .repo-role { display: flex; gap: 9px; margin-bottom: 6px; }
}
