:root {
  --bg: #fafaf9;
  --card: #ffffff;
  --text: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --accent: #0f766e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --card: #19191c;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --line: #2e2e33;
    --accent: #2dd4bf;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 16px 64px;
}

.wordmark {
  margin: 0 0 40px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.wordmark::after {
  content: ".";
  color: var(--accent);
}

.sites {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  main { padding-top: 120px; }
  .wordmark { font-size: 48px; margin-bottom: 48px; }
  .sites { grid-template-columns: 1fr 1fr; gap: 16px; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 22px 48px 22px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card::after {
  content: "↗";
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.card:hover,
.card:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.card:hover::after,
.card:focus-visible::after {
  color: var(--accent);
}

.card:active { transform: translateY(1px); }

.name {
  font-size: 18px;
  font-weight: 650;
}

.desc {
  font-size: 15px;
  color: var(--muted);
}
