:root {
  color-scheme: dark;
  --base: #1e1e2e;
  --surface: #181825;
  --surface-raised: #24243a;
  --text: #cdd6f4;
  --subtext: #bac2de;
  --mauve: #cba6f7;
  --blue: #89b4fa;
  --border: #313244;
  --shadow: rgb(10 10 20 / 45%);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  padding: clamp(1rem, 5vw, 3rem);
  display: grid;
  place-items: center;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgb(203 166 247 / 13%), transparent 35rem),
    radial-gradient(circle at 85% 95%, rgb(137 180 250 / 10%), transparent 32rem),
    var(--base);
  font: 1.125rem/1.55 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: break-word;
}

.profile {
  width: min(100%, 34rem);
  padding: clamp(1.5rem, 6vw, 2.75rem);
  text-align: center;
  background: linear-gradient(145deg, rgb(36 36 58 / 97%), rgb(24 24 37 / 97%));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 5rem var(--shadow);
}

.avatar {
  display: block;
  width: 9rem;
  height: 12rem;
  margin: 0 auto 1.25rem;
  object-fit: cover;
  border: 2px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: 0 0.75rem 2rem rgb(10 10 20 / 40%);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.pronouns {
  margin: 0.25rem 0 1rem;
  color: var(--subtext);
  font-size: 0.95rem;
}

.metadata {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.25rem;
  color: var(--subtext);
}

.metadata p {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.metadata svg,
.links svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: currentColor;
}

.bio {
  max-width: 27rem;
  margin: 1.5rem auto;
  font-size: 1.08rem;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links a {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  color: var(--subtext);
  text-decoration: none;
  background: rgb(49 50 68 / 55%);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.links a:hover {
  color: var(--text);
  background: rgb(49 50 68 / 90%);
  border-color: var(--mauve);
  transform: translateY(-1px);
}

.links a:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

footer {
  margin-top: 2.25rem;
  color: var(--subtext);
  font-size: 0.85rem;
}

footer a {
  color: inherit;
  text-decoration-color: var(--border);
  text-underline-offset: 0.25em;
}

@media (max-width: 28rem) {
  body { padding: 0.75rem; }
  .profile { padding: 1.5rem 1.1rem; border-radius: 1rem; }
  .links { grid-template-columns: 1fr; }
}

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