:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef2ff;
  color: #111827;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

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

body {
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.15), transparent 34%),
              radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.12), transparent 30%),
              #f8fafc;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.card {
  width: min(560px, 100%);
  background: #ffffff;
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 20px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.profile-copy h1 {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  letter-spacing: -0.03em;
}

.profile-copy p {
  margin: 0;
  max-width: 36rem;
  line-height: 1.7;
  color: #475569;
}

.links {
  display: grid;
  gap: 14px;
}

.link-card {
  display: block;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.32);
}

.link-card h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.link-card p {
  margin: 0;
  line-height: 1.6;
  color: #475569;
}

.links-loading,
.error {
  color: #64748b;
  text-align: center;
  padding: 22px 0;
}

@media (max-width: 460px) {
  .card {
    padding: 22px 18px;
  }

  .avatar {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
  }
}
