:root {
  --bg: #faf8f5;
  --text: #1f1d1a;
  --muted: #6b665f;
  --card: #ffffff;
  --border: #e4dfd7;
  --accent: #b3402a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --text: #efebe4;
    --muted: #9b958b;
    --card: #1f1d1a;
    --border: #34312c;
    --accent: #e0745c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  max-width: 760px;
  margin-inline: auto;
  padding: 0 20px;
}

.site-header { padding: 64px 0 32px; }
.site-header h1 { margin: 0; font-size: 2.2rem; letter-spacing: -0.02em; }
.tagline { margin: 6px 0 0; color: var(--muted); }

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

.card {
  display: block;
  height: 100%;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover, .card:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.card h2 { margin: 0 0 4px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.back { display: inline-block; margin-top: 32px; color: var(--accent); text-decoration: none; }
.back:hover { text-decoration: underline; }

.site-footer { margin-top: 64px; padding: 24px 0 40px; color: var(--muted); font-size: 0.85rem; }
