:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5f66;
  --border: #e4e4e7;
  --card: #fafafa;
  --accent: #1f6feb;
  --live-bg: #dcfce7;
  --live-text: #166534;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --text: #e8e8ea;
    --muted: #9a9ca3;
    --border: #2a2d34;
    --card: #16191f;
    --accent: #6ea8ff;
    --live-bg: #14361f;
    --live-text: #86efac;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main,
footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

main {
  padding-top: 72px;
}

h1 {
  margin: 0 0 8px;
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0;
  font-size: 1.15rem;
  color: var(--muted);
}

section {
  margin-top: 48px;
}

h2 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

p {
  margin: 0;
}

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

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.projects,
.links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

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

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

.project-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.95rem;
}

.tag {
  flex-shrink: 0;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-live {
  background: var(--live-bg);
  color: var(--live-text);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

footer {
  margin-top: 72px;
  padding-bottom: 40px;
  font-size: 0.85rem;
  color: var(--muted);
}
