:root {
  --bg: #0e0e11;
  --fg: #e5e7eb;
  --muted: #9ca3af;
  --accent: #60a5fa;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --fg: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #ffffff;
    --fg: #111827;
    --muted: #6b7280;
    --accent: #2563eb;
  }
}

html:not(.theme-ready) * {
  transition: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

main {
  max-width: 560px;
  padding: 2.5rem 1.5rem;
  animation: fadeIn 0.6s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }
}

/* Header */
.header img {
  width: 96px;
  height: 96px;
  border-radius: 25%;
  margin-bottom: 1rem;
}

.header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.handle {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Intro text */
.intro p {
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

/* About list */
.about ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.about li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about li:hover {
  color: var(--fg);
}


/* Links */
.links a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.links a:hover {
  color: var(--accent);
}

/* Icons */
.icon {
  width: 16px;
  height: 16px;
  opacity: 0.75;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 0.25s ease, stroke 0.25s ease;
}

/* Theme toggle */
.theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
  animation: fadeIn 0.6s ease-out forwards;
}

.theme-toggle:hover {
  color: var(--fg);
}

.theme-toggle .icon {
  width: 18px;
  height: 18px;
}


/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Responsive */
@media (max-width: 480px) {
  main {
    padding: 2rem 1.25rem;
  }
}