/* ===========================================================================
   layout.css — fundo liso, container arejado, header calmo
   =========================================================================== */

.bg {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  /* cor espalhada: wash radial bem sutil do accent, vindo do topo */
  background:
    radial-gradient(115% 70% at 50% -15%, var(--wash), transparent 55%),
    var(--bg);
  transition: background-color 350ms ease;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-5) var(--sp-16);
  min-height: 100dvh;
}
@media (min-width: 768px) {
  .container {
    padding-inline: var(--sp-6);
  }
}

/* header / perfil — calmo, alinhado à esquerda */
.profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  padding-bottom: var(--sp-12);
  animation: riseIn 550ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.profile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: var(--sp-5);
}
.profile__top-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: "Young Serif", serif;
  font-size: var(--fs-xl);
  font-weight: 400;
  transition:
    background-color 350ms ease,
    color 350ms ease,
    transform 250ms ease;
}
.avatar:hover {
  transform: rotate(-4deg);
}

/* avatar com foto: sem borda + anel accent fino com respiro (parcimônia: 1 accent) */
.avatar--photo {
  border: none;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--accent);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Young Serif tem x-height alto e "pesa" mais: tamanho reduzido vs. a serif antiga */
.profile__name {
  font-size: clamp(1.625rem, 7vw, 2.375rem);
}
.profile__handle {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
/* bio = a voz da página: tom de texto cheio (contraste + ênfase), não muted */
.profile__bio {
  font-size: var(--fs-base);
  color: var(--text);
  max-width: 46ch;
  margin-top: var(--sp-1);
}

/* sinal de presença — pontinho accent + rótulo textual (estado não só por cor) */
.profile__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.profile__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 2.4s ease-out infinite;
}
@keyframes dotPulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent-weak);
  }
  70% {
    box-shadow: 0 0 0 7px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* rótulo de seção — discreto */
.section-title {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.form-panel {
  margin-top: var(--sp-12);
}
