:root {
  --bg: #fbfaff;
  --surface: #ffffff;
  --text: #1b1b24;
  --muted: #5d5e72;
  --accent: #5b6cff;
  --accent-soft: #e8eaff;
  --border: #e4e3ef;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121218;
    --surface: #1c1c25;
    --text: #ececf4;
    --muted: #a5a6bb;
    --accent: #9aa5ff;
    --accent-soft: #262a4d;
    --border: #2c2c3a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main, header, footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

header a { color: var(--text); text-decoration: none; font-weight: 700; }
nav a { color: var(--muted); margin-left: 16px; font-weight: 500; }

a { color: var(--accent); }

h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.15; margin: 32px 0 12px; }
h2 { margin-top: 40px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  margin: 16px 0;
}
@media (prefers-color-scheme: dark) { .button { color: #121218; } }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin: 8px 0 4px; }
.card p { margin: 0; color: var(--muted); }
.emoji { font-size: 1.8rem; }

a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { border-color: var(--accent); }

.pixels {
  display: grid;
  grid-template-columns: repeat(31, 1fr);
  gap: 3px;
  max-width: 520px;
  margin: 24px 0;
}
.pixels span { aspect-ratio: 1; border-radius: 3px; background: var(--border); }

.policy h2 { font-size: 1.25rem; }
.policy li { margin-bottom: 6px; }

footer {
  margin-top: 64px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
footer a { color: var(--muted); }
