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

:root {
  --bg: #faf9f5;
  --bg-alt: #fef7f0;
  --text: #2c1810;
  --text-muted: #8b7355;
  --gold: #c4a35b;
  --gold-light: #e0c085;
  --gold-pale: #fef2d6;
  --border: #f0e6d8;
  --brown-mid: #5d4037;
}

html,
body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── Decorative background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 163, 91, .12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(224, 192, 133, .1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Page wrapper ── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem 2rem;
}

/* ── Back link ── */
.back-link {
  position: fixed;
  top: 1.25rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
  z-index: 10;
}

.back-link:hover {
  color: var(--gold);
}

.back-link svg {
  width: 1rem;
  height: 1rem;
}

/* ── Card ── */
.card {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Avatar ── */
.avatar-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.avatar-ring {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-light));
  box-shadow: 0 8px 32px rgba(196, 163, 91, .25);
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: var(--bg-alt);
}

/* Fallback initials */
.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8d09a, #c4a35b);
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: #fff;
}

.online-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #25D366;
  border: 2.5px solid var(--bg);
}

.online-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(37, 211, 102, .3);
  animation: ring-ping 2s ease-in-out infinite;
}

@keyframes ring-ping {
  0% {
    transform: scale(1);
    opacity: .6;
  }

  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* ── Identity ── */
.name {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  letter-spacing: -.01em;
  margin-bottom: .25rem;
}

.title {
  font-size: .8125rem;
  font-weight: 400;
  color: var(--gold);
  text-align: center;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .875rem;
}

.bio {
  font-size: .9rem;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 1.5rem;
}

/* ── Gold divider ── */
.divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  margin-bottom: 2rem;
}

/* ── Links ── */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: .875rem;
  background: #fff;
  border: 1.5px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  transition: all .22s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-pale);
  opacity: 0;
  transition: opacity .22s ease;
}

.link-card:hover::before {
  opacity: 1;
}

.link-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(196, 163, 91, .15);
}

.link-card:active {
  transform: translateY(0);
}

.link-card .ic {
  position: relative;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-card .ic svg,
.link-card .ic img {
  width: 1.375rem;
  height: 1.375rem;
}

.link-card .lbl {
  position: relative;
  z-index: 1;
  flex: 1;
}

.link-card .lbl span {
  display: block;
  font-size: .75rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: .1rem;
}

.link-card .arr {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  transition: transform .22s ease, color .22s ease;
}

.link-card:hover .arr {
  transform: translateX(3px);
  color: var(--gold);
}

.link-card .arr svg {
  width: 1rem;
  height: 1rem;
}

/* Brand colors for icons */
.ic-insta {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
}

.ic-wa {
  background: #25D366;
}

.ic-li {
  background: #0A66C2;
}

.ic-site {
  background: rgba(196, 163, 91, .18);
  border: 1px solid var(--border);
}

.ic-site svg {
  color: var(--brown-mid);
}

.ic-cal {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

/* Calendar card highlight */
.link-card.calendar {
  background: linear-gradient(135deg, #fdf8ee, #fff);
  border-color: rgba(196, 163, 91, .35);
}

.link-card.calendar:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(196, 163, 91, .18);
}

.link-card.calendar::before {
  background: rgba(196, 163, 91, .06);
}

/* WhatsApp card highlight */
.link-card.featured {
  background: linear-gradient(135deg, #f0fff6, #fff);
  border-color: rgba(37, 211, 102, .35);
}

.link-card.featured:hover {
  border-color: #25D366;
  box-shadow: 0 8px 32px rgba(37, 211, 102, .15);
}

.link-card.featured::before {
  background: rgba(37, 211, 102, .05);
}

/* ── Quiz CTA ── */
.quiz-cta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  border-radius: .875rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--brown-mid) 100%);
  text-decoration: none;
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: all .22s ease;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

.quiz-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(44, 24, 16, .25);
  filter: brightness(1.06);
}

.quiz-cta .ic-quiz {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .625rem;
  background: rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-cta .ic-quiz svg {
  width: 1.375rem;
  height: 1.375rem;
  color: var(--gold-light);
}

.quiz-cta .lbl-quiz {
  flex: 1;
}

.quiz-cta .lbl-quiz span {
  display: block;
  font-size: .75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, .6);
  margin-top: .1rem;
}

/* ── Footer ── */
.footer {
  text-align: center;
  margin-top: auto;
  padding-top: 1rem;
}

.footer p {
  font-size: .75rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: .375rem;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}

.footer a:hover {
  color: var(--brown-mid);
}

.footer .dev {
  margin-top: .75rem;
  font-size: .7rem;
  color: #c4a47e;
}

/* ── Animations ── */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card > * {
  animation: slideUp .5s ease both;
}

.card .avatar-wrap {
  animation-delay: .05s;
}

.card .name {
  animation-delay: .12s;
}

.card .title {
  animation-delay: .18s;
}

.card .bio {
  animation-delay: .22s;
}

.card .divider {
  animation-delay: .26s;
}

.card .links {
  animation-delay: .30s;
}

.card .quiz-cta {
  animation-delay: .36s;
}

.footer {
  animation: slideUp .5s .4s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .card > *,
  .footer,
  .online-dot::after {
    animation: none;
  }
}
