:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --panel: rgba(255, 255, 255, 0.72);
  --line: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-strong: #0066cc;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.96), transparent 24rem),
    linear-gradient(180deg, #fbfbfd 0%, var(--bg) 54%, #eceef2 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px 18px;
}

.profile {
  width: min(100%, 430px);
  padding: 34px 12px 22px;
  text-align: center;
}

.avatar-wrap {
  display: inline-grid;
  width: 112px;
  height: 112px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e5ea;
}

.handle {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 500;
}

h1 {
  margin: 0;
  font-size: clamp(2.08rem, 7.4vw, 3.18rem);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

@supports (font-size: min(1rem, 1vw)) {
  h1 {
    font-size: min(12vw, 3.18rem);
    white-space: nowrap;
  }
}

.bio {
  max-width: 34rem;
  margin: 18px auto 30px;
  color: var(--muted);
  font-size: 1.03rem;
  font-weight: 300;
  line-height: 1.5;
}

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

.link-card {
  display: grid;
  min-height: 60px;
  grid-template-columns: 44px 1fr 32px;
  align-items: center;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.045);
  backdrop-filter: blur(18px);
  font-size: 1rem;
  font-weight: 500;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.link-card::after {
  content: "↗";
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 300;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 113, 227, 0.28);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.075);
}

.link-card:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.2);
  outline-offset: 3px;
}

.link-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.link-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.link-icon--bluesky {
  background: #1185fe;
}

.link-icon--bluesky svg {
  width: 23px;
  height: 21px;
}

.link-icon--instagram {
  background: #d94475;
}

.link-icon--instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.link-icon--instagram circle:last-child {
  fill: currentColor;
  stroke: none;
}

.link-icon--linkedin {
  background: #0a66c2;
}

@media (max-width: 420px) {
  .page {
    align-items: start;
    padding-top: 24px;
  }

  .profile {
    padding-inline: 0;
  }

  .bio {
    font-size: 0.96rem;
  }
}
