:root {
  /* Premium dark palette tuned for the #111a41 background. */
  --color-bg: #111a41;
  --color-bg-soft: #172252;
  --color-text: #f7f9ff;
  --color-muted: #b8c3dd;
  --color-accent: #c9dfff;
  --color-gold: #d8c38b;
  --color-border: rgba(201, 223, 255, 0.22);
  --shadow-hero: 0 28px 90px rgba(3, 7, 24, 0.42);
  --transition-soft: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-text);
  background:
    radial-gradient(circle at top, rgba(201, 223, 255, 0.08), transparent 32rem),
    linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 46%, #0d1434 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 0;
}

.hero {
  display: grid;
  min-height: calc(100vh - 4.2rem);
  padding: 3.5rem 0 3rem;
  place-items: center;
}

.hero__inner {
  display: flex;
  justify-content: center;
}

.profile-card {
  display: grid;
  width: min(100%, 860px);
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  text-align: left;
  /* Subtle entrance without depending on JavaScript. */
  animation: fade-in 700ms ease both;
}

.profile-card__content {
  min-width: 0;
}

.profile-card__image {
  width: min(100%, 260px);
  height: auto;
  object-fit: cover;
  object-position: center top;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

h1 {
  margin: 0;
  color: var(--color-text);
  font-family: "Archivo Condensed", Impact, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.1rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: var(--shadow-hero);
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-divider {
  width: 100%;
  height: 1px;
  margin: 1rem 0 1.15rem;
  background: rgba(201, 223, 255, 0.28);
}

.section-divider--social {
  margin: 1.45rem 0 0;
}

.bio {
  max-width: 720px;
  margin: 0;
  color: var(--color-text);
  font-size: clamp(0.9rem, 1.15vw, 1rem);
  line-height: 1.48;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-start;
  margin-top: 1.15rem;
}

.social-link {
  display: inline-flex;
  width: 3.15rem;
  height: 3.15rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  color: var(--color-accent);
  font-size: 1.35rem;
  text-decoration: none;
  transition:
    background-color var(--transition-soft),
    border-color var(--transition-soft),
    color var(--transition-soft),
    transform var(--transition-soft),
    box-shadow var(--transition-soft);
}

.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(216, 195, 139, 0.45);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  color: var(--color-gold);
  transform: translateY(-2px) scale(1.04);
}

.social-link:focus-visible {
  outline: 3px solid rgba(201, 223, 255, 0.42);
  outline-offset: 4px;
}

@media (max-width: 575.98px) {
  .hero {
    min-height: auto;
    padding: 3.25rem 0 2.2rem;
  }

  .profile-card {
    grid-template-columns: 1fr;
    gap: 1.7rem;
    justify-items: center;
    text-align: center;
  }

  .profile-card__image {
    width: min(100%, 210px);
    height: auto;
  }

  h1 {
    margin-top: 0;
  }

  .bio {
    margin: 0 auto;
    line-height: 1.46;
  }

  .social-links {
    justify-content: center;
  }

  .social-link {
    width: 2.9rem;
    height: 2.9rem;
  }
}

@media (max-height: 780px) and (min-width: 768px) {
  .hero {
    padding: 2.1rem 0 1.7rem;
  }

  .profile-card__image {
    width: 184px;
    height: auto;
  }

  h1 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.1rem);
  }

  .bio {
    max-width: 680px;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .social-links {
    margin-top: 1.45rem;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .profile-card {
    animation: none;
  }
}
