:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --text: #17171a;
  --muted: #5d5e66;
  --border: #e4e4e8;
  --accent: #1f2a44;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --surface: #18181c;
    --text: #ececef;
    --muted: #a0a1aa;
    --border: #2a2a30;
    --accent: #c9d3ec;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

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

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

header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 28px;
  padding-bottom: 28px;
}

header a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--text);
  color: var(--bg);
}

main {
  padding-bottom: 48px;
}

h1 {
  margin: 24px 0 8px;
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 36px 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

p,
li {
  color: var(--muted);
}

strong {
  color: var(--text);
}

ul {
  padding-left: 1.2em;
}

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

.lead {
  font-size: 1.15rem;
}

.meta {
  font-size: 0.9rem;
}

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

.card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

footer a {
  color: var(--muted);
}
