:root {
  --bg: #fbfbfa;
  --fg: #16181d;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2f6df6;
  --code-bg: #f1f2f4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --fg: #e8eaed;
    --muted: #9aa3af;
    --line: #22262c;
    --accent: #7aa7ff;
    --code-bg: #171a1f;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 34rem;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.wave {
  display: inline-block;
  margin-left: 0.35rem;
  animation: wave 2.4s ease-in-out 1s 2;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(16deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(12deg); }
}

@media (prefers-reduced-motion: reduce) {
  .wave { animation: none; }
}

.lede {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

code {
  padding: 0.1em 0.4em;
  border-radius: 4px;
  background: var(--code-bg);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--fg);
}

.links {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.links li {
  border-bottom: 1px solid var(--line);
}

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.15rem;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.links a::after {
  content: "→";
  color: var(--muted);
  transition: transform 0.15s ease;
}

.links a:hover,
.links a:focus-visible {
  color: var(--accent);
  padding-left: 0.5rem;
}

.links a:hover::after,
.links a:focus-visible::after {
  transform: translateX(3px);
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgb(34 197 94 / 0.15);
  flex: none;
}
