:root {
  --bg: #f5f3ef;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6b6b70;
  --border: #e3e0da;
  --accent: #2d4a6b;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141517;
    --card: #1f2023;
    --text: #ececee;
    --muted: #9a9aa2;
    --border: #2e3034;
    --accent: #8fb3db;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header, main { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header { padding-top: 40px; padding-bottom: 8px; }
h1 { margin: 0; font-size: 2rem; letter-spacing: -0.02em; }
.sub { margin: 4px 0 0; color: var(--muted); }
.grid {
  list-style: none; margin: 24px 0 48px; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.tile {
  display: flex; gap: 14px; align-items: flex-start;
  height: 100%; padding: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  color: inherit; text-decoration: none;
  transition: transform .12s ease, border-color .12s ease;
}
.tile:hover, .tile:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile img { width: 56px; height: 56px; flex: none; border-radius: 12px; }
.tile h2 { margin: 2px 0 4px; font-size: 1.05rem; }
.tile p { margin: 0; color: var(--muted); font-size: .9rem; }
.msg { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }
