body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.nav-menu {
  margin: 20px 0;
}

.nav-menu button {
  background: #007acc;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.nav-menu button:hover,
.nav-menu button:focus {
  background: #005a99;
  outline: 2px solid #005a99;
  outline-offset: 2px;
}

.nav-menu button:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.nav-menu button.active {
  background: #28a745;
}

.nav-menu button.active:focus {
  outline-color: #ffffff;
}

.blog-list {
  display: block;
}

.blog-post {
  display: none;
}

.post-card {
  background: white;
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.post-card h2 {
  margin: 0 0 10px 0;
  color: #2c3e50;
}

.post-card h2 a {
  color: inherit;
  text-decoration: none;
}

.post-card h2 a:hover,
.post-card h2 a:focus {
  color: #007acc;
  outline: 2px solid #007acc;
  outline-offset: 2px;
  border-radius: 4px;
}

.post-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.post-excerpt {
  color: #555;
  margin-bottom: 15px;
}

.read-more {
  color: #007acc;
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover,
.read-more:focus {
  text-decoration: underline;
  outline: 2px solid #007acc;
  outline-offset: 2px;
  border-radius: 4px;
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  gap: 10px;
}

.pagination button {
  background: white;
  border: 1px solid #ddd;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination button:hover:not(:disabled),
.pagination button:focus:not(:disabled) {
  background: #007acc;
  color: white;
  border-color: #007acc;
  outline: 2px solid #005a99;
  outline-offset: 2px;
}

.pagination button:focus:not(:disabled) {
  outline: 2px solid #007acc;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination .current-page {
  background: #007acc;
  color: white;
  border-color: #007acc;
}

.page-info {
  margin: 0 15px;
  color: #666;
}

.markdown-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.markdown-content h1 {
  color: #2c3e50;
  border-bottom: 3px solid #007acc;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.loading {
  text-align: center;
  color: #666;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.error {
  color: #d73a49;
  background: #ffeaea;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #d73a49;
}

pre {
  background: #f6f8fa;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
}

code {
  background: #f6f8fa;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 0.9em;
}

pre code {
  background: none;
  padding: 0;
}

.back-to-list {
  display: inline-block;
  margin-bottom: 20px;
  color: #007acc;
  text-decoration: none;
  font-weight: 500;
}

.back-to-list:hover,
.back-to-list:focus {
  text-decoration: underline;
  outline: 2px solid #007acc;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .post-card {
    border: 2px solid #333;
  }

  .pagination button {
    border: 2px solid #333;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .post-card:hover {
    transform: none;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

table th {
  background: #f6f8fa;
  font-weight: 600;
}

blockquote {
  border-left: 4px solid #007acc;
  margin: 20px 0;
  padding-left: 20px;
  color: #666;
}
