:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #4f46e5;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100%;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 16px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

.post-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

.post-form form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
}

input[type="text"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

button {
  align-self: start;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: #3730a3;
}

.board {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.posts {
  display: grid;
  gap: 12px;
}

/* Post item style (rendered by server-side PHP in this simple version) */
.post-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.post-item:last-child {
  border-bottom: none;
}
.post-meta {
  color: var(--muted);
  font-size: 0.85rem;
}
.post-message {
  white-space: pre-wrap;
}
@media (min-width: 600px) {
  .post-form form {
    grid-template-columns: 1fr 2fr;
    align-items: end;
  }
}
