body {
  max-width: 800px;
  margin: auto;
  padding: 1em;
  line-height: 1.5;
}

/* Header and Navigation */
.site-header {
  margin-bottom: 2rem;
}

.nav {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-item {
  margin: 0;
}

.nav-link {
  text-decoration: none;
  color: #111827;
  font-size: 1em;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #6b7280;
}

/* Page Titles */
h1 {
  font-size: 1.1em;
  font-weight: 500;
  color: #111827;
  margin-bottom: 1rem;
}

/* Post Listing */
.post-list {
  margin-top: 2rem;
}

.post-item {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.25rem;
  padding: 0.125rem 0;
}

.post-date {
  color: #111827;
  font-size: 1em;
  margin-right: 2rem;
  min-width: 100px;
}

.post-title {
  text-decoration: none;
  color: #111827;
  font-size: 1em;
  flex: 1;
}

.post-title:hover {
  text-decoration: underline;
}

.post-count {
  color: #6b7280;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

/* Legacy menu styles (keeping for backward compatibility) */
.menu {
  padding: 0;
}
.menu li {
  display: inline-block;
}

.menu a {
    text-decoration: none;
    padding: 5px;
}

.article-meta a {
  text-decoration: none;
  background: #eee;
  padding: 5px;
  border-radius: 5px;
}
.menu,
.article-meta,
footer {
  text-align: center;
}
.title {
  font-size: 1.1em;
}

a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

footer a {
  text-decoration: none;
}
hr {
  border-style: dashed;
  color: #ddd;
}

/* code */
pre {
  border: 1px solid #ddd;
  box-shadow: 5px 5px 5px #eee;
  padding: 1em;
  overflow-x: auto;
}
code {
  background: #f9f9f9;
}
pre code {
  background: none;
}

/* misc elements */
img,
iframe,
video {
  max-width: 100%;
}
main {
  hyphens: auto;
  text-align: justify;
  overflow-wrap: break-word;
  word-break: break-word

}
blockquote {
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  padding: 3px 1em 3px;
}

table {
  margin: auto;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
}
table thead th {
  border-bottom: 1px solid #ddd;
}
th,
td {
  padding: 5px;
}
thead,
tfoot,
tr:nth-child(even) {
  background: #eee;
}

.centered-img {
  display: inline-block;
  margin: 1em auto;
  max-width: 100%;
}

/* draft indicator */
.draft-indicator {
  color: #666;
  font-size: 0.8em;
  margin-left: 0.5em;
  opacity: 0.7;
}

.draft-indicator:hover {
  opacity: 1;
}
