:root {
  /* Stripe palette */
  --canvas: #f6f9fc;
  --surface: #ffffff;
  --line: #e3e8ee;
  --ink: #0a2540;
  --muted: #425466;
  --brand: #635bff;
  --wip-bg: #eef0ff;
  --wip-ink: #635bff;

  --mono: 'SF Mono', ui-monospace, 'JetBrains Mono', 'Menlo', monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Soft blurple light behind the page. Fixed layer so nothing repaints on scroll. */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 15% -10%, rgba(99, 91, 255, 0.06), transparent 70%),
    radial-gradient(50rem 35rem at 95% 15%, rgba(99, 91, 255, 0.04), transparent 70%);
}

/* Single narrow column: reads as a linktree on a phone and on a desktop. */
.wrap {
  max-width: 30rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
}

/* Header: centered brand, bio, and one Threads link. */

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

.bio {
  color: var(--muted);
  font-size: 0.8125rem;
  margin: 0;
  max-width: 22rem;
}

.threads {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  margin-top: 0.375rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.75rem;
  transition: border-color 200ms, color 200ms, transform 200ms;
}

.threads svg { width: 1rem; height: 1rem; fill: currentColor; }
.threads:hover { border-color: var(--brand); color: var(--brand); }
.threads:active { transform: scale(0.98); }

/* Section label */

.label {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-align: center;
  margin: 2.25rem 0 1rem;
}

/* Stacked tappable rows. */

.cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

a.card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.06);
  transform: translateY(-1px);
}

a.card:active { transform: scale(0.99); }

.icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--wip-bg);
  color: var(--brand);
}

.icon svg { width: 1.375rem; height: 1.375rem; }

.wip .icon { background: var(--canvas); color: var(--muted); }

.body { flex: 1; min-width: 0; }

.card h3 {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  margin: 0;
}

a.card:hover h3 { color: var(--brand); }

.card p {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: 0.25rem 0 0;
}

.chev {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--line);
  transition: color 200ms ease, transform 200ms ease;
}

a.card:hover .chev { color: var(--brand); transform: translateX(2px); }

.empty {
  color: var(--muted);
  padding: 2rem 0;
}

/* Motion. Cards render visible unless the visitor allows animation. */

@media (prefers-reduced-motion: no-preference) {
  /* `armed` is added by the render script, never present in the served markup. */
  .card.armed {
    opacity: 0;
    transform: translateY(12px);
  }

  .card.armed.in {
    opacity: 1;
    transform: none;
    transition:
      opacity 600ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--index) * 80ms),
      transform 600ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--index) * 80ms),
      box-shadow 200ms ease;
  }
}

