/* Dark mode with GitHub-inspired colors */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #0d1117;
    color: #e6edf3;
  }
  
  :root {
    --background-color: #0d1117;
    --heading-color: #f0f6fc;
    --text-color: #e6edf3;
    --secondary-text: #7d8590;
    --link-color: #58a6ff;
    --visited-color: #bc8cff;
    --border-color: #30363d;
  }
}

/* Light mode colors */
@media (prefers-color-scheme: light) {
  :root {
    --secondary-text: #656d76;
  }
}

/* Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Site title - Courier font */
.title h1 {
  font-size: 2.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-weight: normal;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
  letter-spacing: 0.05em;
}



/* Post title */
article h2:first-child {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Date styling */
article p time,
time {
  font-style: normal;
  font-size: 1rem;
  color: var(--secondary-text, #666);
  font-weight: 400;
}

/* Content headings */
article h3:not(:first-child) {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

article h4 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

article h5 {
  font-size: 1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

article h6 {
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border: none;
}

.nav-left {
  flex: 1;
  text-align: left;
}

.nav-right {
  flex: 1;
  text-align: right;
}

.post-nav a {
  color: var(--secondary-text, #666);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.post-nav a:hover {
  color: var(--text-color, #333);
  background-color: var(--hover-bg, #f5f5f5);
}

@media (prefers-color-scheme: dark) {
  .post-nav a:hover {
    background-color: #21262d;
  }
}

/* Layout spacing */
article {
  margin-bottom: 2rem;
}

header {
  margin-bottom: 2rem;
}

header nav {
  display: none;
}

footer {
  padding: 25px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--secondary-text, #666);
  border: none;
  margin-top: 3rem;
}

/* Dark mode link colors */
@media (prefers-color-scheme: dark) {
  a {
    color: var(--link-color);
  }
  
  a:visited {
    color: var(--visited-color);
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
  }
}
