/*
  About 03 — Alexy Webb, standalone HTML/CSS implementation.
  No build step, no framework, no external dependency: copy this file and
  index.html into any project and open it as-is.
*/

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

:root {
  --background: #ffffff;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --muted-foreground: #475569;
  --border: #e2e8f0;
  --brand: #39ff14;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  --font-serif: Georgia, "Times New Roman", serif;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--card-foreground);
  background-color: var(--background);
  line-height: 1.5;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Motion — disabled entirely under reduced motion; every element already
   renders at its final, fully visible state outside this media query. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-settle {
    from {
      opacity: 0;
      transform: scale(0.96);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes al-pop {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .about__card {
    animation: al-settle 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .about__avatar {
    animation: al-pop 550ms cubic-bezier(0.34, 1.56, 0.64, 1) 220ms both;
  }
}

.about {
  background-color: var(--background);
  padding: clamp(4rem, 3rem + 3vw, 6rem) 1rem;
}

.about__card {
  margin: 0 auto;
  width: 100%;
  max-width: 28rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.15);
}

.about__avatar {
  margin: 0 auto;
  width: 6rem;
  height: 6rem;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid rgba(57, 255, 20, 0.4);
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.25);
}

.about__avatar img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.about__name {
  margin: 1.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.about__role {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand);
}

.about__bio {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.about__signature {
  margin: 1.5rem 0 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: rgba(15, 23, 42, 0.8);
}

.about__socials {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.about__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  transition:
    border-color 150ms ease,
    color 150ms ease;
}

.about__social-link svg {
  width: 1rem;
  height: 1rem;
}

.about__social-link:hover {
  border-color: rgba(57, 255, 20, 0.5);
  color: var(--card-foreground);
}

.about__social-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .about__card {
    padding: 2.5rem;
  }

  .about__avatar {
    width: 7rem;
    height: 7rem;
  }
}
