:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #6b6b70;
  --border: #e5e5e3;
  --accent: #2b5fb3;
  --accent-hover: #1d4a96;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #181b21;
    --text: #ececf1;
    --muted: #9a9aa3;
    --border: #2a2e36;
    --accent: #6ea2ff;
    --accent-hover: #8fb8ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.25rem 2rem;
}

.hero {
  margin-bottom: 3rem;
}
.hero h1 {
  font-size: 2.25rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.hero .lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 1rem;
}

.app-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.app-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.app-link {
  display: block;
  padding: 1.1rem 1.2rem;
  color: var(--text);
}
.app-link:hover { text-decoration: none; }

.app-link h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}
.app-link p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.app-meta {
  font-size: 0.78rem;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.auth-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.prose h1 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.3rem;
}
.prose h2 {
  font-size: 1.05rem;
  margin: 2rem 0 0.5rem;
}
.prose p { margin: 0.6rem 0; }
.prose code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.88em;
}
.prose .back {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer .sep { color: var(--muted); margin: 0 0.5rem; }
