
:root {
  --bg: #282c33;
  --bg-surface: #2f343e;
  --text: #dce0e5;
  --text-secondary: #a9afbc;
  --text-muted: #878a98;
  --accent: #74ade8;
  --border: #464b57;
  --border-subtle: #363c46;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.06rem;
}

.container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

header nav {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

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

header nav a:hover {
  color: var(--accent);
}

header nav .rss-link {
  display: flex;
  align-items: center;
}

header nav .rss-link svg {
  vertical-align: middle;
}

header nav .site-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin-right: auto;
}

main {
  padding: 1rem 0 4rem;
}

footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Home page */
.home-about {
  margin-bottom: 2.5rem;
}

.home-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.empty-message {
  color: var(--text-muted);
  font-style: italic;
}

/* Article list */
.article-list {
  list-style: none;
}

.article-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.article-list li:first-child {
  border-top: 1px solid var(--border);
}

.article-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.article-list a:hover {
  color: var(--accent);
}

.article-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.back-link {
  display: inline-block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--accent);
}

/* Article page */
.article-header {
  margin-bottom: 2.5rem;
}

.article-header h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.article-header .article-meta {
  margin-top: 0;
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1.25rem;
  color: var(--text-secondary);
  margin: 1.5rem 0;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body code {
  font-size: 0.9em;
  background: var(--bg-surface);
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

.article-body pre {
  background: var(--bg-surface);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  border-radius: 4px;
}

.article-body pre code {
  background: none;
  padding: 0;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
}

.article-body a:hover {
  color: #85c1ff;
}

/* Page (about) */
.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.page-body p {
  margin-bottom: 1.25rem;
}

.page-body a {
  color: var(--accent);
  text-decoration: underline;
}

.page-body a:hover {
  color: #85c1ff;
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .article-header h1 {
    font-size: 1.6rem;
  }
}
