/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Tokens */
:root {
  --bg:     #0a0a0a;
  --fg:     #fafaf9;
  --muted:  #a8a29e;
  --border: rgba(255, 255, 255, 0.12);
  --card:   rgba(255, 255, 255, 0.04);
}

/* Base */
html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Grid overlay */
.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Layout */
main {
  position: relative;
  min-height: 100vh;
  max-width: 36rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Logo */
.logo {
  width: 8rem;
  height: 8rem;
  filter: invert(1);
  animation: float 6s ease-in-out infinite;
}

/* Heading */
h1 {
  margin-top: 2.5rem;
  font-size: clamp(3rem, 8vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* Tagline */
.tagline {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--muted);
}

/* Projects */
.projects {
  margin-top: 3rem;
  width: 100%;
  text-align: left;
}

.projects h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.projects ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.projects li {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
}

.projects li.more {
  opacity: 0.5;
}

.projects strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.projects strong a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: rgba(250, 250, 249, 0.3);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}

.projects strong a:hover {
  text-decoration-color: var(--fg);
}

.projects p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Contact */
.contact {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: rgba(250, 250, 249, 0.3);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}

.contact a:hover {
  text-decoration-color: var(--fg);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
