:root {
  color-scheme: light dark;
  --bg: #f7f5f1;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5e5852;
  --hairline: #e3ddd4;
  --accent: #1a1a1a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131210;
    --surface: #1c1a17;
    --text: #f1ece4;
    --muted: #9a928a;
    --hairline: #2c2925;
    --accent: #f1ece4;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

h1 {
  font-family: ui-serif, "New York", Georgia, serif;
  font-weight: 600;
  font-size: 2.25rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.lede {
  color: var(--muted);
  font-size: 1.0625rem;
  margin: 0 0 3rem;
  max-width: 50ch;
}

h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.app-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--hairline);
}

.app-list li {
  border-bottom: 1px solid var(--hairline);
}

.app-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.15s ease;
}

.app-list a:hover { opacity: 0.65; }

.app-name {
  font-size: 1.125rem;
  font-weight: 500;
}

.app-tag {
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: right;
  flex-shrink: 0;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.875rem;
}

/* Per-app entries on the index: name, one-sentence definition, links. */
.app-list li {
  padding: 1.5rem 0;
}

.app-head {
  display: block;
  padding: 0;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.15s ease;
}

.app-head:hover { opacity: 0.65; }

.app-desc {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0.5rem 0 0.75rem;
  max-width: 58ch;
}

.app-links {
  margin: 0;
  font-size: 0.875rem;
  display: flex;
  gap: 1.25rem;
}

.app-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
}

.app-links a:hover { opacity: 0.65; }

.note {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 2.5rem;
  max-width: 58ch;
}

.note a { color: var(--text); }

/* App Store icon beside each app name — the same mark users see on the
   store and their home screen, which is the point: recognition. The PNG
   carries the iOS squircle in its alpha, so no border-radius here. */
/* `.app-list a` (0,1,1) sets space-between and outranks a bare `.app-head`
   (0,1,0), which flung the name to the far right once an icon shared the
   row. Match its specificity to win. */
.app-list a.app-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  justify-content: flex-start;
}
.app-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: block;
}
