:root {
  /* Design Tokens de Espaçamento Geométrico */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  /* Design Tokens de Arredondamento */
  --rounded-pill: 30px;
  --rounded-circle: 50%;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body, 'Source Serif 4', Georgia, serif);
  background-color: var(--theme-bg);
  color: var(--theme-text);
  transition: background-color 600ms cubic-bezier(0.16, 1, 0.3, 1), color 600ms cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-6) var(--space-4);
  position: relative;
  overflow-x: hidden;
}

/* Textura sutil de grão de papel no background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E") repeat;
  opacity: 0.012;
  pointer-events: none;
  z-index: 10;
}

/* Layout Mobile-First (Centralizado por padrão) */
.profile-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-6);
}

/* Avatar com Moldura de Assinatura Visual Circular */
.profile-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: revealUp 1000ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--rounded-circle);
  object-fit: cover;
  display: block;
  z-index: 2;
  position: relative;
  border: 1px solid var(--theme-border);
  background-color: var(--theme-bg-alt);
}

/* Anel de Assinatura 1: Margem de Respiro Técnica */
.profile-avatar::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--rounded-circle);
  border: 1px solid var(--theme-border);
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
}

/* Anel de Assinatura 2: Linha Tracejada Desalinhada */
.profile-avatar::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: var(--rounded-circle);
  border: 1px dashed var(--theme-secondary);
  opacity: 0.3;
  z-index: 0;
  transform: rotate(15deg);
  pointer-events: none;
  transition: transform 12s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Micro-movimento de rotação do anel técnico no hover do avatar */
.profile-avatar:hover::after {
  transform: rotate(195deg);
}

/* Nome Principal */
.profile-header h1 {
  font-family: var(--font-display, 'Lora', Georgia, serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--theme-text);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  animation: revealUp 1000ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
  opacity: 0;
}

/* Descrição Curta (Bio) */
.profile-bio {
  font-family: var(--font-body, 'Source Serif 4', Georgia, serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  color: var(--theme-secondary);
  line-height: 1.6;
  max-width: 360px;
  animation: revealUp 1000ms cubic-bezier(0.16, 1, 0.3, 1) 240ms forwards;
  opacity: 0;
}

/* Main Content & Section Layout */
.profile-main {
  width: 100%;
}

.profile-section {
  width: 100%;
}

.profile-links-list {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Estilos de CTAs */
.link-card {
  display: flex;
  align-items: center;
  width: 100%;
  height: 56px;
  padding: 0 var(--space-5);
  text-decoration: none;
  border-radius: var(--rounded-pill);
  font-family: var(--font-display, 'Lora', Georgia, serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

/* Rótulo Principal */
.link-card__label {
  flex-grow: 1;
  text-align: left;
}

/* Motion Discreto: Indicador de Direção minimalista */
.link-card::after {
  content: '→';
  font-family: var(--font-body, 'Source Serif 4', Georgia, serif);
  font-size: 18px;
  margin-left: var(--space-2);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.link-card:hover::after {
  transform: translateX(4px);
}

/* 1. Botão Newsletter (CTA Primário de Alto Contraste) */
.profile-links-list li:nth-child(1) .link-card {
  background-color: var(--theme-text);
  color: var(--theme-bg);
  border: 1px solid var(--theme-text);
  animation: revealUp 1000ms cubic-bezier(0.16, 1, 0.3, 1) 360ms forwards;
  opacity: 0;
}

.profile-links-list li:nth-child(1) .link-card:hover {
  background-color: var(--theme-bg-alt);
  color: var(--theme-text);
  border-color: var(--theme-text);
}

.profile-links-list li:nth-child(1) .link-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--theme-bg), 0 0 0 4px var(--theme-text);
}

/* 2. Botão YouTube (CTA Secundário Refinado) */
.profile-links-list li:nth-child(2) .link-card {
  background-color: transparent;
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
  animation: revealUp 1000ms cubic-bezier(0.16, 1, 0.3, 1) 480ms forwards;
  opacity: 0;
}

.profile-links-list li:nth-child(2) .link-card:hover {
  background-color: var(--theme-bg-alt);
  border-color: var(--theme-text);
}

.profile-links-list li:nth-child(2) .link-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--theme-bg), 0 0 0 4px var(--theme-text);
}

/* 3. Botão Instagram (CTA Terciário Refinado) */
.profile-links-list li:nth-child(3) .link-card {
  background-color: transparent;
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
  animation: revealUp 1000ms cubic-bezier(0.16, 1, 0.3, 1) 600ms forwards;
  opacity: 0;
}

.profile-links-list li:nth-child(3) .link-card:hover {
  background-color: var(--theme-bg-alt);
  border-color: var(--theme-text);
}

.profile-links-list li:nth-child(3) .link-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--theme-bg), 0 0 0 4px var(--theme-text);
}


/* SUBTRAÇÃO RADICAL: Ocultando elementos sem utilidade */
.profile-footer,
.profile-footer__tech-signature,
.theme-toggle-btn,
.link-card__badge,
.link-card__icon-wrapper,
.profile-section-title {
  display: none !important;
}

/* Micro-animação de Reveal */
@keyframes revealUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Layout Desktop (Composição Editorial com Leve Assimetria) */
@media (min-width: 769px) {
  body {
    padding: var(--space-8) var(--space-6);
  }

  .profile-container {
    max-width: 780px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-8);
    text-align: left;
    align-items: center;
  }

  .profile-header {
    align-items: flex-start;
    text-align: left;
    margin-bottom: 0;
    padding-right: var(--space-6);
    border-right: 1px solid var(--theme-border);
  }

  .profile-avatar {
    width: 130px;
    height: 130px;
    margin-bottom: var(--space-6);
  }

  .profile-header h1 {
    font-size: 40px;
    margin-bottom: var(--space-3);
  }

  .profile-bio {
    font-size: 17px;
    max-width: 360px;
  }

  .profile-main {
    padding-left: var(--space-4);
  }

  .profile-links-list {
    gap: var(--space-4);
  }

  .link-card {
    height: 60px;
    font-size: 16px;
  }
}
