:root {
  --bg: #ffffff;
  --text: #000000;
  --border: #e0e0e0;
  --accent: #0066cc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.post-item {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 15px;
  cursor: pointer;
}

.post-item:hover {
  background: #f5f5f5;
}

.post-item h2 {
  margin-bottom: 5px;
}

.post-date {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 5px;
}

.post-content {
  margin-top: 20px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.post-content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.post-content pre {
  background: #f4f4f4;
  padding: 12px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 10px 0;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content ul, .post-content ol {
  margin-left: 20px;
  margin-bottom: 10px;
}

.back-button {
  color: var(--accent);
  cursor: pointer;
  margin-bottom: 20px;
  display: inline-block;
}

.back-button:hover {
  text-decoration: underline;
}

p[align="center"] {
  margin: 30px 0;
}

p[align="center"] img {
  max-width: 100%;
  height: auto;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.85em;
  line-height: 1.4;
}

.post-content th,
.post-content td {
  padding: 8px 10px;
  text-align: left;
  border: 1px solid #ddd;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-content th {
  background: #f5f5f5;
  font-weight: 600;
  font-size: 0.9em;
  border-bottom: 2px solid #ccc;
}

.post-content tr:nth-child(even) {
  background: #fafafa;
}

.post-content tr:hover {
  background: #f0f0f0;
}

.post-content td:first-child {
  font-weight: 500;
  white-space: nowrap;
}
