/* Let's Connect. One message, one action, a wall of cards. Nothing else. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk-vf.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --ink: #f4f4f0;
  --dim: #82828c;
  --card: #131316;
  --line: #232329;
  --line-soft: #1a1a1f;
  --lime: #c8f542;
  --lime-hi: #d9ff5c;
  --on-lime: #131600;
  --danger: #ff6b6b;

  --display: 'Space Grotesk', -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;

  --r: 14px;
  --r-sm: 8px;
  --pad: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--on-lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

/* ---------- top ---------- */
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--pad);
}
.brand {
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.brand em { color: var(--lime); font-style: normal; }
.top-right { display: flex; align-items: center; gap: 14px; }
.count { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.me {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; color: var(--dim);
}
.me img { width: 24px; height: 24px; border-radius: 50%; }
.me button {
  background: none; border: none; color: var(--dim); cursor: pointer;
  font-family: var(--mono); font-size: 12.5px; text-decoration: underline;
  padding: 0; opacity: .65;
}
.me button:hover { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s var(--ease), border-color .15s var(--ease),
              color .15s var(--ease), transform .12s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lime { background: var(--lime); color: var(--on-lime); }
.btn-lime:hover { background: var(--lime-hi); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--lime); color: var(--lime); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-big { padding: 15px 34px; font-size: 16.5px; }

/* ---------- hero: the whole homepage ---------- */
.hero {
  padding: clamp(48px, 11vh, 120px) var(--pad) clamp(40px, 7vh, 72px);
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 em { color: var(--lime); font-style: normal; }
/* the whole deal, in one line. this is the only explaining the page does. */
.deal {
  margin: 18px auto 0; max-width: 52ch;
  color: var(--dim); font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.5;
}
/* inline-block sentences break between each other, never mid-sentence */
.deal span { display: inline-block; }
.action {
  margin-top: clamp(28px, 4vh, 44px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.action-note { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }

/* ---------- composer: one field, that is the whole form ---------- */
.composer {
  width: 100%; max-width: 560px;
  display: flex; flex-direction: column; gap: 10px;
  text-align: left;
}
.composer-row {
  display: flex; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 8px 8px 8px 16px;
  transition: border-color .15s var(--ease);
}
.composer-row:focus-within { border-color: var(--lime); }
.composer input {
  flex: 1; min-width: 0; background: none; border: none; color: var(--ink);
  font-family: var(--display); font-size: 16px; padding: 8px 0;
}
.composer input:focus { outline: none; }
.composer input::placeholder { color: #55555e; }
.tag-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 0 4px;
}
.tag-input {
  background: none; border: none; color: var(--dim);
  font-family: var(--mono); font-size: 12.5px; padding: 4px 0;
  flex: 1; min-width: 120px;
}
.tag-input:focus { outline: none; color: var(--ink); }
.tag-input::placeholder { color: #4a4a52; }
.tag-chip {
  font-family: var(--mono); font-size: 11.5px;
  background: #1c1c22; color: var(--lime);
  border-radius: 99px; padding: 4px 6px 4px 10px;
  display: inline-flex; align-items: center; gap: 4px;
}
.tag-chip button {
  background: none; border: none; color: var(--dim); cursor: pointer;
  font-size: 13px; line-height: 1; padding: 0 3px;
}
.tag-chip button:hover { color: var(--danger); }

/* ---------- wall ---------- */
.wall { padding: 0 var(--pad) clamp(64px, 12vh, 120px); max-width: 1180px; margin: 0 auto; }
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.card.you { border-color: color-mix(in srgb, var(--lime) 40%, var(--line-soft)); }

/* X banners are 3:1. locking the ratio keeps every card the same height,
   with or without a banner. */
.card-banner {
  aspect-ratio: 3 / 1;
  background: linear-gradient(135deg, #191920, #121216);
  border-bottom: 1px solid var(--line-soft);
}
.card-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-body {
  padding: 0 20px 20px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
/* the avatar is the only thing that rides over the banner.
   flex-end keeps the number down on the card surface, where it stays readable. */
.card-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: -26px; margin-bottom: 2px;
}
.avatar, .avatar-fb {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  border: 3px solid var(--card);
  background: #1c1c22;
}
.avatar { object-fit: cover; }
.avatar-fb {
  color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
}

/* the decoded site link. never a t.co. */
.card-link {
  align-self: flex-start;
  font-family: var(--mono); font-size: 12px;
  color: var(--lime); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--lime) 22%, var(--line));
  border-radius: 99px; padding: 4px 11px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background .15s var(--ease);
}
.card-link::before { content: '↗ '; opacity: .6; }
.card-link:hover { background: color-mix(in srgb, var(--lime) 10%, transparent); }
.card-who { display: flex; flex-direction: column; min-width: 0; }
.card-handle {
  font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: -0.01em;
  text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-handle:hover { color: var(--lime); }
.card-at {
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-num { font-family: var(--mono); font-size: 11.5px; color: #55555f; padding-bottom: 3px; }

.card-what {
  color: var(--dim); font-size: 15px; line-height: 1.5;
  flex: 1; overflow-wrap: anywhere;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono); font-size: 11px; color: var(--dim);
  border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px;
}

.follow {
  font-family: var(--display); font-weight: 600; font-size: 14px;
  text-align: center; text-decoration: none; padding: 10px;
  border-radius: var(--r-sm); background: #1c1c22; color: var(--ink);
  border: 1px solid var(--line); cursor: pointer; display: block; width: 100%;
  transition: all .15s var(--ease);
}
.follow:hover { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.follow.done {
  background: transparent; color: var(--lime);
  border-color: color-mix(in srgb, var(--lime) 30%, var(--line));
  cursor: default;
}
.follow.done:hover { background: transparent; color: var(--lime); }
.follow.self {
  background: transparent; color: #4e4e57; border-color: var(--line-soft);
  cursor: default;
}
.follow.self:hover { background: transparent; color: #4e4e57; border-color: var(--line-soft); }

/* the open slot: an empty seat on the wall with your name on it.
   doubles as the empty state, so the wall is never a blank page. */
.card.slot {
  border: 1px dashed #33333c;
  background: transparent;
  align-items: center; justify-content: center;
  text-align: center; gap: 8px;
  min-height: 260px; cursor: pointer;
  text-decoration: none; padding: 20px;
}
.card.slot:hover {
  border-color: var(--lime); transform: translateY(-3px);
  background: color-mix(in srgb, var(--lime) 3%, transparent);
}
.slot-plus {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px dashed #3f3f49; color: var(--dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  transition: all .2s var(--ease);
}
.card.slot:hover .slot-plus { border-color: var(--lime); color: var(--lime); }
.slot-text { font-weight: 600; font-size: 14.5px; color: var(--dim); }
.card.slot:hover .slot-text { color: var(--ink); }
.slot-sub { font-family: var(--mono); font-size: 11.5px; color: #4e4e57; }

/* skeletons */
.card.skel { pointer-events: none; padding: 22px; gap: 14px; }
.card.skel .bar { height: 11px; border-radius: 4px; background: #1c1c22; animation: pulse 1.4s ease-in-out infinite; }
.card.skel .avatar { animation: pulse 1.4s ease-in-out infinite; border: none; width: 40px; height: 40px; }
.card.skel .card-top { margin-top: 0; align-items: center; }
.card.skel .bar.w70 { width: 70%; }
.card.skel .bar.w40 { width: 40%; }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: .9; } }

.empty {
  font-family: var(--mono); font-size: 13.5px; color: var(--dim);
  text-align: center; padding: 40px 0;
}

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 50; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-left: 3px solid var(--lime);
  border-radius: var(--r-sm); padding: 12px 18px;
  font-family: var(--mono); font-size: 13px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  animation: toast-in .25s var(--ease);
  max-width: min(400px, calc(100vw - 32px));
}
.toast.err { border-left-color: var(--danger); }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
