:root {
  color-scheme: light dark;
  --void-green: #478061;
  --background: #fdf6e3;
  --surface: #fffcf4;
  --ink: #242b26;
  --muted: #505b53;
  --link: #32664b;
  --border: #d7d2c0;
  font-family: system-ui, sans-serif;
  line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #222;
    --surface: #292929;
    --ink: #ededed;
    --muted: #bababa;
    --link: #78c09a;
    --border: #474747;
  }
}

* { box-sizing: border-box; }
body { margin: 0; border-top: 4px solid var(--void-green); background: var(--background); color: var(--ink); }
a { color: var(--link); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -.04em; line-height: 1.12; overflow-wrap: anywhere; }
h2 { font-size: 1.06rem; }
code, pre { font-family: ui-monospace, Consolas, monospace; }
.shell { width: min(960px, calc(100% - 2rem)); margin-inline: auto; padding-block: clamp(2rem, 6vw, 4rem); }
.catalog h1 { margin-bottom: 1.5rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: .8rem; }
.repo-card { display: grid; align-content: start; gap: .65rem; padding: 1rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.cards .repo-card { position: relative; grid-template-rows: auto 1fr auto; }
.cards .repo-card:hover, .cards .repo-card:focus-within { border-color: var(--void-green); }
.cards h2 a { text-decoration: none; }
.cards h2 a:hover { text-decoration: underline; }
.cards h2 a::after { content: ""; position: absolute; inset: 0; }
.repo-card p, .intro { color: var(--muted); font-size: .92rem; }
.repo-card .metadata { font-size: .78rem; }
.back { display: inline-block; margin-bottom: 1.35rem; font-size: .88rem; }
.detail-head .intro { max-width: 62ch; margin-block: .65rem 1.35rem; }
.details { display: grid; gap: .8rem; max-width: 720px; }
.links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .88rem; }
.revision { overflow-wrap: anywhere; font-size: .83rem; }
.command { padding: .75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--background); }
.command pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .83rem; }
.copy { margin-top: .55rem; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--link); padding: .25rem .6rem; cursor: pointer; font: inherit; font-size: .8rem; }
