:root {
  --ink: #191816;
  --muted: #68635c;
  --paper: rgba(255, 252, 247, 0.88);
  --line: rgba(25, 24, 22, 0.1);
  --lime: #d9ff62;
  --violet: #7451f8;
  --shadow: 0 30px 80px rgba(55, 43, 29, 0.16), 0 5px 18px rgba(55, 43, 29, 0.08);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%; margin: 0; color: var(--ink); font-family: "DM Sans", sans-serif;
  background:
    linear-gradient(rgba(5, 5, 20, .16), rgba(5, 5, 20, .16)),
    url("assets/gradient-background.jpg") center / cover fixed no-repeat,
    #160e35;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}
.ambient { display: none; }
.ambient-one { width: 190px; height: 190px; background: #ff986a; left: max(-95px, calc(50% - 450px)); top: 18%; opacity: .58; }
.ambient-two { width: 130px; height: 130px; border: 32px solid #7b59ff; right: max(-65px, calc(50% - 390px)); top: 58%; opacity: .42; }
.page-shell { width: 100%; min-height: 100vh; padding: 32px 16px; display: grid; place-items: center; }
.profile-card {
  position: relative; width: min(100%, 610px); padding: 22px; border: 1px solid rgba(255,255,255,.8);
  border-radius: 36px; background: rgba(255, 252, 247, .92); box-shadow: var(--shadow); backdrop-filter: blur(22px);
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
.top-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.availability { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: rgba(217,255,98,.58); font-size: 12px; font-weight: 700; }
.availability span { width: 7px; height: 7px; border-radius: 50%; background: #59a718; box-shadow: 0 0 0 4px rgba(89,167,24,.12); }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.72); display: grid; place-items: center; cursor: pointer; transition: .2s ease; }
.icon-button:hover { transform: rotate(-8deg) scale(1.05); background: #fff; }
.icon-button svg { width: 19px; fill: currentColor; }
.identity { text-align: center; padding: 0 18px 24px; }
.portrait-wrap { position: relative; width: 108px; margin: 0 auto 16px; }
.portrait { width: 108px; height: 108px; padding: 4px; background: #fff; border-radius: 50%; box-shadow: 0 12px 28px rgba(33,30,22,.18); overflow: hidden; transform: rotate(-2deg); }
.portrait img { width: 100%; height: 100%; border-radius: inherit; display: block; object-fit: cover; object-position: 50% 18%; }
.status-dot { position: absolute; right: 7px; bottom: 7px; width: 20px; height: 20px; border-radius: 50%; background: #63d43f; border: 4px solid #fff; }
.eyebrow { margin: 0 0 6px; font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--violet); }
h1 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(28px, 7vw, 36px); letter-spacing: -.04em; line-height: 1.05; }
.verified { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--violet); color: #fff; font-family: sans-serif; font-size: 12px; vertical-align: 5px; }
.handle { margin: 7px 0 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.bio { max-width: 440px; margin: 0 auto; color: #4f4a44; font-size: 15px; line-height: 1.55; }
.link-list { display: grid; gap: 12px; }
.link-card {
  min-height: 76px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 20px; color: inherit; background: rgba(255,255,255,.76);
  text-decoration: none; display: grid; grid-template-columns: 48px 1fr 28px; align-items: center; gap: 12px; box-shadow: 0 4px 0 rgba(25,24,22,.035);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.link-card:hover, .link-card:focus-visible { transform: translateY(-3px); border-color: rgba(25,24,22,.2); box-shadow: 0 10px 24px rgba(42,35,27,.1); outline: none; }
.link-card.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.link-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: #f2ede5; color: var(--ink); }
.primary .link-icon { background: var(--lime); }
.link-icon svg { width: 22px; height: 22px; fill: currentColor; }
.link-card strong, .link-card small { display: block; }
.link-card strong { font-family: "Manrope", sans-serif; font-size: 15px; letter-spacing: -.01em; }
.link-card small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.primary small { color: rgba(255,255,255,.64); }
.arrow { justify-self: end; font-size: 20px; transition: transform .2s ease; }
.link-card:hover .arrow { transform: translate(2px,-2px); }
.social-strip { display: flex; justify-content: center; gap: 10px; padding: 24px 0 18px; }
.social-strip a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.66); color: var(--ink); font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 800; text-decoration: none; transition: .2s ease; }
.social-strip a:hover { background: var(--lime); transform: translateY(-3px) rotate(-4deg); }
footer { border-top: 1px solid var(--line); padding-top: 18px; }
.powered-by { width: max-content; margin: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; text-decoration: none; }
.powered-by strong { color: var(--ink); font-family: "Manrope", sans-serif; }
.powered-by svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.powered-by:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); padding: 11px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s ease; z-index: 5; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(.985); } to { opacity: 1; transform: none; } }
@media (min-width: 700px) {
  .page-shell { padding-block: 56px; }
  .profile-card { padding: 28px; }
  .identity { padding-bottom: 28px; }
}
@media (max-width: 420px) {
  .page-shell { padding: 0; display: block; }
  .profile-card { width: 100%; min-height: 100vh; border: 0; border-radius: 0; padding: 18px 14px 24px; box-shadow: none; background: rgba(255,252,247,.84); }
  body { background-attachment: scroll; }
  .identity { padding-inline: 8px; }
  .link-card { grid-template-columns: 46px 1fr 24px; gap: 10px; min-height: 72px; border-radius: 18px; }
  .link-icon { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
