/* Link in Bio. Change the colors here (light, then dark). */
:root {
  --bg: #f6f1fb;
  --bg-2: #fdf3ec;
  --text: #22192c;
  --muted: #675c73;
  --card: #ffffff;
  --card-hover: #fbf8ff;
  --line: #e6dcef;
  --accent: #7b3fe4;
  --avatar-a: #ff9a62;
  --avatar-b: #8b5cf6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151119;
    --bg-2: #1b1313;
    --text: #f4eff8;
    --muted: #b3a8bd;
    --card: #211b28;
    --card-hover: #2a2232;
    --line: #342b3d;
    --accent: #b794ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--bg), var(--bg-2));
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 14px; }

.profile {
  flex: 1;
  width: min(520px, 100% - 32px);
  margin: 0 auto;
  padding: 64px 0 24px;
  text-align: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--avatar-a), var(--avatar-b));
  box-shadow: 0 0 0 5px var(--card), 0 12px 30px rgb(80 40 140 / 0.25);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}

h1 { margin: 0; font-size: 1.6rem; letter-spacing: -0.02em; }
.handle { margin: 2px 0 12px; color: var(--accent); font-weight: 600; }
.bio { max-width: 400px; margin: 0 auto 32px; color: var(--muted); }

.links { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(30 10 60 / 0.05);
  transition: transform 0.15s, background-color 0.15s, border-color 0.15s;
  animation: in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.links li:nth-child(2) a { animation-delay: 0.05s; }
.links li:nth-child(3) a { animation-delay: 0.1s; }
.links li:nth-child(4) a { animation-delay: 0.15s; }
.links li:nth-child(5) a { animation-delay: 0.2s; }
.links li:nth-child(6) a { animation-delay: 0.25s; }
.links a:hover { transform: translateY(-2px); background: var(--card-hover); border-color: var(--accent); }
.links svg { position: absolute; left: 20px; width: 20px; height: 20px; color: var(--accent); }
.links .featured { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.tag { padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--card); font-size: 0.72rem; font-weight: 700; }

.foot { padding: 24px 16px 32px; text-align: center; color: var(--muted); font-size: 0.82rem; }

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

@media (prefers-reduced-motion: reduce) {
  .links a { animation: none; transition: none; }
  .links a:hover { transform: none; }
}
