:root {
  --bg: #faf9f7;
  --text: #1c1b1a;
  --muted: #6b6862;
  --card-bg: #ffffff;
  --card-border: #e7e4de;
  --accent: #b4531f;
  --tag-bg: #f1eee8;
  --tag-text: #57534b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --text: #ece9e4;
    --muted: #9d9990;
    --card-bg: #201f1c;
    --card-border: #33312c;
    --accent: #e8814e;
    --tag-bg: #2a2925;
    --tag-text: #b3aea4;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

/* Hero */
.hero { text-align: center; margin-bottom: 4rem; }

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
}

.avatar-fallback {
  background: var(--accent);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.tagline {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 1.25rem;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 550;
}
.links a:hover { text-decoration: underline; }
.links .dot { color: var(--muted); margin: 0 0.5rem; }

/* Sections */
.section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

/* Project cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.card h3 { font-size: 1.05rem; font-weight: 700; }
.card p { font-size: 0.9rem; color: var(--muted); flex-grow: 1; }

.card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.card-soon { opacity: 0.65; }

/* Footer */
.footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
