:root {
  --bg: #F5EFE6;
  --text: #2B2B2B;
  --muted: #7A6F63;
  --accent: #B5651D;
  --rule: rgba(43, 43, 43, 0.12);
  --font-body: -apple-system, "Segoe UI", Inter, system-ui, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

@media (min-width: 720px) {
  main { padding: 4.5rem 2rem 6rem; }
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}
a:hover { border-bottom-color: var(--accent); }

.site-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.chips {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}
.chips span + span::before {
  content: " · ";
  color: var(--muted);
  margin: 0 0.15rem;
}

.summary {
  font-size: 1.05rem;
  margin: 0 0 2.5rem;
  max-width: 60ch;
}

section {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.section-heading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

/* Project list (NOW + ALL PROJECTS) */
.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.project-item {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--rule);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
}
.project-item:last-child { border-bottom: 0; }

.status-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  align-self: center;
}
.status-active {
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(181, 101, 29, 0.55);
  animation: pulse 2.2s infinite;
}
.status-in_progress { background: var(--accent); opacity: 0.6; }
.status-live { background: #6B8E23; }
.status-archived { background: var(--muted); opacity: 0.35; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(181, 101, 29, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(181, 101, 29, 0); }
  100% { box-shadow: 0 0 0 0 rgba(181, 101, 29, 0); }
}

.project-body { min-width: 0; }
.project-name {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 500;
}
.project-desc {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}
.project-status-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

/* Project groups (category buckets) */
.project-group { margin-bottom: 1.5rem; }
.project-group:last-child { margin-bottom: 0; }
.project-group-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

/* Activity list */
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.activity-item {
  padding: 0.45rem 0;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  border-bottom: 1px dashed var(--rule);
}
.activity-item:last-child { border-bottom: 0; }
.activity-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.activity-message { font-size: 0.95rem; }
.activity-kind {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: 0.4rem;
}

/* Resume */
.resume-content h2, .resume-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.resume-content h2 { font-size: 1.1rem; }
.resume-content h3 { font-size: 0.98rem; font-family: var(--font-mono); font-weight: 500; }
.resume-content ul { padding-left: 1.25rem; }
.resume-content li { margin: 0.15rem 0; }
.resume-content p { margin: 0.5rem 0; }

/* Contact */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.link-list a {
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.footer-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 0;
}

/* Skeleton state */
[aria-busy="true"]::after {
  content: "loading…";
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  padding: 0.5rem 0;
}
