/* Public author page (/@slug). One column, thumb-sized links, a slow shader sky behind it.
   Themes change only the sky and the accent; the layout stays the same. */
.bio {
  --sky-a: #0E0F12;
  --sky-b: #FF5A26;
  --pick: #FF5A26;
  --pick-ink: #140A06;
  --card: rgba(14, 15, 18, .62);
  --card-line: rgba(255, 255, 255, .09);
  --row: rgba(255, 255, 255, .055);
  --row-hover: rgba(255, 255, 255, .1);
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--sky-a);
  color: var(--text);
  font-family: var(--f-ui);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(28px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
.bio *, .bio *::before, .bio *::after { box-sizing: border-box; }

/* CSS sky: what everyone sees first, and all that phones without WebGPU see. */
.bio::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 70% at 85% -10%, color-mix(in oklab, var(--sky-b) 55%, transparent), transparent 60%),
    radial-gradient(90% 60% at -10% 110%, color-mix(in oklab, var(--sky-b) 28%, transparent), transparent 65%),
    var(--sky-a);
}
.bio-sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease, ease);
}
.bio-sky.is-live { opacity: 1; }

.theme-aurora { --sky-a: #07080F; --sky-b: #6C5CFF; --pick: #8F84FF; --pick-ink: #0B0820; }
.theme-ocean { --sky-a: #04131C; --sky-b: #1B9AAA; --pick: #3CC8D6; --pick-ink: #031417; }
.theme-mono {
  --sky-a: #EDECE8;
  --sky-b: #EDECE8;
  --pick: #16171A;
  --pick-ink: #FFFFFF;
  --card: rgba(255, 255, 255, .78);
  --card-line: rgba(0, 0, 0, .08);
  --row: rgba(0, 0, 0, .045);
  --row-hover: rgba(0, 0, 0, .08);
  --text: #16171A;
  --muted: #5B5D63;
  --dim: #8A8C92;
  color: #16171A;
}
.theme-mono::before { background: #EDECE8; }

.bio-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 28px;
  padding: 32px 20px 22px;
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
}

.bio-head { text-align: center; padding: 0 8px 22px; }
.bio-avatar {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--pick);
  color: var(--pick-ink);
  font: 600 30px/1 var(--f-display);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.bio-head h1 {
  font: 650 clamp(26px, 7vw, 32px)/1.1 var(--f-display);
  letter-spacing: -.025em;
  margin: 0 0 8px;
  text-wrap: balance;
}
.bio-about {
  margin: 0 auto;
  max-width: 36ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}

.bio-links { display: grid; gap: 10px; margin-bottom: 8px; }
.bio-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--pick);
  color: var(--pick-ink);
  font: 600 16px/1.25 var(--f-ui);
  text-align: center;
  text-decoration: none;
  transition: transform var(--t-fast, .15s) var(--ease, ease), filter var(--t-fast, .15s);
}
.bio-link:hover { filter: brightness(1.06); }
.bio-link:active { transform: scale(.985); }
/* Only the first link is filled; the rest are quiet rows so the main one stands out. */
.bio-link + .bio-link { background: var(--row); color: var(--text); border: 1px solid var(--card-line); }
.bio-link + .bio-link:hover { background: var(--row-hover); filter: none; }

.bio-section { margin-top: 24px; }
.bio-section h2 {
  font: 600 14px/1.3 var(--f-ui);
  color: var(--muted);
  margin: 0 4px 10px;
}

.bio-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bio-channel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  min-height: 60px;
  border-radius: 14px;
  background: var(--row);
  border: 1px solid var(--card-line);
  color: var(--text);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background var(--t-fast, .15s);
}
.bio-channel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--c, var(--pick));
}
.bio-channel:hover { background: var(--row-hover); }
.bio-channel b { font: 600 14px/1.25 var(--f-ui); }
.bio-channel span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bio-channel[data-platform="telegram"] { --c: #2AABEE; }
.bio-channel[data-platform="youtube"] { --c: #FF4D4D; }
.bio-channel[data-platform="vk"] { --c: #2787F5; }
.bio-channel[data-platform="tiktok"] { --c: #2CE5E0; }
.bio-channel[data-platform="instagram"] { --c: #E1306C; }
.bio-channel[data-platform="rutube"] { --c: #9B8CFF; }
.bio-channel[data-platform="max"] { --c: #7B61FF; }
.bio-channel[data-platform="ok"] { --c: #F7931E; }
.bio-channel[data-platform="dzen"] { --c: #A0A0A0; }
.bio-channel:only-child { grid-column: 1 / -1; }

.bio-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bio-posts a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background var(--t-fast, .15s);
}
.bio-posts a:hover { background: var(--row); }
.bio-posts b { font: 500 15px/1.35 var(--f-ui); }
.bio-posts span { font-size: 13px; color: var(--dim); }

.bio-made {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
}
.bio-made:hover { color: var(--text); }

.bio a:focus-visible { outline: 2px solid var(--pick); outline-offset: 3px; }

@media (max-width: 360px) {
  .bio-channels { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bio-sky { display: none; }
  .bio-link, .bio-channel, .bio-posts a { transition: none; }
}
