:root {
  color-scheme: light;
  --bg: #faf8f6;
  --text: #272229;
  --muted: #857d86;
  --line: rgba(54, 42, 52, 0.12);
  --surface: rgba(255, 255, 255, 0.66);
  --accent: #b25e7b;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 20%, rgba(222, 164, 184, 0.2), transparent 34rem),
    var(--bg);
  font-family:
    Inter, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ambient {
  position: fixed;
  z-index: -1;
  top: 13%;
  left: 50%;
  width: min(42rem, 85vw);
  height: min(42rem, 85vw);
  border-radius: 50%;
  background: rgba(214, 142, 170, 0.13);
  filter: blur(100px);
  transform: translateX(-50%);
  pointer-events: none;
}

.profile {
  width: min(100% - 2.5rem, 31rem);
  margin: auto;
  padding: 5rem 0 2.5rem;
  text-align: center;
  animation: enter 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.avatar-wrap {
  width: 9rem;
  height: 9rem;
  margin: 0 auto 2rem;
  padding: 3px;
  border: 1px solid rgba(77, 59, 70, 0.14);
  border-radius: 2.15rem;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 1.6rem 4rem rgba(87, 60, 74, 0.13);
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1.95rem;
  object-fit: cover;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 10vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.status {
  margin: 1rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.025em;
}

.links {
  display: grid;
  gap: 0.7rem;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.65rem;
  padding: 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--text);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.links a:hover {
  border-color: rgba(178, 94, 123, 0.43);
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-2px);
}

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

.arrow {
  color: var(--muted);
  font-size: 1rem;
  transition: color 180ms ease, transform 180ms ease;
}

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

footer {
  padding: 1.5rem;
  color: #a39ba3;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-height: 720px) {
  .profile {
    padding-top: 2.5rem;
  }

  .avatar-wrap {
    width: 7.5rem;
    height: 7.5rem;
    margin-bottom: 1.5rem;
  }
}

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