/* «أبعد» links page (link in bio). The site's night, one cyan for the main door, quiet glass for the rest. */
@font-face { font-family: "Alexandria"; src: url("alexandria.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root { --ground: #07080C; --ink: #F4F6F8; --soft: #A9B2BE; --cyan: #29B6FF; --line: rgba(255, 255, 255, .1); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: "Alexandria", system-ui, sans-serif; font-weight: 300; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body, body * { letter-spacing: 0; }
h1, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 12px; }
::selection { background: var(--cyan); color: var(--ground); }

/* the city at night behind the profile, melting into the page */
.cover { position: absolute; inset: 0 0 auto 0; height: clamp(200px, 34vh, 300px); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
/* on a wide screen the band would show the man behind the picture; keep only the lights of the city */
@media (min-width: 600px) { .cover img { object-position: 100% 30%; transform: scale(2); transform-origin: 100% 30%; } }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7,8,12,.25), rgba(7,8,12,.55) 55%, var(--ground)); }

.page { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding: clamp(120px, 22vh, 200px) 20px 36px; }

.id { text-align: center; }
.avatar { display: block; width: 112px; height: 112px; margin: 0 auto 16px; border-radius: 50%; box-shadow: 0 0 0 4px var(--ground), 0 0 0 5px rgba(41, 182, 255, .45), 0 20px 50px -16px rgba(41, 182, 255, .55); }
.id h1 { font-size: 1.9rem; font-weight: 700; line-height: 1.35; }
.id p { margin-top: 4px; color: var(--soft); font-size: 1rem; }

.links { display: grid; gap: 12px; margin-top: 30px; }
.row {
  display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 12px 14px;
  border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  transition: background .2s ease, border-color .2s ease;
}
.row:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }
.ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: rgba(41, 182, 255, .12); }
.ic .ico { width: 22px; height: 22px; fill: var(--cyan); }
.tx { display: grid; min-width: 0; }
.tx b { font-size: 1.02rem; font-weight: 600; line-height: 1.5; }
.tx small { color: var(--soft); font-size: .86rem; line-height: 1.6; }

.row--main { background: var(--cyan); border-color: var(--cyan); color: var(--ground); }
.row--main:hover { background: #5CC8FF; border-color: #5CC8FF; }
.row--main .ic { background: rgba(7, 8, 12, .14); }
.row--main .ic .ico { fill: var(--ground); }
.row--main .tx small { color: rgba(7, 8, 12, .72); }

.social { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); transition: border-color .2s ease, background .2s ease; }
.social a:hover { border-color: rgba(41, 182, 255, .6); background: rgba(41, 182, 255, .1); }
.social .ico { width: 21px; height: 21px; fill: var(--ink); }

.risk { margin-top: 28px; color: rgba(244, 246, 248, .55); font-size: .78rem; line-height: 1.9; text-align: center; }
.c { margin-top: 10px; color: rgba(244, 246, 248, .4); font-size: .74rem; text-align: center; }

/* one arrival on load: the profile, then the doors in order */
@media (prefers-reduced-motion: no-preference) {
  .id, .links > *, .social, .risk { animation: rise .62s cubic-bezier(.23, 1, .32, 1) both; }
  .links > :nth-child(1) { animation-delay: .08s; } .links > :nth-child(2) { animation-delay: .13s; }
  .links > :nth-child(3) { animation-delay: .18s; } .links > :nth-child(4) { animation-delay: .23s; }
  .links > :nth-child(5) { animation-delay: .28s; } .social { animation-delay: .34s; } .risk { animation-delay: .38s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
