:root {
  --bg: #f9f9f9;
  --text: #333;
  --accent: #007bff;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

header {
  text-align: center;
  padding: 1rem 0;
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 2rem;
}

header a {
  color: inherit;
  text-decoration: none;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

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

a:hover {
  text-decoration: underline;
}

ul.articles {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.articles li {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 1rem;
}

.article-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.article-title .open-in-new {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem;
  border-radius: 4px;
}

.article-title .open-in-new svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--accent);
}

.filters {
  margin-bottom: 1rem;
}

.filters input,
.filters select {
  margin-right: 0.5rem;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.meta {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.5rem;
}

.content {
  line-height: 1.7;
}

.content img {
  max-width: 100%;
  height: auto;
}

.content pre {
  background: #f5f5f5;
  padding: 0.75rem;
  overflow-x: auto;
}

.content code {
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

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

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.content th,
.content td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
}

.content th {
  background: #f5f5f5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  header h1 {
    font-size: 1.5rem;
  }
}
