/* skylarlane.com, laid out like a link.me page: a blurred copy of the photo
   behind everything, the page itself a black phone-width column with
   rounded corners, a tall hero, one big photo card, white pill buttons and a
   two-across grid of photo tiles. */
:root {
  --bg: #000;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --pill-bg: #fff;
  --pill-text: #1f1a35;
  --gap: 10px;
  --gutter: 14px;
  --font: "Inter", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: #111;
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* The photo again, blurred, filling whatever the column does not. */
.backdrop {
  position: fixed;
  inset: -40px;
  z-index: -1;
  background: url("/hero.jpg?v=3") center / cover no-repeat;
  filter: blur(40px) brightness(0.85);
  transform: scale(1.1);
}

.page {
  position: relative;
  width: 100%;
  max-width: 566px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: 40px;
  background: var(--bg);
  overflow: clip;
}
@media (min-width: 600px) {
  .page { margin: 34px auto; min-height: auto; border-radius: 30px 30px 24px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
}

/* ---- header bar ------------------------------------------------------- */
.bar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 566px;
  height: 50px;
  padding: 0 var(--gutter);
  background: #121212;
  opacity: 0;
  transform: translateX(-50%);
  pointer-events: none;
}
.bar__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.bar__name { font-size: 16px; font-weight: 700; }

/* ---- hero ------------------------------------------------------------- */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  border-radius: 30px 30px 0 0;
  overflow: hidden;
}
.hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 566 / 546;
  object-fit: cover;
  object-position: center top;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.75) 80%, #000 95%);
  pointer-events: none;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
.hero__shade--b { z-index: 1; }
.hero__shade--a { z-index: 9; }

/* The name block sits 139px above the photo's foot and scrolls over it. */
.intro {
  position: relative;
  z-index: 2;
  margin-top: -139px;
  padding: 0 28px;
  text-align: center;
  animation: rise 520ms var(--ease) both;
}
.hero__name {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.25px;
}
.hero__handle {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}
.hero__bio {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
}

/* ---- links ------------------------------------------------------------ */
.links {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  position: relative;
  z-index: 2;
  margin-top: 23px;
  padding: 0 var(--gutter);
}

.card,
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #222;
  animation: rise 520ms var(--ease) 90ms both;
  transition: transform 200ms var(--ease);
}
.card:active,
.tile:active,
.pill:active { transform: scale(0.985); }
.card::after,
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}
.card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 538 / 326;
  object-fit: cover;
  object-position: center 30%;
}
.card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 1;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.card__caption { display: flex; align-items: center; justify-content: center; gap: 8px; }
.card__tg { box-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }

.pill {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  min-height: 50px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 19px;
  font-weight: 600;
  text-align: center;
  animation: rise 520ms var(--ease) 150ms both;
  transition: transform 200ms var(--ease);
}
.pill__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.pill__icon--tg { background: #2aabee; }
.pill__icon--ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.pill__spacer { width: 32px; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap) 14px;
}
.grid:not(:has(.tile:not([hidden]))) { display: none; }
.tile__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 262 / 152;
  object-fit: cover;
  object-position: center 25%;
}
.tile__icon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.tile__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .intro, .card, .tile, .pill { animation: none; }
}
