@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --background: #f6c945;
  --background-deep: #e4ad16;
  --surface: rgba(255, 253, 247, 0.9);
  --surface-hover: #fffef9;
  --text: #171717;
  --muted: #6f6754;
  --border: rgba(23, 23, 23, 0.12);
  --accent: #f2b705;
  --accent-strong: #d99c00;
  --accent-soft: #fff0a8;
  --dark: #171717;
  --shadow: 0 28px 80px rgba(76, 54, 0, 0.2);
  --radius-large: 30px;
  --radius-medium: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body,
button,
a,
input,
textarea {
  font-family: "Poppins", Arial, sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  color: var(--text);
  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(255, 255, 255, 0.55),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 85%,
      rgba(112, 70, 0, 0.16),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #ffd963 0%,
      var(--background) 48%,
      var(--background-deep) 100%
    );
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(
    rgba(23, 23, 23, 0.18) 0.6px,
    transparent 0.6px
  );
  background-size: 14px 14px;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    transparent 70%
  );
}

.profile-card {
  position: relative;
  width: min(100%, 560px);
  padding: clamp(26px, 6vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.profile-card::before {
  content: "";
  position: absolute;
  top: -95px;
  right: -95px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(242, 183, 5, 0.18);
  filter: blur(2px);
}

.profile-header,
nav,
footer {
  position: relative;
  z-index: 1;
}

.profile-header {
  margin-bottom: 30px;
  text-align: center;
}

.avatar {
  width: 144px;
  height: 144px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  color: var(--dark);
  background: linear-gradient(145deg, #ffdf62, var(--accent));
  object-fit: cover;
  object-position: center;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow:
    0 14px 30px rgba(125, 88, 0, 0.25),
    0 0 0 6px rgba(255, 216, 61, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

img.avatar {
  display: block;
}

.eyebrow {
  width: fit-content;
  margin: 0 auto 10px;
  padding: 7px 11px;
  border: 1px solid rgba(23, 23, 23, 0.09);
  border-radius: 999px;
  color: var(--dark);
  background: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.description {
  max-width: 420px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

.link-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.link-card {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  color: var(--text);
  background: rgba(255, 255, 255, 0.69);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

a.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 156, 0, 0.5);
  background: var(--surface-hover);
  box-shadow: 0 14px 30px rgba(105, 74, 0, 0.12);
}

a.link-card:focus-visible {
  outline: 3px solid rgba(242, 183, 5, 0.42);
  outline-offset: 3px;
}

.link-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-box {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 156, 0, 0.28);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff2ae, #ffd95c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.icon-box img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.link-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.link-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card strong {
  font-size: 1rem;
  font-weight: 600;
}

.link-card small {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.link-action {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  color: #fff6ca;
  background: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.link-card--disabled {
  opacity: 0.5;
  cursor: default;
}

.link-card--disabled .icon-box {
  border-color: rgba(111, 103, 84, 0.15);
  background: rgba(111, 103, 84, 0.08);
}

.link-card--disabled .link-action {
  color: var(--muted);
  background: rgba(111, 103, 84, 0.13);
}

footer {
  margin-top: 28px;
  text-align: center;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .profile-card {
    padding: 26px 18px;
    border-radius: 24px;
  }

  .avatar {
    width: 92px;
    height: 92px;
  }

  .link-card {
    min-height: 72px;
    gap: 12px;
    padding: 14px;
  }

  .link-main {
    gap: 11px;
  }

  .icon-box {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
  }

  .icon-box img {
    width: 20px;
    height: 20px;
  }

  .link-action {
    padding: 7px 9px;
  }
}

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