:root {
  --bg: #f2eee8;
  --ink: #191817;
  --muted: #706b66;
  --line: rgba(25, 24, 23, 0.13);
  --line-strong: rgba(25, 24, 23, 0.2);
  --card: rgba(255, 255, 255, 0.88);
  --blush: #c5437d;
  --pink-soft: #f6dbe8;
  --cream: #fff8ee;
  --shadow: 0 28px 90px rgba(54, 43, 35, 0.18);
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 2%, rgba(232, 194, 176, 0.72), transparent 28rem),
    radial-gradient(circle at 82% 0%, rgba(143, 169, 200, 0.38), transparent 28rem),
    radial-gradient(circle at 80% 78%, rgba(209, 59, 124, 0.14), transparent 24rem),
    linear-gradient(135deg, #efe7dc, #f8f5ee 46%, #e8ddd3);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(25,24,23,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,24,23,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.links-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 28px, 540px);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: 14px 0;
  display: grid;
  place-items: center;
}

.links-card {
  width: 100%;
  max-height: calc(100dvh - 28px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 8%, rgba(255,255,255,.98), transparent 15rem),
    radial-gradient(circle at 88% 2%, rgba(209,59,124,.12), transparent 15rem),
    var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
  padding: clamp(20px, 3.2dvh, 30px) 34px;
  text-align: center;
}

.links-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.74);
  pointer-events: none;
}

.avatar-wrap {
  width: clamp(106px, 17dvh, 140px);
  aspect-ratio: 1;
  margin: 0 auto clamp(14px, 2.2dvh, 20px);
  position: relative;
  border-radius: 999px;
  border: 7px solid #fff;
  overflow: hidden;
  background: #eee;
  box-shadow: 0 18px 48px rgba(54,43,35,.22);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blush);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 950;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 46px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 760;
}

.intro {
  max-width: 390px;
  margin: clamp(12px, 1.8dvh, 16px) auto clamp(16px, 2.5dvh, 22px);
  color: #3b3734;
  font-size: clamp(14px, 2.1dvh, 16px);
  line-height: 1.42;
  font-weight: 600;
}

.link-stack {
  display: grid;
  gap: clamp(8px, 1.4dvh, 12px);
}

.link-button {
  min-height: clamp(58px, 9dvh, 70px);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: rgba(255,255,255,.8);
  color: var(--ink);
  text-decoration: none;
  padding: clamp(8px, 1.4dvh, 12px) 16px clamp(8px, 1.4dvh, 12px) 12px;
  box-shadow: 0 16px 42px rgba(54,43,35,.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.link-button:hover {
  transform: translateY(-3px);
  border-color: rgba(197,67,125,.36);
  background: #fff;
  box-shadow: 0 22px 54px rgba(54,43,35,.14);
}

.link-icon {
  width: clamp(42px, 6.4dvh, 50px);
  height: clamp(42px, 6.4dvh, 50px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(197,67,125,.22);
  border-radius: 17px;
  background:
    radial-gradient(circle at 82% 8%, rgba(209,59,124,.16), transparent 62%),
    linear-gradient(135deg, #fff, #fff2f7);
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(54,43,35,.08);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.link-button:hover .link-icon {
  background:
    radial-gradient(circle at 82% 8%, rgba(209,59,124,.22), transparent 62%),
    linear-gradient(135deg, #fff, #ffe8f1);
  border-color: rgba(197,67,125,.34);
  color: var(--ink);
}
.link-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-button span:not(.link-icon) {
  min-width: 0;
  display: grid;
  gap: 4px;
  text-align: left;
}

.link-button strong {
  font-size: 17px;
  letter-spacing: -.025em;
  font-weight: 760;
}

.link-button small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .links-shell {
    width: min(100% - 18px, 540px);
    padding: 8px 0;
  }

  .links-card {
    max-height: calc(100dvh - 16px);
    border-radius: 28px;
    padding: clamp(16px, 2.6dvh, 22px) 18px;
  }

  .links-card::before {
    inset: 10px;
    border-radius: 22px;
  }

  .avatar-wrap {
    width: clamp(96px, 16dvh, 124px);
    border-width: 6px;
  }

  h1 { font-size: clamp(31px, 9.5vw, 40px); }
  .intro { font-size: clamp(13px, 2dvh, 15px); }
  .link-button { border-radius: 20px; }
  .link-icon { border-radius: 16px; }
}

@media (max-height: 680px) {
  .links-card { padding-top: 16px; padding-bottom: 16px; }
  .links-card::before { inset: 9px; }
  .avatar-wrap { width: 92px; border-width: 6px; }
  h1 { font-size: 34px; }
  .intro { margin-top: 10px; margin-bottom: 12px; font-size: 13px; line-height: 1.32; }
  .link-stack { gap: 8px; }
  .link-button { min-height: 56px; border-radius: 18px; }
  .link-icon { width: 40px; height: 40px; border-radius: 14px; font-size: 19px; }
  .link-button strong { font-size: 15px; }
  .link-button small { font-size: 12px; }
}

@media (max-height: 560px) {
  .links-card { padding-top: 12px; padding-bottom: 12px; }
  .avatar-wrap { width: 74px; margin-bottom: 8px; }
  h1 { font-size: 30px; }
  .intro { margin: 8px auto 10px; }
  .link-button { min-height: 50px; }
  .link-icon { width: 36px; height: 36px; }
}
