:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --fg: #1a1a1a;
  --card: #ffffff;
  --border: #e0e0e0;
  --hover: #f0f0f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --fg: #f0f0f0;
    --card: #1b1c1f;
    --border: #2a2b2e;
    --hover: #242529;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 480px;
  padding: 3rem 1.5rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

#projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

#projects li a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.15s ease;
}

#projects li a .icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

#projects li a .text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

#projects li a .desc {
  font-size: 0.8rem;
  color: var(--fg);
  opacity: 0.6;
}

#projects li a:hover {
  background: var(--hover);
}

#projects .empty {
  text-align: center;
  color: #888;
  padding: 1rem 0;
}
