:root {
  color-scheme: dark;
  --bg-start: #081120;
  --bg-end: #0f2747;
  --surface: rgba(10, 20, 40, 0.88);
  --surface-strong: #111f38;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f7fb;
  --muted: #b8c4d6;
  --accent: #84ccff;
  --accent-strong: #5eb6ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(132, 204, 255, 0.18), transparent 35%),
    linear-gradient(160deg, var(--bg-start), var(--bg-end));
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.profile-card {
  width: min(100%, 960px);
  display: grid;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-card__header {
  display: grid;
  gap: 20px;
  align-items: center;
}

.profile-card__avatar {
  margin: 0;
  justify-self: center;
}

.profile-card__avatar-image {
  width: clamp(160px, 32vw, 260px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.profile-card__identity {
  display: grid;
  gap: 8px;
  text-align: center;
}

.profile-card__eyebrow,
.profile-card__role,
.profile-card__time-copy {
  margin: 0;
  color: var(--muted);
}

.profile-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-card__name {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.profile-card__section,
.profile-card__list-block {
  display: grid;
  gap: 12px;
}

.profile-card__section-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.profile-card__bio,
.profile-card__time-copy {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.profile-card__time {
  display: inline-flex;
  align-self: start;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.profile-card__socials {
  display: block;
}

.social-list,
.content-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-list__item,
.content-list__item {
  min-width: 0;
}

.social-list__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.content-list__item {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.content-list--dislikes .content-list__item {
  background: rgba(255, 94, 119, 0.08);
}

.social-list__link:hover {
  background: rgba(132, 204, 255, 0.14);
  border-color: rgba(132, 204, 255, 0.35);
  transform: translateY(-1px);
}

.social-list__link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.profile-card__lists {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .profile-card {
    padding: 32px;
  }

  .profile-card__header {
    grid-template-columns: auto 1fr;
    gap: 28px;
  }

  .profile-card__avatar {
    justify-self: start;
  }

  .profile-card__identity {
    text-align: left;
    align-content: center;
  }

  .profile-card__lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .profile-card {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    align-items: start;
  }

  .profile-card__header {
    grid-column: 1;
    grid-row: 1 / span 4;
    display: grid;
    gap: 24px;
    align-content: start;
  }

  .profile-card__section,
  .profile-card__lists {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 14px;
  }

  .profile-card {
    padding: 18px;
    gap: 20px;
    border-radius: 22px;
  }

  .social-list,
  .content-list {
    flex-direction: column;
  }

  .social-list__link,
  .content-list__item {
    width: 100%;
    justify-content: flex-start;
  }
}

.profile-card__avatar-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}