:root {
  color-scheme: light dark;
  --bg: #f6f6f4;
  --surface: #ffffff;
  --text: #1b1b1a;
  --muted: #6b6b66;
  --border: #dddcd7;
  --accent: #1f5eff;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --surface: #1f1f1e;
    --text: #ececea;
    --muted: #a0a09a;
    --border: #353533;
    --accent: #6c95ff;
  }
}

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

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

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

.muted {
  color: var(--muted);
}

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

.tools a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.tools a:hover {
  border-color: var(--accent);
}
