:root {
  color-scheme: dark;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --background: #09090b;
  --surface: #121216;
  --surface-hover: #19191f;
  --foreground: #f4f4f5;
  --muted: #a1a1aa;
  --border: #2a2a31;
  --accent: #9aa8ff;
  --accent-soft: rgb(113 133 255 / 13%);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 0, rgb(64 76 150 / 19%), transparent 34rem),
    var(--background);
  color: var(--foreground);
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: var(--background);
}

.profile-page {
  width: min(100% - 32px, 400px);
  margin-inline: auto;
  padding: 48px 0 28px;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 18px 30px;
  text-align: center;
}

.avatar {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 18px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 24px 0 9px;
  font-size: clamp(1.6rem, 6.4vw, 2.05rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.link-group {
  margin-top: 24px;
}

.link-group h2 {
  margin: 0 0 10px 3px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.link-card {
  display: grid;
  min-height: 56px;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(135deg, rgb(255 255 255 / 3%), transparent 70%),
    var(--surface);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgb(154 168 255 / 45%);
  background-color: var(--surface-hover);
  box-shadow: 0 10px 24px rgb(0 0 0 / 18%);
}

.link-card-featured {
  border-color: rgb(154 168 255 / 32%);
  background:
    linear-gradient(110deg, var(--accent-soft), transparent 70%),
    var(--surface);
}

.link-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 8px;
  background: rgb(255 255 255 / 4%);
  color: var(--accent);
  font-size: 0.67rem;
  font-weight: 600;
}

.link-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.link-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.link-copy strong {
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-arrow {
  justify-self: end;
  color: var(--muted);
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.link-arrow svg {
  display: block;
  width: 16px;
  height: 16px;
}

.link-card:hover .link-arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (max-width: 380px) {
  .profile-page {
    width: min(100% - 24px, 400px);
    padding-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
