:root {
  --vinho-intenso: #4A1728;
  --rosa-medio: #9E566A;
  --pessego-escuro: #C98B72;
  --rosa-fundo: #F5E8EC;
  --branco: #FFFFFF;
  --cinza-escuro: #70706F;
  --rosa-claro: #C97D8A;
  --preto: #1D1D1B;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--rosa-fundo);
  color: var(--vinho-intenso);
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.linktree {
  width: 100%;
  max-width: 480px;
  padding: 48px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Header ── */

.linktree header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.linktree__logo {
  width: 200px;
  height: auto;
  margin-bottom: 28px;
}

.linktree__avatar {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 3px solid var(--pessego-escuro);
  overflow: hidden;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.linktree__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.15) translateY(-1%);
}

.linktree__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vinho-intenso);
  line-height: 1.2;
  text-align: center;
}

.linktree__specialty {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--rosa-medio);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-align: center;
}

.linktree__bio {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--vinho-intenso);
  text-align: center;
  line-height: 1.5;
  margin-top: 12px;
  max-width: 360px;
}

/* ── Links ── */

.linktree__links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.linktree__link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: var(--branco);
  border: 1px solid rgba(158, 86, 106, 0.12);
  border-radius: 14px;
  text-decoration: none;
  color: var(--vinho-intenso);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.linktree__link:hover,
.linktree__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 23, 40, 0.1);
}

.linktree__link:focus-visible {
  outline: 2px solid var(--rosa-medio);
  outline-offset: 2px;
}

.linktree__link:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(74, 23, 40, 0.08);
}

.linktree__link--primary {
  background: var(--vinho-intenso);
  color: var(--rosa-fundo);
  border-color: transparent;
}

.linktree__link--primary:hover,
.linktree__link--primary:focus-visible {
  box-shadow: 0 6px 20px rgba(74, 23, 40, 0.25);
}

.linktree__link-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.linktree__link--primary .linktree__link-icon {
  color: var(--rosa-fundo);
}

.linktree__link-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.linktree__link-label {
  line-height: 1.3;
}

.linktree__link-sublabel {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.7;
}

/* ── Footer ── */

.linktree__footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(158, 86, 106, 0.15);
  text-align: center;
  width: 100%;
}

.linktree__footer p {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--cinza-escuro);
  line-height: 1.6;
}

.linktree__footer p:first-child {
  font-weight: 500;
  color: var(--rosa-medio);
  font-size: 0.8125rem;
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  .linktree {
    animation: none;
  }
  .linktree__link {
    transition: none;
  }
}

/* ── Desktop fine-tuning ── */

@media (min-width: 600px) {
  .linktree {
    padding-top: 64px;
  }

  .linktree__logo {
    width: 220px;
  }

  .linktree__name {
    font-size: 1.75rem;
  }

  .linktree__bio {
    font-size: 1rem;
  }
}
