:root { color-scheme: light dark; }
* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; }
html, body { background: Canvas; color: CanvasText; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
main { padding: .75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(560px, 100%), 1fr)); gap: .5rem; }
@media (max-width: 520px) { main { padding: .4rem; gap: .35rem; } }
.card { border: 1px solid currentColor; padding: .5rem; min-width: 0; }
.title { font-size: 1rem; line-height: 1.25; margin-bottom: .25rem; overflow-wrap: anywhere; }
.links { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.link { text-decoration: none; border: 1px solid currentColor; padding: 0 .2em; font-size: .9rem; white-space: nowrap; }
.link:hover { text-decoration: underline; }
.file-page { max-width: 70rem; margin: auto; padding: .75rem; }
.hashes { font-size: .72rem; line-height: 1.15; margin-bottom: .5rem; display: flex; flex-wrap: wrap; gap: .1em .7em; }
.hash { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-decoration: none; }
.hash:hover { text-decoration: underline; }
.hash.current { color: CanvasText; font-weight: 700; }
.file-content { white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .75rem; line-height: 1.3; }
.local-file {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.topnav { padding: .5rem .75rem; }
.topnav a { color: inherit; }
