:root {
  --bg: #0a0a0a;
  --text: #e5e5e5;
  --text-muted: #888;
  --text-faint: #555;
  --border: #333;
  --border-hover: #666;
  --surface: #111;
}

[data-theme="light"] {
  --bg: #fafafa;
  --text: #1a1a1a;
  --text-muted: #666;
  --text-faint: #999;
  --border: #ddd;
  --border-hover: #bbb;
  --surface: #f0f0f0;
}

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s,
    color 0.3s;
}

/* Theme toggle */
.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    transform 0.2s;
  font-size: 1.25rem;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.theme-toggle .sun {
  display: none;
  color: var(--text);
}
.theme-toggle .moon {
  display: block;
  color: var(--text);
}

[data-theme="light"] .theme-toggle .sun {
  display: block;
}
[data-theme="light"] .theme-toggle .moon {
  display: none;
}

/* Main content */
main {
  text-align: center;
  padding: 2rem;
  max-width: 600px;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeIn 0.6s ease-out 0.1s both;
}

.links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  animation: fadeIn 0.6s ease-out 0.2s both;
}

.links a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.links a:hover {
  border-color: var(--border-hover);
  background: var(--surface);
  transform: translateY(-2px);
}

.links a:active {
  transform: translateY(0);
}

.projects {
  animation: fadeIn 0.6s ease-out 0.3s both;
}

h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.coming-soon {
  color: var(--text-faint);
  font-style: italic;
}
