:root {
  --bg: #0a0a0a;
  --fg: #e5e5e5;
  --muted: #737373;
  --accent: #a3a3a3;
  --card-bg: #171717;
  --card-border: #262626;
  --card-hover: #1f1f1f;
  --font-mono: "IBM Plex Mono", "SF Mono", "Fira Code", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

main {
  max-width: 640px;
  width: 100%;
}

header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

h1 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

h2 {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

section {
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--fg);
  transition:
    background 0.15s,
    border-color 0.15s;
}

.card:hover {
  background: var(--card-hover);
  border-color: var(--accent);
}

.label {
  font-size: 0.85rem;
  font-weight: 500;
}

.desc {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
}

footer p {
  font-size: 0.7rem;
  color: var(--muted);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
