/* =========================================================
   Linktree-style page — all editable values are CSS variables
   below, so you can restyle without touching the rest.
   ========================================================= */

:root {
  /* Palette lifted from the Mar de Mundos logo (plum, gold, ink),
     with the red/green kept only as small, occasional accents. */
  --plum:   #733b5b;
  --plum-dark: #2a1420;
  --gold:   #edd35e;
  --parchment: #dad18f;
  --red:    #c43626;
  --green:  #669933;
  --ink:    #201118;

  /* Page background (gradient) */
  --bg-start: #24101c;
  --bg-end:   #150a10;

  /* Card / surfaces */
  --card-bg: rgba(218, 209, 143, 0.03);
  --card-border: rgba(237, 211, 94, 0.12);

  /* Text */
  --text-primary: #f3ead9;
  --text-secondary: #bfa1ae;

  /* Link buttons */
  --link-bg: rgba(115, 59, 91, 0.80);
  --link-bg-hover: rgba(115, 59, 91, 0.85);
  --link-border: rgba(237, 211, 94, 0.18);

  /* Accent */
  --accent: var(--gold);

  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background-image: url("../assets/pattern.svg"), linear-gradient(160deg, var(--bg-start), var(--bg-end));
  background-repeat: repeat, no-repeat;
  background-size: 1200px 1200px, cover;
  background-attachment: fixed, fixed;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 16px;
}

.card {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Profile ---------- */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.avatar {
  width: 168px;
  height: auto;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

/* Visually hidden but still readable by screen readers / search engines */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 320px;
  line-height: 1.4;
}

/* ---------- Socials ---------- */

.socials {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--link-bg);
  border: 1px solid var(--link-border);
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.social svg {
  width: 18px;
  height: 18px;
}

.social:hover {
  background: var(--link-bg-hover);
  transform: translateY(-2px);
}

/* ---------- Links ---------- */

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  background: var(--link-bg);
  border: 1px solid var(--link-border);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.link-btn:hover {
  background: var(--link-bg-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

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

/* ---------- Footer ---------- */

.footer {
  margin-top: 36px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

/* ---------- Mobile tweaks ---------- */

@media (max-width: 380px) {
  .page {
    padding: 32px 12px;
  }

  .avatar {
    width: 132px;
  }

  .link-btn {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
}
