:root {
  --bg: #f4f1ea;
  --surface: #ffffff;
  --text: #2b2620;
  --muted: #7a7064;
  --border: #e2dccf;
  --accent: #d9822b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1b18;
    --surface: #2a2723;
    --text: #eee8de;
    --muted: #a59b8d;
    --border: #3d3832;
    --accent: #e8964a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  line-height: 1.6;
}

header, main { max-width: 760px; margin: 0 auto; padding: 24px 16px 0; }
header h1 { margin: 0; font-size: 26px; }
header p { margin: 4px 0 0; color: var(--muted); }

.tools {
  list-style: none;
  margin: 8px 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.tools a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.tools a:hover { border-color: var(--accent); }
.tools strong { font-size: 17px; }
.tools span { color: var(--muted); font-size: 14px; }
