:root {
  --profile-bg: #eceef1;
  --frame-bg: #d0d2d4;
  --card-bg: #ffffff;
  --text: #000000;
  --gap: 14px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background: var(--frame-bg);
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.14);
}

.profile-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  min-height: calc(100vh - 40px);
  margin: 40px auto 0;
  padding: 0 28px 64px;
  background: var(--profile-bg);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 24px 32px rgba(0, 0, 0, 0.15);
}

.share-button {
  position: absolute;
  top: 14px;
  right: 28px;
  z-index: 3;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  color: #000;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px) brightness(1.2);
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
}

.share-button:hover {
  background: rgba(255, 255, 255, 0.78);
}

.share-button:active {
  transform: scale(0.95);
}

.share-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 96px;
  text-align: center;
}

.avatar {
  width: 96px;
  height: 96px;
  margin: 8px 0 16px;
  border-radius: 50%;
  object-fit: cover;
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}

.profile-header p {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.socials a {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  transition: transform 120ms ease;
}

.socials a:hover {
  transform: scale(1.075);
}

.socials a:focus-visible,
.link-card:focus-visible,
.share-button:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.socials svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.links {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin-top: 32px;
}

.link-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow:
    0.3px 0.5px 0.7px rgba(17, 17, 17, 0.02),
    0.9px 1.8px 2.5px rgba(17, 17, 17, 0.025),
    2px 4px 5.5px rgba(17, 17, 17, 0.03),
    4.6px 9.3px 12.8px rgba(17, 17, 17, 0.04);
  transition: transform 75ms ease, background-color 75ms ease;
}

.link-card:hover {
  background: #f3f3f3;
}

.link-card:active {
  transform: scale(0.985);
}

.featured {
  text-align: center;
}

.featured-media {
  display: flex;
  min-height: 270px;
  align-items: center;
  justify-content: center;
  padding: 14px 14px 0;
}

.featured-media img {
  display: block;
  width: min(224px, 56vw);
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.05);
}

.featured-label {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 54px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
}

.compact {
  min-height: 64px;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  text-align: center;
}

.brand-icon {
  grid-column: 1;
  display: grid;
  width: 48px;
  height: 48px;
  margin-left: 8px;
  place-items: center;
}

.brand-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.brand-icon.youtube svg {
  width: 34px;
}

.compact-label {
  grid-column: 2;
  padding: 0 8px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
}

@keyframes link-pop {
  0%, 25%, 100% { transform: scale(1); }
  12.5% { transform: scale(1.05); }
}

.pop {
  animation: link-pop 2s linear infinite;
}

.pop:active {
  animation: none;
}

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

@media (max-width: 575px) {
  body,
  .page-shell {
    background: var(--profile-bg);
  }

  .profile-card {
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 14px 48px;
    border-radius: 0;
    box-shadow: none;
  }

  .share-button {
    top: 14px;
    right: 14px;
  }

  .profile-header {
    padding-top: 86px;
  }

  .links {
    margin-top: 28px;
  }

  .featured-media {
    min-height: 224px;
  }

  .featured-label {
    padding-left: 44px;
    padding-right: 44px;
    font-size: 14px;
  }

  .compact-label {
    font-size: 14px;
  }
}


.site-footer {
  margin-top: 40px;
  text-align: center;
}

.site-footer a {
  color: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer span {
  margin: 0 7px;
  color: rgba(0, 0, 0, 0.35);
  font-size: 12px;
}
