:root {
  color-scheme: light;
  --page: #f5f5f3;
  --card: #ffffff;
  --ink: #171717;
  --muted: #777;
  --line: #e9e9e6;
  --shadow: 0 5px 22px rgba(0,0,0,.045);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--page); }
body {
  margin: 0; min-height: 100vh; padding: clamp(22px, 4vw, 56px);
  background: var(--page); color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#social-grid {
  width: min(100%, 1440px); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: clamp(14px, 1.7vw, 22px); align-items: stretch;
}
.social-card {
  --lift: 0px;
  position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 0; min-height: 248px; max-height: 300px;
  padding: 25px 18px 22px; border: 1px solid var(--line); border-radius: 22px;
  background: var(--card); color: inherit; text-decoration: none; box-shadow: var(--shadow);
  transform: translateY(var(--lift)); transition: border-color .22s ease, box-shadow .22s ease;
  overflow: hidden; -webkit-tap-highlight-color: transparent;
}
.social-card:hover { border-color: #cfcfca; box-shadow: 0 14px 34px rgba(0,0,0,.09); }
.social-card:focus-visible { outline: 3px solid #777; outline-offset: 4px; }
.avatar-frame {
  width: clamp(104px, 8vw, 132px); aspect-ratio: 1; flex: 0 0 auto;
  border-radius: 50%; overflow: hidden; background: #efefed;
  border: 1px solid rgba(0,0,0,.07); box-shadow: 0 3px 12px rgba(0,0,0,.08);
}
.avatar-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.platform-row {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 20px; max-width: 100%;
}
.platform-icon { display: block; width: 21px; height: 21px; flex: 0 0 21px; object-fit: contain; }
.platform-name {
  font-size: 15px; line-height: 1.25; font-weight: 650; letter-spacing: -.025em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 520px) {
  body { padding: 16px; }
  #social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .social-card { min-height: 210px; padding: 19px 12px; border-radius: 18px; }
  .avatar-frame { width: clamp(86px, 26vw, 112px); }
  .platform-row { margin-top: 15px; gap: 7px; }
  .platform-name { font-size: 13px; }
  .platform-icon { width: 19px; height: 19px; flex-basis: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
