@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
/* =========================================================
   Variáveis de tema — valores padrão.
   São sobrescritas em tempo real pelo js/config.js,
   então o visual real é definido em js/config.js.
   ========================================================= */
:root {
  --bg: #14171c;
  --surface: #1d2129;
  --border: #2a2f3a;
  --text: #ededed;
  --muted: #9aa0ac;
  --accent: #e3b23c;
  --radius: 10px;

  --font-display: 'Fraunces', Georgia, sans-serif
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
}

/* =========================================================
   Layout geral
   ========================================================= */
.page {
  width: 100%;
  max-width: 560px;
  padding: clamp(32px, 8vw, 64px) clamp(20px, 6vw, 32px) clamp(24px, 5vw, 40px);
}

/* =========================================================
   Cabeçalho / perfil
   ========================================================= */
.profile {
  text-align: center;
  margin-bottom: clamp(24px, 5vw, 36px);
}

.avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.2;
  margin: 0 0 6px;
}

.profile-tagline {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.rule {
  width: 36px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin: 20px auto 0;
}

/* =========================================================
   Grupos e lista de links
   ========================================================= */
.links {
  display: flex;
  flex-direction: column;
}

.link-group {
  margin-bottom: 8px;
}

.group-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin: 28px 0 4px;
}

.link-group:first-child .group-title {
  margin-top: 4px;
}

.link-list {
  display: flex;
  flex-direction: column;
}

.link-row {
  --link-color: var(--accent);

  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);

  animation: rise-fade 0.5s ease backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}

.link-list .link-row:last-child {
  border-bottom: none;
}

.link-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.link-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--link-color);
  background: color-mix(in srgb, var(--link-color) 16%, transparent);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.link-label {
  font-size: 15.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.link-row:hover .link-icon,
.link-row:focus-visible .link-icon {
  background: var(--link-color);
  color: var(--bg);
  transform: scale(1.06);
}

.link-row:hover .link-label,
.link-row:focus-visible .link-label {
  color: var(--link-color);
}

/* =========================================================
   Rodapé
   ========================================================= */
.page-footer {
  margin-top: 32px;
  text-align: center;
}

.page-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   Animação de entrada (único momento orquestrado)
   ========================================================= */
@keyframes rise-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-row {
    animation: none;
  }
}

/* =========================================================
   Ajustes para telas bem pequenas
   ========================================================= */
@media (max-width: 360px) {
  .avatar {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }

  .link-label {
    font-size: 14.5px;
  }
}
