/* Dark only, whatever the system setting. */
:root {
  color-scheme: dark;
  --bg: #111113;
  --text: #f2f2f4;
  --muted: #a1a1a8;
  --rule: #2a2a2e;
  --card: #1c1c1f;
  --accent: #4fc3d6;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

main.wrap { padding-top: clamp(64px, 14vh, 140px); }

main > p { margin: 0 0 1em; }

.intro { margin-bottom: 52px; }

.intro h1 {
  font-size: clamp(36px, 7vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.lede {
  font-size: clamp(20px, 3vw, 22px);
  color: var(--muted);
  margin: 0;
}

/* Card groups: Work, Community, things I've made */

.group { margin: 44px 0; }
.group:last-of-type { margin-bottom: 56px; }

.group h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  transition: border-color 0.15s;
}
.card:hover { text-decoration: none; border-color: var(--accent); }

.mark {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 13px;
}
/* Logos drawn for white backgrounds sit on a white tile in both modes. */
.mark.logo { padding: 9px; border: 1px solid var(--rule); background: #fff; object-fit: contain; }

.card-text { flex: 1; min-width: 0; }
.card-name { display: block; font-weight: 600; }
.card-about { display: block; color: var(--muted); font-size: 16px; line-height: 1.45; }

.card-go { flex: none; color: var(--muted); transition: transform 0.15s, color 0.15s; }
.card:hover .card-go { color: var(--accent); transform: translateX(3px); }

/* Footer */

.site-footer {
  margin: 88px 0 0;
  padding: 24px 0 40px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .card, .card-go { transition: none; }
}
