:root {
  --bg: #000;
  --fg: #d4d4d4;
  --dim: #6e6e6e;
  --accent: #6ad08a;
  --like: #6ad08a;
  --dislike: #d06a6a;
  --line: #1c1c1c;
  --line-soft: #141414;
  --card: #0a0a0a;
  --hover: #0b0b0b;
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--fg);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; line-height: 1.35; margin: 0;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 600px; margin: 0 auto; padding: 0 12px 80px; }

/* ---- header / nav ---- */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 9px 0; margin-bottom: 0;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
header.top .brand { font-weight: 700; font-size: 14px; color: var(--fg); letter-spacing: 0; }
header.top nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
header.top nav a {
  color: var(--dim); padding: 4px 9px; border-radius: 999px; font-size: 12.5px;
}
header.top nav a:hover { color: var(--fg); background: var(--hover); text-decoration: none; }
header.top .me { color: var(--dim); font-size: 12px; }

.flash { border: 1px solid var(--accent); border-radius: 6px; padding: 7px 11px; margin: 12px 0; color: var(--accent); font-size: 12.5px; }

/* ---- timeline: full-bleed rows, hairline dividers (Twitter style) ---- */
.card {
  border: none; border-bottom: 1px solid var(--line);
  background: transparent; padding: 11px 4px 9px; margin: 0;
  transition: background .12s ease;
}
/* compose box at top stays boxed */
form.card {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); padding: 10px 12px; margin: 12px 0;
}
/* feed post rows get a subtle hover */
.card:not(form):hover { background: var(--hover); }
.card-link { cursor: pointer; }

/* reply / comment-count affordance next to reactions */
.reply-action { color: var(--dim); border-radius: 999px; padding: 3px 8px; }
.reply-action:hover { color: var(--accent); background: rgba(106,208,138,0.08); text-decoration: none; }

.muted { color: var(--dim); }
.handle { color: var(--fg); font-weight: 700; }
.handle:hover { text-decoration: underline; }
.post-body { word-break: break-word; overflow-wrap: anywhere; margin: 4px 0 6px; font-size: 14px; line-height: 1.4; }
.post-body p { margin: 0 0 0.75em; }
.post-body p:last-child { margin-bottom: 0; }

textarea, input[type=text], input[type=email], input[type=password] {
  width: 100%; background: #070707; color: var(--fg); border: 1px solid var(--line);
  border-radius: 8px; font-family: inherit; font-size: 14px; padding: 9px 10px; margin: 5px 0;
}
textarea:focus, input:focus { outline: none; border-color: #2e2e2e; }
textarea { resize: vertical; min-height: 62px; }

button, .btn {
  background: transparent; color: var(--fg); border: 1px solid var(--line);
  border-radius: 999px; font-family: inherit; font-size: 12px; padding: 5px 14px; cursor: pointer;
  transition: all .12s ease;
}
button:hover, .btn:hover { border-color: var(--accent); color: var(--accent); }
button.primary { border-color: var(--accent); color: var(--accent); font-weight: 700; }
button.primary:hover { background: rgba(106,208,138,0.1); }

/* ---- reactions: borderless icon buttons (Twitter action-bar feel) ---- */
.reactions { display: inline-flex; gap: 4px; align-items: center; }
.reactions form { display: inline; }
.reactions button {
  border: none; border-radius: 999px; padding: 3px 8px; font-size: 12px;
  color: var(--dim); background: transparent;
}
.reactions button:hover { color: var(--like); background: rgba(106,208,138,0.08); border: none; }
.reactions button.on-like { color: var(--like); }
.reactions button.on-dislike { color: var(--dislike); }
.reactions button.on-dislike:hover, .reactions button[title=dislike]:hover { color: var(--dislike); background: rgba(208,106,106,0.08); }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---- tabs ---- */
.tabs { display: flex; gap: 0; margin: 0; border-bottom: 1px solid var(--line); width: 100%; }
.tabs a {
  padding: 11px 18px; color: var(--dim); border: none;
  font-size: 13px; font-weight: 700; position: relative;
}
.tabs a:hover { color: var(--fg); background: var(--hover); text-decoration: none; }
.tabs a.active { color: var(--fg); }
.tabs a.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -1px; width: 36px; height: 3px; border-radius: 3px; background: var(--accent);
}

.meta { font-size: 12px; color: var(--dim); }

/* ---- landing / hero ---- */
.hero { padding: 44px 0 22px; }
.hero h1 { font-size: 28px; margin: 0 0 8px; color: var(--fg); letter-spacing: -0.02em; }
.hero p { color: var(--dim); max-width: 520px; font-size: 14px; }
.step { border-left: 2px solid var(--line); padding-left: 14px; margin: 16px 0; }
.step.done { border-color: var(--accent); }

.badge { font-size: 10.5px; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--dim); }
.badge.ok { color: var(--accent); border-color: var(--accent); }
.proof-badge { font-size: 11px; line-height: 1; vertical-align: middle; opacity: 0.85; }
.proof-state { font-size: 10px; color: var(--dim); }
.avatar { display:inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; margin-right: 5px; flex-shrink: 0; }
.delete-btn { color: var(--dim); border-color: transparent; padding: 2px 7px; font-size: 12px; }
.delete-btn:hover { color: var(--dislike); border-color: var(--dislike); }
button.btn-unfollow { color: var(--dim); border-color: var(--line); }
button.btn-unfollow:hover { color: var(--dislike); border-color: var(--dislike); }

/* ---- comments — flat+indent, no box-in-box ---- */
.comments-block { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.comment { padding: 6px 0 4px; }
.comment + .comment { border-top: 1px solid var(--line-soft); }
.comment.comment-nested {
  border-left: 2px solid var(--line);
  padding-left: 10px;
  margin-top: 4px;
  border-top: none;
}
.comment-header { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.comment-body { word-break: break-word; overflow-wrap: anywhere; margin: 3px 0 3px 14px; font-size: 13px; line-height: 1.4; }
.comment-body p { margin: 0 0 0.6em; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-actions { display: flex; gap: 8px; align-items: center; margin-left: 14px; margin-top: 1px; }
.reply-link { font-size: 11px; color: var(--dim); text-decoration: none; cursor: pointer; }
.reply-link:hover { color: var(--accent); }
.inline-reply { margin: 6px 0 4px 14px; }
.inline-reply textarea { min-height: 36px; font-size: 13px; }
.comment-form { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.comment-form textarea { min-height: 46px; }
/* permalink page: prominent reply box at the top of the thread */
.comment-form-top { margin-top: 0; padding-top: 0; padding-bottom: 10px; border-top: none; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.comment-form-top textarea { min-height: 60px; font-size: 14px; }

@media (max-width: 600px) {
  header.top .me { display: none; }
  .tabs a { flex: 1; text-align: center; }
}

/* ---- profile card ---- */
.profile-card { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 18px 16px 14px; margin: 12px 0; }
.profile-header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.profile-avatar {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--line);
}
.profile-identity { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.profile-name { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: -0.01em; }
.profile-badges-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.profile-verified-badge { font-size: 11px; }
.profile-proof-pill { font-size: 11px; }
.profile-bio {
  font-size: 13px; line-height: 1.5; color: var(--fg);
  border-top: 1px solid var(--line-soft); padding-top: 11px; margin-bottom: 11px;
}
.profile-stats {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px; color: var(--dim); flex-wrap: wrap;
}
.profile-stats-sep { color: var(--line); }

/* ---- post tags ---- */
.post-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0 3px; }
.post-tag {
  font-size: 10px; color: #555; background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 1px 7px; letter-spacing: 0.02em;
  cursor: default;
}

/* ---- profile writes-about ---- */
.profile-writes-about {
  font-size: 11px; color: #555; font-style: italic;
  margin-bottom: 11px; padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
}
