:root {
  --fg: #1a1a1a;
  --fg-muted: #555;
  --bg: #ffffff;
  --bg-alt: #f6f6f7;
  --accent: #0a84ff;
  --border: #e5e5e7;
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f2f2f2;
    --fg-muted: #a0a0a8;
    --bg: #0e0e10;
    --bg-alt: #1a1a1d;
    --accent: #4fa8ff;
    --border: #2a2a2e;
  }
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header.site {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

header.site .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

header.site a {
  color: var(--fg);
  text-decoration: none;
}

header.site .crumbs {
  color: var(--fg-muted);
}

header.site .crumbs a:hover {
  color: var(--accent);
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.6rem;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.4rem;
}

p, ul, ol {
  margin: 0.6rem 0;
}

ul, ol {
  padding-left: 1.4rem;
}

li {
  margin: 0.25rem 0;
}

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

a:hover {
  text-decoration: underline;
}

code, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-alt);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

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

.lead {
  font-size: 1.2rem;
  color: var(--fg-muted);
  margin: 0.5rem 0 1.5rem;
  line-height: 1.45;
}

/* Hero (app landing) */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0 2rem;
}

.hero img.icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin-bottom: 0.25rem;
}

.hero .subtitle {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

.hero .tagline {
  max-width: 36rem;
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.cta:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.cta.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* Feature lists */
.features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.features li::before {
  content: "→ ";
  color: var(--accent);
  font-weight: 600;
}

/* App cards on the root page */
.apps {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--fg);
  text-decoration: none;
  transition: transform 0.1s ease, border-color 0.1s ease;
}

.app-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

.app-card img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
}

.app-card .meta strong {
  display: block;
  font-size: 1.05rem;
}

.app-card .meta span {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1.5rem 1.25rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
  text-align: center;
}

footer.site a {
  color: var(--fg-muted);
}

footer.site a:hover {
  color: var(--accent);
}

footer.site .sep {
  padding: 0 0.5rem;
}
