:root {
  --bg: #0d1117;
  --panel: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --remint: #3fb950;
  --mirror: #a371f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

main { max-width: 960px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }

/* Title + GitHub link share the first row; the tagline spans the full width
   below, so it isn't squeezed beside the link on narrow screens. */
.site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: start; }
.site-header .sub { grid-column: 1 / -1; }
header h1 { margin: 0 0 .35rem; font-size: 1.7rem; }
.sub { color: var(--muted); margin: 0 0 1.75rem; }
@media (max-width: 480px) { header h1 { font-size: 1.4rem; } }

.repo-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  margin-top: .35rem;
  padding: .35rem .7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: .85rem;
  text-decoration: none;
}
.repo-link:hover, .repo-link:focus-visible { background: var(--panel); border-color: var(--muted); }
.repo-link svg { width: 16px; height: 16px; fill: currentColor; }
code { background: var(--panel); padding: .1em .35em; border-radius: 4px; }

.filters { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .5rem .75rem;
  font-size: .95rem;
  min-width: 200px;
}

.status { color: var(--muted); font-size: .85rem; min-height: 1.2em; margin: .25rem 0 1.25rem; }

.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 1rem; }
.empty { color: var(--muted); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-head h3 { margin: 0; font-size: .95rem; font-weight: 600; }

.badge { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; padding: .18em .5em; border-radius: 999px; border: 1px solid; }
.badge.remint { color: var(--remint); border-color: var(--remint); }
.badge.mirror { color: var(--mirror); border-color: var(--mirror); }

.meta { display: flex; gap: 1.5rem; margin: .85rem 0 .5rem; }
.meta div { display: flex; flex-direction: column; }
.meta dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.meta dd { margin: 0; font-variant-numeric: tabular-nums; }

.urlrow { display: flex; flex-direction: column; gap: .25rem; margin-top: .6rem; }
.urlrow span { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.urlrow input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent);
  padding: .45rem .6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
}


/* Footer shares the content column (same max-width/padding as main) so it never
   runs edge to edge, and its link uses the theme text color, not browser blue. */
footer.disclaimer {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
}
footer.disclaimer p { margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--border); }
footer.disclaimer a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
footer.disclaimer a:hover, footer.disclaimer a:focus-visible { color: #fff; }
