/* YourSofia link-in-bio — static clone. Fonts: Staatliches (name), Spinnaker (everything else). */
:root {
  --accent: #ff1900;
  --card-bg: #F4E3FD;
  --btn-bg: #ffa8f9;
  --btn-bg-hover: #ff93f7;
  --card-w: 720px;
  --card-radius: 24px;
  --hero-w: 420px;   /* rendered portrait width in the original (set to 100% + 40px bleed for full-width) */
  --hero-h: 480px;
  --links-w: 546px;  /* link button column width on desktop (measured from original) */
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Spinnaker", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  color: #000;
  background: #3a2a2a;
  position: relative;
  overflow-x: hidden;
}

/* Blurred full-bleed profile photo + dark overlay */
.page-bg {
  position: fixed;
  inset: -120px;               /* overscan so blurred edges never show */
  z-index: -1;
  background:
    linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .25)),
    url("assets/profile.png") 50% 15% / cover no-repeat;
  filter: blur(50px);
  transform: translateZ(0);
}

.card {
  width: var(--card-w);
  max-width: 100%;
  margin: 72px auto 144px;
  padding: 80px 20px 100px;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  text-align: center;
}

/* ---------- Header ---------- */
.hero { position: relative; }

.hero__media {
  position: relative;
  width: min(var(--hero-w), 100%);
  height: var(--hero-h);
  margin: 0 auto;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}
.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 144px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--card-bg) 100%);
  pointer-events: none;
}

.hero__name {
  position: relative;
  margin: -82px 0 0;
  font-family: "Staatliches", Impact, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: 0;
  color: var(--accent);
}

.bio {
  position: relative;
  margin: 4px 0 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--accent);
}

/* ---------- Social icons ---------- */
.socials {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.socials__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: transform .15s ease;
}
.socials__btn:hover { transform: scale(1.1); }
.socials__btn svg { display: block; }

/* ---------- Link buttons ---------- */
.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: var(--links-w);
  margin-inline: auto;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 65px;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--btn-bg);
  color: #000;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.3;
  box-shadow: none;
  transition: transform .2s ease, background-color .2s ease;
}
.link--outlined { border-color: #000; }
.link:hover { transform: scale(1.02); background: var(--btn-bg-hover); }

.link__icon {
  flex: 0 0 56px;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.link__icon img,
.link__icon svg {
  display: block;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  object-fit: cover;
}
.link__icon--plain svg { border-radius: 0; }

.link__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.link__title { font-size: 15px; font-weight: 400; }
.link__sub {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.35;
  color: #000;
  opacity: .9;
}

.link__more {
  flex: 0 0 56px;
  width: 56px;
  display: flex;
  justify-content: flex-end;
  padding-right: 8px;
  color: #000;
}
.link__more svg { display: block; }

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}
.link:focus-visible { outline-offset: 3px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .8); }
.socials__btn:focus-visible { outline-color: var(--accent); }

/* ---------- Modal ---------- */
.modal {
  width: min(92vw, 380px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--card-bg);
  color: #000;
  font-family: inherit;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.modal::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.modal__inner { padding: 24px 24px 20px; text-align: center; margin: 0; }
.modal__title { margin: 0 0 12px; font-family: "Staatliches", Impact, sans-serif; font-size: 32px; font-weight: 400; color: var(--accent); }
.modal__body { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; font-size: 15px; }
.modal__body p { margin: 0; }
.modal__action {
  display: block;
  padding: 12px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--btn-bg);
  color: #000;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.modal__action:hover { background: var(--btn-bg-hover); transform: scale(1.02); }
.modal__close {
  padding: 10px 28px;
  border: 2px solid #000;
  border-radius: 10px;
  background: transparent;
  color: #000;
  font: inherit;
  cursor: pointer;
}
.modal__close:hover { background: rgba(0, 0, 0, .06); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .card {
    width: auto;
    margin: 16px 12px 48px;
    padding: 20px 16px 48px;
  }
  .hero__media { width: 100%; height: auto; aspect-ratio: 7 / 8; max-height: var(--hero-h); }
  .hero__name { font-size: 44px; line-height: 52px; margin-top: -76px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
