/* Social page (timj.me/social): link-in-bio style list of profiles. */
main.page.social-page { max-width: 560px; }
.soc-hero { position: relative; isolation: isolate; text-align: center; padding: 8px 0 4px; }
.soc-hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -24px -60px auto; height: 340px;
  background: radial-gradient(50% 55% at 50% 42%, rgba(125, 155, 184, 0.38), rgba(125, 155, 184, 0) 70%);
}
.soc-avatar { position: relative; width: max-content; margin: 0 auto 18px; }
.soc-avatar img { display: block; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid var(--card); box-shadow: 0 10px 30px rgba(20, 33, 61, 0.18); }
.soc-avatar::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0.55; }
.soc-hero h1 { margin: 0 0 10px; font-size: clamp(2.2rem, 8vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.soc-hero .lead { margin: 0 auto; max-width: 30em; }

.soc-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.soc-card {
  --brand: var(--accent);
  display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  color: var(--ink); text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.soc-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 10px 26px rgba(20, 33, 61, 0.10); }
@supports (color: color-mix(in srgb, red, blue)) {
  .soc-card:hover { box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 22%, transparent); }
}
.soc-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.soc-ico { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--brand); color: #fff; }
.soc-ico svg { width: 24px; height: 24px; fill: currentColor; }
.soc-text { min-width: 0; flex: 1; }
.soc-text strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.soc-text small { display: block; color: var(--muted); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-note { display: block; margin-top: 2px; font-size: 0.92rem; color: var(--ink); opacity: 0.85; }
.soc-go { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform 0.18s ease, color 0.18s ease; }
.soc-card:hover .soc-go { transform: translate(2px, -2px); color: var(--ink); }
.soc-empty { text-align: center; color: var(--muted); margin-top: 32px; }

/* Also on the site */
.soc-site { margin: 36px 0 0; text-align: center; }
.soc-site h2 { margin: 0 0 12px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.soc-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.soc-pills a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-weight: 600; font-size: 0.92rem; text-decoration: none; border: 1px solid transparent; }
.soc-pills a:hover { border-color: var(--accent); }
.soc-pills a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Brand colours (Simple Icons). Black logos get a light ring in dark mode so they stay visible. */
.soc-c-linkedin { --brand: #0A66C2; }
.soc-c-instagram { --brand: #FF0069; }
.soc-c-strava { --brand: #FC4C02; }
.soc-c-threads { --brand: #000000; }
.soc-c-bluesky { --brand: #0285FF; }
.soc-c-mastodon { --brand: #6364FF; }
.soc-c-x { --brand: #000000; }
.soc-c-tiktok { --brand: #000000; }
.soc-c-youtube { --brand: #FF0000; }
.soc-c-facebook { --brand: #0866FF; }
.soc-c-spotify { --brand: #1ED760; }
.soc-c-applemusic { --brand: #FA243C; }
.soc-c-letterboxd { --brand: #202830; }
.soc-c-goodreads { --brand: #372213; }
.soc-c-substack { --brand: #FF6719; }
.soc-c-medium { --brand: #000000; }
.soc-c-github { --brand: #181717; }
.soc-c-pinterest { --brand: #BD081C; }
.soc-c-behance { --brand: #1769FF; }
.soc-c-flickr { --brand: #0063DC; }
.soc-c-vsco { --brand: #000000; }
@media (prefers-color-scheme: dark) {
  .soc-c-x .soc-ico, .soc-c-threads .soc-ico, .soc-c-tiktok .soc-ico, .soc-c-medium .soc-ico, .soc-c-github .soc-ico, .soc-c-vsco .soc-ico, .soc-c-letterboxd .soc-ico, .soc-c-goodreads .soc-ico { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset; }
  .soc-c-x, .soc-c-threads, .soc-c-tiktok, .soc-c-medium, .soc-c-github, .soc-c-vsco { --brand: #e8ecf4; }
  .soc-c-x .soc-ico, .soc-c-threads .soc-ico, .soc-c-tiktok .soc-ico, .soc-c-medium .soc-ico, .soc-c-github .soc-ico, .soc-c-vsco .soc-ico { color: #0f1626; }
}

/* Gentle entrance, one card after the other */
@media (prefers-reduced-motion: no-preference) {
  .soc-avatar::after { animation: soc-ring 3.2s ease-out infinite; }
  .soc-list > li { animation: soc-in 0.45s ease-out backwards; }
  .soc-list > li:nth-child(1) { animation-delay: 0.10s; }
  .soc-list > li:nth-child(2) { animation-delay: 0.15s; }
  .soc-list > li:nth-child(3) { animation-delay: 0.20s; }
  .soc-list > li:nth-child(4) { animation-delay: 0.25s; }
  .soc-list > li:nth-child(5) { animation-delay: 0.30s; }
  .soc-list > li:nth-child(6) { animation-delay: 0.35s; }
  .soc-list > li:nth-child(7) { animation-delay: 0.40s; }
  .soc-list > li:nth-child(8) { animation-delay: 0.45s; }
  .soc-list > li:nth-child(9) { animation-delay: 0.50s; }
  .soc-list > li:nth-child(10) { animation-delay: 0.55s; }
  .soc-list > li:nth-child(11) { animation-delay: 0.60s; }
  .soc-list > li:nth-child(12) { animation-delay: 0.65s; }
}
@keyframes soc-ring { 0% { transform: scale(0.96); opacity: 0.6; } 100% { transform: scale(1.16); opacity: 0; } }
@keyframes soc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
