:root {
  color-scheme: dark;
  --background: hsl(240 10% 3.9%);
  --foreground: hsl(0 0% 98%);
  --muted: hsl(240 5% 64.9%);
  --border: hsl(240 3.7% 15.9%);
  --border-hover: hsl(240 5% 34%);
  --ring: hsl(240 4.9% 83.9%);
  --radius: 0.5rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

h1 {
  margin: 0 0 2rem;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

#status { margin: 0 0 1rem; color: var(--muted); font-size: 0.875rem; }
#status:empty { display: none; }

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}

.card {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--border-hover); }
.card:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.name { display: block; font-weight: 500; }
.host { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
