:root {
  --bg: #f6f5f3;
  --surface: #ffffff;
  --ink: #1c1b1a;
  --muted: #6d6a66;
  --accent: #5b4bd4;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  padding: 3rem 1.5rem 4rem;
}

.site-header {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.projects {
  max-width: 44rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* 4:3 matches the source images' native ratio — 16:9 would crop off the
   @handle text baked into their bottom edge */
.thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body { padding: 1.1rem 1.25rem 1.25rem; }

.card-body h2 {
  margin: 0 0 0.15rem;
  font-size: 1.15rem;
}

.meta {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.sublinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.sublinks a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.sublinks a:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

