/* ============================================================
   LINK-IN-BIO — stylesheet
   Mobile-first. Two switchable palettes via [data-theme].
   ============================================================ */

/* ---------- THEME TOKENS ------------------------------------
   VARIANT A — "Rosé" : warm rosé-gold on soft charcoal
   ---------------------------------------------------------- */
[data-theme="rose"] {
  --bg:        #14110F;   /* page background      */
  --bg-2:      #1F1A16;   /* subtle top glow      */
  --surface:   #1C1815;   /* card / buttons       */
  --surface-2: #262019;   /* button hover         */
  --border:    #342b23;   /* hairlines            */
  --text:      #F3EBE3;   /* main text (warm cream)*/
  --muted:     #A99C90;   /* secondary text       */
  --accent:    #C9A27E;   /* rosé gold            */
  --accent-2:  #E0BF9C;   /* accent hover         */
  --on-accent: #211711;   /* text on accent btn   */
}

/* ---------- VARIANT B — "Bordeaux" : wine on soft black ---- */
[data-theme="bordeaux"] {
  --bg:        #100C0D;
  --bg-2:      #1C1315;
  --surface:   #1A1315;
  --surface-2: #241A1D;
  --border:    #35242a;
  --text:      #F1E9EA;
  --muted:     #A58F95;
  --accent:    #9A324A;   /* bordeaux / wine      */
  --accent-2:  #B84259;
  --on-accent: #FBEDF0;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 6vw, 48px) 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(120% 80% at 50% -10%, var(--bg-2) 0%, var(--bg) 55%) fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ============================================================
   AGE GATE
   ============================================================ */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 6, 5, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.age-gate[hidden] { display: none; }

.age-gate__box {
  width: 100%;
  max-width: 360px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 26px;
  animation: rise 0.5s ease both;
}
.age-gate__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}
.age-gate__text { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.age-gate__actions { display: flex; flex-direction: column; gap: 12px; }
.age-gate__note { margin-top: 18px; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); }

.btn {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn--ghost:hover { color: var(--text); }

/* ============================================================
   MAIN CARD
   ============================================================ */
.card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  animation: fade 0.7s ease both;
}

/* 2. Avatar */
.avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: 0 0 0 5px rgba(0,0,0,0.25), 0 14px 34px rgba(0,0,0,0.45);
  animation: rise 0.7s ease 0.05s both;
}

/* 3. Name + tagline */
.name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 8vw, 2.4rem);
  letter-spacing: 0.01em;
  margin: 20px 0 6px;
  animation: rise 0.7s ease 0.12s both;
}
.tagline {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  color: var(--muted);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  animation: rise 0.7s ease 0.18s both;
}

/* 4. Link buttons */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 30px 0 26px;
}
.link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 17px 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  animation: rise 0.7s ease 0.24s both;
}
.link:hover { background: var(--surface-2); transform: translateY(-2px); }
.link:active { transform: translateY(0) scale(0.99); }
.link__arrow { color: var(--accent); font-size: 1.05rem; transition: transform 0.2s ease; }
.link:hover .link__arrow { transform: translateX(4px); }

/* Highlighted primary button */
.link--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 26px -10px var(--accent);
}
.link--primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.link--primary .link__arrow { color: var(--on-accent); }

/* 5. Footer */
.footer {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  animation: fade 0.9s ease 0.4s both;
}
.footer__legal { margin-top: 4px; opacity: 0.8; }

/* ============================================================
   PREVIEW theme switcher — delete the HTML block for production
   ============================================================ */
.theme-switch {
  position: fixed;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.theme-switch button {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.theme-switch button:hover { color: var(--text); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   DESKTOP polish (mobile-first — this only widens/softens)
   ============================================================ */
@media (min-width: 600px) {
  .card { max-width: 400px; }
  .avatar { width: 140px; height: 140px; }
}
