:root {
  --bg: #0a0a0a;
  --surface: #111;
  --border: #2a2a2a;
  --text: #fff;
  --muted: #888;
  --accent: #00acb3;
  --max: 640px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 172, 179, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0, 96, 224, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.6;
}

.page {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px 40px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  animation: rise-in 0.7s ease both;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  display: block;
  margin: 0 auto 20px;
  animation:
    rise-in 0.7s ease both,
    breathe 4.5s ease-in-out 0.9s infinite;
}

h1 {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.15rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.intro {
  margin: 0 auto;
  max-width: 36em;
  color: var(--muted);
  font-size: 1rem;
}

main {
  animation: rise-in 0.7s ease 0.12s both;
}

section {
  margin-bottom: 40px;
}

h2 {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.projects article {
  margin: 0;
}

.projects a,
.project-dead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.project-dead {
  opacity: 0.72;
}

.project-dead .meta {
  color: #666;
}

.projects a:hover,
.projects a:focus-visible {
  border-color: var(--accent);
  background: #121616;
  outline: none;
}

.projects a:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 172, 179, 0.35);
}

.projects h3 {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
}

.projects .desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
}

.projects .meta {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
}

.projects .arrow {
  color: #555;
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.projects a:hover .arrow,
.projects a:focus-visible .arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.about p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.about p:last-child {
  margin-bottom: 0;
}

footer {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: #666;
  font-size: 0.8rem;
  animation: rise-in 0.7s ease 0.24s both;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

footer nav {
  display: flex;
  gap: 16px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover,
footer a:focus-visible {
  color: var(--accent);
  outline: none;
}

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

@keyframes breathe {
  0%,
  100% {
    border-color: var(--border);
    box-shadow: 0 0 0 0 rgba(0, 172, 179, 0);
  }
  50% {
    border-color: rgba(0, 172, 179, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 172, 179, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar,
  header,
  main,
  footer {
    animation: none;
  }

  .projects a,
  .projects .arrow,
  footer a {
    transition: none;
  }
}
