/* ---------------------------------------------------------------------------
   site.css: everything the link page looks like.

   Moved here unchanged from the page's own <style> block, so the site's
   security policy can refuse inline styles. The one addition is the
   <picture> rule beside the photo, which changes nothing on screen.
   --------------------------------------------------------------------------- */

:root {
  --bg: #EEF5FB;
  --ink: #1B3147;
  --muted: #6F879E;
  --button: #FFFFFF;
  --button-border: #D8E5F0;
  --button-hover: #F7FBFF;
  --shadow: 0 8px 28px rgba(39, 74, 109, 0.08);
  --blue: #5D93C6;
  --navy: #274A6D;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(169, 205, 234, .32), transparent 34rem),
    var(--bg);
  color: var(--ink);
  font-family: "Jost", sans-serif;
  padding: 38px 18px 28px;
  overflow-x: hidden;
}

.page {
  width: min(680px, 100%);
  min-height: calc(100vh - 66px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeUp .55s ease both;
}

.avatar-wrap {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  padding: 4px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(39, 74, 109, .12);
  margin-bottom: 18px;
  position: relative;
  -webkit-touch-callout: none;
}

.avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.avatar-wrap picture { display: contents; }

.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.display-name {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.7px;
}

.username {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: .1px;
  overflow-wrap: anywhere;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.link {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--button-border);
  border-radius: 18px;
  background: var(--button);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform .42s cubic-bezier(.22,.72,.25,1),
    box-shadow .72s ease,
    color .72s ease,
    border-color .72s ease,
    background-color .72s ease;
  animation: fadeUp .5s ease both;
}

.link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--social-gradient, linear-gradient(135deg, #EEF5FB, #DCEAF6));
  opacity: 0;
  transition: opacity .78s cubic-bezier(.22,.72,.25,1);
}

.link:hover,
.link:focus-visible,
.link:active {
  transform: translateY(-2px) scale(1.005);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 13px 34px rgba(39, 74, 109, 0.18);
  outline: none;
}

.link:hover::before,
.link:focus-visible::before { opacity: .72; }

.link:active::before { opacity: .82; }

.link:hover .icon,
.link:focus-visible .icon,
.link:active .icon {
  color: #fff;
  background: rgba(255,255,255,.16);
}

.link:hover .link-username,
.link:focus-visible .link-username,
.link:active .link-username,
.link:hover .arrow,
.link:focus-visible .arrow,
.link:active .arrow { color: rgba(255,255,255,.88); }

.instagram { --social-gradient: linear-gradient(135deg, #833AB4 0%, #FD1D1D 52%, #FCAF45 100%); }
.facebook  { --social-gradient: linear-gradient(135deg, #1877F2, #0B5DCA); }
.tiktok    { --social-gradient: linear-gradient(135deg, #25F4EE 0%, #111 46%, #FE2C55 100%); }
.youtube   { --social-gradient: linear-gradient(135deg, #FF0033, #CC0000); }
.snapchat  { --social-gradient: linear-gradient(135deg, #FFF000, #FFD700); }
.x-social  { --social-gradient: linear-gradient(135deg, #111, #333); }
.linkedin  { --social-gradient: linear-gradient(135deg, #0A66C2, #004182); }

.snapchat:hover, .snapchat:focus-visible, .snapchat:active { color: #171717; }
.snapchat:hover .icon, .snapchat:focus-visible .icon, .snapchat:active .icon { color: #171717; background: rgba(255,255,255,.35); }
.snapchat:hover .arrow, .snapchat:focus-visible .arrow, .snapchat:active .arrow { color: rgba(23,23,23,.72); }

.icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #F1F7FC;
  transition: color .72s ease, background-color .72s ease, transform .72s ease;
}

.icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.icon .stroke-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-copy {
  min-width: 0;
  text-align: center;
  line-height: 1.2;
}

.link-title {
  display: block;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .1px;
}

.link-username {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .1px;
  transition: color .72s ease;
}

.arrow {
  font-size: 21px;
  color: #9AAEC1;
  transform: translateY(-1px);
  transition: color .72s ease, transform .72s ease;
}

.link:nth-child(1) { animation-delay: .05s; }
.link:nth-child(2) { animation-delay: .10s; }
.link:nth-child(3) { animation-delay: .15s; }
.link:nth-child(4) { animation-delay: .20s; }
.link:nth-child(5) { animation-delay: .25s; }
.link:nth-child(6) { animation-delay: .30s; }
.link:nth-child(7) { animation-delay: .35s; }

.brand-footer {
  width: 100%;
  margin-top: auto;
  padding: 52px 0 4px;
  text-align: center;
  color: var(--navy);
  animation: fadeUp .55s ease .4s both;
}

.brand-mark {
  display: inline-block;
  width: min(230px, 60vw);
  max-width: 100%;
  line-height: 0;
  user-select: none;
}

.brand-wordmark {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  body { padding: 28px 14px 22px; }
  .page { min-height: calc(100vh - 50px); }
  .avatar-wrap { width: 96px; height: 96px; }
  .links { margin-top: 28px; gap: 12px; }
  .link { min-height: 64px; border-radius: 17px; }
  .brand-footer { padding-top: 40px; }
  .brand-mark { width: min(200px, 62vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
