:root {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, 'Cascadia Mono',
    'Roboto Mono', Consolas, monospace;
  color-scheme: dark;
  --bg: #050507;
  --fg: #e5e5e5;
  --muted: #888;
  --dim: #555;
  --border: #1a1a1f;
  --border-hover: #2a2a33;
  --accent: #4ade80;
  --wip: #facc15;
  --offline: #555;
}

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

html,
body {
  min-height: 100%;
}

body {
  background: radial-gradient(ellipse at top, #0a0a12 0%, var(--bg) 70%);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* starfield canvas */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  min-height: 100vh;
}

.header h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.prompt {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
}

#typed {
  background: linear-gradient(135deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cursor {
  color: var(--accent);
  animation: blink 1s steps(2) infinite;
  margin-left: 2px;
  font-weight: 400;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.tagline {
  color: var(--muted);
  font-size: 0.95rem;
  animation: fadeIn 1.2s 1.2s ease both;
}

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

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  animation: fadeIn 1.2s 1.6s ease both;
}

@media (min-width: 640px) {
  .projects {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  position: relative;
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: rgba(13, 13, 18, 0.6);
  backdrop-filter: blur(4px);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(74, 222, 128, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(74, 222, 128, 0.15);
}

.card:hover::before {
  opacity: 1;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  position: relative;
}

.card-name {
  font-weight: 600;
  color: var(--fg);
}

.card-status {
  font-size: 0.7rem;
  color: var(--dim);
}

.status-live {
  color: var(--accent);
}
.status-wip {
  color: var(--wip);
}
.status-offline {
  color: var(--offline);
}

.card-desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  position: relative;
}

.footer {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--dim);
  font-size: 0.85rem;
  animation: fadeIn 1.2s 2s ease both;
}

.footer a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.15s;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
