/* Bio aggregator — dark-first, system fonts, no external assets. */

:root {
  color-scheme: dark;

  --bg: #0a0c11;
  --bg-glow: #141a29;
  --surface: #12161f;
  --surface-2: #171c27;
  --surface-3: #1d2432;
  --border: #232a38;
  --border-strong: #333d50;

  --text: #e9edf6;
  --text-soft: #b7c0d2;
  --muted: #8e99ad;
  --faint: #6b7689;

  --accent: #7c5cff;
  --hue: 258;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 45%);
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 18px 40px -22px rgb(0 0 0 / 85%);

  --wrap: 1140px;
  --gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.03rem);
  --step-1: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  --step-2: clamp(1.25rem, 1.14rem + 0.55vw, 1.6rem);
  --step-3: clamp(1.6rem, 1.35rem + 1.2vw, 2.3rem);
  --step-4: clamp(2rem, 1.5rem + 2.6vw, 3.4rem);

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --bg: #f6f7fb;
    --bg-glow: #e6e9f6;
    --surface: #ffffff;
    --surface-2: #f2f4fa;
    --surface-3: #e9ecf5;
    --border: #dfe3ee;
    --border-strong: #c3cad9;

    --text: #141824;
    --text-soft: #3c4557;
    --muted: #5c667a;
    --faint: #7b8598;

    --shadow-sm: 0 1px 2px rgb(20 24 36 / 8%);
    --shadow: 0 1px 2px rgb(20 24 36 / 6%), 0 16px 32px -20px rgb(20 24 36 / 28%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 12% -8%, var(--bg-glow), transparent 62%),
    radial-gradient(820px 420px at 92% 4%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 68%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Author `display` rules outrank the UA sheet, so [hidden] needs teeth. */
[hidden] {
  display: none !important;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.38em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.5rem + 2vw, 2.25rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  translate: -50% -200%;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  translate: -50% 0;
}

/* ---------- header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.015em;
  min-width: 0;
}

.brand__mark {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  border-radius: 7px;
  background: linear-gradient(140deg, #7c5cff, #00b6a4 55%, #ff7a45);
  box-shadow: var(--shadow-sm);
}

.brand__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__count {
  color: var(--muted);
  font-size: var(--step--1);
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  flex: none;
}

.topbar__count strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.topbar__sep {
  color: var(--faint);
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--step--1);
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.hero__title {
  font-size: var(--step-4);
  font-weight: 700;
  max-width: 22ch;
}

.hero__tagline {
  margin-top: 0.9rem;
  font-size: var(--step-1);
  color: var(--text-soft);
  max-width: 60ch;
}

.stats {
  margin: clamp(1.75rem, 1rem + 2vw, 2.75rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  max-width: 40rem;
}

.stat {
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.stat__label {
  font-size: var(--step--1);
  color: var(--muted);
}

.stat__value {
  margin: 0.15rem 0 0;
  font-size: var(--step-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* ---------- controls (JS only) ---------- */

.controls {
  display: none;
}

.js .controls {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  margin-block: 1.5rem;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.search {
  display: grid;
  gap: 0.35rem;
}

.search__label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
}

.search__input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search__input::placeholder {
  color: var(--faint);
}

.search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent);
  outline: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.chip__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.chip__count {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.chip[aria-pressed="true"] {
  color: var(--text);
  border-color: color-mix(in oklab, var(--accent) 65%, var(--border));
  background: color-mix(in oklab, var(--accent) 20%, var(--surface-2));
}

.chip[aria-pressed="true"] .chip__count {
  color: var(--text-soft);
}

.chip--reset {
  margin-inline-start: auto;
  color: var(--muted);
}

.results {
  font-size: var(--step--1);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.no-results {
  margin-block: 2rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* ---------- teams + card wall ---------- */

.team {
  padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  border-top: 1px solid var(--border);
}

.team:first-of-type {
  border-top: 0;
}

.team__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-bottom: 1.25rem;
}

.team__name {
  font-size: var(--step-2);
  font-weight: 680;
  padding-inline-start: 0.75rem;
  border-inline-start: 4px solid var(--accent);
}

.team__tagline {
  color: var(--muted);
  font-size: var(--step-0);
  flex: 1 1 12rem;
}

.team__count {
  font-size: var(--step--1);
  font-weight: 600;
  color: color-mix(in oklab, var(--accent) 72%, var(--text));
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 32%, transparent);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.6rem;
  white-space: nowrap;
}

.team__empty {
  border: 1px dashed color-mix(in oklab, var(--accent) 35%, var(--border-strong));
  border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  color: var(--muted);
  background: color-mix(in oklab, var(--accent) 5%, transparent);
}

.wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: var(--gap);
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.1rem;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, hsl(var(--hue) 78% 62%), hsl(calc(var(--hue) + 42) 76% 55%));
  opacity: 0.85;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, hsl(var(--hue) 70% 60%) 45%, var(--border));
  box-shadow: var(--shadow);
}

.card:focus-visible {
  outline: 2px solid hsl(var(--hue) 80% 66%);
  outline-offset: 3px;
}

.card__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.card__ident {
  min-width: 0;
}

.card__name {
  font-size: var(--step-1);
  font-weight: 650;
}

.card__pronouns,
.card__location {
  font-size: var(--step--1);
  color: var(--muted);
}

.card__headline {
  color: var(--text-soft);
  font-size: var(--step-0);
  flex: 1 1 auto;
}

.card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.card__more {
  font-size: var(--step--1);
  font-weight: 600;
  color: hsl(var(--hue) 72% 72%);
  white-space: nowrap;
  margin-inline-start: auto;
}

@media (prefers-color-scheme: light) {
  .card__more {
    color: hsl(var(--hue) 62% 40%);
  }
}

/* ---------- avatars ---------- */

.avatar {
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  overflow: hidden;
}

.avatar--mono {
  color: #0a0c11;
  background: linear-gradient(145deg, hsl(var(--hue) 80% 72%), hsl(calc(var(--hue) + 38) 72% 52%));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 22%);
}

.avatar--img {
  object-fit: cover;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.avatar--sm {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.8rem;
}

.avatar--xl {
  width: clamp(4.5rem, 3rem + 8vw, 8.25rem);
  height: clamp(4.5rem, 3rem + 8vw, 8.25rem);
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.5rem);
}

/* ---------- tags ---------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: var(--step--1);
  font-weight: 550;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.55rem;
}

.tag--more {
  color: var(--faint);
}

.tags--lg .tag {
  font-size: var(--step-0);
  padding: 0.2rem 0.7rem;
}

/* ---------- whole-page empty state ---------- */

.zero {
  margin-block: 1rem 4rem;
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
}

.zero__title {
  font-size: var(--step-2);
}

.zero__body {
  margin-top: 0.75rem;
  color: var(--text-soft);
  max-width: 62ch;
}

.zero__hint {
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---------- profile ---------- */

.profile {
  padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(2rem, 1.5rem + 3vw, 4.5rem);
}

.backlink {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.backlink a {
  text-decoration: none;
}

.backlink a:hover {
  color: var(--text);
}

.profile__head {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  flex-wrap: wrap;
}

.profile__ident {
  min-width: min(100%, 18rem);
  flex: 1 1 22rem;
}

.profile__name {
  font-size: var(--step-3);
  font-weight: 700;
}

.profile__pronouns {
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  white-space: nowrap;
}

.profile__headline {
  margin-top: 0.6rem;
  font-size: var(--step-1);
  color: var(--text-soft);
  max-width: 56ch;
}

.profile__meta {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
}

.profile__location {
  font-size: var(--step--1);
  color: var(--muted);
}

.profile__meta + .tags {
  margin-top: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--1);
  font-weight: 650;
  text-decoration: none;
  color: color-mix(in oklab, var(--accent) 70%, var(--text));
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 38%, transparent);
  border-radius: var(--radius-pill);
  padding: 0.22rem 0.7rem;
}

.badge:hover {
  background: color-mix(in oklab, var(--accent) 24%, transparent);
}

.badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.profile__body {
  margin-top: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 62rem) {
  .profile__body {
    grid-template-columns: minmax(0, 1fr) 19rem;
  }
}

/* ---------- prose ---------- */

.prose {
  color: var(--text-soft);
  font-size: var(--step-1);
  line-height: 1.72;
  max-width: 68ch;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre,
.prose table {
  margin-block: 0 1.1em;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--text);
  margin-block: 1.8em 0.6em;
}

.prose h2 {
  font-size: var(--step-2);
}

.prose h3 {
  font-size: var(--step-1);
}

.prose h4 {
  font-size: var(--step-0);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.prose ul,
.prose ol {
  padding-inline-start: 1.4em;
}

.prose li {
  margin-block: 0.3em;
}

.prose li::marker {
  color: hsl(var(--hue) 70% 62%);
}

.prose a {
  color: hsl(var(--hue) 78% 74%);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

.prose strong {
  color: var(--text);
  font-weight: 650;
}

.prose em {
  font-style: italic;
}

.prose code {
  color: var(--text);
  background: var(--surface-2);
}

.prose pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
}

.prose blockquote {
  margin-inline: 0;
  padding: 0.35rem 0 0.35rem 1.1rem;
  border-inline-start: 3px solid hsl(var(--hue) 60% 55%);
  color: var(--muted);
  font-style: italic;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin-block: 2em;
}

@media (prefers-color-scheme: light) {
  .prose a {
    color: hsl(var(--hue) 62% 38%);
  }
}

/* ---------- sidebar panels ---------- */

.sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.panel__title {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 650;
}

.panel__text {
  margin-top: 0.5rem;
  color: var(--text-soft);
}

.linklist {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.linkbtn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.linkbtn:hover {
  background: color-mix(in oklab, hsl(var(--hue) 70% 60%) 16%, var(--surface-2));
  border-color: color-mix(in oklab, hsl(var(--hue) 70% 60%) 45%, var(--border-strong));
}

.linkbtn__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linkbtn__icon {
  margin-inline-start: auto;
  color: var(--muted);
}

.callout {
  background: color-mix(in oklab, hsl(var(--hue) 70% 55%) 12%, var(--surface));
  border-color: color-mix(in oklab, hsl(var(--hue) 70% 55%) 35%, var(--border));
}

.callout__text {
  margin-top: 0.5rem;
  color: var(--text);
}

/* ---------- teammates ---------- */

.teammates {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  padding-top: clamp(1.25rem, 1rem + 1vw, 2rem);
  border-top: 1px solid var(--border);
}

.teammates__title {
  font-size: var(--step-1);
}

.teammates__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.mate {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--step--1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem 0.3rem 0.3rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.mate:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, hsl(var(--hue) 70% 60%) 50%, var(--border));
}

/* ---------- 404 ---------- */

.notfound__inner {
  padding-block: clamp(3rem, 2rem + 6vw, 7rem);
  max-width: 44rem;
}

.notfound__code {
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, #7c5cff, #00b6a4 60%, #ff7a45);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound__title {
  margin-top: 0.75rem;
  font-size: var(--step-3);
}

.notfound__body {
  margin-top: 1rem;
  color: var(--text-soft);
}

.notfound__actions {
  margin-top: 1.75rem;
}

.notfound__meta {
  margin-top: 1.25rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.button {
  display: inline-block;
  text-decoration: none;
  font-weight: 650;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.2rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: color-mix(in oklab, var(--accent) 18%, var(--surface-2));
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border-strong));
}

/* ---------- footer ---------- */

.footer {
  margin-top: clamp(2.5rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 55%, transparent);
}

.footer__inner {
  padding-block: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---------- motion + print ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .mate:hover,
  .linkbtn:hover {
    transform: none;
  }
}

@media print {
  :root {
    --bg: #fff;
    --surface: #fff;
    --surface-2: #fff;
    --surface-3: #fff;
    --border: #bbb;
    --border-strong: #999;
    --text: #000;
    --text-soft: #222;
    --muted: #444;
    --faint: #555;
  }

  body {
    background: #fff;
    color: #000;
  }

  .topbar,
  .controls,
  .skip-link,
  .card__more,
  .backlink,
  .no-results {
    display: none !important;
  }

  .card,
  .panel,
  .stat {
    box-shadow: none;
    break-inside: avoid;
  }

  .prose a::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #444;
  }
}
