/* Base Styles - Dark Theme */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Helvetica, Arial, sans-serif;
  margin: 0;
  color: #ffffff;
  background: #000000;
  line-height: 1.6;
}

/* Links */
a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #666;
  transition: text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: #ffffff;
}

/* Layout */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid #333;
  background: #000000;
}

.site-header nav {
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-header a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.site-header a:hover {
  opacity: 0.7;
}

/* Hero Section */
.site-hero {
  padding: 3rem 0 2rem 0;
  border-bottom: 1px solid #333;
  margin-bottom: 2rem;
}

.site-hero h1 {
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  margin: 0 0 0.5rem 0;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tagline {
  color: #999;
  font-size: 1.1rem;
  margin: 0;
}

/* Column Layout */
.columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media(min-width: 800px) {
  .columns {
    grid-template-columns: 1fr 1fr;
  }
}

.col h2 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
}

.col h2 a {
  color: #ffffff;
  text-decoration: none;
}

.col h2 a:hover {
  text-decoration: underline;
  text-decoration-color: #666;
}

/* Post Lists */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  margin: 0.75rem 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid #222;
}

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

.post-list a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
}

.post-list a:hover {
  text-decoration: underline;
  text-decoration-color: #666;
}

.post-list .date {
  color: #666;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

/* Archive */
.archive {
  list-style: none;
  padding: 0;
}

.archive li {
  margin: 1.5rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #333;
}

.archive li:last-child {
  border-bottom: none;
}

/* Post Content */
.post h1 {
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-meta {
  color: #666;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.post-content {
  line-height: 1.7;
}

.post-content h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.post-content h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

.post-content p {
  margin: 1rem 0;
}

.post-content code {
  background: #1a1a1a;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

.post-content pre {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  border: 1px solid #333;
}

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

/* Tags */
.tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border: 1px solid #444;
  border-radius: 3px;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
  color: #ccc;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.tag:hover {
  border-color: #666;
  color: #ffffff;
  background: #1a1a1a;
}

/* Footer */
.site-footer {
  border-top: 1px solid #333;
  margin-top: 4rem;
  padding: 2rem 1rem;
  color: #666;
  text-align: center;
  font-size: 0.9rem;
}

/* Collapsible code sections */
details {
    margin: 1.5em 0;
    padding: 1em;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
}

details summary {
    cursor: pointer;
    font-weight: bold;
    color: #4a9eff;
    user-select: none;
    padding: 0.5em;
}

details summary:hover {
    color: #6bb3ff;
}

details[open] summary {
    margin-bottom: 1em;
    border-bottom: 1px solid #333;
}
