:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0f1115;
  color: #e8e8e8;
  font-family: system-ui, -apple-system, sans-serif;
}

main, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

footer {
  color: #CCCCCC;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}

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

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border: 1px solid #2a2d34;
  border-radius: 12px;
  background: #16181d;
  color: inherit;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.15s ease;
}

.card:hover,
.card:focus-visible {
  border-color: #4a4f5c;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.card-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.card-title {
  font-weight: 600;
}

.card-desc {
  font-size: 0.8rem;
  color: #9a9da5;
}
