/* Design tokens — change these to retheme the whole site */
:root {
  --bg: #faf9f6;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --accent: #2a4d8f;
  --card-bg: #ffffff;
  --border: #e6e3dc;
  --radius: 12px;
  --max-width: 880px;
  --space: 1.25rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem var(--space) 3rem;
}

/* Hero */
.hero {
  margin-bottom: 3.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 4rem;
}

.card {
  display: block;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

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

.card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

footer a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 1rem;
}

footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
}

/* Stub detail pages */
.stub h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.stub p {
  color: var(--muted);
  margin: 0 0 2rem;
}

.back {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.back:hover,
.back:focus-visible {
  text-decoration: underline;
}
