:root {
  --bg: #f7f3ef;
  --card: #ffffff;
  --text: #2b2420;
  --muted: #74665d;
  --accent: #b5654a;
  --line: #e8ded6;
  --shadow: 0 1px 2px rgb(60 40 30 / 6%), 0 8px 24px rgb(60 40 30 / 6%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1916;
    --card: #26221e;
    --text: #f1e9e2;
    --muted: #b3a59a;
    --accent: #e0987c;
    --line: #3a332d;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 16px 32px;
}

.head h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.head p {
  margin: 0 0 32px;
  max-width: 60ch;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}

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

.tag {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.name {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
}

.text {
  flex: 1;
  color: var(--muted);
}

.go {
  color: var(--accent);
  font-weight: 600;
}

.bot { border-style: dashed; }

.foot {
  margin-top: 32px;
  color: var(--muted);
  font-size: 14px;
}

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