:root {
  --bg: #ffffff;
  --ink: #141820;
  --muted: #5c6570;
  --line: #e6e8ec;
  --accent: #1e3a5f;
  --hover: #0f1724;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(30, 58, 95, 0.06), transparent 60%),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 42%, #f7f8fa 100%);
  font-family: "Figtree", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.card {
  width: min(100%, 26rem);
  text-align: center;
}

.photo {
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  margin: 0 auto 1.75rem;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(20, 24, 32, 0.08);
  animation: rise 700ms ease both;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  animation: rise 700ms ease 80ms both;
}

.name {
  margin: 0 0 0.9rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.35rem, 7vw, 3.1rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  animation: rise 700ms ease 140ms both;
}

.bio {
  margin: 0 auto 2.25rem;
  max-width: 22rem;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 400;
  color: var(--muted);
  animation: rise 700ms ease 200ms both;
}

.social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  animation: rise 700ms ease 280ms both;
}

.social-link {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--hover);
  border-color: #c9ced6;
  background: #fff;
  transform: translateY(-2px);
  outline: none;
}

.social-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.18);
}

.social-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.social-icon--img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
}

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

@media (prefers-reduced-motion: reduce) {
  .photo,
  .eyebrow,
  .name,
  .bio,
  .social {
    animation: none;
  }

  .social-link {
    transition: none;
  }
}
