:root {
  --bg: #08080a;
  --panel: #101014;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f4f5;
  --muted: rgba(244, 244, 245, 0.55);
  --accent: #eca8d6;
  --accent-ink: #1a0b15;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.wrap {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-name {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.auth {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.who {
  color: var(--text);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  padding: 48px 0 64px;
}

.intro h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  max-width: 20ch;
}

.lede {
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 56ch;
}

.prompt {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--panel);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.prompt-label {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.prompt-text {
  margin: 0;
  font-size: 15px;
}

.composer,
.signedout {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 32px;
}

.signedout p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 84px;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  outline: none;
}

.composer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.counter {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.btn {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 8px 18px;
  cursor: pointer;
  transition: 150ms ease;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  font-weight: 600;
}

.btn.primary:hover {
  filter: brightness(1.08);
}

.btn.primary:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn.ghost {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--muted);
}

.btn.wide {
  width: 100%;
  margin-top: 16px;
}

.feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.feed-head h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
}

.posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(236, 168, 214, 0.16);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  flex: none;
}

.post-author {
  font-weight: 500;
  font-size: 14px;
}

.post-time {
  color: var(--muted);
  font-size: 12px;
}

.post-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 10px;
  font-size: 15px;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.like {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  padding: 3px 10px;
  cursor: pointer;
}

.like[aria-pressed="true"] {
  color: var(--accent);
  border-color: rgba(236, 168, 214, 0.4);
  background: rgba(236, 168, 214, 0.1);
}

.remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 3px 4px;
}

.remove:hover {
  color: #ff8f8f;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
  font-size: 14px;
}

.error {
  color: #ff9a9a;
  font-size: 13px;
  margin: 10px 0 0;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--muted);
}

.foot-inner p {
  margin: 0 0 6px;
}

.muted {
  opacity: 0.7;
}

@media (max-width: 560px) {
  .top-nav a:not(.btn) {
    display: none;
  }
  main {
    padding-top: 32px;
  }
}
