/* /links/ - link-in-bio page. Extends site.css. */
.links-page { display: grid; grid-template-rows: 1fr auto; min-height: 100dvh; }
.links-main { width: 100%; max-width: 560px; margin-inline: auto; padding: clamp(40px, 9vw, 72px) var(--gutter) 40px; }
.profile { display: grid; justify-items: center; text-align: center; gap: 14px; margin-bottom: 36px; }
.avatar {
  width: 104px; height: 104px; padding: 5px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-hover), inset 0 1px 0 var(--hi);
}
.avatar-core {
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.28), transparent 55%), linear-gradient(150deg, var(--mono-a), var(--mono-b));
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 2.25rem; letter-spacing: -0.05em;
}
.avatar-core img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 8vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.05; }
.profile .bio { color: var(--muted); max-width: 32ch; }
.now-line {
  display: inline-flex; align-items: center; min-height: 36px; padding: 4px 16px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 0.9375rem; font-weight: 600;
}
.link-list { display: grid; gap: 12px; }
.link-row {
  display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 10px 14px 10px 12px;
  border-radius: 24px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 var(--hi);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.link-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover), inset 0 1px 0 var(--hi); }
.link-row:active { transform: scale(0.985); }
.link-row.featured { background: radial-gradient(100% 120% at 0% 0%, var(--tint-a), transparent 70%), var(--card); }
.link-tile {
  width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: var(--chip); font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem;
}
.link-row.featured .link-tile { background: var(--accent); color: var(--accent-ink); }
.link-text { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.link-label { font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.015em; }
.link-sub { color: var(--muted); font-size: 0.9375rem; overflow-wrap: anywhere; }
.link-arrow { color: var(--faint); transition: transform 0.5s var(--ease), color 0.4s var(--ease); }
.link-row:hover .link-arrow { transform: translateX(3px); color: var(--ink); }
@media (prefers-reduced-transparency: reduce) { .link-row { background: var(--card-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { .link-row:hover { transform: none; } }

.mini-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; padding: 24px var(--gutter) 40px; color: var(--faint); font-size: 0.875rem; }
.mini-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--muted); }
.mini-footer a:hover { background: var(--chip); color: var(--ink); }

/* 404 */
.nf { min-height: calc(100dvh - 90px); display: grid; place-items: center; padding: var(--gutter); text-align: center; }
.nf-inner { display: grid; justify-items: center; gap: 20px; max-width: 460px; }
.nf h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.75rem, 12vw, 4.5rem); letter-spacing: -0.045em; line-height: 1; }
.nf p { color: var(--muted); }
.nf .btn { margin-top: 8px; }

/* Grouped sections */
.link-group + .link-group { margin-top: 28px; }
.link-group-title {
  font-family: var(--font-body); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px 6px;
}
