/* Custom minimal theme inspired by nullpt.rs */

:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --link-color: #0066cc;
  --link-hover: #004499;
  --border-color: #e5e5e5;
  --code-bg: #f5f5f5;
  --header-color: #000000;
  --meta-color: #666666;
  --max-width: 720px;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
header {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.site-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.site-title a {
  color: var(--header-color);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--meta-color);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--link-color);
}

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

.post-item {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.post-item:last-child {
  border-bottom: none;
}

.post-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-title a {
  color: var(--header-color);
  text-decoration: none;
  transition: color 0.2s;
}

.post-title a:hover {
  color: var(--link-color);
}

.post-meta {
  color: var(--meta-color);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.post-description {
  color: var(--meta-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Single post */
article header {
  border-bottom: none;
  margin-bottom: 2rem;
  padding-bottom: 0;
}

article h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--header-color);
}

article .post-meta {
  margin-bottom: 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--header-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Code blocks */
code {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  background-color: var(--code-bg);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

pre {
  background-color: var(--code-bg);
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

pre code {
  background-color: transparent;
  padding: 0;
  font-size: 0.85rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  font-weight: 600;
  color: var(--header-color);
  background-color: var(--code-bg);
}

/* Blockquotes */
blockquote {
  border-left: 3px solid var(--border-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--meta-color);
  font-style: italic;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
}

/* Lists */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 3rem 0;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--meta-color);
  font-size: 0.9rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    padding: 1.5rem 1rem;
  }

  article h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.5rem;
  }

  pre {
    padding: 1rem;
  }
}
