:root {
  --bg: #f5f5f5;
  --fg: #0f0f0f;
  --muted: #874a4a;
  --accent: #493636;
  --border: #efefef;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #efefef;
    --muted: #b47777;
    --accent: #c8b4b4;
    --border: #0f0f0f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.55;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
  font-weight: 600;
}

.hero h1 { font-size: 2rem; margin-bottom: 0.25rem; }
.hero p { color: var(--muted); margin-top: 0; }

.projects { display: grid; gap: 1.25rem; margin-top: 2rem; }

.project-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.project-card h2 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.project-card p { margin: 0.35rem 0; }

.meta { color: var(--muted); font-size: 0.875rem; font-family: var(--mono); }

.readme { margin-top: 2rem; }
.readme pre {
  background: var(--border);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  overflow-x: auto;
}
.readme code { font-family: var(--mono); }
