/* The home page's look. Each app has its own styles. */
:root {
  --bg: #f6f5f1;
  --card: #ffffff;
  --text: #1d1d1b;
  --muted: #66645e;
  --line: #e2e0d8;
  --accent: #2f5d8a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --card: #1f1f1d;
    --text: #ecebe6;
    --muted: #a3a19a;
    --line: #34332f;
    --accent: #8db6e0;
  }
}

* { box-sizing: border-box; }

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

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 20px;
}

h1 {
  margin: 0 0 40px;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.02em;
}

.dot { color: var(--accent); }

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

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.app-card:hover,
.app-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.app-icon { font-size: 2rem; }
.app-name { font-weight: 600; font-size: 1.1rem; }
.app-description { color: var(--muted); font-size: 0.95rem; }
