:root {
  --bg: #fafaf9;
  --fg: #1c1c1a;
  --muted: #6b6b66;
  --accent: #d4552b;
  --border: #e5e4e0;
  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header,
main,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.site-nav a {
  color: var(--muted);
  font-size: 1rem;
  padding: 0.5rem 0;
  display: inline-block;
}

.site-nav a[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
}

.colon {
  color: var(--accent);
}

.hero {
  padding: 1.5rem 0 2.5rem;
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  max-width: 30ch;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 55ch;
  margin: 0;
}

.projects {
  padding: 1rem 0 3rem;
}

.projects h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
}

.project-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.project-card h3 a {
  color: var(--fg);
}

.project-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.card-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
  margin-top: auto;
}

.visit-link {
  font-weight: 600;
}

.source-link {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
