:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-hover: #1c232c;
  --border: #30363d;
  --border-hover: #4a525c;
  --text: #e6edf3;
  --muted: #9da7b3;
  --accent: #e5484d;
  --accent-soft: rgba(229, 72, 77, 0.35);
  --focus: #ff8a8e;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 12px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 60% 45% at 50% 38%, rgba(229, 72, 77, 0.08), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 16px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  box-shadow:
    0 0 0 2px var(--accent),
    0 0 32px 4px var(--accent-soft);
}

.name {
  margin: 24px 0 4px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Link buttons */
.links {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.btn svg {
  flex-shrink: 0;
}

/* Projects */
.projects {
  width: 100%;
}

.section-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition:
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 1.0625rem;
  font-weight: 600;
}

.card-tag {
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.card-text {
  color: var(--muted);
  font-size: 0.9375rem;
}

.card-link {
  margin-top: 4px;
  color: var(--focus);
  font-size: 0.875rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Interaction states */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
  }

  .card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
  }
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Footer */
.footer {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer p {
  margin: 0;
}

@media (min-width: 720px) {
  .avatar {
    width: 196px;
    height: 196px;
  }

  .name {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .card {
    transition: none;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}
