body {
  font-family: system-ui, sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  color: #1a1a1a;
}

a {
  color: #1a56db;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e2e2;
  margin-bottom: 2rem;
}
.nav a {
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-user {
  font-weight: 600;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-card h2 {
  margin: 0 0 0.25rem;
}

.post-card-snippet {
  color: #444;
  margin: 0.25rem 0;
}

.post-card-meta {
  color: #888;
  font-size: 0.85rem;
  margin: 0;
}

.post-detail .post-content {
  white-space: pre-wrap;
  line-height: 1.6;
}

.post-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.post-controls button {
  padding: 0.4rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  font: inherit;
  cursor: pointer;
}
.post-controls button:hover {
  background: #f3f4f6;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.post-form,
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
}
.post-form label,
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}
.post-form input,
.post-form textarea,
.auth-form input,
.auth-form textarea {
  font: inherit;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.post-form textarea,
.auth-form textarea {
  min-height: 200px;
  resize: vertical;
}
.post-form button,
.auth-form button {
  align-self: flex-start;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 4px;
  background: #1a56db;
  color: white;
  font: inherit;
  cursor: pointer;
}
.post-form button:disabled,
.auth-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-error {
  color: #b91c1c;
}
