/* YourSofia link-in-bio — static clone. Fonts: Staatliches (name), Spinnaker (everything else). */
:root {
  --accent: #962729;
  --card-bg: #eae6e6;
  --btn-bg: #962729;
  --btn-bg-hover: #7d1f21;
  --btn-text: #eae6e6;
  --page-bg: #eae6e6;
  --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: var(--page-bg);
  position: relative;
  overflow-x: hidden;
}

/* Animated full-viewport background video (solid colour stays as fallback). */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--page-bg);
}
.page-bg__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.card { position: relative; z-index: 1; }

.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,
video.hero__img {
  display: block;
  background: transparent;
  pointer-events: none;
  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(234, 230, 230, 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: var(--btn-text);
  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: var(--accent); }
.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; fill: var(--btn-text); }

.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: var(--btn-text);
  opacity: .9;
}

.link__more {
  flex: 0 0 56px;
  width: 56px;
  display: flex;
  justify-content: flex-end;
  padding-right: 8px;
  color: var(--btn-text);
}
.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(150, 39, 41, .3); }
.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; }
  .page-bg__video { display: none; }
}

/* ---------- Desktop: viewport-locked two-column card (no page scroll) ----------
   Applies only to wide AND reasonably tall windows; phones and very short
   windows keep the single-column layout and scroll normally. */
@media (min-width: 900px) and (min-height: 560px) {
  html, body { height: 100%; overflow: hidden; }
  body {
    min-height: 0;
    height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(12px, 2.5vh, 28px) clamp(16px, 3vw, 40px);
  }

  .card {
    /* fills the viewport (minus breathing room), capped on huge screens */
    width: min(1120px, 100%);
    height: min(100%, 880px);
    max-width: none;
    margin: 0;
    padding: clamp(16px, 3.5vh, 40px) clamp(24px, 3vw, 48px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "hero    links"
      "bio     links"
      "socials links";
    column-gap: clamp(24px, 4vw, 56px);
    align-items: center;
    overflow: hidden;
  }

  /* LEFT column */
  .hero {
    grid-area: hero;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    min-height: 0;
  }
  .hero__media {
    flex: 1 1 0;           /* photo takes whatever height is left */
    min-height: 0;
    width: 100%;
    max-width: 440px;
    height: auto;
  }
  .hero__name {
    flex: 0 0 auto;
    margin-top: clamp(-82px, -9vh, -40px);
    font-size: clamp(36px, 6.4vh, 56px);
    line-height: 1.1;
  }
  .bio { grid-area: bio; margin: 0 0 clamp(2px, .8vh, 8px); }
  .socials { grid-area: socials; margin-bottom: 0; }

  /* RIGHT column: all eight buttons, height scales with the window */
  .links {
    grid-area: links;
    max-width: none;
    margin: 0;
    gap: clamp(6px, 1.35vh, 14px);
  }
  .link { min-height: clamp(42px, 6.2vh, 60px); }
}
