:root {
  color-scheme: dark;
  --bg: #12161c;
  --ink: #e7ecf2;
  --muted: #8b97a6;
  --line: #2a3340;
  --card: #1a212b;
  --card-hover: #222b38;
  --accent: #7eb6ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 system-ui, sans-serif;
}

.wrap {
  width: min(920px, calc(100% - 2rem));
  margin-inline: auto;
}

.masthead {
  padding: 3rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0.25rem 0 0;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.sub {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

main {
  padding-bottom: 3rem;
}

section {
  margin-top: 2rem;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.grid a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 6.5rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.grid a:hover,
.grid a:focus-visible {
  background: var(--card-hover);
  border-color: #3d4b5e;
  outline: none;
}

.tag {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.name {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.host {
  color: var(--muted);
  font-size: 0.85rem;
}
