/* ------------------------------------------------------------------ *
 *  link page — glass card, portrait hero, gradient accents
 * ------------------------------------------------------------------ */

:root {
  --accent: #ff4d84;
  --accent2: #a05cff;
  --bg: #0b0910;
  --text: #f7f5fb;
  --muted: #aba3c2;

  --card-bg: rgba(19, 15, 28, 0.62);
  --line: rgba(255, 255, 255, 0.10);
  --glass: rgba(255, 255, 255, 0.055);

  --radius-card: 30px;
  --radius-btn: 16px;

  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(20px, 6vh, 56px) 18px calc(40px + env(safe-area-inset-bottom));
  position: relative;
  overflow-x: hidden;
}

/* ---------- background layers ---------- */
.bg-glow {
  position: fixed;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42% 30% at 18% 6%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%),
    radial-gradient(38% 28% at 88% 14%, color-mix(in srgb, var(--accent2) 36%, transparent), transparent 70%),
    radial-gradient(55% 40% at 50% 108%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%);
  filter: blur(30px);
}

.bg-photo {
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background-size: cover;
  background-position: center top;
  transform: scale(1.18);
  filter: blur(64px) saturate(1.15) brightness(0.5);
  opacity: 0.55;
}

/* ---------- card ---------- */
.wrap { width: min(432px, 100%); display: flex; flex-direction: column; gap: 16px; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow:
    0 34px 80px -26px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: rise .5s cubic-bezier(.22,.61,.36,1) both;
}

.body { padding: clamp(18px, 5vw, 24px); display: flex; flex-direction: column; gap: 16px; }

/* ---------- portrait hero ---------- */
.hero { position: relative; margin: 0; display: block; }
.hero img {
  width: 100%;
  height: auto;            /* the width/height attributes must not fix the box */
  aspect-ratio: 4 / 5;
  /* Keep the buttons reachable without scrolling. The reserve is what the name,
     about line, section label and first button need; svh (not vh) excludes the browser UI,
     which matters inside Instagram's webview where visible height is ~120px less
     than the physical screen. */
  max-height: max(200px, min(62vh, calc(100svh - 300px)));
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 7, 14, 0.95) 2%, rgba(9, 7, 14, 0.55) 26%, rgba(9, 7, 14, 0) 58%);
}
.hero figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(18px, 5vw, 26px);
  z-index: 1;
  text-align: left;
}

/* ---------- identity (photo overlay or minimal header) ---------- */
h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 8.5vw, 40px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.tagline { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; max-width: 33ch; }

.id { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.id .tagline { margin-top: 2px; }

.avatar {
  width: 94px; height: 94px; border-radius: 50%; object-fit: cover; display: block;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.14),
              0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ---------- socials ---------- */
.socials { display: flex; gap: 10px; }
.id + .socials { justify-content: center; }
/* socials sit under the buttons so the paid links are what you see first */
.btns + .socials { justify-content: center; margin-top: 4px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: transform .2s cubic-bezier(.22,.61,.36,1), background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.socials a:hover, .socials a:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.11);
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent);
  outline: none;
}
.socials svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* ---------- about text (real content for humans and crawlers) ---------- */
.about { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- section label ---------- */
.label {
  margin: 6px 0 -4px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .85;
}

/* ---------- buttons ---------- */
.btns { display: flex; flex-direction: column; gap: 11px; }
.btns.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }

.btn {
  -webkit-appearance: none; appearance: none;
  position: relative; overflow: hidden; isolation: isolate;
  font: inherit; color: var(--text); text-align: left; cursor: pointer;
  width: 100%; min-height: 58px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-btn);
  background: var(--glass);
  border: 1px solid var(--line);
  transition: transform .18s cubic-bezier(.22,.61,.36,1), box-shadow .24s ease,
              border-color .24s ease, background .24s ease;
}
.btn:nth-child(1) { animation: rise .5s .06s cubic-bezier(.22,.61,.36,1) both; }
.btn:nth-child(2) { animation: rise .5s .12s cubic-bezier(.22,.61,.36,1) both; }
.btn:nth-child(3) { animation: rise .5s .18s cubic-bezier(.22,.61,.36,1) both; }
.btn:nth-child(n+4) { animation: rise .5s .24s cubic-bezier(.22,.61,.36,1) both; }

.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.9);
  outline: none;
}
.btn:active { transform: translateY(0) scale(.99); }

.btn .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.btn .lbl { font-weight: 600; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.btn .sub { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.btn .chev { margin-left: auto; flex: none; opacity: .45; transition: transform .2s ease, opacity .2s ease; }
.btn:hover .chev, .btn:focus-visible .chev { transform: translateX(3px); opacity: .85; }

.btn.primary {
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  border-color: transparent;
  box-shadow: 0 16px 38px -14px color-mix(in srgb, var(--accent) 75%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn.primary .lbl { color: #fff; }
.btn.primary::after {
  content: "";
  position: absolute;
  inset: -60% -20%;
  z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.4) 50%, transparent 62%);
  transform: translateX(-70%);
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.btn.primary:hover::after, .btn.primary:focus-visible::after { transform: translateX(70%); }

.btn.ghost { background: rgba(255, 255, 255, 0.035); }

/* ---------- footer ---------- */
footer { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: .04em; opacity: .8; }
footer a { color: inherit; }

/* ---------- open-in-browser nudge (shown only inside app webviews) ---------- */
.oib {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(20px, env(safe-area-inset-top)) 22px calc(30px + env(safe-area-inset-bottom));
  background: rgba(5, 4, 10, 0.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade .2s ease both;
  cursor: pointer;
}
.oib-arrow {
  align-self: flex-end;
  margin: 2px 5vw 0 0;
  width: 78px; height: 78px;
  color: var(--accent);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
  animation: nudge 1.7s ease-in-out infinite;
}
.oib-arrow svg { width: 100%; height: 100%; }
.oib-text {
  margin: 26px 0 0;
  text-align: center;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.oib-sub { margin: 8px 0 0; color: var(--muted); text-align: center; font-size: 14px; max-width: 30ch; }
.oib-close {
  -webkit-appearance: none; appearance: none;
  margin-top: auto;
  font: inherit; cursor: pointer;
  color: var(--text);
  padding: 13px 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}
.oib-close:hover { background: rgba(255, 255, 255, 0.13); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- overlays ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 22px;
  background: rgba(6, 4, 11, 0.7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .22s ease both;
}
.sheet[hidden] { display: none; }
.sheet-card { padding: clamp(22px, 6vw, 28px); text-align: center; gap: 12px; }
.sheet-card .q { margin: 0 0 6px; font-size: 17px; line-height: 1.45; }

.ghost-link {
  -webkit-appearance: none; appearance: none; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
  padding: 8px; display: inline-block;
}
.ghost-link:hover { color: var(--text); }

/* ---------- motion & small screens ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 400px) {
  .btns.grid { grid-template-columns: 1fr; }
  .hero img { aspect-ratio: 3 / 4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation: none !important; transition: none !important; }
}
