:root {
  --bg: #F6F4EF;
  --ink: #1B1B19;
  --muted: #6B6A64;
  --edge: rgba(27, 27, 25, 0.10);
  --hover: rgba(27, 27, 25, 0.05);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131312;
    --ink: #EDEBE6;
    --muted: #9C9A93;
    --edge: rgba(237, 235, 230, 0.12);
    --hover: rgba(237, 235, 230, 0.06);
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(48px, 10vw, 112px) 16px 48px;
}

.intro { margin-bottom: clamp(40px, 7vw, 72px); }

.mark {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 34ch;
  margin: 18px 0 0;
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--muted);
}

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

.apps a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 8px 16px;
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.apps img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 22%;
  /* A hairline so the pale icons (Gable, Sonnet, Keyfield) keep their edge on the page colour. */
  box-shadow: 0 0 0 1px var(--edge), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 200ms ease;
}

.apps span {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.apps a:hover { background: var(--hover); }
.apps a:hover img { transform: translateY(-2px); }

.apps a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.foot {
  margin-top: clamp(48px, 8vw, 88px);
  padding-top: 20px;
  border-top: 1px solid var(--edge);
  font-size: 15px;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover { color: var(--ink); }

@media (max-width: 420px) {
  .apps { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .apps a { padding: 14px 2px 12px; gap: 10px; }
  .apps img { width: 72px; height: 72px; }
  .apps span { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .apps a, .apps img { transition: none; }
  .apps a:hover img { transform: none; }
}
